/* declare a 7 column grid on the table */
#calendar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

#calendar tr, #calendar tbody {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

caption {
    text-align: center;
    grid-column: 1 / -1;
    font-size: 120%;
    font-weight: normal;
    padding: 3px 0;
    color: #FFF;
    background-color: #41B9B1
}

#calendar a {
    color: #8e352e;
    text-decoration: none;
}

#calendar td, #calendar th {
    padding: 5px;
    box-sizing:border-box;
    border: 0.5px dashed #e0e0e0;
}

#calendar .weekdays .day {
    color: #1CB7A7;
    font-size: 18px;
    font-weight: lighter;
    text-transform: uppercase;
    line-height: 20px;
    border: 0.5px dashed #e0e0e0;
    padding: 10px 6px;
}

#calendar .weekdays {
    background: white;
}

#calendar .weekdays .date-full {
    display:block;
    text-align: right;
}

#calendar td {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    background: white;
}

#calendar td:hover {
    /*background: #FDEAAF;*/
    cursor: pointer;
}

#calendar .days li:hover {
    background: #d3d3d3;
}

#calendar .day {
    flex:1;
    justify-content : space-between;
}

#calendar .active {
    background: #FDC844
}

#calendar .date {
    text-align: center;
    margin-bottom: 5px;
    padding: 4px;
    /*background: #333;*/
    color: #333;
    /*    width: 30px;*/
    /*height: 30px;*/
    border-radius: 50%;
    flex: 0 0 auto;
    align-self: flex-end;
    font-size: 18px;
    font-weight: bold;
}

#calendar .weekdays .date-short {
    display:none
}

#calendar .event {
    flex: 0 0 auto;
    font-size: 13px;
    /*    border-radius: 4px;
        padding: 5px;
        line-height: 14px;
        background: #99EAA7;
        border: 1px solid #67D17D;*/
    text-decoration: none;
}

#calendar .event-desc {
    color: #212529;
    /*    margin: 3px 0 7px 0;*/
    text-decoration: none;	
}

#calendar .disabled .date {
    /*background: #f5f5f5;*/
    color: #e0e0e0;
}

#calendar .status-text{
    font-size : 1rem;
    color : #6c757d !important
}

.wrapper-calendar{
    padding : 25px;
}


/* ============================
    Mobile Responsiveness
   ============================*/


@media(max-width: 922px) {

    #calendar li {
        height: auto !important;
        border: 1px solid #ededed;
        width: 100%;
        padding: 10px;
        margin-bottom: -1px;
    }

    #calendar tbody {
        border-top: 4px solid #11a899;
        border-bottom: 3px solid #41B9B1;
    }

    #calendar  tr {
        /*grid-column: 1 / 2;*/
    }

    #calendar .date {
        align-self: flex-end;
        font-size: 1rem;
        padding: 0px;
    }

    #calendar .weekdays .date-full {
        display:none
    }

    #calendar .weekdays .date-short {
        display:block;
        text-align: right;
        font-size: 18px
    }

    #calendar .status-text{
        font-size : .5rem;
        color : #6c757d !important
    }

    #calendar td {
        min-height: 30px;
        display: flex;
    }

    #wrapper-calendar .col-lg-8{
        padding : 0px;    
        /*border: 2px solid #427CFF;*/
    }

    #calendar .event {
        flex: 0 0 auto;
        font-size: 9px;
        padding: 1px 0px;
    }

    #calendar .event-desc .fa, #calendar .event-desc .fas {
        font-size : 0.5rem;
    }

    .status-definition .fa ,.status-definition .fas {
        font-size : 0.7rem;
    }
}