/*
 * Sexy Buttons
 * 
 * DESCRIPTION:
 * 	sexy, skinnable HTML/CSS buttons with icons.
 * 
 * PROJECT URL: 
 * 	http://code.google.com/p/sexybuttons/
 * 
 * AUTHOR:
 * 	Richard Davies
 * 	http://www.richarddavies.us
 * 	Richard@richarddavies.us
 * 
 * VERSION:
 * 	1.1
 * 
 * LICENSE:
 * 	Apache License 2.0  (http://www.apache.org/licenses/LICENSE-2.0)
 * 	Creative Commons 3.0 Attribution  (http://creativecommons.org/licenses/by/3.0/)
 * 
 * CREDITS:
 * 	Inspired by, derived from, and thanks to:
 * 	http://www.p51labs.com/simply-buttons-v2/
 * 	http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
 * 	http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
 * 	http://www.elctech.com/snippets/make-your-buttons-look-super-awesome
 * 
 * USAGE:
 * 	Simply add class="sexybutton [skin]" to a <button> or <a> element and wrap the label text with double <span>s.
 * 	You can optionally add a "silk" icon to the button text by using a third <span> with class to identify the icon.   
 * 
 * EXAMPLE: 
 * 	<button id="btn1" class="sexybutton" name="btn1" type="submit" value="Submit">
 * 		<span><span><span class="ok">Submit</span></span></span>
 * 	</button>
 *
 *
 *
 * XH 7/15/2010: Renamed 'sexy'... To 'shi'...; i.e. sexybutton -> shibutton, etc.
 *
 */


/* 
 *	Generic styles for all Sexy Buttons
 */

.shibutton {
	display: inline-block;
	margin: 0;
	padding: 0;
	font: bold 11px "Helvetica Neue", Helvetica, Arial, clean, sans-serif !important;
	text-decoration: none !important;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.20);
	background: none;
	border: none;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	-moz-user-select: none;
	
	/* Fix extra width padding in IE */
	_width: 0;
	overflow: visible;
}

.shibutton span {
	display: block;						/* Prevents :active from working in IE--oh well! */
	height: 24px;
	padding-right: 12px;
	background-repeat: no-repeat;
	background-position: right top;
}

.shibutton span span {
	padding-right: 0;
	padding-left: 12px;
	line-height: 24px;
	background-position: left top;
}

.shibutton span span span {
	padding-left: 21px;
	background-image: none;
	background-repeat: no-repeat;
	background-position: left center;
	/* IE6 still requires a PNG transparency fix */ 
	/* _background-image: none;		Or just hide icons from the undeserving IE6 */
	/* _padding-left: 0;					Or just hide icons from the undeserving IE6 */
}

.shibutton span span span.after {
	padding-left: 0px;
	padding-right: 21px;
	background-position: right center;
	/* IE6 still requires a PNG transparency fix */ 
	/* _padding-right: 0;					Or just hide icons from the undeserving IE6 */
}

.shibutton[disabled],
.shibutton[disabled]:hover,
.shibutton[disabled]:focus,
.shibutton[disabled]:active,
.shibutton.disabled,
.shibutton.disabled:hover,
.shibutton.disabled:focus,
.shibutton.disabled:active {
	color: #333 !important;
	cursor: inherit;
	text-shadow: none; 
	opacity: 0.33;
}

.shibutton:hover span,
.shibutton:focus span {
	background-position: 100% -24px;
}

.shibutton:hover span span,
.shibutton:focus span span {
	background-position: 0% -24px;
}

.shibutton:active span {
	background-position: 100% -48px;
}

.shibutton:active span span {
	background-position: 0% -48px;
}

.shibutton[disabled] span,
.shibutton.disabled span {
	background-position: 100% -72px;
}

.shibutton[disabled] span span,
.shibutton.disabled span span {
	background-position: 0% -72px;
}

.shibutton:hover span span span,
.shibutton:focus span span span,
.shibutton:active span span span,
.shibutton[disabled] span span span,
.shibutton.disabled span span span {
	background-position: left center;
}

.shibutton:hover span span span.after,
.shibutton:focus span span span.after,
.shibutton:active span span span.after,
.shibutton[disabled] span span span.after,
.shibutton.disabled span span span.after {
	background-position: right center;
}

.shibutton img {
	margin-right: 5px;
	vertical-align: text-top;
	/* IE6 Hack */
	_margin-top: 4px;
	_vertical-align: text-bottom;
	/* IE6 still requires a PNG transparency fix */ 
	/* _display: none;		Or just hide icons from the undeserving IE6 */
}

.shibutton img.after {
	margin-right: 0;
	margin-left: 5px;
	/* IE6 still requires a PNG transparency fix */ 
	/* _margin-left: 0;		Or just hide icons from the undeserving IE6 */
}

.shibutton.shismall	{ font-size: 9px !important; }
.shibutton.shilarge	{ font-size: 16px !important; }


/*
 * Button Skins
 * 
 * .PNG background images with alpha transparency are also supplied if you'd rather use them instead of the 
 * default .GIF images. (Just beware of IE6's lack of support.) 
 * 
 * Additional skins can be added below. The images/skins/ButtonTemplate.psd can be used to create new skins.
 * Prefix the skin name with "shi" to avoid any potential conflicts with other class names. 
 */


/* SHI Blue Button Skin (the default skin) */

.shibutton,
.shibutton.shiblue {
	color: #fff !important;
}

.shibutton:hover,
.shibutton:focus,
.shibutton.shiblue:hover,
.shibutton.shiblue:focus {
	color: #fff !important;
}
	
.shibutton span,
.shibutton.shiblue span {
	background-image: url(images/skins/blue/button_right.gif);
}

.shibutton span span,
.shibutton.shiblue span span {
	background-image: url(images/skins/blue/button_left.gif);
}


/* SHI Green Button Skin */

.shibutton.shigreen {
	color: #fff !important;
}

.shibutton.shigreen:hover,
.shibutton.shigreen:focus {
	color: #fff !important;
}
	
.shibutton.shigreen span {
	background-image: url(images/skins/green/button_right.gif);
}

.shibutton.shigreen span span {
	background-image: url(images/skins/green/button_left.gif);
}


/* Silver Button Skin */

.shibutton.shisilver {
	color: #666 !important;
}
	
.shibutton.shisilver:hover,
.shibutton.shisilver:focus {
	color: #333 !important;
}
	
.shibutton.shisilver span {
	background-image: url(images/skins/silver/button_right.gif);
}

.shibutton.shisilver span span {
	background-image: url(images/skins/silver/button_left.gif);
}

/* Orange Button Skin */

.shibutton.shiorange,
.shibutton.shiorange:hover,
.shibutton.shiorange:focus {
	color: white !important;
}
	
.shibutton.shiorange span {
	background-image: url(images/skins/orange/button_right.gif);
}

.shibutton.shiorange span span {
	background-image: url(images/skins/orange/button_left.gif);
}


/* Yellow Button Skin */

.shibutton.shiyellow,
.shibutton.shiyellow:hover,
.shibutton.shiyellow:focus {
	color: #994800 !important;
}
	
.shibutton.shiyellow span {
	background-image: url(images/skins/yellow/button_right.gif);
}

.shibutton.shiyellow span span {
	background-image: url(images/skins/yellow/button_left.gif);
}


/* 
 * Simple Skin Buttons
 */

.shibutton.shisimple { 
	position: relative; 
	padding: 5px 10px 5px;
	font: inherit;
	font-size: 13px !important;
	font-style: normal !important; 
	font-weight: bold !important; 
	color: #fff !important;
	line-height: 1; 
	background-image: url(images/skins/simple/awesome-overlay-sprite.png);
	background-repeat: repeat-x;
	background-position: 0 0;
	
	/* Special effects */
	text-shadow: 0 -1px 1px rgba(0,0,0,0.25), -2px 0 1px rgba(0,0,0,0.25); 
	border-radius: 5px; 
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px; 
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.5); 
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
	
	/* IE only stuff */
	border-bottom: 1px solid transparent\9;
	_background-image: none;
	
	/* Cross browser inline block hack - http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/ */
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: middle;
	*display: inline !important;
	position: relative;
	
	/* Force hasLayout in IE */
	zoom: 1;
	
	/* Disable text selection (Firefox only)*/
	-moz-user-select: none;
}

.shibutton.shisimple::selection {
	background: transparent;
}

.shibutton.shisimple:hover,
.shibutton.shisimple:focus {
	background-position: 0 -50px; 
	color: #fff !important;
}

.shibutton.shisimple:active { 
	background-position: 0 -100px; 
	-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.7); 
	/* Unfortunately, Safari doesn't support inset yet */
	-webkit-box-shadow: none;
	
	/* IE only stuff */
	border-bottom: 0\9;
	border-top: 1px solid #666\9;
}

.shibutton.shisimple[disabled], 
.shibutton.shisimple.disabled { 
	background-position: 0 -150px; 
	color: #333 !important;
	text-shadow: none; 
}

.shibutton.shisimple[disabled]:hover,
.shibutton.shisimple[disabled]:focus,
.shibutton.shisimple[disabled]:active,
.shibutton.shisimple.disabled:hover,
.shibutton.shisimple.disabled:focus,
.shibutton.shisimple.disabled:active {
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.5); 
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
} 

.shibutton.shisimple span {
	height: auto;
	padding-left: 24px;
	padding-right: 0;
	background-position: left center;
	background-repeat: no-repeat;
	/* IE6 still requires a PNG transparency fix */ 
	/* _padding-left: 0;		Or just hide icons from the undeserving IE6 */
}

.shibutton.shisimple span.after {
	padding-left: 0;
	padding-right: 24px;
	background-position: right center;
	/* IE6 still requires a PNG transparency fix */ 
	/* _padding-right: 0;		Or just hide icons from the undeserving IE6 */
}

/* Simple button colors */
.shibutton.shisimple					{ background-color: #333; }		/* Default */
.shibutton.shisimple.shiblack		{ background-color: #333; }
.shibutton.shisimple.shired		{ background-color: #a90118; }
.shibutton.shisimple.shiorange	{ background-color: #ff8a00; }
.shibutton.shisimple.shiyellow	{ background-color: #ffb515; }
.shibutton.shisimple.shigreen		{ background-color: #59a901; }
.shibutton.shisimple.shiblue		{ background-color: #015ea9; }
.shibutton.shisimple.shiteal		{ background-color: #2daebf; }
.shibutton.shisimple.shimagenta	{ background-color: #a9014b; }
.shibutton.shisimple.shipurple	{ background-color: #9d01a9; }

/* Simple button sizes */
.shibutton.shisimple.shismall          { padding: 4px 7px 5px; font-size: 10px !important; }
.shibutton.shisimple.shismall:active   { padding: 5px 7px 4px; }
.shibutton.shisimple                    { /* default */ }
.shibutton.shisimple:active             { padding: 6px 10px 4px; }
.shibutton.shisimple.shismall         { /* default */ }
.shibutton.shisimple.shismall:active  { padding: 6px 10px 4px; }
.shibutton.shisimple.shilarge          { padding: 8px 14px 8px; font-size: 14px !important; }
.shibutton.shisimple.shilarge:active   { padding: 9px 14px 7px; }
.shibutton.shisimple.shixl             { padding: 8px 14px 8px; font-size: 16px !important; }
.shibutton.shisimple.shixl:active      { padding: 9px 14px 7px; }
.shibutton.shisimple.shixxl            { padding: 8px 14px 8px; font-size: 20px !important; }
.shibutton.shisimple.shixxl:active     { padding: 9px 14px 7px; }
.shibutton.shisimple.shixxxl           { padding: 8px 14px 8px; font-size: 26px !important; }
.shibutton.shisimple.shixxxl:active    { padding: 9px 14px 7px; }

.shibutton.shisimple.shismall[disabled]:active,
.shibutton.shisimple.shismall.disabled:active   	{ padding: 4px 7px 5px; }
.shibutton.shisimple[disabled]:active,
.shibutton.shisimple.disabled:active 	            { padding: 5px 10px 5px; }
.shibutton.shisimple.shismall[disabled]:active,
.shibutton.shisimple.shismall.disabled:active 		{ padding: 6px 10px 4px; }
.shibutton.shisimple.shilarge[disabled]:active,
.shibutton.shisimple.shilarge.disabled:active   	{ padding: 8px 14px 8px; }
.shibutton.shisimple.shixl[disabled]:active,
.shibutton.shisimple.shixl.disabled:active	      { padding: 8px 14px 8px; }
.shibutton.shisimple.shixxl[disabled]:active,
.shibutton.shisimple.shixxl.disabled:active 		   { padding: 8px 14px 8px; }
.shibutton.shisimple.shixxxl[disabled]:active,
.shibutton.shisimple.shixxxl.disabled:active    	{ padding: 8px 14px 8px; }



/*
 * Icon Definitions
 */

/* Silk Icons - http://www.famfamfam.com/lab/icons/silk/ */
/* (Obviously not all Silk icons are defined here. Feel free to define any other icons that you may need.) */

.shibutton span.ok				{ background-image: url(images/icons/silk/tick.png) !important; }
.shibutton span.cancel			{ background-image: url(images/icons/silk/cross.png) !important; }
.shibutton span.add				{ background-image: url(images/icons/silk/add.png) !important; }
.shibutton span.delete			{ background-image: url(images/icons/silk/delete.png) !important; }
.shibutton span.download		{ background-image: url(images/icons/silk/arrow_down.png) !important; }
.shibutton span.download2		{ background-image: url(images/icons/silk/package_down.png) !important; }
.shibutton span.upload			{ background-image: url(images/icons/silk/arrow_up.png) !important; }
.shibutton span.search			{ background-image: url(images/icons/silk/magnifier.png) !important; }
.shibutton span.find			   { background-image: url(images/icons/silk/find.png) !important; }
.shibutton span.first			{ background-image: url(images/icons/silk/resultset_first_green.png) !important; }
.shibutton span.prev			   { background-image: url(images/icons/silk/resultset_previous_green.png) !important; }
.shibutton span.next			   { background-image: url(images/icons/silk/resultset_next_green.png) !important; }
.shibutton span.last			   { background-image: url(images/icons/silk/resultset_last_green.png) !important; }
.shibutton span.play			   { background-image: url(images/icons/silk/play_blue.png) !important; }
.shibutton span.pause			{ background-image: url(images/icons/silk/pause_blue.png) !important; }
.shibutton span.rewind			{ background-image: url(images/icons/silk/rewind_blue.png) !important; }
.shibutton span.forward		   { background-image: url(images/icons/silk/forward_blue.png) !important; }
.shibutton span.stop			   { background-image: url(images/icons/silk/stop_blue.png) !important; }
.shibutton span.reload			{ background-image: url(images/icons/silk/reload.png) !important; }
.shibutton span.sync			   { background-image: url(images/icons/silk/arrow_refresh.png) !important; }
.shibutton span.save			   { background-image: url(images/icons/silk/disk.png) !important; }
.shibutton span.email			{ background-image: url(images/icons/silk/email.png) !important; }
.shibutton span.print			{ background-image: url(images/icons/silk/printer.png) !important; }
.shibutton span.heart			{ background-image: url(images/icons/silk/heart.png) !important; }
.shibutton span.like			   { background-image: url(images/icons/silk/thumb_up.png) !important; }
.shibutton span.dislike		   { background-image: url(images/icons/silk/thumb_down.png) !important; }
.shibutton span.accept			{ background-image: url(images/icons/silk/accept.png) !important; }
.shibutton span.decline		   { background-image: url(images/icons/silk/decline.png) !important; }
.shibutton span.help			   { background-image: url(images/icons/silk/help.png) !important; }
.shibutton span.home			   { background-image: url(images/icons/silk/house.png) !important; }
.shibutton span.info			   { background-image: url(images/icons/silk/information.png) !important; }
.shibutton span.cut				{ background-image: url(images/icons/silk/cut.png) !important; }
.shibutton span.copy			   { background-image: url(images/icons/silk/page_white_copy.png) !important; }
.shibutton span.paste			{ background-image: url(images/icons/silk/paste_plain.png) !important; }
.shibutton span.erase			{ background-image: url(images/icons/silk/erase.png) !important; }
.shibutton span.undo			   { background-image: url(images/icons/silk/arrow_undo.png) !important; }
.shibutton span.redo			   { background-image: url(images/icons/silk/arrow_redo.png) !important; }
.shibutton span.edit			   { background-image: url(images/icons/silk/pencil.png) !important; }
.shibutton span.calendar		{ background-image: url(images/icons/silk/date.png) !important; }
.shibutton span.user			   { background-image: url(images/icons/silk/user.png) !important; }
.shibutton span.settings		{ background-image: url(images/icons/silk/cog.png) !important; }
.shibutton span.wand			   { background-image: url(images/icons/silk/wand.png) !important; }
.shibutton span.wrench			{ background-image: url(images/icons/silk/wrench.png) !important; }
.shibutton span.comments	   { background-image: url(images/icons/silk/comments.png) !important; }
.shibutton span.cart			   { background-image: url(images/icons/silk/cart.png) !important; }
.shibutton span.cartadd		   { background-image: url(images/icons/silk/cart_add.png) !important; }
.shibutton span.cartdelete	   { background-image: url(images/icons/silk/cart_delete.png) !important; }
.shibutton span.cartupdate	   { background-image: url(images/icons/silk/cart_edit.png) !important; }
.shibutton span.cartsend	   { background-image: url(images/icons/silk/cart_go.png) !important; }
.shibutton span.compare	      { background-image: url(images/icons/silk/compare.png) !important; }
.shibutton span.close	      { background-image: url(images/icons/silk/door.png) !important; }
.shibutton span.list	         { background-image: url(images/icons/silk/application_view_list.png) !important; }
.shibutton span.details	      { background-image: url(images/icons/silk/application_form_magnify.png) !important; }



/* these style is used for the button which is hooked with RadWindow controls' confirm function.
 */
a.ShiButtonConfirm
{
   color : #fff; 
   text-decoration: none;
}
.ShiButtonConfirm:hover,
.ShiButtonConfirm:focus
{ 
   color  :  #fff !important;
	background-position: 0% -24px;
}

