#calendrier-flex{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: relative;
}

#calendrier-saisie{
    width:33.3333%;
    font-size: 14px;
}
#calendrier{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 66.6666%;
    padding-left: 10px;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
}

.calendrier-affichage #calendrier-saisie{
    width:15%;
}
.calendrier-affichage #calendrier{
    width:85%;
}

#h1-apercu{
    width: 100%;
    font-weight: 300;
    /* border-bottom: 1px dashed; */
    margin-bottom: 32px;
    color: #777777;
}
#h1-apercu i{
    font-size: 60%;
    letter-spacing: 1px;
}

#calendrier-affichage h4{
    margin-top: 0;
    text-align: center;
    font-size: 110%;
    padding-left: 15%;
    margin-bottom: 2em;
}

.calendar {
    width: calc(100% / 3);
    display: flex;
    flex-flow: column;
    padding:6px 0 12px 30px;
}
.calendrier-affichage  .calendar {
    width: calc(100% / 4);
}
.calendar .header .month-year {
    font-size: 14px;
    font-weight: 500;
    color: #8f9699;
    padding: 4px 0;
}
.calendar .header .month-year b{
    font-weight: 700;
    color: #7494b4;
}
.calendar.nextYear .header .month-year b{
    color: #63abb4;
}
.calendar .days {
    display: flex;
    flex-flow: wrap;
}
.calendar .days .day_name {
    width: calc(100% / 7);
    border-right: 1px solid white;
    padding: 1px;
    text-transform: uppercase;
    font-size: 9px;
    font-weight: bold;
    color: #818589;
    color: #fff;
    background-color: #448cd6;
    text-align: center;
}
.calendar .days .day_name {
    width: calc(100% / 7);
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    padding: 1px;
    text-transform: uppercase;
    font-size: 9px;
    font-weight: bold;
    color: #818589;
    color: #fff;
    background-color: #5099e2;
    text-align: center;
}
.calendar.nextYear .days .day_name {
    background-color: #34bacc;
}
.calendar .days .day_name:nth-child(1) {
    border-left: 1px solid white;
}
.calendar .days .day_name:nth-child(7) {
    /*border: none;*/
}
.calendar .days .day_num {
    display: flex;
    flex-flow: column;
    width: calc(100% / 7);
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    padding: 4px 1px;
    font-weight: 500;
    color: #7c878d;
    position: relative;
    text-align: center;
}
.calendar .days .day_num span {
    /*display: inline-flex;
    width: 30px;*/
    text-align: center;
}
.calendar .days .day_num span,
.calendar .days .day_num.ignore {
    font-size: 11px;
}
.calendar .days .day_num.ignore {
    font-weight: 400;
}

.calendar .days .day_num .event {
    margin-top: 10px;
    font-weight: 500;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: #f7c30d;
    color: #fff;
    word-wrap: break-word;
}
.calendar .days .day_num .event.green {
    background-color: #51ce57;
}
.calendar .days .day_num .event.blue {
    background-color: #518fce;
}
.calendar .days .day_num .event.red {
    background-color: #ce5151;
}
.calendar .days .day_num:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
}
.calendar .days .day_num:hover {
    background-color: #fdfdfd;
}
.calendar .days .day_num.ignore {
    background-color: #f2f2f2;
    color: #acb0b3;
    cursor: inherit;
}
.calendar .days .day_num.selected {
    background-color: #f1f2f3;
    cursor: inherit;
}

/* SEMAINES */
.calendar .days .day_num .week_num{
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    color: #88aace;
    position: absolute;
    /* background-color: #cbcbcb; */
    height: 18px;
    white-space: nowrap;
    top: 4px;
    left: -24px;
    width: 24px;
    font-size: 9px;
    /* padding-left: 3px;*/
    /*border-radius: 6px 0 0 6px;
    
    border: 1px solid #e4e8ed;
    border-right: none;*/
}
.calendar .days .day_num.ignore .week_num,
.calendar .days .day_num .week_num{
    font-weight: 400;
}
.calendar .days .day_num.ignore .week_num b,
.calendar .days .day_num .week_num b{
    font-weight: 600;
    padding-left: 1px;
    color: #749ac2;
    cursor:help;
}


/* LOADING */
#cal_loading{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}
#cal_loading.cal_loading_maj{
    align-items: flex-start !important;
    padding-top: 25vh;
}
#cal_loading i{
    font-size: 200%;
    color:#a8a8a8;
}


/* LEGENDE */
#calendrier-saisie .legende{
    margin-bottom: 12px;
    text-indent : 0;
    text-align: left;
}
.calendrier-affichage #calendrier-saisie .legende{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: center;
}
.calendrier-affichage #calendrier-saisie .legende div{
   line-height: 1.2;
}
#calendrier-saisie .legende:before{
    content: "J";
    /* width: 19px; */
    margin-right: 8px;
    /* height: 12px; */
    padding: 1px 9px;
    display: inline-block;
    border: 1px solid #e6e9ea;
    color:white;
    font-weight: 500;
}
.legende-ul li:not(:nth-child(1)){
    border-left: 2px solid;
    padding-left:6px;
    margin-left:1px;
}
.legende .legende-info{
    font-size: 95%;
    font-family: 'Ubuntu Condensed', 'Ubuntu', sans-serif !important;
}


/* SAISIE */
#calendrier-saisie ul{
    margin-bottom: 22px;
}
#calendrier-saisie ul li{
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 2px;
}

.calendrier-affichage li {
    padding-left: .5em;
}

#calendrier-saisie hr{
    border-top: 1px dashed #d6d6d6;
    margin-bottom: 1.75em;
    margin-top: 1.75em;
}

#calendrier-saisie input{
    width: auto;
    margin:2px;
}
button.date-ajout{
    font-size: 85%;
    margin-top: 0;
    margin-bottom: 10px;
}
#calendrier-submit,
#calendrier-send{
    width: 100%;
}
#calendrier-send{
    background-color: #6daf37;
}
#calendrier-send b{
    font-weight: 700;
}

.date-delete{
    color:rgb(228, 99, 99);
    cursor: pointer;
    padding:3px 4px;
    margin-left: 6px;
}
.date-delete:hover{
    color:rgb(177, 12, 12);
}

#distance-ul li.legende-ul-select{
    border-color: transparent;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 34px;
}
#distance-ul li.legende-ul-select label{
    white-space: nowrap;
    width: fit-content;
}
#distance-ul li.legende-ul-select select{
    width: auto;
}
#calendrier-saisie .legende.distance {
    margin-bottom: 0;
}


/* EVENT */
.calendar .days .day_num.event{
    color: white;
}
.calendar .days .day_num.event.formation,
#calendrier-saisie .legende.formation:before{
    border: 1px solid #a0a0a0;
    color: #7c878d;
}
.calendar .days .day_num.event.exam,
#calendrier-saisie .legende.exam:before,
#calendrierForm button.date-exam-ajout{
    background-color: #ecc70a;
}
#calendrierForm button.date-exam-ajout{
    background-color: #e8bf07;
}
#exam-ul li{
    border-color: #ecc70a;
}
.calendar .days .day_num.event.entreprise,
#calendrier-saisie .legende.entreprise:before,
#calendrierForm button.date-entreprise-ajout
{
    background-color: #51ce57;
}
#entreprise-ul li{
    border-color: #51ce57;
}
.calendar .days .day_num.event.deliberation,
#calendrier-saisie .legende.deliberation:before{
    background-color: #e9810a;
}
.calendar .days .day_num.event.rentree,
#calendrier-saisie .legende.rentree:before{
    background-color: #a00018;
}
#rentree-ul li{
    border-color: #a00018;
}
.calendar .days .day_num.event.distance,
#calendrier-saisie .legende.distance:before,
#calendrierForm button.date-distance-ajout{
    background-color: #ee6f00;
}
#distance-ul li{
    border-color: #ee6f00;
}
.calendar .days .day_num.event.rattrapage,
#calendrier-saisie .legende.rattrapage:before,
#calendrierForm button.date-rattrapage-ajout{
    background-color: #e22afe;
}
#rattrapage-ul li{
    border-color: #e22afe;
}

#calendrierForm button.date-ajout:hover{
    background-color: #3e3e3e;
}

/* VACANCES */
#vacances-ul{
    padding: 32px;
    font-size: 90%;
    color: #836e62;
    background-color: #faf7f4;
    border: 1px dashed;
}
.vacances-titre{
    font-weight: 800;
    text-transform: uppercase;
}
.vacances-nom{
    font-weight: 600;
    margin-bottom: 2px !important;
}
.vacances-nom i{
    padding-right: 6px;
    opacity: .7;
}
.vacances-titre{
    margin-bottom: 0 !important;
}
.vacances-asterisk,
.vacances-date{
    margin-bottom: 20px !important;
}
#vacances-ul li:last-child{
    margin-bottom: 0 !important;
}
.vacances-date,
.vacances-asterisk{
    opacity: .8;
}
.vacances-date{
    padding-left: 20px;
}
.vacances-asterisk{
    font-style: italic;
    line-height: 1.2 !important;
}



.calendrier-info{
    text-align: justify;
    font-size: 65%;
    opacity: .7;
    font-style: italic;
    margin-top: 36px;
}


/* ACCUEIL */
#cal-formation-list .rp-item-nom b{
    font-weight: 700;
}
#cal-formation-list .rp-item-nom{
    width: 90%;
}
#cal-formation-list{
    margin-bottom: 1.5em;
    width: 100%;
}
#form-calendrier h2{
    margin-bottom: 1.5em;
}
#form-calendrier .rp-item-modif{
   text-align: center;
}
#form-calendrier.form strong {
    color: unset;
}
#form-calendrier .rp-item-modif a{
    display: inline-block;
}
#form-calendrier .rp-item-modif a.cal-dupliquer,
#form-calendrier .rp-item-modif a.a-empty{
    display: table-cell;
}
#form-calendrier a.a-empty:not(:last-child){
    background-color: transparent;
    border: none;
}
#form-calendrier a.a-empty:last-child{
    display: none;
}

/* ACCUEIL LEGENDE */
#cal-accueil-legende{
    padding: 0;
    background-color: #e4e4e4;
}
#cal-accueil-legende-content{
    padding: 32px;
}
.cal-accueil-ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
}
.cal-accueil-ul-txt{
    padding-left: 1em;
    font-size: 80%;
    color:#607793;
}
.cal-accueil-ul-txt i{
    padding-right: .5em;
}
#cal-accueil-legende h2{
    margin-top: 1em;
    margin-bottom: 2em;
    font-size: 90%;
    text-align: left;
}
#cal-accueil-legende .rp-item-modif{
    min-width:60px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* PRINT */
@media print {
    @page {
        size: auto;
        margin: 10mm 10mm 10mm 10mm;
    }
    .titre-print{
        text-align: center !important;
    }
    #calendrier-affichage h4 {
        padding-left: 0;
    }
    #calendrier-affichage {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding-bottom: 0 !important;
        position: relative;
    }
    #calendrier-affichage #calendrier-flex {
        flex-direction: column;
    }
    #calendrier-affichage #calendrier-saisie {
        width: 100%;
        font-size: 70%;
    }
    #calendrier-affichage #calendrier-saisie form{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: space-around;
        align-items: flex-start;
    }
    #calendrier-affichage #calendrier-saisie form hr{
        display: none;
    }
    #calendrier-affichage #calendrier-saisie ul {
        margin-bottom: 0;
    }
    #calendrier-affichage .calendrier-affichage #calendrier{
        width: 100%;
        padding:0;
    }
    #calendrier-affichage .calendar,
    #calendrier-affichage .calendrier-info{
        page-break-inside: avoid;
        visibility: visible;
    }
    /*#calendrier-affichage .calendrier-info{
        padding-top: 32px;
        display: none;
    }*/
    #calendrier-affichage .calendrier-info {
        font-size: 60%;
        /*position: absolute;*/
        bottom: 0;
        right: 0;
        width: 100%;
        padding: 1em;
        line-height: 1.2;
    }
    #calendrier-affichage .form-logo{
        width: 85px;
        height: 85px;
    }
    #calendrier-affichage #form-header .center {
        font-size: 90%;
    }
    #calendrier-affichage hr {
        margin-bottom: 1em;
        margin-top: 1em;
    }
    #calendrier-affichage #h1-apercu {
        display: none;
    }
    #calendrier-affichage .calendar .days .day_num {
        color: #596266;
        padding: 3px 1px;
    }
    #calendrier-affichage .calendar .days .day_num.event {
        color: white;
    }
    #calendrier-affichage button,
    #pdf-button{
        display: none;
    }
    #calendrier-saisie .legende.distance {
        margin-bottom: 12px;
    }
}
/* PRINT USING JS */
body.print{
    width: 210mm !important;
    height: 260mm !important;
    background-color: white;
    display: block;
    min-height: unset;
    margin-bottom: 0 !important;
}
.print .section-padding{
    padding: 0 !important;
    margin: 12mm !important;
}
.print .page-content{
    line-height: 1.2 !important;
}
.print .titre-print{
    text-align: center !important;
}
.print #calendrier-affichage h4 {
    padding-left: 0;
}
.print #calendrier-affichage {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    width: auto !important;
    padding-bottom: 0 !important;
    position: relative;
}
.print #calendrier-affichage #calendrier-flex {
    flex-direction: column;
}
.print #calendrier-affichage #calendrier-saisie {
    width: 100%;
    font-size: 70%;
}
.print #calendrier-affichage #calendrier-saisie form{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
}
.print #calendrier-affichage #calendrier-saisie form hr{
    display: none;
}
.print #calendrier-affichage #calendrier-saisie ul {
    margin-bottom: 0;
}
.print #calendrier-affichage .calendrier-affichage #calendrier{
    width: 100%;
    padding:0;
}
.print #calendrier-affichage .calendar,
.print #calendrier-affichage .calendrier-info{
    page-break-inside: avoid;
    visibility: visible;
}
/*
.print #calendrier-affichage .calendrier-info{
    padding-top: 32px;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
*/
.print #calendrier-affichage .form-logo{
    width: 85px;
    height: 85px;
}
.print #calendrier-affichage #form-header .center {
    font-size: 90%;
}
.print #calendrier-affichage hr {
    margin-bottom: 1em;
    margin-top: 1em;
}
.print #calendrier-affichage #h1-apercu {
    display: none;
}
.print #calendrier-affichage .calendar .days .day_num {
    color: #596266;
    padding: 2px 1px;
}
.print #calendrier-affichage .calendar .days .day_num.event {
    color: white;
}
.print #calendrier-affichage button{
    display: none;
}
.print header,
.print footer,
.print #footer-admin,
.print #pdf-button,
.print .page-titre-text-container
{
    display: none;
}

.print .calendrier-info {
    font-size: 9px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 47%;
    padding-right: 3em;
    line-height: 1.1;
}
.print .page-titre{
    display: none;
}
.print h4.hidden{
    display: block !important;
    margin-bottom: .5em !important;
    font-size: 130% !important;
}
.print h4{
    padding-left: 0 !important;
}
.print #calendrier-saisie .legende.distance {
    margin-bottom: 12px;
}

button#rdv_add.g-agenda{
    padding:0;
    width: 3em;
    height: 3em;
    border-radius: 100%;
    font-size: 100%;
}
button#rdv_add i{
   padding-right: 0;
}
button#rdv_add.g-agenda i {
    color: rgb(29, 188, 29);
}


/* PHONE */

@media (max-width: 768px) {
    #calendrier-affichage {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 16px !important;
        position: relative;
    }
    #calendrier-affichage #calendrier-flex {
        flex-direction: column;
    }
    #calendrier-affichage #calendrier-saisie {
        width: 100%;
        font-size: 70%;
    }
    #calendrier-affichage #calendrier-saisie form{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: space-around;
        align-items: center;
    }
    #calendrier-affichage #calendrier-saisie form hr{
        display: none;
    }
    #calendrier-affichage #calendrier-saisie ul {
        margin-bottom: 0;
    }
    #calendrier-affichage .calendrier-affichage #calendrier{
        width: 100%;
        padding:0;
    }
    .calendrier-affichage .calendar {
        width: calc(100% / 2);
    }
}