.weekly-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.meal_Unit_hide {
  display: none;
}

.day-block {
  width: 100%;
  margin-bottom: 20px;
}
.isadraft {
  color: rebeccapurple;
}
.isameal {
  color: green;
}
.meal-item {
  background-color: #f9eedb1f;
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 25px;
  border: 0px solid #f8da9e3b;
  box-shadow: 3px 3px 5px #0000004a;
  margin-bottom: 15px;
}
.meal-item h2 {
  margin-top: 0;
  text-align: center;
  filter: drop-shadow(2px 2px 2px black) drop-shadow(-2px -2px 2px white)
    drop-shadow(1px 1px 0px #00000081);
  color: var(--mpm-secondary);
}
.meal-content {
  margin-bottom: 10px;
}

.meal-item h3 {
  margin-top: 0;
}

#content-meal {
  border-radius: 25px;
}
@media (min-width: 410px) {
  #content-meal {
    border-radius: 25px;
  }
}
#content-meal > .result {
  text-align: right;
  font-size: x-small;
}
#content-meal a,
#up-meal a {
  text-decoration: none;
  list-style: none;
}
@media (min-width: 410px) {
  #content-meal {
    border-radius: 25px;
  }
}
@media screen and (max-width: 750px) {
  #up-meal table,
  #content-meal table {
    min-width: 100px !important;
  }
  #up-meal th,
  #up-meal td,
  #content-meal th,
  #content-meal td {
    padding: 4px 10px !important;
    display: revert !important;
  }
  #up-meal th,
  #content-meal th {
    background-color: var(--mpm-color-background-dark-hightlight);
    color: var(--mpm-color-text-dark-hightlight);
  }
}
.inCard_false {
}
#up-meal tbody tr.inCard_true:nth-of-type(even),
#content-meal tbody tr.inCard_true:nth-of-type(even) {
  background-color: #c4ded4;
}
#up-meal tbody tr.inCard_true,
#content-meal tbody tr.inCard_true {
  text-decoration: line-through !important ;
  color: #a8bbc9 !important;
  background-color: #ccdfd8;
}
.edit-link {
  display: none;
}

#up-meal table,
#content-meal table {
  border-collapse: collapse;
  margin: 3px 0 6px;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  /*box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);*/
  width: 100%;
  background: #ffffff40;
}

#up-meal thead tr,
#content-meal thead tr {
  background-color: var(--mpm-color-background-dark-hightlight);
  color: var(--mpm-color-text-dark-hightlight);
  text-align: left;
}
#up-meal th,
#up-meal td,
#content-meal th,
#content-meal td {
  padding: 12px 15px;
}
#up-meal th,
#content-meal th {
  background-color: var(--mpm-color-background-dark-hightlight);
  color: var(--mpm-color-text-dark-hightlight);
}
#up-meal tbody tr,
#content-meal tbody tr {
  border-bottom: 1px solid #dddddd;
}

#up-meal tbody tr:nth-of-type(even),
#content-meal tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

#up-meal tbody tr:last-of-type,
#content-meal tbody tr:last-of-type {
  /*border-bottom: 2px solid var(--primary);*/
}
#content-meal #stockList-table td {
  padding: 0px;
}
#up-meal .MPM_upcomming_meals {
  background-color: #ffffff79;
  backdrop-filter: var(--blur-default);
  padding: 10px;
  margin: 0 0 5px 0;
  border-radius: 25px;
  border: 1px solid #ffffff3b;
  box-shadow: var(--box-shadow-default);
}
#up-meal .MPM_upcomming_meals li,
#up-meal .MPM_upcomming_meals li a {
  text-decoration: none;
  list-style: none;
}
#up-meal .MPM_upcomming_meals li.date {
  text-align: center;
  background: var(--mpm-background);
  border-radius: 10px;
  box-shadow: 3px 2px;

  margin-bottom: 11px;
}
#up-meal .MPM_upcomming_meals li.date,
#up-meal .MPM_upcomming_meals li.date a {
  font-size: x-large;
  color: var(--mpm-primary);
}
#up-meal .MPM_upcomming_meals li.meal_line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-start;
  align-items: stretch;
}
#up-meal .MPM_upcomming_meals li.meal_line .meal {
}
#up-meal .MPM_upcomming_meals li.meal_line .portion {
}

:root {
  --mpm-primary: #de8b26;
  --mpm-secondary: #c35c3a;
  --mpm-background: #f4e0bb;

  --mpm-color-white: #fff !important;
  --mpm-color-black: #111213 !important;
  --mpm-color-background-light: #f4e0bb !important;
  --mpm-color-background-light-hightlight: #71575b !important;
  --mpm-color-background-dark-hightlight: #693a29 !important;
  --mpm-color-background-dark: #71575b !important;
  --mpm-color-border-light: #6795b6 !important;
  --mpm-color-border-dark: #6795b6 !important;
  --mpm-color-text-light: #71575b !important;
  --mpm-color-text-light-hightlight: #f4e0bb !important;
  --mpm-color-text-dark: #f4e0bb !important;
  --mpm-color-text-dark-hightlight: #f4e0bb !important;
}

#Focus_frame_backgroup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000085;
  backdrop-filter: blur(3px);
  z-index: 1000;
}

#Focus_frame {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px 0 #222;
  height: 597px;
  left: 0;
  margin: 54px 0 0 194px;
  padding: 10px;
  position: fixed;
  top: 0px;
  width: 650px;
  z-index: 1000;
}

#Focus_frame.active,
#Focus_frame.active {
  display: block;
}

.ui-widget.ui-widget-content {
  z-index: 999999;
}

@media only screen and (max-width: 960px) {
  #Focus_frame {
    margin: 47px 0 0 42px;
  }
}

#taxinomy_picker_list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  border: solid 1px #00000021;
  background-color: #0098ff14;
  font-size: smaller;
  gap: 6px;
  height: 100%;
  margin: 0px;
  padding: 0px 3px;
  border-radius: 8px;
}
#taxinomy_picker_list li {
  border: 1px solid #00000021;
  height: 21px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin: 0px;
  border-radius: 8px;
  padding: 0px 3px;
}
#taxinomy_picker_list button {
  color: #b32d2e;
  border: none;
  background: transparent;
}

#Focus_frame.active {
  display: grid;
  grid-template-rows: 54px auto;
  grid-template-columns: auto 28px;
  gap: 3px;
  align-content: center;
  align-items: center;
}

#Focus_frame-close {
  grid-area: 1 / 2 / 2 / 3;
  z-index: 9;
  margin-right: 2px;
  right: 9px;
  position: relative;
}

#Focus_frame > h1 {
  color: white;
  background-color: #032c67c4;
  border-radius: 5px;
  display: block;
  grid-area: 1 / 1 / 2 / 2;
  margin: 0px -29px 0 0;
  padding: 18px;
}

#Focus_frame > div {
  display: block;
  grid-area: 2 / 1 / 3 / 3;
}
#Focus_frame > div {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: normal;
}
#Focus_frame > div > form {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: auto;
  align-self: auto;
  display: grid;
  grid-template-rows: 29px 29px auto;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 100%;
  height: 100%;
}

#Focus_frame > div > form > label {
  grid-area: 1/1/2/2;
  justify-self: end;
  align-content: center;
}
#taxinomy_picker {
  grid-area: 1/2/2/3;
}

#taxinomy_picker_list {
  grid-area: 2 / 1 / 3 / 3;
}

#Meallist_wrapper {
  grid-area: 3 / 1 / 4 / 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 30px auto 30px 30px;
  gap: 5px;
  overflow: auto;
  max-height: 100%;
  height: 456px;
}
#Meallist_processing {
  grid-column: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 4;
}

#Meallist {
  grid-column: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 2;
  align-self: self-start;
  background-color: #0098ff14;
  height: 100%;
  border: 1px solid #00000021;
  border-radius: 8px;
}

#Meallist_filter {
  grid-column-start: 2;
  grid-row-start: 1;
}

#Meallist_info {
  grid-column-start: 1;
  grid-row-start: 3;
  font-size: smaller;
}

#Meallist_paginate {
  grid-column-start: 2;
  grid-row-start: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-between;
  background-color: #0098ff14;
  border: 1px solid #00000021;
  border-radius: 8px;
  padding: 10px;
}
#Meallist_paginate > span {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

#Meallist > thead > tr > th {
  font-size: large;
  color: white;
  background-color: #032c67c4;
  border-radius: 5px;
}

@media screen and (max-width: 750px) {
  input[type="date"],
  input[type="datetime-local"],
  input[type="datetime"],
  input[type="email"],
  input[type="month"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="time"],
  input[type="url"],
  input[type="week"] {
    appearance: none;
    padding: 3px 10px;
    min-height: 30px;
  }

  #Focus_frame {
    height: 91%;
    margin: 53px 0 0 6px;
    width: 95%;
  }
  #Focus_frame.active {
    display: grid;
    grid-template-rows: 54px auto;
    grid-template-columns: auto 28px;
    gap: 3px;
    align-items: start;
    align-content: stretch;
  }
  #Focus_frame-close {
    grid-area: 1 / 2 / 2 / 3;
    z-index: 9;
    margin-right: 2px;
    right: 9px;
    position: relative;
    align-items: center;
    align-self: center;
  }
  #Focus_frame > div > form {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
    align-self: auto;
    display: grid;
    grid-template-rows: 29px 29px auto;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
    height: 100%;
    align-items: stretch;
    align-content: stretch;
    justify-items: stretch;
    justify-content: space-evenly;
  }
}
@media screen and (min-width: 850px) {
  .calandar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    grid-template-rows: auto repeat(1, 1fr);
    grid-auto-rows: 1fr;

    gap: 0px 0px;
  }
  .day-week-1 {
    grid-column: 7;
  }
  .day-week-2 {
    grid-column: 1;
  }
  .day-week-3 {
    grid-column: 2;
  }
  .day-week-4 {
    grid-column: 3;
  }
  .day-week-5 {
    grid-column: 4;
  }
  .day-week-6 {
    grid-column: 5;
  }
  .day-week-7 {
    grid-column: 6;
  }

  .calandar div.day {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 31px 1fr 31px;
    gap: 7px 0px;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    justify-items: center;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
  }
  .dayName {
    background-color: var(--mpm-color-background-dark-hightlight);
    color: var(--mpm-color-text-dark-hightlight);
    grid-row: 1;
    align-self: center;
    text-align: center;
  }
  .day-week-fulldate {
    display: none;
  }
}
@media screen and (max-width: 850px) {
  .dayName {
    display: none;
  }
  .calandar div.day div.date {
    grid-area: date;
    text-align: center;
    background-color: var(--mpm-color-background-dark-hightlight);
    color: var(--mpm-color-text-dark-hightlight);
    align-content: center;
    font-size: 2em;
    padding: 2px 2px 0px;
  }
  .calandar div.day ul.sortable-meals {
    grid-area: meals;
  }
  .calandar div.day i.add-mealV2 {
    grid-area: add;
    background-color: var(--mpm-color-background-dark-hightlight);
    color: var(--mpm-color-text-dark-hightlight);
    align-content: center;
    font-size: 2em;
    padding: 2px 2px 0px;
  }
  .calandar div.day {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "date add "
      "meals meals ";
    justify-content: space-evenly;
    min-height: 4em; 
    justify-items: stretch;
    align-content: center;
  }
}

.calandar div.day .sortable-meals {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
.calandar div.day.today {
  background-color: #fbc54613;
}
.calandar div.day .add-mealV2 {
}
.calandar div.day .meal-item {
  background-color: #f9eedb1f;
  backdrop-filter: blur(5px);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #e9c784a6;
  box-shadow: 2px 2px 1px #0000001c;
  margin-bottom: 15px;
}
.calandar div.day input {
  background: #fbc4462e;
  padding: 0 8px;
  line-height: 1;
  min-height: 5px;
  accent-color: #fbc446;
  border-color: #fbc446;
}
.calandar div.day .helper-meal {
  color: #fbc446;
}
.calandar div.day .remove-meal {
  color: #fb8846;
}
.calandar div.day .add-mealV2 {
  color: #4aaf06bd;
}
.calandar div.day > .day {
  grid-column: 1;
  align-self: center;
}
.calandar div.day li.meal-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-rows: 1fr auto;
  align-content: center;
  justify-items: stretch;
  justify-content: space-evenly;
  align-items: center;
  gap: 0px 8px;
}

.mealTitle {
  grid-column: 1 / span 3;
  text-align: center;
}
.calandar div.day .helper-meal {
  grid-column: 2;
  grid-row: 2;
}

.calandar div.day .remove-meal {
  grid-column: 3;
  grid-row: 2;
}
.calandar div.day input {
  grid-column: 1;
  grid-row: 2;
}
.calendarNav {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  gap: 5px;
}
.previousmonth {
  grid-column: 2;
}
.Month {
  grid-column: 3;
}
.nextmonth {
  grid-column: 4;
}
.calendar_wrap {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 5px;
}
.calendar_wrap form {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 5px;
}
