/* jQuery Scrollable Calendar Styling */

.cal-year, .cal-day-head, .cal-month, .cal-day-body {
    padding: 0;
    background-clip: border-box;
    -o-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cal-year, .cal-day-head {
    background-color: #125716;
    font-weight: 400;
    color: #ffffff;
    padding-top: 2px;
    padding-bottom: 2px;
    height: 29px;
}

.cal-day-head, .cal-day-body {
    width: 29px;
}

.calendar-container {
    overflow: hidden;
    width: 256px; /* needs to be 1px larger than the content, otherwise causes problems with the heading table in IE & Edge*/
    height: auto;
    position: relative;
    box-sizing: border-box;
}

.calendar-border {
    position: relative;
    box-sizing: border-box;
    border: 1px solid #125716;
    border-top-width: 0;
    width: 255px;
    z-index: 11;
    -webkit-tap-highlight-color: transparent;
}

.calendar-table {
    margin-bottom: 0;
    border-collapse: separate;
    border: none 0 #fff;
    table-layout: fixed;
    font-size: 0.875rem;
    line-height: 1.125rem;
    text-align: center;
    border-spacing: 0;
    background-color: transparent;
    -o-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.calendar-table thead {
    background-color: transparent; /* Need this rule to override Foundation's default background color */
}

.calendar-title {
    position: relative;
    width: 255px;
    text-align: center;
}

.calendar-heading-table {
    position: relative;
    box-sizing: border-box;
    z-index: 14;
    width: 255px;
    box-sizing: border-box;
    border: 1px solid #125716;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 3px 4px -2px rgba(0, 0, 0, 0.5);
}

/* I use IE11 instead of rems as IE11 rounds rem values to two decimal places */

.cal-mouse-only {
    height: 233px;
}

.calendar-scroll-container {
    position: relative;
    float: left;
    height: 100%;
    width: 300px; /* Was 273px but I expanded it to move the natural scroll bar more to the right so the mouse wouldn't change */
    padding: 0 20px 0 0;
    margin: 0;
    overflow-y: scroll; /* has to be scroll, not auto to get momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    cursor: pointer;
    z-index: 10;
}

.calendar-thumb {
    position: absolute;
    width: 22px;
    height: 45px;
    margin: 0;
    right: 1px;
    top: 0;
    background-color: #125716;
    background: -moz-radial-gradient(center, ellipse cover, #91cf94 0%, #125716 100%); /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #91cf94), color-stop(100%, #125716)); /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover, #91cf94 0%, #125716 100%); /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover, #91cf94 0%, #125716 100%); /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover, #91cf94 0%, #125716 100%); /* IE10+ */
    background: radial-gradient(ellipse at center, #91cf94 0%, #125716 100%); /* W3C */
    border-radius: 11px;
    cursor: ns-resize;
    z-index: 13;
    opacity: 0;
    transition: opacity 0.2s linear 0s;
}

.cal-scroll-grabbed {
    cursor: ns-resize;
}

.calendar-track {
    background-color: #125716;
    background-color: rgba(18, 87, 22, 0.4);
    position: absolute;
    margin: 0;
    right: 0;
    top: 0;
    width: 24px;
    border-radius: 12px;
    z-index: 12;
    opacity: 0;
    transition: opacity 0.2s linear 0s;
}

.cal-mouse-only .calendar-track {
    height: 232px;
}

.cal-mouse-touch .calendar-track {
    height: 288px;
}

.cal-border-entered {
    opacity: 1;
}

.cal-thumb-grabbed {
    opacity: 1;
}

.cal-touch-width {
    width: 2px;
    right: 0;
    background-color: #216d38;
}

.calendar-weeks-table {
    width: 253px;
    left: 0;
    z-index: auto;
    position: relative;
    float: left;
}

.cal-mouse-touch {
    height: 289px;
}

.cal-mouse-only-td {
    height: 29px;
}

.cal-mouse-touch-td {
    height: 48px;
}

.cal-month, .cal-year {
    width: 50px;
}

.cal-odd-month {
    background-color: #E1EDE2;
}

.cal-even-month {
    background-color: #BFDEC0;
}
.cal-month-read { /* for my color scheme, odd and even read months are the same background color */
    background-color: #5ae8a4;
}
.cal-current-week td {
    background-color: #00DB71;
    color: #212121;
}

.cal-row:hover td {
    background-color: #125716;
    color: #ffffff;
}
