/*order Fonts*/
@font-face {
  font-family: "nexa-black";
  src: url("../fonts/Nexa-Black.otf");
}
@font-face {
  font-family: "nexa-bold";
  src: url("../fonts/Nexa-Bold.otf");
}
@font-face {
  font-family: "nexa-regular";
  src: url("../fonts/Nexa-Regular.otf");
}

:root {
  --secondary-color: rgb(255, 81, 82);
  --primary-color: rgb(32, 14, 50);
  --background-color: rgb(244, 244, 244);
  --inactivity: rgb(102, 102, 102);
  --text-black-color: #000;
  --text-white-color: #fff;
}
.category {
  display: flex;
  color: var(--primary-color);
  padding-left: 4px;
font-size: 2.5vmin;
  justify-content: center;
}

.wrapper-button {
  display: flex;
  justify-content: space-between;
}

.wrapper-button.supll {
  display: flex;
  justify-content: center;
}

.haveto {
  color: var(--secondary-color);
}

.add-button {
  margin-left: 15px;
  display: flex;
  height: auto;
  background: var(--secondary-color);
  border: none;
  outline: none;
  border-radius: 5px;
  overflow: hidden;
  font-size: 2.5vmin;
  font-weight: 400;
  cursor: pointer;
}

.sup {
  text-align: center;
  display: flex;
  height: auto;
  background: var(--secondary-color);
  border: none;
  outline: none;
  border-radius: 5px;
  overflow: hidden;
  font-size: 2.5vmin;
  font-weight: 400;
  cursor: pointer;
}
.resp-sup {
  display: none;
  margin-right: 15px;
}

.add-button.second {
  margin-left: 25px;
  display: flex;
  height: auto;
  background: var(--primary-color);
  border: none;
  outline: none;
  border-radius: 5px;
  overflow: hidden;
  font-size: 2vmin;
  font-weight: 400;
  cursor: pointer;
}

.add-button:hover {
  background: var(--primary-color);
}
.add-button.second:hover {
  background: var(--secondary-color);
}
.add-button__text:hover,
.add-button__icon:hover {
  color: var(--text-white-color);
}

.add-button__text,
.add-button__icon {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  color: var(--text-white-color);
  height: 100%;
}

.add-button-2 {
  margin-left: 25px;
  display: flex;
  height: auto;
  background: var(--primary-color);
  border: none;
  outline: none;
  border-radius: 5px;
  overflow: hidden;
  font-size: 2vmin;
  font-weight: 400;
  cursor: pointer;
}

.add-button-2:hover {
  background: var(--secondary-color);
}

.add-button__icon {
  font-size: 1.5em;
}

#table-container,
.table-container,
#menu-container,
.menu-container,
#employees-container,
.membres-container,
#menu-jour-container {
  position: relative;
  width: 100%;
  height: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 10px;
}

.stocke-container,
.supplements-container,
.menu-items-container {
  position: relative;
  width: 100%;
  height: auto;
  /* padding: 20px;*/
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 10px;
}
.clicked-menu-item {
  width: 100%;
}
.clicked-employee {
  width: 100%;
  text-align: center;
}
#supplementItemsContainer,
.supplementItemsContainer,
#tasteItemsContainer,
.tasteItemsContainer {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 10px;
}
.table-container .card,
#table-container .card,
.membres-container .card {
  width: 220px;
  font-size: 2vmin;
  font-weight: 900;
  position: relative;
  padding: 50px 50px;
  border-radius: 20px;
  display: flex;
  flex-direction: column; /* Updated to column layout */
  align-items: center;
  justify-content: space-evenly;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px; /* Add margin to create space between cards */
}

#menu-container .card,
.menu-container .card,
#menu-jour-container .card {
  font-weight: 600;
  font-size: 3vmin;
  position: relative;

  border-radius: 20px;
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  width: 27vmin;
}

#employees-container .card {
  font-weight: 900;
  position: relative;
 
  border-radius: 20px;
  display: flex;
  padding: 15px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  width: 20%;
}
#supplementItemsContainer .card .price,
#tasteItemsContainer .card .price,
.menu-container .card .price,
#menu-container .card .price,
#menu-jour-container .card .price {
  font-size: 2.5vmin;
  text-align: center;
  color: var(--secondary-color);
}

#supplementItemsContainer .card .name,
#tasteItemsContainer .card .name,
.menu-container .card .name,
#menu-container .card .name,
#menu-jour-container .card .name {
  padding-left: 4px;
  font-size: 3vmin;
font-weight: 900;
  
  color: var(--primary-color);
}
#supplementItemsContainer .card,
#tasteItemsContainer .card {
  font-weight: 900;
  position: relative;
  padding: 40px 2px;
  background: var(--text-white-color);
  border-radius: 20px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column; /* Updated to column layout */
  align-items: center;
  justify-content: space-evenly;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px; /* Add margin to create space between cards */
}
.delete-table-icon {
  color: var(--secondary-color);
  font-size: 20px; /* Adjust size as needed */
  cursor: pointer;
  position: absolute; /* Absolute positioning */
  top: 10px; /* Adjust top position */
  right: 10px; /* Adjust right position */
}

.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px; /* Add margin between delete icon and toggle switch */
}

/* Add styles for the toggle switch (customize as needed) */
.toggle-switch input {
  height: 0;
  width: 0;
  visibility: hidden;
}

.toggle-switch label {
  cursor: pointer;
  text-indent: -9999px;
  width: 2.5vmax;
  height: 1.2vmax;
  background: #4bd763;
  display: block;
  border-radius: 25px;
  position: relative;
}

.toggle-switch label:after {
  content: "";
  position: absolute;
  top: 0.2vmax;
  left: 1.4vmax;
  width: 0.8vmax;
  height: 0.8vmax;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + label {
  background: var(
    --inactivity
  ); /* Toggle switch background color when checked */
}
.menu-item.inactive {
  background-color: var(--inactivity); /* Use your desired shade of grey */
}

.toggle-switch input:checked + label:after {
  left: calc(100% - 5px);
  transform: translateX(-250%);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  display: none;
  z-index: 999; /* Set a z-index higher than the popups */
}
.popup-form,
.popup-expense-form {
  font-size: 2vmin;
  background: var(--text-white-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-height: 90%;
  overflow-y: auto; /* Enable vertical scrolling */
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}


/* Style for the close button */
.close-modal-button {
  cursor: pointer;
  background: #f44336;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

/* Add some style for form elements (you can customize further) */
.popup-form label,
.popup-expense-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.popup-form input,
.popup-form textarea,
.popup-form select,
.popup-expense-form input,
.popup-expense-form textarea,
.popup-expense-form select {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.popup-expense-form input:first-child {
  width: 5%;
  padding: 8px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.popup-form .submit-buttons button:first-child {
  background: var(--primary-color);
  text-align: center;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.popup-form .submit-buttons button {
  background: var(--secondary-color);
  text-align: center;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 2vmin;
}
.popup-expense-form button {
  background: var(--primary-color);
  text-align: center;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.pourcentage {
  color: var(--secondary-color);
}

.toggle-icon,
.toggle-expand-icon {
  cursor: pointer;
  margin-left: 5px;
}

.popup-expense-form .ms-parent button {
  background: var(--text-white-color);
  text-align: center;
  color: black;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.display-stocke button {
  background: var(--primary-color);
  text-align: center;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.popup-form h3 {
  text-align: center;
}

.popup-form .submit-buttons {
  text-align: center;
}

.expense-buttons,
.add-expense-buttons {
  margin-top: 20px;
  text-align: center;
}

.expense-buttons button {
  padding: 0.5em;
  background-color: var(--text-white-color);
  border: none;
  font: inherit;
}
.expense-buttons button.active {
  background-color: var(--primary-color);
  color: var(--text-white-color);
  margin-left: -1px;
  position: relative;
  left: 3px;
  border-radius: 10px;
  box-shadow: 3px -3px 6px rgba(0, 0, 0, 0.71);
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary-color);
}
.clicked-supplement {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clicked-fund {
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.switch-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-switch,
.supplement-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin: 10px;
}

/* Styling for the slider of the toggle switch */
.menu-slider,
.supplement-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  border-radius: 20px;

  transition: 0.4s;
}
.menu-slider:before,
.supplement-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
  transform: translateX(20px);
}
.menu-switch.toggled .menu-slider:before,
.supplement-switch.toggled .supplement-slider:before {
  transform: translateX(0);
}
.menu-switch.toggled .menu-slider,
.supplement-switch.toggled .supplement-slider {
  background-color: var(--inactivity);
}

.menu-switch.toggled .menu-slider:before,
.supplement-switch.toggled .supplement-slider:before {
  background-color: white;
}

.card.menu-item.inactive {
  filter: grayscale(100%);
}

.card.supplement-item.inactive {
  filter: grayscale(100%);
}

.card.menu-item.closed {
  background-color: #f5efef;
}


.menu-item-info {
  padding-top: 10px;
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: space-evenly;
}
.menu-item-info > * {
  box-sizing: border-box; /* Optional: Include padding and border in the width */
}

.menu-item-info > :first-child {
  width: 60%;
}

.menu-item-info > :last-child {
  width: 40%;
}
.titles {
  font-size: 22px !important;
  font-family: "nexa-black";
  margin: 10px;
  text-align: center;
}

#editMenuItemPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.col-md-9,
.col-md-3 {
  overflow-y: auto; /* Add scrollbar for vertical overflow */
}
.supplements {
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  height: auto;
}
.supplements .card {
  font-size: 3vmin;
  font-weight: 900;
  position: relative;
  background: var(--text-white-color);
  padding: 10px 0px;
  border-radius: 20px;
  display: flex;
  flex-direction: column; /* Updated to column layout */
  align-items: center;
  justify-content: space-evenly;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
}

@media (max-width: 768px) {
  .resp-sup {
    display: flex;
  }
  .hide-sup { 
    display: none;
  }
}

@media (max-width: 480px) {
}

.price-inputs {
  display: flex;
  align-items: center;
}

.big-input {
  flex: 1;
  margin-right: 10px; /* Adjust spacing between inputs */
}

.small-input {
  flex: 0.2; /* Adjust width ratio of the smaller input */
}

.supplements .row {
  height: 100% !important;
}

.scrollable-div {
  overflow-y: auto;
  max-height: 300px; 
}

.row{
  height: 100%;
}
.row .emporter, .row .delivery {
  height: 50%;
}