
/* ------------------------------*/
/*          Restaurant           */
/* ------------------------------*/





/* -------- PAGE RESTAURANT -------- */

.restaurant{
  width: 100%;
  padding-bottom: 380px;
}

#calendar{
  width: 100%;
  height: 100%;
  margin: auto;
  margin-bottom: 680px;
}


.fc .fc-daygrid-day-frame {
  height: auto !important;
}

.fc-direction-ltr .fc-daygrid-event.fc-event-end, .fc-direction-rtl .fc-daygrid-event.fc-event-start{
  color: white;
  font-size: x-small;
    border: 1px solid gray;
}

.fc-event-time{
  display: none;
}

.fc-daygrid-dot-event .fc-event-title {
    font-weight: 100;
}

.fc-event-title {
  color: black;
  border-radius: 5px;
  padding: 7px !important;
  margin-top: 2px !important;

  white-space: pre-line;
  line-height: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #007f3147;
}

.fc .fc-scroller-harness-liquid {
    /* height: 360% !important; */
}

.fc .fc-scrollgrid-liquid {
    height: 230%;
}

.fc-button-primary{
  width: 80px;
}


/* ---- PAGE RESTAURANT CONTENT ---- */


/* --- RECAPITULATIF --- */


#recapitulatif{
}

#recapitulatif h3{
  margin: 5px 20px !important;
}

.recapitulatif_zone:first-child div{
  width: 28%;
  border: none;
}

.recapitulatif_zone:first-child div:nth-child(n+4){
  width: 19.7%;
  border: none;
}

.recapitulatif_zone:first-child .block_recap span b{
  font-size: 35px;
}

.recapitulatif_zone{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  justify-content: flex-start;
}

.block_recap{
  width: 115px;
  height: 95px;
  vertical-align: top;
  text-align: center;
  /* display: inline-block; */
  background: var(--couleur-de-fond);
  border-radius: 30px !important;
  padding: 20px !important;
  margin: 10px auto !important;
  margin: 10px 7px !important;
  border: 2px solid;
}

.block_recap span{
  display: block;
  font-size: 10px;
  cursor: default;
}

.block_recap span:first-child{
  font-size: 25px;
}

.block_recap span b{
  font-size: 30px;
}

.block_recap span:last-child{
  font-family: 'Poppins Black', sans-serif;
}



/* --- OPTION BAR --- */

#option_bar{
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

#option_bar div{
  width: 33%;
  height: 60px;
  display: inline-block;
  text-align: center;
}




/* --- TICKET --- */


#restaurant_content{
  display: flex;
  flex-wrap: wrap;
  margin: 20px 10px;
  justify-content: space-between;
}

.ticket:nth-child(3n) {
  page-break-after: always; /* CSS 2.1 syntax */
  break-after: always; /* CSS 3 syntax */
}

.ticket{
  width: 32%;
  position: relative;
  border: 2px solid white;
  margin-bottom: 25px;
  padding: 0px;
}

.ticket>div:nth-child(2),
.ticket>div:nth-child(4){
  height:10px;
  background: var(--couleur-de-fond-sec);
}


/* ------ BLOC 1 ------ */

/* INFOS 1 */

.ticket>div:nth-child(odd){
  padding: 15px 10px;
}

.ticket>div:nth-child(1){
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.ticket>div:nth-child(1) p{
  text-align: center;
  font-size: 15px;
  margin-bottom: 5px;
}

/* INFOS 1 */

.ticket>div:nth-child(1) .infos{
  text-align: center;
}

.ticket>div:nth-child(1) .infos span:first-child{
  /* margin-right: 30px; */
}

/* INFOS 2 */

.ticket>div:nth-child(1) .infos2{
  text-align: center;
}

.ticket>div:nth-child(1) .infos2 div{
  margin-top: 30px;
  margin-bottom: 20px;
}

.ticket>div:nth-child(1) .infos2 div span{
  border: 0px solid #813030;
  color: #813030;
  border-radius: 9px;
  padding: 7px;
}

.ticket>div:nth-child(1) .infos2 div:last-child span{
  border: 0px solid #484848;
  color: #484848;
}


/* ------ BLOC 2 ------ */

.ticket>div:nth-child(3){
}

.commande p{
  width: auto;
  background: var(--couleur-de-fond-sec);
  margin: 7px;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
}


/* ------ BLOC 3 ------ */

.ticket>div:nth-child(5){
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.ticket>div:nth-child(5) .validation{
  text-align: center;
}

.validation{
  /* display: flex; */
  flex-wrap: wrap;
  margin: 20px 10px;
  justify-content: space-between;
}

.validation p{
  font-family: 'Poppins Black', sans-serif;
  text-align: center;
  display: inline-block;
  font-size: 20px;
  margin-bottom: 0px;
}

.validation a{
  text-decoration: none;
}

.validation p:first-child{
  width: 100%;
  margin-top: 0px;
}

.validation p:not(:first-child){
  width: 20%;
}

.validation p:not(:first-child) a{
  font-size: 20px;
  margin: 0px 10px;
}

.block{
  border: 2px solid green;
}

.recuperer, .payer{
  position: absolute;
  top: -15px;
  padding: 15px;
  border-radius: 12px;
  font-size: small !important;
  background: #00800075;
  color: white;
}

.recuperer{
  right: -2px;
  border-top-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 0px;
}

.payer{
  left: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 10px;
}

.payer{
  left: -2px;
  border-top-left-radius: 10px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 10px;
  width: 100px;
}


/* ------------ RESTAURANT CONTENT POPUP ---------- */


#restaurant_popup{
  /* background-color: lightcoral; */
}

#restaurant_popup hr{
  margin: 30px 0px;
}

#commande_en_cours>div>p.titre {
  border: 2px solid;
  border-radius: 5px;
  padding: 7px;
  background-color: initial;
  margin: 15px 0px;
}

#commande_en_cours h3{
  margin-top: 0px;
}

#commande_en_cours>div>p{
  width: auto;
  background: var(--couleur-de-fond-sec);
  margin: 0px 7px 7px 0px;
  padding: 10px;
  border-radius: 5px;
  display: inline-block;
}

#commande_en_cours input[type="submit"],
#commande_ajout input[type="submit"]{
  color: var(--couleur-de-fond);
  background-color: var(--couleur-principale);
}

#commande_en_cours_input>div>input{
  border: 1px solid #ddd;
  width: 98%;
}

#commande_en_cours_input>div{
  width: 49%;
  display: inline-block;
  height: 100px;
  vertical-align: baseline;
  margin: 8px 0px;
}

#commande_button {
  text-align: right;
  position: fixed;
  width: auto;
  margin: 25px;
  padding: 20px;
  bottom: 0;
  right: 0;
  z-index: 50;
}

#commande_button h2{
  text-align: center;
}

.popup #complete{
    text-align: center;
    margin: 150px;
}

.popup #complete a.abutton{
    margin: 0px;
}


#commande_ajout table{
  border: 0px solid;
  font-size: 18px;
  font-family: 'Poppins Light';
}

#commande_ajout th:not(:first-child),
#commande_ajout td:not(:first-child){
  text-align: center;
  width: 180px;
}

.th_categorie:not(:first-child){
  background-color: red;
  padding-top: 70px;
}

.th_categorie{
  border-radius: 15px;
  border: 1px solid #273b4747;
  padding: 30px;
}


.visible_price{
  font-size: medium;
  display: grid;
  color: darkgray;
  display: inline-block;
}

#commande_ajout table{
  border-collapse: separate;
}

#commande_ajout table td{
  height: 70px;
  padding-left: 30px;
}

.table_pres{
  opacity: 0.5;
}

form:last-child{
  padding-bottom: 100px;
}




@media screen and (max-width: 1080px) {
  .validation p:first-child {
    width: 50px;
  }
}



@media screen and (max-width: 940px){
  .recapitulatif_zone:first-child div{
    width: 26%;
  }

  .block_recap {
    width: 26%;
  }
  .validation p:first-child {
    width: 100%;
    text-align:center;
  }
  .validation p:not(:first-child) {
    width: 20%;
    text-align:center;
  }
  /*
  #calendar{
    margin-bottom: 1100px;
  }

  .restaurant{
    padding-bottom: 490px;
  }
  */
}

@media screen and (max-width: 800px){
  #option_bar{
    margin-top: 0px;
  }

  #option_bar div{
    width: 49%;
    margin-top: 40px;
    text-align: center;
  }

  #option_bar div:first-child{
    width: 94%;
  }

  .search-input {
    padding: 10px 20px 10px 40px;
    width: 100%;
  }

  .fa-search {
    top: 57%;
    left: 15px;
  }

}

@media screen and (max-width: 700px){
  .block_recap {
    width: 10%;
    height: 120px;
  }
}


@media screen and (max-width: 600px){
  .titrage>div:first-child,
  .titrage>div:last-child{
    width: 100%;
    flex: none;
  }
  .titrage_restaurant>div:first-child{
    margin: 0px;
    margin-top: 20px;
  }
  .titrage_restaurant>div:last-child{
    margin: 0px;
    margin-bottom: 60px;
  }

  .recapitulatif_zone:first-child .block_recap span b,
  .block_recap span b {
    font-size: 20px;
  }

  .ticket div:nth-child(3){
    display: none;
  }





}


@media screen and (max-width: 570px){
  .block_recap {
    width: 20%;
  }
  .ticket {
    width: 48%;
  }
}

@media screen and (max-width: 500px){
  #option_bar div{
    width: 100% !important;
    margin-left: 0px !important;
  }
  .search-input {
    width: 90%;
  }
    .fa-search {
    top: 57%;
    left: 40px;
  }
}

@media screen and (max-width: 440px){
  .block_recap {
    width: 32%;
  }
  #calendar{
    margin-bottom: 1100px;
  }

  .restaurant{
    padding-bottom: 490px;
  }
}

@media screen and (max-width: 400px){
  .block_recap {
    width: 45%;
    flex: none;
  }
  .ticket {
    width: 100%;
  }
}

@media screen and (max-width: 340px){
  .block_recap {
    width: 90%;
  }
  .ticket {
    width: 100%;
  }
}
