.btnCalendar {
    cursor: pointer;
    margin-right: -10px !important;    /* Overrides iconbtn CSS which has a margin-right to give buttons some spacing */
}



#CalendarControlIFrame {
    display: none;
    left: 0px;
    position: absolute;
    top: 0px;
    height: 250px;
    width: 250px;
    z-index: 99;
}

#CalendarControl {
  position:absolute;
  /*background-color:#FFF;      Was displaying a white box underneath the calendar*/
  margin:0;
  padding:0;
  display:none;
  z-index: 100;
}

    #CalendarControl table {
        font-family: arial, verdana, helvetica, sans-serif;
        font-size: 9pt;

        /* From other table CSS, not present on some pages */
        border-collapse: separate;
        border-spacing: 0;
        min-width: 200px;
        /*border-left: 1px solid #336;
        border-right: 1px solid #336;*/
    }

    #CalendarControl > table {
        border-top: 4px solid #507CD1;
        border-left: 4px solid #507CD1;
        border-right: 4px solid #507CD1;
        border-bottom: 4px solid #507CD1;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        border-top-right-radius: 16px;
    }

    #CalendarControl th {
        font-weight: normal;
        background-color: #676767;
        color: #fff;
        text-align: center;
    }

    #CalendarControl .header th {
        text-align: center;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    #CalendarControl tr.header {
        background-color: #507CD1;
        background-image: none;
        border-radius: 15px;
        height: 30px;
    }
    /*
    #CalendarControl tr.header {
        background-color: #e38c00;
    }*/

        #CalendarControl tr.header td {
            border-top: none;
        }
        #CalendarControl tr.header td:first-child {
            border-left: none !important;
        }
        #CalendarControl tr.header td:last-child {
            border-right: none !important;
            border-top-right-radius: 11px;
        }
        #CalendarControl th a {
            font-weight: normal;
            text-decoration: none;
            color: #FFF;
            padding: 0px;
            width: 100%;
            display: inline-block;
        }

#CalendarControl td {
  text-align: center;
  padding:0;
}

    
    

#CalendarControl .weekday {
  color: #000;
}

#CalendarControl .weekend {
  color: #000;
}

    #CalendarControl .current {
        border: 1px solid #339;
        background-color: #507CD1; /* #336 */
        color: #FFF;
    }

    #CalendarControl .weekday,
    #CalendarControl .weekend,
    #CalendarControl .current {
        display: block;
        text-decoration: none;
        border: 1px solid transparent;
        width: 2em;
        padding: 0.5em;
        /*Hover effect*/
        -o-transition: 0.2s;
        -ms-transition: 0.2s;
        -moz-transition: 0.2s;
        -webkit-transition: 0.2s;
        transition: 0.2s;
    }

        #CalendarControl .weekday:hover,
        #CalendarControl .weekend:hover,
        #CalendarControl .current:hover {
            color: black;
            background-color: #ade0e9;
            border: 1px solid #999;
        }

#CalendarControl .previous:first-child 
{
    
}
#CalendarControl .previous,
#CalendarControl .next {
  padding: 1px 3px 1px 3px;
  font-size: 1.4em;
  text-align: center;
  border-top: none;
}

#CalendarControl .previous a,
#CalendarControl .next a {
  color: #FFF;
  text-decoration: none;
  font-weight: bold;
  text-align:center;
  display: inline-block;
  width: 100%;
}

#CalendarControl .title {
  text-align: center;
  font-weight: bold;
  color: #FFF;
}

#CalendarControl .empty {
  background-color: #CCC;
}
