/****** styling *****/

h1{font-size:20px;}
h2{font-size:18px;}
h3{font-size:16px;}
h4{font-size:14px;}
h1,h2,h3,h4{margin-bottom:0;}
ul.clean,ul.clean li{ margin:0; padding:0; list-style:none;}

body
{
	background:#ddd url(images/bodybg.jpg) center repeat-y;
}
textarea
{
	font-family:Arial, Helvetica, sans-serif;
	font-size:1.2em;
}
#outerwrapper
{
	border:2px solid #ddd;
	background:#e0e0e0;
	margin-top:10px;
}

#wrapper
{
	border:2px solid #ccc;
	background:#fff;
}

#header
{
	background:#eee;
	border-bottom:2px solid #000;
}

#footer
{
	background:#e0e0e0;
	padding:0 10px 10px 0;
	text-align:center;
}

#footer .m-wrapper
{
	float:right;
	clear:right;
}

#content-head
,#content-foot
{
	display:none;
}

/* text elements */
h1 em
{
	color:#999;
	font-style:normal;
	font-weight:normal;
}

a
{
	color:#009;
}
.header p
{
	margin:0;
	padding:0;
}

/* things that look the same */
.m-prodlist h3
,.m-bookmarks-chunky h3
,.m-box h3
{
	padding:2px 5px;
}


/* icons */
.icon
{
	height:20px;
	line-height:20px;
	padding-left:20px;
	background:url(images/buttons.png) no-repeat;
	display:block;
	float:left;
}
.icon em {display:none;}
.icon span {padding-left:5px;}
.icon-eco {background-position:0 -80px;}
.icon-recycled {background-position:0 -100px;}
.icon-gb {background-position:0 -120px;}
.icon-view {background-position:0 -60px;}
.icon-loading{background:url(images/icon20-loading.gif) no-repeat left top;}
.proddetail_right .icon-loading{background-position:right top;}


.icon-enquiry-add{background-position:0 -20px;}
.proddetail_right .icon-enquiry-add{background-position:right -20px;}

.icon-enquiry-remove{background-position:0 -40px;}
.proddetail_right .icon-enquiry-remove{background-position:right -40px;}

.icon-fav-add{background-position:0 -160px;}
.proddetail_right .icon-fav-add{background-position:right -160px;}

.icon-fav-remove{background-position:0 -180px;}
.proddetail_right .icon-fav-remove{background-position:right -180px;}

.proddetail_right .icon
{
	text-align:right;
	padding-left:0;
	padding-right:25px;
}

.m-product .proddetail_left
{
	width:50%;
	padding-right:5px;
}

.m-product .proddetail_right
{
	padding-left:5px;
}

.m-product .prod-icons 
{
	width:100%;
}

.m-product .icon
{
	float:none;
	clear:both;
	margin:5px 0;
}

.m-product .prod-icons .icon
{
	padding-left:25px;
}
.m-product .prod-icons .icon em
,.m-product .te .icon em
{
	display:block;
	font-style:normal;
}

.m-catlist-showhide
{
	padding:5px;
	background:#ddd;
	margin:0 5px 0 5px;
	cursor:pointer;
	font-size:0.85em;
}

.m-catlist-showhide em
{
	font-style:normal;
	display:none;
}

.m-catlist .m-catlist-list
{
	display:none;
	border-top:1px solid #fff; /* for some reason jquery won't toggle if there is no border on this */
}

.m-catlist ol
,.m-catlist li
{
	padding:0;
	margin:0;
	list-style:none;
}

.m-catlist li
{
	float:left;
	width:33%;
	display:block;
}

.m-catlist li a
{
	text-decoration:none;
	display:block;
	width:100%;
	height:100%;
}

.m-catlist li .w
{
	height:40px;
	margin:5px 0 0 5px;
	overflow:hidden;
	display:block;
	background:#fff;
	padding:10px;
	border:1px solid #ccc;
}

.m-catlist li a img
{
	float:left;
	background:#eee;
}
.m-catlist li a img
{
	width:40px;
	height:40px;
	font-size:1px;
	margin-right:10px;
}

/* product lists */
.m-prodlist h3
{
	background:#666 ;
	color:#fff;
}

.m-prodlist a
{
	text-decoration:none;
	color:#666;
}

.m-prodlist h4 a
{
	color:#000;
}

.m-prodlist h4
{
	font-size:12px;
}
.m-prodlist h4 .pcsr
{
	font-weight:normal;
	color:#999;
}

.m-prodlist-enquirylist .en
{
	background:#e0e0e0;
}


.m-miniprodlist ol li
{
	list-style:none;
	margin:0;
	padding:5px;
	clear:both;
	background:#fff;
	border-bottom:1px solid #ccc;
}

.m-miniprodlist ol li .im
{
	float:left;
	margin-right:5px;
}
.m-miniprodlist ol li .im img
{
	width:50px;
	height:50px;
}
.m-miniprodlist ol li .te
{
	min-height:50px;
	display:block;
}

.m-miniprodlist ol li .icon
{
	float:right;
}


.m-miniprodlist ol li *
{
	font-size:10px;
	line-height:11px;
}

/* location and pagination */

.m-location li
{
	float:left;
	list-style:none;
}

.m-location
{
	padding:0 0 0 5px;
	background:#ccc;
}
.m-location li a
,.m-location li.s
,.m-location li strong
,.m-location li em
,.m-location li h1
{
	padding:10px 5px;
	display:block;
	font-size:11px;
	float:left;
	cursor:pointer;
	text-decoration:none;
	font-style:normal;
}
.m-location li a.d
{
	border:1px dotted #666;
	border-width:0 1px;
}
.m-location li a
,.m-location li a:link
,.m-location li a:visited
{
	color:#000;
}
.m-location li a:hover
{
background:#eee;
}

.m-location ul ul
{	
	display:none;
	position:absolute;
	z-index:19;
	margin:10px 0 0 5px;
	border-left:1px solid #666;
}
.m-location ul ul li a
{
	background:#ccc;
	border-right:1px solid #666;
}

.m-location ul ul li:first-child
{
	border-top:1px solid #666;
}
.m-location ul ul li a:last-child
{
	border-bottom:1px solid #666;
}
.m-location ul ul li
{
	float:none;
	display:block;
	width:100%;
	padding:0;
}
.m-location ul ul li a
{
	display:block;
	width:12em;
	padding:5px;
}
.m-location ul li:hover ul
{
	display:block;
}

/* prodlist */

.m-prodlist .pgn  
{
	padding:10px;
	font-size-adjust:0.45;
	background:#e0e0e0;
	text-align:center;
}

.m-prodlist .pgn a
,.m-prodlist .pgn em
{
	font-weight:bold;
}
.m-prodlist .pgn span
{
	font-weight:normal;
}

.m-prodlist .pgn a:hover
{
	text-decoration:underline;
}
.m-prodlist .pgn a
{
	padding:3px 5px;
	color:#666;
}
.m-location li.s
{
	padding-left:0;
}
.m-prodlist .pgn strong
{
	color:#000;
}

.m-prodlist ol li .wr
{
	border:1px solid #ccc!important;
	background:#fff;
	color:#000;
}

*:first-child+html .m-prodlist ol li .wr
{
	border:1px solid #ccc!important;
	float: left;

}

.m-prodlist ol li .te p
,.m-prodlist ol li .te h4
{
	line-height:130%;
}
.m-prodlist-2 ol li .tef
{
	background:url(images/te-fade.png) repeat-x bottom;
	height:20px;
	width:100%;
	position:relative;
	margin-top:-20px;
	z-index:1;
}
.m-prodlist ol li .im
{
	z-index:2;
}

.m-prodlist ol li .te .bu
{
	float:right;
	width:20px;
}
.m-prodlist-3 ol li .wr
{
	border-top:0;
	display: block;
}

.m-prodlist .ft
{
	clear:both;
	height:20px;
	font-size:0.9em;
}

.m-prodlist .ft .icon em
{
	font-style:normal;
	color:#666;
	display:inline;
	padding-left:5px;
}

.m-prodlist .bu .icon
,.m-prodlist .ft .icon
{
	margin-bottom:3px;
}

.m-prodlist .ft .icon
{
	clear:left;
	width:100%;
}

#cpprodpopped
{
	background:#fff;
	border:5px solid #ccc;
	padding:5px;
	position:absolute;
	top:0;
	left:0;
}

/* box */

.m-box h3
{
	background:#666;
	color:#333;
}
 .m-box .op
{
	background:#666;
	padding:5px;
	font-size-adjust:0.45;
	color:#e0e0e0;



}
.m-box .op a
{
	color:#e0e0e0;
	margin-right:0.5em;
}
.m-box .op input 
{
	border:1px solid #999;
	font-size:10px;
}
#page .m-box .op
{
	text-align:right;
}


.m-vcat img
{
	width:100%;
	height:auto;
	border:0;
}

/* bookmarks/tabs and box */
.m-bookmarks-light li
{
	list-style:square;
	color:#999;
}
.m-bookmarks-light li a
{
	padding:1px 0;
	display:block;
}

.sidebar .m-bookmarks-chunky .bd
{
}

.m-bookmarks li.spacer
{
	list-style:none;
	height:10px;
	font-size:1px;
	line-height:8px;
	margin:0;
}
.m-bookmarks-chunky li.spacer
{
	background:#666;
	height:5px;
}
.m-bookmarks li a
{
	color:#333;
}
.m-bookmarks-chunky li a
{
	background:#ddd;
	color:#333;
	text-decoration:none;
	border-bottom:1px solid #666;
}


.sidebar .m-bookmarks-chunky li a
,#page .m-bookmarks-chunky li a
{
	padding:5px;
	display:block;
}
#page .m-bookmarks-chunky-2 li a
,#page .m-bookmarks-chunky-3 li a
{
	border-right-width:1px;
}

.m-bookmarks-chunky li a:hover
{
	background-color:#fff;
}

.m-bookmarks-chunky li.on a
,#page .m-bookmarks-chunky li.on a
{
	background-color:#f0f0f0;
}


.m-bookmarks-chunky h3
{
	background:#666 ;
	color:#fff;
}
.header .m-bookmarks
{
	height:28px;
	overflow:hidden;
}
.header .m-bookmarks-chunky li
{
	line-height:25px;
}
.header .m-bookmarks
{
	padding-top:10px;
	padding-left:10px;
	padding-right:5px; /* each li has a 5px margin-right */
}


.header .m-bookmarks-chunky li a
{
	margin-right:5px;
	padding:5px 5px;
	height:30px;
	line-height:32px;
}

#footer .m-bookmarks li
{
	float:left;

}
#footer  .m-bookmarks
{
	padding-top:10px;
	padding-left:10px;
	text-align:center;
}



#footer .m-bookmarks li a
{
	background:none;
	margin:5px 10px;
	border:0;
}

#footer .m-bookmarks h3
{
	display:none;
}

.sidebar .m-box .bd
{
	background:#ccc;
	padding:5px;
}



.fullcol .m-bookmarks-light h3
{
	display:none;
}

.fullcol .m-bookmarks-light ul
{
	margin:auto;
}

.fullcol .m-bookmarks-light li
{
	float:left;
	list-style:none;
}
.fullcol .m-bookmarks-light li a
{
	margin:0 1em;
	padding:0 1em;
	width:auto;
}


/* searchbox */


.m-searchbox li
,.m-searchbox li.submit
,.m-searchbox li.reset
{
	width:17%;
	float:left;
	clear:none;
	margin:0;
}

.m-searchbox li.submit
{
	width:11%;
}
.m-searchbox li.reset
{
	width:4%;
	padding-left:0;
	padding-right:0;
}

.sidebar .m-searchbox li
,.sidebar .m-searchbox li.submit
,.sidebar .m-searchbox li.reset
{
width:100%;
clear:both;
}
.sidebar .m-searchbox li.reset
,.sidebar .m-searchbox li.submit
{
	float:left;
	clear:none;
}
.sidebar .m-searchbox li.reset
{
	width:21%;
	margin-right:3%;
}
.sidebar .m-searchbox li.submit
{
	width:75%;
}
.m-searchbox li.null /* used for horizontal formatting */
{
	display:none;
}



.m-searchbox h3
{
display:none;
}

.sidebar .m-searchbox h3
{
display:block;
}

.header .m-searchbox
{
	margin-left:5px;
}


/* bond box */
.m-bondbox
{
	background:#000;
	text-align:center;
	padding:5px;

}

*html .m-bondbox
{
	background:#000;
	text-align:center;
	padding:5px;
	height: 170px;
}



/* m-userform */
table.userform
{
	width:100%;
}
table.userform
{
	border:1px solid #ccc;
	border-width:1px 1px 0 0;
}
table.userform th
,table.userform td
{
	text-align:left;
	border:1px solid #ccc;
	border-width:0 0 1px 1px;
	padding:8px;
}
table.userform td
{
	background:#e0e0e0;
}
.popwrapper table.userform th
,.popwrapper table.userform td
{
	background:#e0e0e0;
	border-bottom:1px solid #ccc;
}
table.userform2
,table.userform2 td
,table.userform2 th
{
	border:0; 
}


/* m-product */
.m-product p
{
	margin-top:1ex;
}

.m-product .im
{
	display:block;
}
.m-product a.prod-image-large
{
	text-decoration:none;
}
.m-product a.prod-image-large em
{
	background:#e0e0e0;
	padding:5px;
	color:#000;
	display:block;
	font-style:normal;
	text-align:center;
}

.m-product .prod-image-alts li
{
	width:144px;
	margin:5px 2px;
	border:1px solid #ccc;
	float:left;
	list-style:none;
	text-align:center;
	background:#fff;
}

*html .m-product .prod-image-alts li
{
	width:144px;
	margin:5px 2px 5px 1px;
	border:1px solid #ccc;
	float:left;
	list-style:none;
	text-align:center;
}

.m-product .prod-image-alts li a
{
	text-decoration:none;
}

.m-product .prod-image-alts em
{
	background:#ccc;
	font-style:normal;
	color:#333;
	font-size:10px;
	display:block;
}


.m-product .prod-image-alts li img
{
	width:125px;
	
}

/* category */
.m-category 
{
	margin-left:5px;
}

.m-category li
{
	width:33%;
	float:left;
	list-style:none;
	margin-bottom:10px;
}

.m-category li .w
{
	height:180px;
	display:block;
	text-align:center;
	border:1px solid #ccc;
	margin:0 10px 0 0;
	background:#e0e0e0;
	overflow:hidden;
}

.m-category li .w .t
{
	background:#ccc;
	height:30px;
	line-height:28px;
}

.m-category li a
,.m-category li a:visited
{
	text-decoration:none;
	color:#333;
	font-weight:bold;
}


.m-category li .i
{
	margin:10px;
}
.m-category img
{
	width:125px;
	height:125px;
	border:1px solid #ccc;
}

/* tables */
table.grid
{
	border:1px solid #ccc;
	border-width:0 1px 1px 0;
}


table.grid th
,table.grid td
{
	border:1px solid #ccc;
	border-width:1px 0 0 1px ;
	padding:4px;
	text-align:left;
}
*:first-child+html table.grid
{
	border:1px solid #ccc;
	border-width:0 0px 1px 0;
}


*:first-child+html table.grid th

{
	border:1px solid #ccc;
	border-width:1px 1px 0 1px ;
}

*:first-child+html table.grid td
{
	border:1px solid #ccc;
	border-width:1px 1px 0 0px ;
}

table.grid th
{
	
}

table.grid .empty
{
	background:none;
	border:0!important;
}

.m-product table.grid
{
	width:100%;
}


/* buttons */

.m-prodlist .bu
{
	float:right;
	margin-left:5px;
}

.m-prodlist .bu span
{
	display:none;	
}


.input 
,.button
{
	border:1px solid #999;
	background:#fff;
	display:block;
	margin:3px 0;
	padding:2px;
}
.input input
,.input select
,.input textarea
{
	border:0;
	font-size:11px;
	width:100%;
	margin:0;
}
.inputreq input
{
	background:#ffe;
	border-color:#666;
}
.button
{
	border:0;
	text-align:center;
	cursor:pointer;
}
.button
,.submit span
{
	background:#666;
}

.button input
{
	border:0;
	background:none;
	font-weight:bold;
	width:100%;
	padding:0;
	margin:0;
	cursor:pointer;
}

.button input
, .button 
, a.button
, .submit span
{
	color:#fff;
}

input.waiting
{
	color:#999;
}
a.button
{
	text-decoration:none;
	padding:5px 10px;
	font-weight:bold;
}

.buttons-auto .button
{
	width:auto;
	display:inline;
}
.buttons-auto .button input
{
	width:auto;
padding-left:10px;
padding-right:10px;
}

.notes
{
	color:#666;
	font-size-adjust:0.5;
}

/* logo image */

#logo-minilist .bondtitle
{
	background:url(images/brandondemand.png) center top no-repeat;
	padding-top:76px;
	display:block;
	color:#fff;
	margin:0;
}
#page #logo-minilist .bondtitle
{
	background:url(images/brandondemand-long.png) left top no-repeat;
	padding-top:0;
	padding-left:300px;
	height:41px;
	vertical-align:middle;
}

#logo-minilist ul
,#logo-minilist li
{
margin:0;
padding:0;
list-style:none;
}

#logo-minilist li
{
width:35px;
height:35px;
float:left;
margin:1px;
}
#logo-minilist li div
{
height:35px;
width:35px;
display:block;
background:#fff;
}


#logo-list ul
,#logo-list li
{
margin:0;
padding:0;
list-style:none;
}

#logo-list li
{
width:150px;
height:170px;
border:1px solid #ccc;
float:left;
margin:1px;
margin-bottom:10px;
}
#logo-list li div
{
height:150px;
width:150px;
display:block;
background:#fff;
}

.logosfromweb li
{
	width:100px;
	height:100px;
	border:1px solid #ccc;
	padding:2px;
	margin:2px;
	float:left;
	display:block;
}

.logo-current
{
}

#logo-minilist li img
{
width:100%;
}



/* popups */
#nyroModalContent
{
text-align:center;
}

.nyroModalClose
{
	background:#fff;
	color:#000;
	padding:5px 10px;
	float:right;
	margin-right:20px;
	font-weight:bold;
	text-decoration:none;
}
.nyroModalLoading
{
	height:30px;
	width:170px;
	display:block;
	background:#e0e0e0 url(images/loading.gif) no-repeat center;
	text-align:center;
	color:#333;
}
.nyroModalLoading em
{
	display:none;
}
.nyroModalPrevNext 
{
}

.nyroModalPrevNext a
{
	display:block;
	height:30px;
	line-height:30px;
	background:#666;
	color:#e0e0e0;
	text-decoration:none;
	font-weight:bold;
	width:50%;
}

.nyroModalPrevNext a:hover
{
	background:#000;
}

a.nyroModalPrev
{
	float:left;
	text-align:left;
}
a.nyroModalNext
{
	float:right;
	text-align:right;
}
.popwrapper > div
{
	background:#fff;
	border:0;
	padding:10px;
	display:block;
	clear:both;
}
.popwrapper h3
{
	padding:5px;
}

/* messages */
.msg
{
	background:#ff9 url(images/minishade.png) top repeat-x;
	padding:5px;
	border:1px solid #999;
	margin:0;
}
#msg .msg
{
	text-align:center;
	padding:10px 20px;
	border-width:0 10px 1px 10px;
}
.msgclose
{
	width:auto;
	float:right;
	display:inline;
	cursor:pointer;
	color:#666;
}

.ie6
{
padding:20px 10px; 
margin-right:10px;
}
.ie6, .ie6 p
{
	background:#ff6;
}
/* IE hacks */

*:first-child+html .m-banners a img
, *:first-child+html .sidebar .m-banners a img
{

	width:100%;
	height:auto;
	margin-left: -16px;

}


/***** corners *****/
.m-contents h3
,.header .m-bookmarks-chunky li 
,.header .m-bookmarks-chunky li a
,.nyroModalClose
{
	-moz-border-radius:5px 5px 0 0;
}
.m-location
,.m-prodlist-3 .wr
,.m-box div:last-child
{
	-moz-border-radius:0 0 5px 5px;
}

.m-searchbox
,.m-searchbox li span
,.input
,.button
,.pgn
,.m-bondbox
,.m-prodlist-2 .wr
,.m-prodlist-enquirylist .wr
,.sidebar .m-prodlist .wr
,.m-category .w
,.m-prodlist .pgn a
,.m-prodlist .pgn span
,.m-product .prod-image-alts li
,.popwrapper > div
,.nyroModalLoading
,.m-location li.s 
,.m-catlist li .w
{
	-moz-border-radius:5px;
}

/***** colouring in *****/
/* main */
.m-bookmarks-chunky h3
,.m-box h3
,.header .m-bookmarks-chunky li a
,.popwrapper h3
,.m-prodlist h3
{
	background-color:#C00;
	color:#FFF;
}
.m-texthtml h1
,.m-texthtml h2
,.m-texthtml h3
,.m-product h1
,.m-product h2
,.m-product h3
,.m-prodlist .ft a
{
	color:#c00;
}
h1 em
{
	color:#999;
}
/* secondary */
.m-prodlist h3
{
}





/* manager menu */

#managermenu
{
	position:absolute;
	top:0;
	width:100%;
}
#managermenu ul
{
	float:right;
}

#managermenu ul
,#managermenu ul li
{
	margin:0;padding:0;
	list-style:none;
}

#managermenu ul li
{
	float:left;
}

#managermenu ul li a
{
	background:#ccc;
	color:#000;
	padding:4px 8px;
	display:block;
	border-left:1px solid #666;
	border-bottom:1px solid #666;
	font-size:11px;
	text-decoration:none;
}

label.error { color:red; display:block; cursor:pointer; }
.ui-state-highlight { height: 1.5em; line-height: 1.2em; }

div#cferr {
	background-color: #eee;
	border: 1px solid red;
	margin: 5px;
	padding: 5px;
}
div#cferr ol li {
	list-style-type: disc;
	margin-left: 20px;
}
div#cferr { display:none;  }
#cferr label.error {
	display: inline;
}
form.cmxform { width: 30em; }
form.cmxform label.error {
	display: block;
	margin-left: 1em;
	width: auto;
}











/* * * Jquery UI * * */



/* Component containers
----------------------------------*/
.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 0.8em; }
.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee 50% top repeat-x; color: #333333; }
.ui-widget-content a { color: #333333; }
.ui-widget-header { border: 1px solid #333; background: #666  50% 50% repeat-x; color: #ffffff; font-weight: bold; }
.ui-widget-header a { color: #ffffff; }

/* Overlays */
.ui-widget-overlay { background: #666666  50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000  50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; }/* Datepicker
----------------------------------*/
.ui-datepicker { width: 17em; padding: .2em .2em 0; }
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
.ui-datepicker .ui-datepicker-prev { left:2px; }
.ui-datepicker .ui-datepicker-next { right:15px; }
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
.ui-datepicker .ui-datepicker-next-hover { right:14px; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; }
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
.ui-datepicker select.ui-datepicker-month, 
.ui-datepicker select.ui-datepicker-year { width: 49%;}
.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; }
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
.ui-datepicker td { border: 0; padding: 1px; }
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }

/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi { width:auto; }
.ui-datepicker-multi .ui-datepicker-group { float:left; }
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
.ui-datepicker-row-break { clear:both; width:100%; }

/* RTL support */
.ui-datepicker-rtl { direction: rtl; }
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }

/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
    display: none; /*sorry for IE5*/
    display/**/: block; /*sorry for IE5*/
    position: absolute; /*must have*/
    z-index: -1; /*must have*/
    filter: mask(); /*must have*/
    top: -4px; /*must have*/
    left: -4px; /*must have*/
    width: 200px; /*must have*/
    height: 200px; /*must have*/
}