/* Datepicker
----------------------------------*/
.em-calendar-wrapper { width: 100%; margin:0; z-index: 1000 !important }
.em-calendar-wrapper thead,div.ui-datepicker-header { padding:.2em 0; background: #e8e7e7; border:solid 1px #008bcb;  color:#008bcb; line-height: 15px; }
.em-calendar-wrapper .ui-datepicker-prev, .em-calendar-wrapper .ui-datepicker-next { position:absolute; top: 10px;  }
.em-calendar-wrapper .ui-datepicker-prev-hover, .em-calendar-wrapper .ui-datepicker-next-hover { top: 10px; }
.em-calendar-wrapper .ui-datepicker-prev { left:10px; }
.em-calendar-wrapper .ui-datepicker-next { right:10px; }
.em-calendar-wrapper .ui-datepicker-prev-hover { left:10px; cursor: pointer; }
.em-calendar-wrapper .ui-datepicker-next-hover { right:10px; cursor: pointer;   }
.em-calnav.em-calnav-prev,.em-calnav.em-calnav-next {background: none;border: none;color:#008BCB !important;}
.em-calendar-wrapper thead,div.ui-datepicker-header { margin: 0;  text-align: center; font-size: 12px !important; font-weight: bold !important; }
.em-calendar-wrapper thead select { font-size:1em; margin:1px 0; }
.em-calendar-wrapper select.ui-datepicker-month-year {width: 100%;}
.em-calendar-wrapper select.ui-datepicker-month, 
.em-calendar-wrapper select.ui-datepicker-year { width: 49%;}
.em-calendar-wrapper table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0; padding:0; }
.days-names td {font-weight: bold; padding: 0; text-align: center; border: 0; line-height: 22px;  height: 22px; text-transform: uppercase; color:#666666; }
.em-calendar-wrapper td { border: 0; padding:0 !important; margin:0; }
.em-calendar-wrapper td span { display: block; padding: 0; text-align: right; text-decoration: none; background: #d4d2d2; line-height: 22px; height: 22px; text-align: center;  font-size: 10px;  border:solid 1px #008bcb;  }
.em-calendar-wrapper td a,.em-calendar-wrapper tbody td.eventless-pre,.eventless,.eventful-pre,.eventful,table.em-calendar td.eventless-today, table.em-calendar td.eventful-today,.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default,.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight,td.eventless-post,table.em-calendar td.eventful-pre a, table.em-calendar td.eventful-post a { padding: 0 !important; text-align: right; text-decoration: none; background: #008bcb; line-height: 22px; height: 22px; text-align: center;  font-size: 10px;  border:solid 1px #008bcb;  color:#ffffff !important;  font-weight: bold;text-decoration: none}
.em-calendar-wrapper tbody td a{display: block;padding: 0 !important;}
.em-calendar-wrapper tbody td a:hover,.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{ color:#008bcb; background:#e8e7e7; text-decoration: none;}
.em-calendar-wrapper .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
.em-calendar-wrapper .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
.em-calendar-wrapper .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
.eventless-pre,.eventful-pre {
  border: none !important;
  visibility: hidden;
}
#ui-datepicker-div {    background: #E8E7E7;}
/* 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*/
}
#ui-datepicker-div {
    z-index: 100 !important
}