/*
 * File: calendar.css
 * Description: Styles for the calendar layout.
 * Author: Greg Whitehead
 * Created: 2022-08-18
 * Last Updated: 2025-07-14
 * Notes: This file contains styles specific to the calendar layout.
 */

.ctf_cal .calendar{
    display: flex;
    flex-flow: column;
}
.ctf_cal .calendar .header .month-year {
    font-size: 20px;
    font-weight: bold;
    color: #636e73;
    padding: 20px 0;
    text-align:center;
}
.ctf_cal .calendar .days {
    display: flex;
    flex-flow: wrap;
}
.ctf_cal .calendar .days .day_name {
    width: calc(100% / 7);
    border-right: 1px solid #2c7aca;
    padding: 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: #818589;
    color: #fff;
    background-color: #448cd6;
}
.ctf_cal .calendar .days .day_name:nth-child(7) {
   /* border: none;*/
}
.ctf_cal .calendar .days .day_num {
    display: flex;
    flex-flow: column;
    width: calc(100% / 7);
    border-top: 1px solid #e6e9ea;
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    padding: 15px;
    font-weight: bold;
    color: #7c878d;
    cursor: pointer;
    min-height: 100px;
}
.ctf_cal .calendar .days .day_num .mobile {
    display:none;
}
@media (max-width: 999px) {
    /*.ctf_cal .calendar .days .day_num .mobile {
        display:inline;
    }
    .ctf_cal .calendar .day_name {
        display:none;
    }*/
    .ctf_cal .calendar .days .day_num {
        display: flex;
        flex-flow: column;
        width: calc(100% / 7);
        border-top: 1px solid #e6e9ea;
        border-right: 1px solid #e6e9ea;
        border-bottom: 1px solid #e6e9ea;
        padding: 15px;
        font-weight: bold;
        color: #7c878d;
        cursor: pointer;
        min-height: 100px;
    }
}
@media (max-width: 699px) {
    .ctf_cal .calendar .days .day_num .mobile {
        display:inline;
    }
    .ctf_cal .calendar .day_name {
        display:none;
    }
    .ctf_cal .calendar .days .day_num {
        display: flex;
        flex-flow: column;
        width: calc(100% / 3);
        border-right: 1px solid #e6e9ea;
        border-bottom: 1px solid #e6e9ea;
        padding: 15px;
        font-weight: bold;
        color: #7c878d;
        cursor: pointer;
        min-height: 100px;
    }
}
.ctf_cal .calendar .days .day_num span {
    display: inline-flex;
    /*width: 30px;*/
    font-size: 14px;
}
.ctf_cal .calendar .days .day_num .event {
    margin-top: 10px;
    font-weight: 500;
    font-size: 14px;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: #f7c30d;
    color: #fff;
    word-wrap: break-word;
}
.ctf_cal .calendar .days .day_num .event.green {
    background-color: #51ce57;
}
.ctf_cal .calendar .days .day_num .event.blue {
    background-color: #518fce;
}
.ctf_cal .calendar .days .day_num .event.red {
    background-color: #ce5151;
}
.ctf_cal .calendar .days .day_num { /*:nth-child(7n+1) {*/
    border-left: 1px solid #e6e9ea;
}
.ctf_cal .calendar .days .day_num:hover {
    background-color: #fdfdfd;
}
.ctf_cal .calendar .days .day_num.ignore {
    background-color: #fdfdfd;
    color: #ced2d4;
    cursor: inherit;
}
.ctf_cal .calendar .days .day_num.selected {
    background-color: #f1f2f3;
    cursor: inherit;
}