.ctl-calendar-widget{
    margin-bottom: 16px;
    position: relative;
}

.ctl-calendar-widget .ctl-calendar-content .row,
.ctl-calendar-widget .ctl-calendar-content .col{
    margin: 0px;
    padding: 0px;
}

.ctl-calendar-day-header h3,
.ctl-calendar-week-header h3,
.ctl-calendar-month-header h3,
.ctl-calendar-month-body h4{
    text-align: center;
    word-break: break-all;
    margin: 0px;
}

.ctl-calendar-day-header h3,
.ctl-calendar-month-header h3{
    font-size: 14px !important;
    font-weight: bold;
}

.ctl-calendar-month-body h4{
    font-size: 11px !important;
}

.ctl-calendar-widget .ctl-calendar-content .ctl-calendar-month-header .col,
.ctl-calendar-widget .ctl-calendar-content .ctl-calendar-month-body .col{
    flex: 0 0 14.2857% !important;  
    max-width: 14.2857% !important;
}

.ctl-calendar-week-header > .row > .col:first-child,
.ctl-calendar-widget .ctl-calendar-content .ctl-calendar-day-header:not(.ctl-calendar-no-hour-interval) .ctl-calendar-hour:first-child,
.ctl-calendar-widget .ctl-calendar-content .ctl-calendar-week-header:not(.ctl-calendar-no-hour-interval)  .ctl-calendar-hour:first-child,
.ctl-calendar-widget .ctl-calendar-content .ctl-calendar-day-body:not(.ctl-calendar-no-hour-interval)  .ctl-calendar-hour:first-child,
.ctl-calendar-widget .ctl-calendar-content .ctl-calendar-week-body:not(.ctl-calendar-no-hour-interval)  .ctl-calendar-hour:first-child{
    flex: 0 0 70px !important;  
    max-width: 70px !important;
}



.ctl-parent-data-container .col{
    border-right: 1px solid #ced4da;
    min-height: 15px;
}

.ctl-parent-data-container .col:last-child{
    border-right: none;
}

.ctl-calendar-day-header{
    padding-left: 69px !important;
}

.ctl-calendar-day-header .ctl-parent-data-container{
    border-top: 1px solid #ced4da;
}

.ctl-calendar-hour-spacer{
    border-left: 1px solid #ced4da;    
}

.ctl-calendar-hour-spacer:first-child{
    border-top: none;
}

.ctl-calendar-week-body .ctl-calendar-hourly-activity{
    margin: 0px;
    word-break: break-all;
    word-break: break-word;
    padding: 5px !important;
}

.ctl-calendar-day-body .ctl-calendar-hourly-activity{
    margin: 0px;
    word-break: break-all;
    word-break: break-word;
}

.ctl-calendar-day-body .ctl-calendar-hourly-activity,
.ctl-calendar-week-body .ctl-calendar-hourly-activity{
    border-top: 1px solid #ced4da;  
    border-right: 1px solid #ced4da;  
    font-size: 14px;
}

.ctl-calendar-day-body .ctl-calendar-hourly-activity:last-child,
.ctl-calendar-week-body .ctl-calendar-hourly-activity:last-child{
    border-right: none;
}

.ctl-calendar-widget .ctl-calendar-day-detail .row .col:first-child{
    flex: 0 0 15% !important;  
    max-width: 15% !important;
    font-size: 12px;
    text-align: center;
}


.ctl-calendar-widget .ctl-calendar-day-detail .row .col:last-child{
    flex: 0 0 85% !important;  
    max-width: 85% !important;
    font-size: 12px;
    text-align: center;
}


.ctl-calendar-day{
    position: relative;
}

.ctl-calendar-day-detail .ctl-calendar-hour:first-child{
    border-top: 0px;
}

.ctl-calendar-day-detail .row:last-child .ctl-calendar-hourly-activity{
    border-bottom: 0px;
}

.ctl-calendar-hour{
    border: 1px solid #ced4da;
    border-bottom: 0px;
    border-left: 0px;

    display: flex;
    justify-content: center;
    align-items: center;  

    font-size: 12px;
}

.ctl-calendar-bordered .ctl-calendar-day{
    border-bottom: 0px;
    border-right: 0px;
}


.ctl-calendar-cell{
    padding: 5px;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;    
}

.ctl-calendar-bordered .ctl-calendar-day{
    border: 1px solid #ced4da; 
    border-bottom: 0px;
    border-right: 0px;
}

.ctl-calendar-month-header{
    border-bottom: 1px solid #ced4da; 
}

.ctl-calendar-bordered .ctl-calendar-content{
    border: 1px solid #ced4da; 

    -webkit-border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    border-radius: 0.25rem;    
}

.ctl-calendar-bordered .ctl-calendar-content .row:first-child > .ctl-calendar-day{
    border-top: 0px !important;
}

.ctl-calendar-bordered .ctl-calendar-content .row > .ctl-calendar-day:first-child{
    border-left: 0px !important;
}

.ctl-calendar-month-body .ctl-calendar-day h4 span{
    transition: all 0.4s ease 0.0s;
}

.ctl-calendar-month-body .ctl-calendar-day h4 span:hover{
    background-color: rgb(195, 195, 195);
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    color: #fff;    
}


tbody .ctl-table-calendar-day:hover,
.ctl-calendar-month-body .ctl-calendar-day:hover{
    background-color: #eee;
    cursor: pointer;
}


.ctl-calendar-multiple-selection-mode .ctl-calendar-month-body .ctl-calendar-day.ctl-calendar-day-selected{
    box-shadow: inset 0px 0px 0px 2px #007bff;
}
.ctl-calendar-multiple-selection-mode .ctl-calendar-month-body .ctl-calendar-day:hover{
    background-color: rgb(255, 243, 154);
}

.ctl-calendar-day-detail .row:hover{
    background-color: #eee;
    cursor: pointer;
}

.ctl-calendar-day .ctl-calendar-cell{
    min-height: 50px;
}

.ctl-calendar-day-header .ctl-calendar-cell,
.ctl-calendar-month-header .ctl-calendar-cell{
    padding-top: 15px;
    padding-bottom: 15px;
}

.ctl-calendar-day-header .ctl-calendar-cell h3 span{
    border-radius: 50px;
    padding: 5px 10px;
}

.ctl-calendar-day-header h3,
.ctl-calendar-week-header h3{
    font-size: 14px !important;
    font-weight: bold;
}

.ctl-calendar-week-header h3{
    cursor: pointer;
}

.ctl-calendar-week-header h3 span{
    width: 50px;
    height: 50px;
    padding-top: 8px;    
    border-radius: 50px;
    transition: all 0.4s ease 0.0s;
}

.ctl-calendar-week-header h3:hover span{
    background-color: #eee;
}

.ctl-calendar-week-header h3 span{
    font-weight: bold;
    display: inline-block;
}

.ctl-calendar-month-body .ctl-calendar-cell{
    opacity: 0.3;
}

.ctl-table-calendar-day-label{
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ctl-table-calendar-header .ctl-table-calendar-day span,
.ctl-calendar-day h4 span{
    line-height: 24px;
    width: 24px;
    height: 24px;
    display: inline-block;   
    text-align: center;     
}

.ctl-calendar-month-body .ctl-calendar-cell.ctl-calendar-day-current-month{
    opacity: 1;
}

.ctl-calendar-day-festivity h4 span{
    background-color: #dc3545;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    color: #fff;
}

.ctl-calendar-day-header .ctl-calendar-day-today h3 span{
    transition: all 0.4s ease 0.0s;
    display: inline-block;
}

.ctl-calendar-day-header .ctl-calendar-day-today h3 span{
    background-color: rgba(0, 123, 255, 1);
    color: #fff;
    animation: fadeIn 1s infinite alternate;
}

.ctl-table-cards .ctl-table-calendar-header{
    display: flex;
    align-items: baseline;
}

.ctl-table-cards .ctl-table-calendar-header .ctl-table-calendar-day{
    margin-left: 5px;
}

.ctl-calendar-week-header .ctl-calendar-day-today h3 span,
.ctl-table-calendar-header.ctl-calendar-day-today .ctl-table-calendar-day span,
.ctl-calendar-day-today h4 span{
    background-color: rgba(0, 123, 255, 1);
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    color: #fff; 
    animation: fadeIn 1s infinite alternate;
}

.ctl-calendar-day-detail-label{
    padding: 0.25rem 0.5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    border: 1px solid #ced4da;
}


@keyframes fadeIn { 
    from { 
        background-color: rgba(0, 123, 255, 0); 
        color:rgb(128, 128, 128);
    } 
}

.ctl-calendar-loader{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    
    background-color: rgba(0,0,0,0.1);
}

.ctl-calendar-day-activity{
    color: #004085;
    background-color: #cce5ff;
    padding: 2px 10px;
    font-size: 0.7rem;
    margin-top: 5px;
    
    margin-left: -5px;
    margin-right: -5px;
    
    border-top:1px solid #b8daff;
    border-bottom:1px solid #b8daff;
    
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.ctl-calendar-day-activity-start{
    -webkit-border-top-left-radius: 0.25rem;
    -webkit-border-bottom-left-radius: 0.25rem;
    -moz-border-radius-topleft: 0.25rem;
    -moz-border-radius-bottomleft: 0.25rem;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    
    margin-left: 0px;
    
    border-left:1px solid #b8daff;
}

.ctl-calendar-day-activity-end{
    -webkit-border-top-right-radius: 0.25rem;
    -webkit-border-bottom-right-radius: 0.25rem;
    -moz-border-radius-topright: 0.25rem;
    -moz-border-radius-bottomright: 0.25rem;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;  
    
    margin-right: 0px;
    
    border-right:1px solid #b8daff;
}

.ctl-table-calendar-day-item-list,
.ctl-calendar-day-item-list{
    list-style: none;
    margin: 0px;
    padding: 0px;       
}

.ctl-calendar-day-item-list{
    margin-top: 5px; 
}

.ctl-calendar-day-item{
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 0px 10px;
}

.ctl-calendar-week-body:not(.ctl-calendar-no-hour-interval) .ctl-calendar-day-item .ctl-calendar-day-item-bg,
.ctl-calendar-day-body:not(.ctl-calendar-no-hour-interval) .ctl-calendar-day-item .ctl-calendar-day-item-bg{
    z-index: -1;
    content: "";
    width: 100%;  
    position: absolute;  
    top: 0px;
    left: 0px;
    border-radius: 3px;
    border: 2px solid #ced4da;
}

.ctl-calendar-week-body.ctl-calendar-no-hour-interval .ctl-calendar-day-item .ctl-calendar-day-item-bg,
.ctl-calendar-day-body.ctl-calendar-no-hour-interval .ctl-calendar-day-item .ctl-calendar-day-item-bg{
    height: 100% !important;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: -1;    
}

.ctl-calendar-week-body.ctl-calendar-no-hour-interval .ctl-calendar-hourly-activity,
.ctl-calendar-day-body.ctl-calendar-no-hour-interval .ctl-calendar-hourly-activity{
    min-height: 200px;
}

.ctl-calendar-week-body .ctl-calendar-day-item,
.ctl-calendar-day-body .ctl-calendar-day-item{
    position: relative;
    z-index: 1;
}

.ctl-calendar-week-body .ctl-calendar-day-item-label-time,
.ctl-calendar-day-body .ctl-calendar-day-item-label-time{
    display: none;
}

.ctl-calendar-day-item-status{
    width: 10px;
    height: 10px;
    border-radius: 100%;
    display: inline-block;    
    margin-right: 5px;
    margin-top: 5px;    
}

.ctl-calendar-day-item-label{
    font-size: 11px;
    word-break: break-word;  
	display: flex;
}

.ctl-calendar-day-item-label ul{
    padding: 0px;
    list-style: none;
}

.ctl-calendar-day-item-editor-stripe{
    min-width: 3px;
    position: relative;
    display: inline-block;
    margin-right: 5px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 5px;
}


.ctl-calendar-day-item-label-content{
    width: 100%
}

.ctl-calendar-filter-users .form-group{
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.ctl-calendar-filter-users .ctl-form-field-label{
    padding-left: 0px !important;
}

.ctl-calendar-filter-users .ctlcheckfield{
    padding-left: 5px !important;
}

.ctl-calendar-filter-users .custom-control-label{
    padding: 0px !important;
}

.ctl-calendar-week-body .ctl-calendar-hourly-activity .col{
    width: 100% !important;
}

.ctl-calendar-week-body .ctl-calendar-day-item{
    margin-left: 0px !important;
}

.ctl-table-calendar-day,
.ctl-calendar-day{
    transition: all 0.4s ease 0.0s;
}

.ctl-calendar-day-parent-label{
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 768px){
    .ctl-calendar-action-today .btn-text{
        display: none;
    }

    .ctl-calendar-action-open-multiple-selection .btn-text{
        display: none;
    }    
    
    .ctl-calendar-day .ctl-calendar-cell{
        min-height: inherit;
    }
    
    .ctl-calendar-week-header .ctl-calendar-cell,
    .ctl-calendar-month-header .ctl-calendar-cell{
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    .ctl-calendar-day-header h3,
    .ctl-calendar-month-header h3{
        font-size: 12px !important;
    }
    
    .ctl-calendar-month-body h4{
        font-size: 10px !important;
    }    

    .ctl-calendar-day h4 span{
        line-height: 20px;
        width: 20px;
        height: 20px;
    }
    
    .ctl-calendar-day-activity{
        padding: 1px 5px;
        font-size: 0.6rem;
    }
}

.bp-up-to-sm .ctl-calendar-month-body .ctl-calendar-day-item{
    margin: 3px;
    display: inline-block;
}

.bp-up-to-sm .ctl-calendar-week-body .ctl-calendar-day-item-label,
.bp-up-to-sm .ctl-calendar-month-body .ctl-calendar-day-item-label{
    display: inline-block;
}

.bp-up-to-sm .ctl-calendar-week-body .ctl-calendar-day-item-label .hide-on-mobile,
.bp-up-to-sm .ctl-calendar-month-body .ctl-calendar-day-item-label .hide-on-mobile{
	display: none;
}

.bp-up-to-sm .ctl-calendar-week-body .ctl-calendar-day-item-label .ctl-calendar-day-item-status,
.bp-up-to-sm .ctl-calendar-month-body .ctl-calendar-day-item-label .ctl-calendar-day-item-status{
	margin-right: 0px;
	margin-top: 0px;
}

.bp-up-to-sm .ctl-calendar-week-header h3 span{
    width: 36px;
    height: 36px;
}

.bp-up-to-sm .ctl-calendar-day-header h3, 
.bp-up-to-sm .ctl-calendar-week-header h3 {
    font-size: 11px !important;
}

.bp-up-to-sm .ctl-calendar-day-header h3 span,
.bp-up-to-sm .ctl-calendar-week-header h3 span{
    padding-top: 5px;
}

.bp-up-to-sm .ctl-calendar-week-body .ctl-calendar-day-item  a{
    height: 8px;
    border-radius: 10px;
    display: block;
}

.bp-up-to-sm .ctl-table-calendar-widget .ctl-calendar-day-item{
    padding: 0px;
}

.bp-up-to-sm .ctl-calendar-month-body .ctl-calendar-day-item-list{
    text-align: center;
}

.bp-xs .ctl-calendar-day-body .ctl-calendar-hourly-activity .col{
    width: 100% !important;
}

.bp-xs .ctl-calendar-day-body .ctl-calendar-day-item{
    margin-left: 0px !important;
}


.modal .ctl-calendar-day-item{
    margin: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: 3px !important;
    display: block !important;
    padding: 0px 10px !important;
    margin-bottom: 10px !important;
}

.modal .ctl-calendar-day-item-list{
    text-align: left !important;
}

.modal .ctl-calendar-cell h4{
    display: none;
}

.modal .ctl-calendar-day-item-list{
    margin-top: 0px;
}