
/** PLANNING **/

/* Conteneur principal du plugin planning */
.planning {

}


#planning{
	width:80%;
}

#planning .fc-event{
    padding: 3px;
    transition: opacity 0.2s ease-in-out ;
}

#planning.event-selected-mode .fc-event{
    opacity: 0.5;
}
#planning.event-selected-mode  .fc-event.event-selected{
    opacity: 1;
    outline: 1px dashed rgba(50, 50, 50, 0.15);
}

#planning-event-form .event-resources{
    list-style-type: none;
    padding:0;
    margin:0;
}

#planning td.fc-day.fc-sat,#planning td.fc-day.fc-sun{
    background-color:#f3f3f3;
}

#planning .fc-header-toolbar .fc-center h2{
   font-size: 20px;
}


.planning-agenda-block{
    position: absolute;
    top:10px;
    right:40px;
    font-weight: bold;
    color:#686882
}
.planning-agenda-block span{
    margin-right: -3px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: normal;
}
.planning-agenda-block select{
    color:#2a99ff;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    background: transparent;
    border: none;
}


#planning-calendars .ui-datepicker select.ui-datepicker-month,
#planning-calendars .ui-datepicker select.ui-datepicker-year,
#planning-calendars .ui-datepicker select.ui-datepicker-month:focus,
#planning-calendars .ui-datepicker select.ui-datepicker-year:focus{
    border: 0;
    outline: 0;
}

/*#plannings .planning-owner{
    display:none;
}*/

#plannings > li{
    font-size: 12px;
    max-width: 300px;
}
#plannings > li > small{
    display: block;
}
.planning-list .planning-option-btn{
    color:#cecece;
    cursor: pointer;
    opacity: 0;
    float:right;
    transform: scale(0.7);
    transition: all 0.2s ease-in-out;
}
.planning-list li:hover .planning-option-btn{
    transform: scale(1);
    opacity: 1;
}

#planning-share-form .data-type-user{
    height:52px;
}
.planning-list .planning-box{
    height: 21px;
    padding: 0px;
    vertical-align: top;
    border-radius: 5px;
    display: inline-block;
}
.planning-list .planning-box .check-component{
    width: 15px;
    height: 15px;
    margin: 3px;
    border: 0;
}

.planning-list .planning-box .check-component .box{
     border-radius: 3px;
}
.planning-list .planning-box .check-component input:checked + .box{
    background: #ffffff;
    border-radius: 3px;
}
@keyframes pulse {
    0% { transform:scale(1); }
    50% { transform:scale(1.05); }
    100% { transform:scale(1); }
}
.planning-view{
    display: flex;
}

#planning-calendars h4{
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    color: #4d4f50;
    margin-top: 10px;
}
#planning-calendars{
    padding:0 15px 0 0;
}
#planning-datepicker .ui-state-default,
#planning-datepicker .ui-widget-content .ui-state-default,
#planning-datepicker .ui-widget-header .ui-state-default{
    border: 0;
    background: transparent;
    font-weight: normal;
    color: #505a65;
    text-align: center;
}
#planning-datepicker .ui-datepicker {
       border: 0!important;
}
#planning-datepicker .ui-datepicker table {
    width: 100%;
    font-size: .7em;
}
#planning-datepicker .ui-datepicker-current-day {
    text-align: center;
}
#planning-datepicker .ui-datepicker-current-day a{
    border-radius: 100%;
    width:20px;
    display: inline-block;
    height:20px;
}
#planning-datepicker .ui-datepicker-current-day a.ui-state-active{
    color: #185abc;
    background-color: #d2e3fc;
}
#planning-datepicker .ui-widget-header{
    border: 0;
    background: transparent;
    font-weight: normal;
}
#planning-calendars ul{
    padding: 0;
    margin:0;
    list-style-type: none;
}
#planning-calendars ul label{
    cursor:pointer;
}

#planning .fc-toolbar.fc-header-toolbar{
    margin-bottom:0.2em;
}



/* formulaire d'édition de planning */
.planning .planning-form {

}



.fc-event-container .fc-icon{
    opacity: 0.8;
    position: absolute;
    right: 3px;
    top: 3px;
}
.fc-event-container .fc-icon i{
    font-size: 10px;
}

#planning-form {

}

.event-group-option,.event-group-option li{
    list-style-type: none;
    margin:0;
    padding:0;
}
.event-group-option  li{
    background-color: #4aa1ff;
    color:#ffffff;
    width:160px;
    height:160px;
    padding:15px;
    box-sizing: border-box;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin:10px;
}
.event-group-option  li .text-muted {
    color: #ededed!important;
    display: block;
    margin-top: 10px;
}
.event-group-option  li i{
    display:block;
    font-size: 40px;
}
.event-group-option  li:nth-child(1){
    background-color: #dc3545;
}

#planning_event_types tbody tr{
    cursor: move;
}

.planning-line{
    position: relative;
}

.planning-type-options{
    position:absolute;
    top:5px;
    right:5px;
}

.planning-type-chip{
    vertical-align: baseline;
    display: inline-block;
    font-size: 12px;
    text-align: center;
    padding-top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
}

.planning-event-panel.event-readonly .btn-save{
    display: none;
}

.planning-event-panel .startTime:after{
    top: 4px;
    position: absolute;
    font-weight: 600;
    content: '\f054';
    color: #c3c3c3;
    font-family: "Font Awesome 5 Free";
    right: 5px;
}

.planning-event-panel{
    position: absolute;
    right:0px;
    top:500px;
    min-height:350px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fefefe;
    color:#576069;
    border-radius:3px;
    padding:0;
    width:700px;
    box-shadow: 1px 1px 35px rgba(0,0,0,0.3);
    z-index: 101;
    padding-bottom: 65px;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.planning-event-panel-head{
    background-color: #f1f3f4;
    cursor: move;
    padding:15px;
}
.planning-event-panel-footer{
    position: absolute;
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e6e6e6;
    bottom: 0;
    height: 65px;
    width: 100%;
}
.planning-event-panel-body{
   padding:15px;
}


.planning-event-panel .input-group-append{
    z-index:inherit;
}
#planning-event-form > .row{
    margin-top: 10px;
}

.planning-event-panel h1{
    text-transform: uppercase;
    font-size: 14px;
    margin: 0;
    font-weight: bold;
}

.planning-event-panel.fold{
    transform: translateX(100px);
    opacity: 0;
}


.planning-types{
    list-style-type: none;
    margin:0;
    padding:0;
}
.planning-types li{
    list-style-type: none;
    margin:0;
    padding:15px;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,0.1);

    background-color: #ffffff;
    margin-bottom: 5px;
}

.planning-type-handler{
    cursor: move;
}

li.planning-line-child{
    margin-left: 35px;
}


.planning-item-placeholder{
    height: 40px;
    line-height: 1.2em;
    border:2px dashed #cecece;
    display: block;
}

/* fullcalendar */

#planning .fc-button{
    padding:3px 5px;
    font-size: 14px;
}
#planning .fc-icon{
    line-height: 0.9;
}

.fc-state-default {
    border: 1px solid;
    border-top-color: currentcolor;
        border-right-color: currentcolor;
        border-bottom-color: currentcolor;
        border-left-color: currentcolor;
    background-color: #f5f5f5;
    background-image: none;
    background-repeat: repeat-x;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
    color: #333;
    text-shadow: none;
    box-shadow: none;
}

.fc-state-active, .fc-state-down {
    background-color: #ccc;
    background-image: none;
    box-shadow: none;
}

.fc-event{
    cursor:pointer;
}


.planning-page[data-event-editable="0"] .btn-save-event{
    display: none;
}

.planning-page[data-planning-share="0"] .planning-share-block,
.planning-page[data-planning-share="0"] .shared-plannings-block{
    display: none;
}

/* responsive */


@media screen and (max-width: 640px) {
    .planning-event-panel{

        position: fixed;
        top: 0!important;
        left: 0!important;
        width: 100%!important;
    }
    .planning-view{
        display: block;
    }
    #planning .fc .fc-toolbar,#planning .fc-header-toolbar{
         display: block;
    }

    #planning .fc-toolbar-chunk{
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    #planning .fc-daygrid-event-dot{
        display: none;
    }
    #planning .fc-daygrid-event{
        border-left:1px!important;
    }
}