﻿.calendarTemplate {
    display: none;
}
.calendar {
    position: absolute;
    top: 100px;
    left: 200px;
    swidth: 800px;
    border-radius :5px;
    box-shadow: 2px 2px 5px 1px #404040;
    background-color: white;
    direction: ltr;
    z-index: 1000;

    user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
}
    .calendar .header {
        overflow: auto;
        height: 39px;
        line-height: 38px;
        text-align : center;
        border-bottom: 1px solid #B0B0B0;
        background-color: black;
        color :white;
    }
    .calendar .main {
        overflow: auto;
        padding: 0px 30px 20px 30px;
    }
        .calendar .main table {
            width: 100%;
            border-collapse: collapse;
        }
            .calendar .main table .dayNames td {
                border: 0px;
            }
            .calendar .main table td {
                position: relative;
                width:14.28%;
                border: 1px solid #BBB;
                text-align: center;
                cursor:pointer;
            }
            .calendar .main table tr td:first-child {
                color: red;
            }
            .calendar .main table td.selected {
                background-color: yellow;
            }
            .calendar .main table td.selectedRange {
                background-color: #DEE1E1;
            }


    .calendar .main .leftPane {
        display: none;
        position:relative;
        float: left;
        width: calc( 50% - 15px );
    }
.monthYearSel {
    position: relative;
    text-align: center;
}
    .monthYearSel .nextYear {
        position: absolute;
        top:0px;
        left:0px;
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 30px;
        cursor: pointer;
    }
    .monthYearSel .nextMonth {
        position: absolute;
        top:0px;
        left:40px;
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 30px;
        cursor: pointer;
    }
    .monthYearSel .center {
        overflow: auto;
        display:inline-block;
        height: 30px;
        line-height: 30px;
        cursor: pointer;
    }
        .monthYearSel .center .yearSel {
            display:inline-block;
        }
        .monthYearSel .center .monthSel {
            display:inline-block;
        }
    .monthYearSel .prevMonth {
        position: absolute;
        top:0px;
        right: 40px;
        min-width: 30px;
        height: 30px;
        line-height: 30px   ;
        font-size: 30px;
        cursor: pointer;
    }
    .monthYearSel .prevYear {
        position: absolute;
        top:0px;
        right: 0px;
        min-width: 30px;
        height: 30px;
        line-height: 30px   ;
        font-size: 30px;
        cursor: pointer;
    }

.calendar .main .monthsMenu {
    display: none;
    position: absolute;
    left: 12px;
    direction: ltr;
    z-index: 1;
}
    .calendar .main .monthsMenu div {
        float: right;
        display: inline-block;
        width: 110px;
        height: 38px;
        line-height: 38px;
        border: 1px solid #898989;
        background-color: #4D616B;
        text-align:center;
        color: white;
        cursor: pointer;
    }

.calendar .main .rightPane .yearsMenu, .calendar .main .leftPane .yearsMenu {
    display: none;  
    position: absolute;
    left: 0px;
    direction: ltr;
    z-index: 1;
}
    .calendar .main .yearsMenu .year {
        float: left;
        display: inline-block;
        width: 14.2%;
        height: 30px;
        line-height: 30px;
        border: 1px solid #898989;
        background-color: #4D616B;
        text-align:center;
        color: white;
        cursor: pointer;
    }

    .calendar .main .rightPane {
        position:relative;
        float: right;
        zzzwidth: calc( 50% - 15px );
    }
.calendar .bottom {
    min-height: 30px;
    text-align:center;
}
    .calendar .bottom .selected {
        display: inline-block;
    }
    .calendar .bottom .gotoToday {
        display: inline-block;
        position: absolute;
        right: 30px;
        color: blue;
        cursor: pointer;
    }
    .calendar .footer {
        display: none;
        overflow: auto;
        height: 49px;
        text-align: center;
        border-top: 1px solid #B0B0B0;
        white-space: nowrap;
        padding: 9px;
        background-color: #EBEDEE;
    }
    .calendar .footer .button {
        float: left;
        display: inline-block;
        min-width: 80px;
        height: 30px;
        line-height: 30px;
        margin-left: 10px;
        background-color: #4D616A;  /* #58C1B5 */
        border-radius :5px;
        color: white;   /* #263238 */
        text-align:center;
        font-size: 14px;
        cursor:pointer;
        direction: rtl;
    }

.calendar .main table td .today {
    position: absolute;
    top:0px;
    left: 0px;
    width: calc( 100% - 0px );
    height: calc( 100% - 0px );
    sborder-radius: 6px;
    border: 2px solid blue;
    sbackground-color: blue;
}

.datePicker {
    display: inline-block;
    height:24px;
    line-height:24px;
    padding: 0px 3px 0px 3px;
    background-color: white;
    color: black;
    font-size: 13px;
    direction: ltr;
}
.datePicker .txtYear {
    width:30px;
    border: 0px;
    font-size: 13px;
}
.datePicker .txtMonth {
    width:16px;
    border: 0px;
    font-size: 13px;
}
.datePicker .txtDay {
    width:16px;
    border: 0px;
    font-size: 13px;
}
    .datePicker input:focus {
        outline: none;
    }
