selectedcontent {
  opacity: 0.5;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  height: 100dvh;
  min-height: 100dvh;
  width: 100%;
  padding: 2rem;
  overflow-y: auto;
  box-sizing: border-box;
  place-content: center;
  place-items: center;
  align-content: center;
  justify-items: center;
  grid-template-areas: "modal";
  display: none;
}

.admin-modal[data-modal] {
  display: grid;
}

.admin-modal__layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  pointer-events: none;
  user-select: none;
}

/* confirm modal & deleted modal*/
.admin-modal__confirm,
.admin-modal__deleted,
.admin-modal__order-details {
  grid-area: modal;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  justify-self: center;
  align-self: center;
  margin: auto;
  gap: 2rem;
  position: relative;
  background: #191919;
  border-radius: 3rem;
  border: 0.668px solid #ffffff10;
  padding: min(9rem, 9vh) min(8rem, 8vh);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

/* clients report modal */
.admin-modal__report {
  grid-area: modal;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  justify-self: center;
  align-self: center;
  margin: auto;
  gap: 2rem;
  position: relative;
  background: #191919;
  border-radius: 3rem;
  border: 0.668px solid #ffffff10;
  padding: min(8rem, 8vh) min(6rem, 6vh) min(6rem, 6vh);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

/* Make labels visible specifically inside report-generation modals only */
.admin-modal__report .bowl-form .bowl-form__label,
.admin-modal__new-report .bowl-form .bowl-form__label,
.admin-modal__report .bowl-form .bowl-form__label {
  /* keep default hidden for all labels inside report modals */
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

/* Only show From/To labels inside report modals */
.admin-modal__new-report .bowl-form .bowl-form__label.is--from,
.admin-modal__new-report .bowl-form .bowl-form__label.is--to,
.admin-modal__report .bowl-form .bowl-form__label.is--from,
.admin-modal__report .bowl-form .bowl-form__label.is--to {
  position: relative !important;
  opacity: 0.5 !important;
  visibility: visible !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
}

/* Make select text color slightly transparent inside report modals */
.admin-modal__new-report .bowl-form select.bowl-form__input,
.admin-modal__report .bowl-form select.bowl-form__input {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* No special hiding of native dropdown for report_type so it matches client-type */

/* Truncate Choices dropdown items to one line with ellipsis */
.choices__list--dropdown .choices__item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

/* Truncate selected items inside the choices inner */
.choices__inner .choices__item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-modal[data-modal="delete"] .admin-modal__confirm,
.admin-modal[data-modal="deleted"] .admin-modal__deleted,
.admin-modal[data-modal="edit"] .admin-modal__edit,
.admin-modal[data-modal="add-new-report"] .admin-modal__new-report,
.admin-modal[data-modal="order-details"] .admin-modal__order-details {
  opacity: 1;
  visibility: visible;
}

/* show report modal when data-modal="report" */
.admin-modal[data-modal="report"] .admin-modal__report {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .admin-modal {
    padding: 1.2rem;
  }

  .admin-modal__confirm,
  .admin-modal__deleted,
  .admin-modal__order-details,
  .admin-modal__edit,
  .admin-modal__new-report {
    width: 100%;
    max-width: 96vw;
    padding: 2.6rem 2.2rem;
    border-radius: 2rem;
    /* allow modal content to scroll on small viewports */
    max-height: calc(100dvh - 3.2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.admin-modal__close {
  position: absolute;
  width: 2rem;
  height: 2rem;
  top: 4rem;
  right: 4rem;
  cursor: pointer;
}

/* Ensure close icon is clickable above other modal content */
.admin-modal__close {
  pointer-events: auto;
  z-index: 30;
  width: 2rem !important;
  height: 2rem !important;
}

.admin-modal__confirm .admin-modal__warning {
  width: 12rem;
  height: auto;
  object-fit: contain;
  margin-bottom: min(5rem, 5vh);
}

.admin-modal__deleted .admin-modal__deleted-img {
  width: 15rem;
  height: 15rem;
  object-fit: contain;
  margin-bottom: min(2rem, 2vh);
}

.admin-modal__deleted .admin-modal__deleted-img.is--error {
  width: 12rem;
  height: 12rem;
}

.admin-modal__h2 {
  text-align: center;
  font-size: 6rem;
  font-weight: 500;
  line-height: 1;
  width: 69rem;
}

.admin-modal__new-report .admin-modal__h2 {
  text-align: left;
}

.admin-modal__p {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 2.3rem;
  font-weight: 400;
  line-height: normal;
}

.admin-modal__confirm .admin-modal__p {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 2.3rem;
  font-weight: 400;
  line-height: normal;
  width: 55%;
}

/* When title and paragraph contain different messages, make paragraph responsive */
.admin-modal__deleted.is--different .admin-modal__p {
  font-size: clamp(10px, 1.8rem, 25px);
}

.admin-modal__confirm .cta-button,
.admin-modal__deleted .cta-button,
.admin-modal__edit .cta-button,
.admin-modal__new-report .cta-button {
  width: 31.5rem;
  position: relative;
}

.admin-modal__confirm .cta-button__inner,
.admin-modal__deleted .cta-button__inner,
.admin-modal__edit .cta-button__inner,
.admin-modal__new-report .cta-button__inner {
  display: flex;
}

.admin-modal__confirm .cta-button__text,
.admin-modal__deleted .cta-button__text,
.admin-modal__edit .cta-button__text,
.admin-modal__new-report .cta-button__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* edit client modal  */
.admin-modal__edit,
.admin-modal__new-report {
  grid-area: modal;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  align-self: center;
  margin: auto;
  gap: 2rem;
  position: relative;
  background: #191919;
  border-radius: 3rem;
  border: 0.668px solid #ffffff10;
  padding: min(8rem, 8vh) min(6rem, 6vh) min(6rem, 6vh);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}

.admin-modal__edit .admin-modal__h2 {
  text-align: left;
}

/* tabs */
.admin-modal__tabs {
  display: flex;
  gap: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-modal__tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Satoshi", sans-serif;
  font-size: max(1.4rem, 12px);
  font-weight: 500;
  padding: 1.2rem 2rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.admin-modal__tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.admin-modal__tab.is--active {
  color: #fff;
  border-bottom-color: #f4783e;
}

.admin-modal__edit button:focus-visible,
.admin-modal__edit input:focus-visible,
.admin-modal__edit textarea:focus-visible,
.admin-modal__edit select:focus-visible,
.admin-modal__edit .choices__inner:focus-visible {
  outline: 2px solid #f4783e;
  outline-offset: 2px;
}

.admin-modal__shipping-tab {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.7rem 2rem;
  align-items: start;
}

.admin-modal__shipping-tab .admin-modal__shipping-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.7rem 2rem;
  grid-column: 1 / -1;
}

.admin-modal__shipping-tab .bowl-form__input[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* form  */
.bowl-form {
  display: grid;
  align-items: center;
  width: 100%;
  gap: 1.7rem 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.bowl-form .bowl-form__field {
  position: relative;
}
.bowl-form__error {
  position: absolute;
  bottom: -2rem;
  left: 0;
  font-size: 1.2rem;
  color: #ff4d4d;
  font-weight: 500;
}
.bowl-form .bowl-form__field.is--clients,
.bowl-form .bowl-form__field.is--type,
.bowl-form .bowl-form__field.is--client-type {
  grid-column: 1 / span 2;
}

.bowl-form .bowl-form__field.is--from,
.bowl-form .bowl-form__field.is--to {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.bowl-form .bowl-form__field.is--address {
  grid-column: 1 / span 2;
}

/* Allergies multiselect gets its own full-width row (no field beside it). */
.bowl-form .bowl-form__field.is--allergies {
  grid-column: 1 / span 2;
}

.bowl-form .bowl-form__label {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

.bowl-form__input.is--created:valid ~ .bowl-form__label.is--created {
  display: none;
}

.bowl-form .bowl-form__label.is--created {
  opacity: 1;
  visibility: visible;
  position: absolute;
  inset: 0;
  padding: 1.7rem 2.5rem;
  background: #272626;
  opacity: 1 !important;
  z-index: 1;
  width: 70%;
  border-radius: 10rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  pointer-events: none;
  color: #ffffff79;
}

.bowl-form__label.is--from,
.bowl-form__label.is--to {
  position: relative;
  opacity: 0.5;
  visibility: visible;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.bowl-form__input::placeholder,
.bowl-form__input.bowl-form__input--select::placeholder,
.meals-form__input.meals-form__input--select::placeholder,
.meals-form__input.meals-form__input::placeholder {
  color: #fff;
  opacity: 0.5;
}

.bowl-form .bowl-form__input,
.bowl-form .bowl-form__input.bowl-form__input--select,
.ingredients-form__input.ingredients-form__input--select,
.meals-form__input.meals-form__input--select,
.meals-form__input.meals-form__input--textarea,
.meals-form__input.meals-form__input:not(.is--meal-name),
.choices__inner,
.ingredients-form__input.is--price,
.ingredients-form__input.is--carbs,
.ingredients-form__input.is--protein,
.ingredients-form__input.is--calories {
  padding: 1.7rem 2.5rem !important;
  background: #292929 !important;
  border-radius: 10rem !important;
  color: #fff !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  width: 100% !important;
  appearance: base-select !important;
  display: flex !important;
  align-items: center;
  border: none !important;
  min-height: auto !important;
}

/* Chrome/WebKit autofill paints its own light-blue background that CSS
   `background` can't override. The inset box-shadow paints over it so the
   autofilled inputs keep the dark form theme. */
.bowl-form .bowl-form__input:-webkit-autofill,
.bowl-form .bowl-form__input:-webkit-autofill:hover,
.bowl-form .bowl-form__input:-webkit-autofill:focus,
.bowl-form .bowl-form__input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #292929 inset !important;
  box-shadow: 0 0 0 1000px #292929 inset !important;
  caret-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

/* Shared status modal layout helpers */
.admin-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.admin-modal .admin-modal__status-select {
  width: auto;
  min-width: 20rem;
}
.admin-modal__edit.is--orders {
  width: min(110rem, calc(100vw - 4rem));
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  align-items: stretch;
}
.admin-modal__edit.is--orders .admin-modal__h2 {
  width: 100%;
  max-width: 100%;
  text-align: left;
}
.admin-order-editor {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-order-editor__intro {
  color: rgba(255, 255, 255, 0.68);
  font-size: 2rem;
  text-align: left;
  width: 100%;
}
.admin-order-editor__note,
.admin-order-editor__readonly,
.admin-order-editor__empty,
.admin-order-editor__loading {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2rem;
  padding: 1.6rem 1.8rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.6rem;
  line-height: 1.5;
}
.admin-order-editor__grid,
.admin-order-editor__layout,
.admin-order-editor__date-grid,
.admin-order-editor__selected-controls {
  display: grid;
  gap: 1.6rem;
}
.admin-order-editor__grid,
.admin-order-editor__layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-order-editor__grid {
  grid-template-columns: minmax(0, 1fr);
}
.admin-order-editor__date-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-order-editor__date-option {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.admin-order-editor__date-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.admin-order-editor__date-option-copy {
  width: 100%;
  min-width: 0;
  padding: 1.5rem 1.8rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #292929;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.5rem;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.admin-order-editor__date-option-input:checked + .admin-order-editor__date-option-copy {
  border-color: rgba(92, 203, 255, 0.65);
  background: rgba(92, 203, 255, 0.14);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(92, 203, 255, 0.24) inset;
}
.admin-order-editor__date-option:hover .admin-order-editor__date-option-copy {
  border-color: rgba(255, 255, 255, 0.16);
}
.admin-order-editor__section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem;
  border-radius: 2.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-order-editor__section-title,
.admin-order-editor__field-label {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
}
.admin-order-editor__section-copy,
.admin-order-editor__item-meta {
  color: rgba(255, 255, 255, 0.56);
  font-size: 1.45rem;
  line-height: 1.45;
}
.admin-order-editor__inline-error {
  margin: -0.2rem 0 0;
  color: #ff9f9f;
  font-size: 1.3rem;
  line-height: 1.4;
}
.admin-order-editor__notice {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(92, 203, 255, 0.24);
  background: rgba(92, 203, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.4rem;
  line-height: 1.45;
}
.admin-order-editor__notice[hidden] {
  display: none;
}
.admin-order-editor__notice.is--warning {
  border-color: rgba(255, 184, 77, 0.3);
  background: rgba(255, 184, 77, 0.12);
}
.admin-order-editor__notice.is--success {
  border-color: rgba(109, 230, 160, 0.28);
  background: rgba(109, 230, 160, 0.1);
}
.admin-order-editor__notice-copy {
  min-width: 0;
}
.admin-order-editor__notice-action {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-order-editor__notice-action:hover {
  opacity: 0.86;
}
.admin-order-editor__inline-error[hidden] {
  display: none;
}
.admin-order-editor__search,
.admin-order-editor__select,
.admin-order-editor__date-input {
  width: 100%;
  min-width: 0;
  padding: 1.5rem 2rem !important;
  border-radius: 1.6rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #292929 !important;
  color: #fff !important;
  font-size: 1.6rem !important;
}
.admin-order-editor__select:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.admin-order-editor__search::-webkit-search-cancel-button {
  filter: invert(1);
}
.admin-order-editor__results,
.admin-order-editor__selected {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-order-editor__results-title {
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0.8rem 0 0.2rem;
}
.admin-order-editor__result,
.admin-order-editor__selected-item {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto;
  align-items: start;
  justify-items: start;
  gap: 1.2rem;
  width: 100%;
  padding: 1.4rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-order-editor__selected-item {
  grid-template-columns: 7.2rem minmax(0, 1fr);
}
.admin-order-editor__selected-item.is--highlight {
  animation: admin-order-editor-highlight 1.2s ease;
}
.admin-order-editor__thumb {
  width: 7.2rem;
  height: 7.2rem;
  object-fit: cover;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
}
.admin-order-editor__result-content,
.admin-order-editor__selected-content,
.admin-order-editor__selected-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.admin-order-editor__item-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
.admin-order-editor__result-actions {
  width: auto;
  min-width: max-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: nowrap;
  gap: 0.8rem;
  padding: 0.2rem 0;
}
.admin-order-editor__result-actions .admin-order-editor__control-group {
  width: auto;
  flex: 0 0 auto;
}
.admin-order-editor__result-actions .admin-order-editor__add {
  width: auto;
  min-width: 9rem;
}
.admin-order-editor__control-group.is--result-variant {
  width: 100%;
  margin-top: 0.4rem;
}
.admin-order-editor__control-group.is--result-variant .admin-order-editor__select {
  width: min(100%, 20rem);
}
.admin-order-editor__control-group {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.admin-order-editor__control-label {
  display: none;
}
.admin-order-editor__selected-controls {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-items: start;
  gap: 1.2rem;
}
.admin-order-editor__control-group.is--qty {
  flex: 0 0 auto;
}
.admin-order-editor__control-group.is--variant,
.admin-order-editor__control-group.is--day {
  flex: 1 1 18rem;
}
.admin-order-editor__control-group.is--action {
  flex: 0 0 auto;
  margin-left: auto;
}
.admin-order-editor__control-group.is--variant .admin-order-editor__select,
.admin-order-editor__control-group.is--day .admin-order-editor__select {
  min-width: 16rem;
}
.admin-order-editor__control-group.is--day .admin-order-editor__select {
  max-width: 100%;
  padding-right: 4.8rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-order-editor__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.admin-order-editor__qty-btn,
.admin-order-editor__add,
.admin-order-editor__duplicate,
.admin-order-editor__remove {
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.admin-order-editor__qty-btn:hover,
.admin-order-editor__add:hover,
.admin-order-editor__duplicate:hover,
.admin-order-editor__remove:hover {
  opacity: 0.86;
}
.admin-order-editor__add:disabled,
.admin-order-editor__duplicate:disabled,
.admin-order-editor__remove:disabled,
.admin-order-editor__qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.admin-order-editor__qty-btn {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
}
.admin-order-editor__qty-value {
  min-width: 2.2rem;
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
}
.admin-order-editor__add,
.admin-order-editor__duplicate,
.admin-order-editor__remove {
  width: 100%;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}
.admin-order-editor__add {
  background: linear-gradient(135deg, rgba(92, 203, 255, 0.55), rgba(92, 203, 255, 0.25));
}
.admin-order-editor__duplicate {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.4), rgba(255, 184, 77, 0.2));
}
.admin-order-editor__remove {
  background: linear-gradient(135deg, rgba(244, 62, 62, 0.38), rgba(244, 62, 62, 0.2));
}
.admin-order-editor__actions {
  width: 100%;
  margin-top: 0.4rem;
}

@keyframes admin-order-editor-highlight {
  0% {
    border-color: rgba(109, 230, 160, 0.78);
    box-shadow: 0 0 0 1px rgba(109, 230, 160, 0.32) inset;
    background: linear-gradient(180deg, rgba(109, 230, 160, 0.18), rgba(255, 255, 255, 0.04));
  }
  100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  }
}

@media (max-width: 768px) {
  .admin-order-editor__grid,
  .admin-order-editor__layout,
  .admin-order-editor__date-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-editor__result,
  .admin-order-editor__selected-item {
    grid-template-columns: 1fr;
  }

  .admin-order-editor__result-actions,
  .admin-order-editor__selected-controls {
    width: 100%;
  }

  .admin-order-editor__result-actions {
    justify-content: flex-end;
  }

  .admin-order-editor__control-group.is--action {
    margin-left: 0;
  }

  .admin-order-editor__thumb {
    width: 100%;
    height: 18rem;
  }
}
.choices__list--single {
  padding: 0 !important;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.choices[data-type*="select-one"] .choices__input,
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  font-size: 2rem;
}
.choices__list--dropdown,
.choices__list[aria-expanded],
.choices[data-type*="select-one"] .choices__input {
  background: #292929 !important;
  border-radius: 2rem !important;
  border: none !important;
  padding: 2rem;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #3f3f3f39 !important;
}

.bowl-form__input[type="date"] {
  opacity: 0.5;
  background: #353333 !important;
}

::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translate(0%, -50%);
}

.meals-form__input.meals-form__input--textarea {
  height: 14rem;
  resize: none;
  background: transparent;
  border-radius: 0;
  border-radius: 0 !important;
}

.meals-form__field.meals-form__field.is--description {
  position: relative;
  border-radius: 2rem;
  background: #292929;
  overflow: hidden;
}

.meals-form__input.meals-form__input--textarea::placeholder {
  color: #fff;
  opacity: 0.5;
}

.ingredients-form__input.ingredients-form__input--select,
.meals-form__input.meals-form__input--select {
  position: relative;
  line-height: 1.2 !important;
}

.bowl-form__chevron,
.ingredients-form__chevron,
.meals-form__chevron {
  position: absolute;
  top: 50%;
  right: 2rem;
  width: 2rem;
  height: 2rem;
  transform: translate(0%, -50%);
  pointer-events: none;
  user-select: none;
}

select::picker(select) {
  border-radius: 2rem;
  appearance: base-select;
  margin-block: 0.5rem;
  padding: 1.5rem;
  background: #292929;
  border: none;
  max-height: 20rem;
  overflow: auto;
}

select::picker(select)::-webkit-scrollbar {
  display: none;
}

select::picker(select)::-webkit-scrollbar-thumb {
  /* background: red; */
  /* border-radius: 0.5rem; */
}

.bowl-form__input.bowl-form__input--select option,
.ingredients-form__input.ingredients-form__input--select option,
.meals-form__input.meals-form__input--select option {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 0.9;
  padding: 1rem;
  background: #292929;
  cursor: pointer;
  appearance: base-select;
  border-radius: 0.5rem;
  padding: 1rem;
}

.bowl-form__input.bowl-form__input--select::picker:open {
}

.bowl-form__input.bowl-form__input--select option::hover {
}

.bowl-form__input.bowl-form__input--select option:checked,
.ingredients-form__input.ingredients-form__input--select option:checked,
.meals-form__input.meals-form__input--select option:checked {
  background: #3f3f3f39;
}

.bowl-form__input.bowl-form__input--select::picker-icon,
.ingredients-form__input.ingredients-form__input--select::picker-icon,
.meals-form__input.meals-form__input--select::picker-icon {
  display: none;
}

.bowl-form__input.bowl-form__input--select option::checkmark,
.ingredients-form__input.ingredients-form__input--select option::checkmark,
.meals-form__input.meals-form__input--select option::checkmark {
  display: none;
}

.bowl-form .cta-button {
  grid-column: 1 / span 2;
  justify-self: end;
  margin-top: min(3.5rem, 3.5vh);
}

/* Ingredients form modal   */
.admin-modal__edit.is--ingredients {
  padding: min(10rem, 10vh) min(6rem, 6vh) min(6rem, 6vh);
}

.admin-modal[data-modal="add-new-ingredient"] .admin-modal__edit.is--ingredients,
.admin-modal[data-modal="add-new-meal"] .admin-modal__edit.is--meals {
  opacity: 1;
  visibility: visible;
}

/* community images modal mapping */
.admin-modal[data-modal="add-new-community-image"] .admin-modal__edit.is--community {
  opacity: 1;
  visibility: visible;
}

.admin-modal__edit.is--ingredients .ingredients-form,
.admin-modal__edit.is--meals .meals-form {
  display: flex;
  gap: 4.5rem;
}

.admin-modal__edit.is--community .community-form {
  display: flex;
  gap: 4.5rem;
}

.admin-modal__edit.is--ingredients .ingredients-form__left,
.admin-modal__edit.is--meals .meals-form__left {
  width: 31rem;
  height: fit-content;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ingredients-form__upload,
.meals-form__upload {
  padding: 2rem 4rem;
  border-radius: 2rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  cursor: pointer;
  position: relative;
}

.admin-modal__edit.is--ingredients .ingredients-form__upload input[type="file"],
.admin-modal__edit.is--meals .meals-form__upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
}

#preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #191919;
  border-radius: 2rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  display: none;
}

#preview.is--active {
  display: flex;
}

#preview > div {
  position: absolute;
  inset: 0;
}

#preview img {
  object-fit: contain;
  transform: scale(0.9);
}

#preview button {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  pointer-events: all;
}

.ingredients-form__left .ingredients-form__h4,
.meals-form__left .meals-form__h4 {
  text-align: center;
  font-size: clamp(8px, 2rem, 30px);
  font-weight: 500;
  line-height: 1;
}

.ingredients-form__left .ingredients-form__drop,
.meals-form__left .meals-form__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ingredients-form__left .ingredients-form__drop img,
.meals-form__left .meals-form__drop img {
  width: 8rem;
  height: 8.5rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.ingredients-form__left .ingredients-form__drop-text,
.ingredients-form__left .ingredients-form__p,
.meals-form__left .meals-form__drop-text,
.meals-form__left .meals-form__p {
  text-align: center;
  font-size: clamp(8px, 1.6rem, 30px);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  opacity: 0.5;
  white-space: nowrap;
}

.admin-modal__edit.is--ingredients .ingredients-form__field.is--ingredient-name {
  position: relative;
  margin-bottom: 2rem;
}

.admin-modal__edit.is--meals .meals-form__field.is--meal-name {
  position: relative;
}

.admin-modal__edit.is--ingredients .ingredients-form__label.is--ingredient-name,
.admin-modal__edit.is--meals .meals-form__label.is--meal-name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(20px, 4rem, 50px);
  font-weight: 500;
  line-height: 1;
  text-transform: capitalize;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
}

.admin-modal__edit.is--ingredients .ingredients-form__label.is--ingredient-name svg,
.admin-modal__edit.is--meals .meals-form__label.is--meal-name svg {
  width: 1.8rem;
  height: 1.8rem;
  opacity: 0.2;
  margin-top: 1rem;
}

.admin-modal__edit.is--ingredients .ingredients-form__input.is--ingredient-name,
.admin-modal__edit.is--meals .meals-form__input.is--meal-name {
  font-size: clamp(20px, 4rem, 50px);
  font-weight: 500;
  line-height: 1;
  text-transform: capitalize;
}

.admin-modal__edit.is--meals .meals-form__input.is--meal-name {
  font-size: clamp(15px, 3rem, 40px);
}

.ingredients-form__field .ingredients-form__input:not(:placeholder-shown) + .ingredients-form__label,
.meals-form__field .meals-form__input:not(:placeholder-shown) + .meals-form__label {
  opacity: 0;
  visibility: hidden;
}

.admin-modal__edit.is--ingredients .ingredients-form__label.is--category,
.ingredients-form__label.is--price,
.ingredients-form__label.is--carbs,
.ingredients-form__label.is--protein,
.ingredients-form__label.is--calories,
.ingredients-form__label.is--goals,
.admin-modal__edit.is--meals .meals-form__label.is--category,
.admin-modal__edit.is--meals .meals-form__label.is--goals {
  color: #fff;
  font-size: clamp(8px, 2rem, 30px);
  font-style: normal;
  font-weight: 500;
  opacity: 0.5;
}

.ingredients-form__fields-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ingredients-form__fields-group-nutrition {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.ingredients-form__field.is--cost,
.ingredients-form__field.is--carbs,
.ingredients-form__field.is--protein,
.ingredients-form__field.is--calories {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.admin-modal__edit.is--meals .meals-form__label.is--category,
.admin-modal__edit.is--meals .meals-form__label.is--description {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

.ingredients-form__field.is--category,
.ingredients-form__field.is--goals,
.meals-form__field.is--category,
.meals-form__field.is--goals {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.admin-modal__edit.is--meals .meals-form__field.is--category {
  margin-bottom: 0;
}

.admin-modal__edit.is--ingredients .ingredients-form__input.ingredients-form__input--select.is--goals,
.admin-modal__edit.is--meals .meals-form__input.meals-form__input--select.is--goals {
  display: block !important;
  min-height: 12rem !important;
  padding: 1rem !important;
  border-radius: 0.4rem !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  appearance: auto !important;
  overflow: auto;
}

.ingredients-form__input.is--goals option,
.meals-form__input.is--goals option {
  white-space: normal;
}

.admin-modal__edit.is--ingredients .ingredients-form__right,
.admin-modal__edit.is--meals .meals-form__right {
  display: flex;
  flex-direction: column;
  padding-block: 1rem;
  width: 50rem;
}

.admin-modal__edit.is--meals .meals-form__right {
  gap: 1.5rem;
}

.admin-modal__edit.is--ingredients .ingredients-form__right .cta-button,
.admin-modal__edit.is--meals .meals-form__right .cta-button {
  margin-left: auto;
}

.admin-modal__edit.is--meals .meals-form__right .cta-button {
  margin-top: 1.5rem;
  width: 31.5rem;
}

.meals-form__field.is--calories,
.meals-form__field.is--carbs,
.meals-form__field.is--protein {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.meals-form__field .meals-form__label {
  font-size: clamp(8px, 2rem, 30px);
  font-weight: 500;
  line-height: 1;
  opacity: 0.5;
}

.meals-form__field.is--calories .meals-form__label,
.meals-form__field.is--carbs .meals-form__label,
.meals-form__field.is--protein .meals-form__label {
  width: 4rem;
}

@media (orientation: portrait) {
  .admin-modal {
    align-items: center;
    align-content: center;
    justify-items: center;
    place-items: center;
  }

  .admin-modal[data-modal] {
    display: grid;
  }

  .admin-modal__layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    pointer-events: none;
    user-select: none;
  }

  /* confirm modal & deleted modal*/
  .admin-modal__confirm,
  .admin-modal__deleted {
    gap: 1.5rem;
    border-radius: 2rem;
    padding: min(5rem, 5vh) 1.5rem;
    width: 40rem;
    margin-inline: auto;
  }

  .admin-modal__close {
    width: 1.5rem;
    height: 1.5rem;
    top: 2rem;
    right: 2rem;
  }

  .admin-modal__confirm .admin-modal__warning {
    width: 8rem;
    margin-bottom: 2rem;
  }

  .admin-modal__deleted .admin-modal__deleted-img {
    width: 10rem;
    height: 10rem;
    margin-bottom: 2rem;
  }

  .admin-modal__h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    width: 80%;
  }

  .admin-modal__new-report .admin-modal__h2 {
    width: 100%;
  }

  .admin-modal__edit .admin-modal__h2 {
    width: 100%;
  }

  .admin-modal__confirm .admin-modal__p {
    font-size: 1.5rem;
    width: 80%;
  }

  .admin-modal__confirm .cta-button,
  .admin-modal__deleted .cta-button,
  .admin-modal__edit .cta-button {
    width: 31.5rem;
    position: relative;
  }

  .admin-modal__confirm .cta-button__inner,
  .admin-modal__deleted .cta-button__inner,
  .admin-modal__edit .cta-button__inner {
    display: flex;
  }

  .admin-modal__confirm .cta-button__text,
  .admin-modal__deleted .cta-button__text,
  .admin-modal__edit .cta-button__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* edit client modal  */
  .admin-modal__edit,
  .admin-modal__new-report {
    gap: 1rem;
    border-radius: 2rem;
    padding: min(5rem, 5vh) 1.5rem;
    width: 40rem;
    margin-inline: auto;
  }

  .bowl-form .bowl-form__field.is--clients,
  .bowl-form .bowl-form__field.is--type {
    grid-column: 1;
  }

  .bowl-form .bowl-form__field.is--from,
  .bowl-form .bowl-form__field.is--to {
    gap: 1rem;
  }

  .bowl-form__label.is--from,
  .bowl-form__label.is--to {
    font-size: 1.5rem;
    width: 4rem;
  }

  .admin-modal__edit.is--meals {
    padding: min(5rem, 5vh) 1.5rem 2rem;
  }

  .admin-modal__edit .admin-modal__h2 {
    text-align: left;
  }

  /* form  */
  .bowl-form {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .bowl-form .bowl-form__field.is--address {
    grid-column: 1;
  }

  .bowl-form .bowl-form__input,
  .bowl-form .bowl-form__input.bowl-form__input--select,
  .ingredients-form__input.ingredients-form__input--select,
  .meals-form__input.meals-form__input--select,
  .meals-form__input.meals-form__input--textarea,
  .meals-form__input.meals-form__input:not(.is--meal-name) {
    padding: 1.2rem 1.5rem;
    border-radius: 8rem;
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .meals-form__input.meals-form__input--textarea {
    padding: 1.7rem !important;
  }

  .meals-form__input.meals-form__input--textarea {
    height: 10rem;
  }

  .meals-form__field.meals-form__field.is--description {
    position: relative;
    border-radius: 1.5rem;
    background: #292929;
    overflow: hidden;
  }

  .bowl-form__chevron,
  .ingredients-form__chevron,
  .meals-form__chevron {
    right: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  select::picker(select) {
    border-radius: 1.5rem;
    padding: 1rem;
  }

  .bowl-form__input.bowl-form__input--select option,
  .ingredients-form__input.ingredients-form__input--select option,
  .meals-form__input.meals-form__input--select option {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .bowl-form .cta-button {
    grid-column: 1;
    margin-top: 2rem;
    margin-inline: auto;
  }

  /* Ingredients form modal   */
  .admin-modal__edit.is--ingredients {
    padding: min(5rem, 5vh) 1.5rem;
  }

  .admin-modal[data-modal="add-new-ingredient"] .admin-modal__edit.is--ingredients,
  .admin-modal[data-modal="add-new-meal"] .admin-modal__edit.is--meals {
    opacity: 1;
    visibility: visible;
  }

  .admin-modal__edit.is--ingredients .ingredients-form,
  .admin-modal__edit.is--meals .meals-form {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__left,
  .admin-modal__edit.is--meals .meals-form__left {
    width: min(100%, 31rem);
    gap: 2rem;
  }

  .ingredients-form__upload,
  .meals-form__upload {
    width: 100%;
    padding-inline: 1.5rem;
  }

  .ingredients-form__left .ingredients-form__h4,
  .meals-form__left .meals-form__h4 {
    font-size: 1.5rem;
  }

  .ingredients-form__left .ingredients-form__drop img,
  .meals-form__left .meals-form__drop img {
    width: 4rem;
    height: 4.5rem;
  }

  .ingredients-form__left .ingredients-form__drop-text,
  .ingredients-form__left .ingredients-form__p,
  .meals-form__left .meals-form__drop-text,
  .meals-form__left .meals-form__p {
    font-size: 1.2rem;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__field.is--ingredient-name {
    position: relative;
    margin-bottom: 2rem;
  }

  .admin-modal__edit.is--meals .meals-form__field.is--meal-name {
    position: relative;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__label.is--ingredient-name,
  .admin-modal__edit.is--meals .meals-form__label.is--meal-name {
    gap: 0.5rem;
    font-size: 2rem;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__label.is--ingredient-name svg,
  .admin-modal__edit.is--meals .meals-form__label.is--meal-name svg {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.5rem;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__input.is--ingredient-name,
  .admin-modal__edit.is--meals .meals-form__input.is--meal-name {
    font-size: 2rem;
  }

  .admin-modal__edit.is--meals .meals-form__input.is--meal-name {
    font-size: 2rem;
  }

  .ingredients-form__field .ingredients-form__input:not(:placeholder-shown) + .ingredients-form__label,
  .meals-form__field .meals-form__input:not(:placeholder-shown) + .meals-form__label {
    opacity: 0;
    visibility: hidden;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__label.is--category,
  .admin-modal__edit.is--meals .meals-form__label.is--category {
    font-size: 1.5rem;
  }

  .admin-modal__edit.is--meals .meals-form__label.is--category,
  .admin-modal__edit.is--meals .meals-form__label.is--description {
    position: absolute;
    opacity: 0;
    visibility: hidden;
  }

  .ingredients-form__field.is--category,
  .ingredients-form__field.is--goals,
  .meals-form__field.is--goals,
  .meals-form__field.is--category {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
  }

  .admin-modal__edit.is--meals .meals-form__field.is--category {
    margin-bottom: 0;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__right,
  .admin-modal__edit.is--meals .meals-form__right {
    width: 100%;
  }

  .admin-modal__edit.is--meals .meals-form__right {
    gap: 1rem;
  }

  .admin-modal__edit.is--ingredients .ingredients-form__right .cta-button,
  .admin-modal__edit.is--meals .meals-form__right .cta-button {
    margin-left: auto;
  }

  .admin-modal__edit.is--meals .meals-form__right .cta-button {
    margin-top: 1.5rem;
    width: 31.5rem;
    margin-inline: auto;
  }

  .meals-form__field.is--calories,
  .meals-form__field.is--carbs,
  .meals-form__field.is--protein {
    display: flex;
    align-items: center;
    gap: 5rem;
  }

  .meals-form__field .meals-form__label {
    font-size: 1.5rem;
  }

  .meals-form__field.is--calories .meals-form__label,
  .meals-form__field.is--carbs .meals-form__label,
  .meals-form__field.is--protein .meals-form__label {
    width: 7rem;
  }

  .bowl-form .bowl-form__label.is--created {
    padding: 1.2rem 1.5rem;
    border-radius: 8rem;
    font-size: 1.5rem;
    line-height: 1.1;
  }

  input[type="date"]::-webkit-inner-spin-button,
  input[type="date"]::-webkit-calendar-picker-indicator {
    right: 1rem;
  }
}
@media screen and (max-width: 991px) {
  .choices__inner .choices__item {
    font-size: 1.6rem;
  }
  .choices__inner {
    padding: 0.7rem 5rem 0.7rem 2.5rem !important;
  }
}

/* Mobile fixes: ingredients fields alignment and equal heights */
@media (max-width: 768px) {
  .ingredients-form__fields-group,
  .ingredients-form__fields-group-nutrition {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .ingredients-form__fields-group .ingredients-form__field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
    width: 100%;
  }

  /* Make inputs visually consistent height on mobile */
  .ingredients-form__fields-group .bowl-form__input,
  .ingredients-form__fields-group input,
  .ingredients-form__fields-group select,
  .ingredients-form__fields-group .choices__inner {
    min-height: 4.6rem !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}
