/**********************Calendrier*****************************/
#calendar{
    padding: 10px;
    height: calc(100vh - 75px);
    color: var(--textColor);
}

#calendar table{
    border-radius: 15px;
}

#calendar ::-webkit-scrollbar{
    background-color: transparent !important;
}

.fc .fc-non-business {
    background: var(--fc-non-business-color, var(--mainBackgroundLowOpacity));
}

.fc-toolbar-chunk{
    display: flex;
    align-items: center;
}

.fc .fc-toolbar-title {
    color: var(--mainColor);
    text-align: center;
    margin: 0 10px;
}

.fc-picker-button:before {
    font-family: 'Material Icons';
    content: "today";
    font-size: 23px;
}

.fc-settings-button:before {
    font-family: 'Material Icons';
    content: "settings";
    font-size: 23px;
}

.fc-print-button{
    background: #007eff !important;
    color: white !important;
    border-radius: 50px !important;
}

.fc-print-button:before {
    font-family: 'Material Icons';
    content: "download";
    font-size: 21px;
}

.fc-refreshCalendar-button:before {
    font-family: 'Material Icons';
    content: "refresh";
    font-size: 21px;
}

.fc-scrollgrid-section-header>td:nth-child(3) {
    border-top-right-radius: 15px;

}
.fc-scrollgrid-section-body>td:nth-child(1){
    border-bottom-left-radius: 15px;
}

.fc-scrollgrid-section-body>td:nth-child(3){
    border-bottom-right-radius: 15px;
}

.fc .fc-resource-timeline-divider {
    border: 0;
}

.fc .fc-button{
    border: none;
    color: #7e8299;
    height: 35px ;
    background: var(--mainBackground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: 0.3s;
    box-shadow: rgb(0 0 0 / 19%) 0px 1px 2px;
}

.fc .fc-button:hover{
    box-shadow: rgb(0 0 0 / 49%) 0px 1px 2px;
}

.fc .fc-button:focus, .fc .fc-button:focus, .fc .fc-button-primary:not(:disabled):active:focus, .fc .fc-button-primary:not(:disabled).fc-button-active:focus {
    box-shadow: none;
}

.fc .fc-button-primary:hover {
    border: none;
    color: var(--mainColor);
    height: 35px;
    background: var(--mainBackground);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.fc .fc-button-primary:disabled{
    cursor: pointer;
    opacity: 1;
}

.fc .fc-button-primary:not(:disabled):active, .fc .fc-button-primary:not(:disabled).fc-button-active{
    background-color: var(--fc-button-bg-color, #2C3E50);
}

.fc-event{
    font-size: 10px;     
}

.fc-timeline-event .fc-event-title {
    white-space: pre-wrap;
    padding: 0;
    overflow: unset;
    text-align: center;
}

.fc-timeline-event .fc-event-time, .fc-timeline-event .fc-event-title {
    padding: 0;
}

.fc-event-past{
    opacity: 0.5 !important;
    border: 1px dotted red !important;
    filter: grayscale(0.7);
}

.fc .fc-highlight {
    background: rgba(188,232,241,.5);
}

.fc-h-event .fc-event-main-frame {
    flex-wrap: wrap;
}

.fc-timeline-event .fc-event-title {
    overflow-wrap: break-word;
}

.fc-timeline-slot-lane{
    cursor: pointer;
}

.statusResource{
    color: gray;
    font-size: 15px;
}

/**********************PopUp Rdv*****************************/
.popUpRdv{
    display: none;
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 100000;
    backdrop-filter: blur(10px);
}

.closePopUp{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.closePopUp span{
    position: relative;
    top: 10px;
    right: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.4s;
}

.closePopUp span:hover{
    opacity: 1;
}

.popUpTitle{
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: var(--textColor);
}

.popUpDesc{
    text-align: center;
    margin-top: 20px;
}

.informationRdv{
    width: 90%;
    padding-bottom: 20px;
    margin: 10% auto;
    background: rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
    /* border: 2px solid gray; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deletedRdv{
    width: 80%; 
    padding: 10px 0; 
    text-align: center; 
    color: var(--mainColor); 
    border-top: 1px solid gray;
    margin-top: 5px
}

.popUpTime{
    text-align: center;
    margin-top: 50px;
}

.addTime{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.timeChanger{
    font-size: 17px;
    border: none;
    background: rgb(233, 235, 238);
    color: rgb(96, 129, 151);
    border-radius: 5px;
    padding: 5px 7px;
    cursor: pointer;
    margin: 10px;
}

.deleteRdv, .accueilRdv{
    text-align: center;
}

.accueilRdv{
    margin-top: 60px;
}

.choice{
    border-bottom: 1px solid lightgray;
    width: 30%;
    margin: auto;
}

.agreeBtn, .disagreeBtn{
    margin: 10px;
    font-size: 17px;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

.agreeBtn{
    border: 1px solid rgb(96, 151, 96);
    background: rgb(217, 233, 217);
    color: rgb(96, 151, 96);
}

.disagreeBtn{
    border: 1px solid var(--mainColor);
    color: var(--mainColor);
}

.btnAccueilRdv{
    font-size: 17px;
    border: 2px solid rgb(96, 151, 96);
    background: rgb(217, 233, 217);
    color: rgb(96, 151, 96);
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
}

.endRdv{
    display: none;
}

.btnEndRdv{
    font-size: 17px;
    border: 1px solid var(--mainColor);
    color: var(--mainColor);
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    margin-top: 20px;
}

.btnDeleteRdv{
    font-size: 17px;
    border: none;
    color: var(--aloesColor);
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    margin-top: 20px;
}

.btnDeleteRdv:hover, .btnAccueilRdv:hover{
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 18%);
}

/**********************Tableau Cient*****************************/
.pause{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btnPause{
    font-size: 17px;
    border: 1px solid var(--mainColor);
    color: var(--mainColor);
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    margin-bottom: 20px;
}

.selectClientBlock{
    display: none;
    position: absolute;
    width: 100vw;
    /* height: 100vh; */
    right: 0;
    top: 0;
    z-index: 100000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: brightness(70%) blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

input[type='search']{
    background: white !important;
    outline: none;
}

select[name='tableClient_length']{
    background: white !important;
}

.closeSelectClientBlock span{
    position: relative;
    top: 10px;
    left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.4s;
}

.closeSelectClientBlock span:hover{
    opacity: 1;
}

.pauseBlock{
    display: flex;
}

.pauseItemBlock{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 865px){
    .pauseItemBlock{
        flex-direction: row;
    }
}

.itemPause{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 40px;
    margin: 10px;
    border-radius: 10px;
    color: var(--mainColor);
    cursor: pointer;
    transition: 0.4s;
    background: var(--mainBackground);
    box-shadow: 0 4px 6px 0 rgb(32 33 36 / 28%);
}

.itemPause:hover{
    box-shadow: 0 4px 6px 0 rgb(32 33 36 / 40%);
}

.divOr{
    position: relative;
}

.divOr::before{
    content: '';
    position: absolute;
    height: 1px;
    width: 50px;
    background: var(--mainColor);
    left: -55px;
    top: 13px;
    opacity: 0.5;
}

.divOr::after{
    content: '';
    position: absolute;
    height: 1px;
    width: 50px;
    background: var(--mainColor);
    right: -55px;
    top: 13px;
    opacity: 0.5;
}

.selectClient{
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 95%;
    background: var(--contentBackground);
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
    border-radius: 5px;
    color: var(--mainColor);
    /* border: 2px solid grey; */
}

/* .selectClientOpen{
    animation: openClientBox 0.5s;
    animation-fill-mode: forwards;  
}

@keyframes openClientBox {
    from {
        height: 0%;
      }
      to {
        height: 95%;
      }
} */

#tableClient_filter{
    color: var(--mainColor);
}

#tableClient>thead{
    position: sticky;
    top: 0;
}

.titleClient{
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}

.dataTables_wrapper{
    padding: 10px;
}

.tableClient{
    padding: 10px 0;
}

.tableauClient{
    width: 100%;
    height: 90%;
    overflow-y: scroll;
    margin-right: 8px;
    overflow-x: hidden;
}

.tableauClient table { 
	width: 750px; 
	border-collapse: collapse; 
	margin:20px auto;
	}

.tableauClient tr{ 
	background: var(--contentBackground) !important; 
    cursor: pointer;
}

.tableauClient tr:nth-of-type(odd) { 
	background: var(--backgrounCalendar) !important; 
}

.tableauClient th { 
	background: var(--contentBackground);
	font-weight: bold; 
    cursor: default;
}

.tableauClient td, .tableauClient th { 
	padding: 10px; 
	border: 1px solid #ccc; 
	text-align: left; 
	font-size: 18px;
}

.dataTables_info{
    font-size: 15px;
}

.dataTables_paginate{
    font-size: 15px;
}

.dataTables_paginate>.next{
    display: none !important;
}

.dataTables_filter{
    position: relative;
}

.dataTables_length select {
    outline: none;
}

/**********************Selection Prestation*****************************/
.slideRight{
    animation: slideRight 0.5s;
    animation-fill-mode: forwards;  
}

@keyframes slideRight {
    from {
        width: 0%;
      }
      to {
        width: 75%;
      }
}

.slideRightBack{
    animation: slideRightBack 0.5s;
    animation-fill-mode: forwards;  
}

@keyframes slideRightBack {
    from {
        width: 75%;
    }
    to {
        width: 0%;
    }
}

.addRdvBlock{
    width: 0%;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100000;
    background: var(--mainBackground);
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    transition: 0.5s;
}

.rightPanel{
    display: none;
    color: var(--mainColor);
}

.closeRdvBlock span{
    position: relative;
    top: 10px;
    left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.4s;
}

.closeRdvBlock span:hover{
    opacity: 1;
}

.historique{
    text-align: center;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.btnHistorique{
    border: 1px solid var(--mainColor);
    color: var(--mainColor);
    background: var(--backgrounCalendar);
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btnHistorique span{
    font-size: 18px;
}

.actualCreneau{
    font-weight: bold;
    font-size: 17px;
}

.titleRdv{
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid lightgray;
    font-size: 25px;
    padding-top: 10px;
}

.client{
    text-align: center;
    font-size: 25px;
    margin-top: 10px;
}

.nomClient{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    cursor: pointer;
    background: var(--backgrounCalendar);
    margin: 0 10px;
    border-radius: 5px;
    padding: 10px;
}

.familleBlock{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    padding: 10px;
}

.famille{
    width: auto;
    height: 40px;
    align-items: center;
    background: #3788D8;
    border-radius: 3px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.famille:hover{
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
}

.famiTitle{
    width: 95%;
    height: 60px;
    margin: auto;
    max-height: 60%;
    align-items: center;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    cursor: pointer;
    transition: 0.5s;
}

.famiTitle:hover{
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
}

.reduceCalendar{
    animation: reduceCalendar 0.5s;
    animation-fill-mode: forwards;  
}

@keyframes reduceCalendar {
    from {
        width: 85%;
      }
      to {
        width: 70%;
      }
}

.reduceCalendarBack{
    animation: reduceCalendarBack 0.5s;
    animation-fill-mode: forwards;  
}

@keyframes reduceCalendarBack {
    from {
        width: 70%;
      }
      to {
        width: 85%;
      }
}

.prestationBlock{
    overflow-y: scroll;
}

.prestationFamille{
    display: none;
    flex-direction: column;
}

.prestation{
    width: 95%;
    height: 50px;
    margin: 3px auto;
    max-height: 60%;
    align-items: center;
    border-radius: 3px;
    border: 1px solid lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: 0.5s;
    opacity: 0.8;
}

.prestation:hover{
    opacity: 1;
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
}

.loaderBlock{
    width: 100vw;
    height: 100vh;
    z-index: 99;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: gray;
    opacity: 0.4;
}

.loader{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading {
    /* display: none; */
    border: 4px solid #f3f3f3; 
    border-top: 4px solid var(--mainColor);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.isDisp{
    display: flex;
}

.calendarPickerWrapper{
    display: none;
}

.calendarPicker{
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.containerCalendar{
    width: 100%;
    height: 300px;
    color: var(--mainColor);
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar{
    width: 300px;
    height: 300px;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;}

.month{
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    text-align: center;

}

.changeMonth{
    display: flex;
}

.month h1{
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    font-weight: bold;
}

.weekdays{
    width: 100%;
    height: 25px;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.weekdays div{
    font-size: 14px;
    font-weight: 900;
    width: calc(100% / 7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.days{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}

.days div{
    font-size: 12px;
    width: calc(280px / 7);
    height: calc(205px / 6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.days div:hover{
    background-color: var(--mainColor);
    color: white;
    border-radius: 5px; 
    opacity: 0.5;
}

.prev-date, .next-date{
    opacity: 0.5;
    cursor: not-allowed !important;
}

.today{
    background-color: var(--mainColor);
    color: white;
    border-radius: 5px;
}

.next, .prev{
    background: var(--backgrounCalendar);
    padding: 10px;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: gray;
    cursor: pointer;
    transition: 0.4s;
}

.next:hover, .prev:hover{
    color: var(--mainColor);
}

.prev{
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.prev:before {
    font-family: 'Material Icons';
    content: "arrow_back_ios";
    font-size: 17px;
    cursor: pointer;
}

.next:before {
    font-family: 'Material Icons';
    content: "arrow_forward_ios";
    font-size: 17px;
    cursor: pointer;
}

.next{
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;  
}


/************************************** SETTINGS *********************************************/
.settingsBlock{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: brightness(70%) blur(10px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

.settings-container{
    width: 50vw;
    min-height: 30vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--contentBackground);
    color: var(--textColor);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.closeSettings{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: 0.4s;
    opacity: 0.7;
}

.closeSettings{
    opacity: 1;
}

.settings-container h1{
    padding-bottom: 20px;
    border-bottom: 1px solid lightgray;
}

.list-settings{
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.item-setting{
    width: 60%;
    padding: 5px 20px;
    border-radius: 5px;
    background: var(--backgrounCalendar);
    box-shadow: rgba(65, 65, 65, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.switch-theme{
    display: flex;
    align-items: center;
    gap: 20px; 
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
  
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
  
.light_mode{
    color: #ccc;
}

.dark_mode{
    color: #2C3E50;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2C3E50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2C3E50;
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}




@media (min-width:768px){

    #calendar{
        padding: 10px;
        height: 100vh;
    }
    
    .informationRdv{
        width: 60%;
        margin-top: 10%;
        margin-left: 20%;
    }

    @keyframes slideRight {
        from {
            width: 0%;
          }
          to {
            width: 25%;
          }
    }
    
    @keyframes slideRightBack {
        from {
            width: 25%;
        }
        to {
            width: 0%;
        }
    }

    .familleBlock{
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 10px;
        padding: 10px;
    }

    .famille{
        width: auto;
        height: 3.5vw;
        align-items: center;
        background: #3788D8;
        border-radius: 3px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1vw;
        transition: 0.3s;
    }  
   
}
