/* Datepicker
----------------------------------*/
.ui-datepicker {margin-left: -40px; font-size: 0.9em; width: 333px; padding: 0 4px; display: none; background: url(../img/calendar/bg_calendarT.gif) 0 0 no-repeat transparent;}
.ui-datepicker .ui-datepicker-header { padding:.2em 0;}
* html .ui-datepicker .ui-datepicker-header{	width: 162px; }
.ui-icon {
	display:block;
	overflow:hidden;
	text-indent:-99999px;
	}
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 5px; width: 20px; height: 18px; cursor: pointer;}
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 5px; }
.ui-datepicker .ui-datepicker-prev { left:6px; background: url(../img/calendar/back.gif) 0 0 no-repeat transparent;}
.ui-datepicker .ui-datepicker-prev.ui-state-disabled, .ui-datepicker .ui-datepicker-next.ui-state-disabled{ opacity: 0.3; filter: alpha(opacity=30); }
.ui-datepicker .ui-datepicker-next { right:10px; background: url(../img/calendar/next.gif) 0 0 no-repeat transparent; }
* html .ui-datepicker .ui-datepicker-next{right: 8px;}
*+html .ui-datepicker .ui-datepicker-next{right: 7px;}
.ui-datepicker .ui-datepicker-prev-hover { left:6px; background: url(../img/calendar/back_on.gif) 0 0 no-repeat transparent;}
.ui-datepicker .ui-datepicker-next-hover { right:10px; background: url(../img/calendar/next_on.gif) 0 0 no-repeat transparent;}
* html .ui-datepicker .ui-datepicker-next-hover{right: 8px;}
*+html .ui-datepicker .ui-datepicker-next-hover{right: 7px;}
.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: 2px 0 0 0; line-height: 2.2em; text-align: center; color: #165218; font-weight: bold;}
.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%; border-collapse: collapse; margin: 0; }
.ui-datepicker th { padding: 1px; text-align: center; font-weight: bold; border: 0; color: #165218}
.ui-datepicker td { border: 0; padding: 0 1px 1px 1px; }
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: 0 2px 0 0; text-align: right; text-decoration: none; color: #165218;}

.ui-datepicker .ui-datepicker-buttonpane { text-align: center;	background: url(../img/calendar/bg_calendarB.gif) left bottom no-repeat transparent; padding-bottom: 3px; margin: 0 -4px -3px -4px;position: relative; z-index: 8000}
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: 0; cursor: pointer; padding: 0; width:auto; overflow:visible; }
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close{
	 background: url(../img/calendar/bg_close.gif) 0 0px no-repeat;
	 width: 70px;
	 height: 19px;
	 text-align: center;
	 border: 0;
	 float: none;
	 color: #165218;
	 font-size: 1em;
	 font-weight: bold;
	 font-family: "Trebuchet MS";
}
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { display: none }
.ui-datepicker-week-end{
	opacity:0.8;
	filter:alpha(opacity=80);
}
td a.ui-state-default{
	background: url(../img/calendar/bg_td.gif) left center repeat-x transparent;
	border: solid 1px #84ae00;
}
td a.ui-state-default.ui-state-hover{
	background-image: url(../img/calendar/bg_td_on.gif);
}
td a.ui-state-default.ui-state-active{
	border: solid 1px #116300;
	font-weight: bold;
	background-image: url(../img/calendar/bg_td_on.gif);
}
td.selectedDateFromCss a.ui-state-default, td.selectedDateFromCss span.ui-state-default{
	background-image: url(../img/calendar/bg_td_on.gif);
	border: solid 1px red;
	font-weight: bold;
	color: #165218;
}
.ui-state-disabled span.ui-state-default{
	background-image: url(../img/calendar/bg_td_inactif.gif);
	border: solid 1px #d5e37b;
	color: #5a9300;
}
.ui-datepicker-other-month{
	opacity:0.5;
	filter:alpha(opacity=50);
}

/* 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 0; }
.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:330px; border-bottom: solid 1px #116300; margin-left: 5px; margin-bottom: 2px; padding-top: 2px;}
* html .ui-datepicker-row-break{ margin-top: -16px; }
*+html .ui-datepicker-row-break{ margin-top: -16px; }

/* 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*/
}
