﻿
AnfoldCalendar {
    position: relative;
    display: inline-block;
}

.anfoldCalendarPeriod {
    display: grid;
    display: -ms-grid;
    grid-auto-columns: 1fr; /* 14.28571428571429%;*/
    grid-auto-rows: 14%; /*14.28571428571429%;*/
    -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    text-align: center;
    height: calc(100% - 43px); /*needs more testing*/
    width: 100%;
    background-color: #FFF;
    grid-gap: 1px;
    min-width: 175px;
}

.anfoldCalendarPeriodWrapper {
    position: relative;
    display: table;
    height: 100%;
    width: calc(100% - 20px);
    margin-left: 10px;
}

    .anfoldCalendarPeriodWrapper .anfoldCalendarPeriodDescription {
        width: 100%;
        text-align: center;
        line-height: 40px;
    }

.anfoldCalendarWrapper {
    overflow-x: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

    .anfoldCalendarWrapper > div {
        display: grid;
        grid-auto-columns: 1fr;
        /*grid-column-gap: 20px;doesnt work in ie */
        display: -ms-grid;
        /* height: calc(100% - 40px); */
        height: 100%;
    }

.anfoldCalendarNavBarWrapper {
    width: calc(100% - 20px);
    display: table;
    position: absolute;
    top: 0;
    z-index: 2;
    padding: 5px 10px;
}

.anfoldCalendarPrevious {
    float: left;
}

.anfoldCalendarNext {
    float: right;
}

.anfoldCalendarPrevious,
.anfoldCalendarNext {
    display: table;
}

.anfoldCalendarPeriod > .dateEntry > div {
    border: 1px solid #DEDEDE;
    border-radius: 5px;
    height: calc(100% - 2px);
    height: -webkit-calc(100% - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 1px;
    line-height: normal;
}

.anfoldCalendarPeriod > .dateDesc > div {
    height: calc(100% - 2px);
    height: -webkit-calc(100% - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px;
}



.anfoldCalendarPeriod > div {
    width: 100%;
    height: 100%;
}

.anfoldCalendarPeriod .calendarEntry {
    opacity: 0.5;
    cursor: pointer;
    height: calc(100% + 2px);
    display: table;
    border: 1px solid #bcbcbc;
    box-sizing: border-box;
}

    .anfoldCalendarPeriod .calendarEntry > div {
        line-height: 12px;
    }

.compressedCalendar .anfoldCalendarPeriod > .dateEntry > div {
    height: 100%;
    margin: 0px;
    width: 100%;
    border-radius: 0px;
    border: 0px;
    background-color: #FFF;
}

.anfoldCalendarPeriod > .dateEntry.InactiveDay > div,
.compressedCalendar .anfoldCalendarPeriod > .dateEntry.InactiveDay > div {
    background-color: #DEDEDE;
}

.anfoldCalendarPeriod > .dateEntry:not(.InactiveDay):hover > div {
    background-color: #fffbe5;
    font-weight: bold;
}



.compressedCalendar .anfoldCalendarPeriod {
    border: 1px solid #DEDEDE;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    background-color: #dedede;
    padding: 3px 1px;
}

.anfoldCalendarPeriodWrapper[period="-1"] {
    grid-column: 1;
    -ms-grid-column: 1;
}

.anfoldCalendarPeriodWrapper[period="0"] {
    grid-column: 2;
    -ms-grid-column: 2;
}

.anfoldCalendarPeriodWrapper[period="1"] {
    grid-column: 3;
    -ms-grid-column: 3;
}

.anfoldCalendarPeriodWrapper[period="2"] {
    grid-column: 4;
    -ms-grid-column: 4;
}

.anfoldCalendarPeriodWrapper[period="3"] {
    grid-column: 5;
    -ms-grid-column: 5;
}

.anfoldCalendarPeriodWrapper[period="4"] {
    grid-column: 6;
    -ms-grid-column: 6;
}

.half-day-end.calendarEntry {
    /* width: calc(100% - calc(100% / 7)); IE DOESNT LIKE CALC IN CALC  */
    width: 85.71428571428571%;
}

.half-day-start.calendarEntry {
    /* width: calc(100% - calc(100% / 7));
    margin-left: calc(100% / 7);*/
    width: 85.71428571428571%;
    margin-left: 14.28571428571429%;
}

.half-day-end.half-day-start.calendarEntry {
    /*  width: calc(100% - calc(100% / 3.5));
    margin-left: calc(100% / 7);*/
    width: 71.42857142857142%;
    margin-left: 14.28571428571429%;
}



.grid-row-0 {
    grid-row: 0;
    -ms-grid-row: 0;
}

.grid-row-1 {
    grid-row: 1;
    -ms-grid-row: 1;
}

.grid-row-2 {
    grid-row: 2;
    -ms-grid-row: 2;
}

.grid-row-3 {
    grid-row: 3;
    -ms-grid-row: 3;
}

.grid-row-4 {
    grid-row: 4;
    -ms-grid-row: 4;
}

.grid-row-5 {
    grid-row: 5;
    -ms-grid-row: 5;
}

.grid-row-6 {
    grid-row: 6;
    -ms-grid-row: 6;
}

.grid-row-7 {
    grid-row: 7;
    -ms-grid-row: 7;
}

.grid-row-8 {
    grid-row: 8;
    -ms-grid-row: 8;
}

.grid-row-9 {
    grid-row: 8;
    -ms-grid-row: 8;
}

.grid-row-10 {
    grid-row: 8;
    -ms-grid-row: 8;
}

.grid-col-0 {
    grid-column: 0;
    -ms-grid-column: 0;
}

.grid-col-1 {
    grid-column: 1;
    -ms-grid-column: 1;
}

.grid-col-2 {
    grid-column: 2;
    -ms-grid-column: 2;
}

.grid-col-3 {
    grid-column: 3;
    -ms-grid-column: 3;
}

.grid-col-4 {
    grid-column: 4;
    -ms-grid-column: 4;
}

.grid-col-5 {
    grid-column: 5;
    -ms-grid-column: 5;
}

.grid-col-6 {
    grid-column: 6;
    -ms-grid-column: 6;
}

.grid-col-7 {
    grid-column: 7;
    -ms-grid-column: 7;
}

.grid-col-8 {
    grid-column: 8;
    -ms-grid-column: 8;
}

.grid-col-9 {
    grid-column: 8;
    -ms-grid-column: 8;
}

.grid-col-10 {
    grid-column: 8;
    -ms-grid-column: 8;
}
