/********************* Common **********************/
:root {
  /*
  --bg-white:#FEFFFF;
  --bg-page:#DEF2F1;
  --bg-header:#3AAFA9;
  --bg-button:#2B7A78;
  --bg-dark:#17252A; -> not used
  */
  --bg-white:#FFFFFF;
  --bg-page: #F5F5F5;
  --bg-button: linear-gradient(to bottom right, #3F88CB, #53B5BB);
  --bg-header: #3F88CB;

  --footer-btn-width: 5.5rem;
  --portrait-width: 800px; /*var() not working for media queries, if you change this, change the other 800 & 801 also*/
  --landscape-width: 1280px;
}
body {
  --bg-button: linear-gradient(to bottom right, #3F88CB, #53B5BB);
}
body.offline {
  --bg-button: linear-gradient(to bottom right, chocolate, crimson);
}
body.local {
  --bg-button: linear-gradient(to bottom right, green, darkgreen);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: lato, sans-serif;
  font-size: 16px;
  background-color: var(--bg-white);
}
#svgDefs {
  display: none;
}
.center {
  text-align: center;
}
select {
  font-size: 1rem;
  border: 2px solid;
  border-image: var(--bg-button);
  border-image-slice: 1;
}
.page {
  max-width: var(--portrait-width);
  padding: 0 0.2rem;
}
.page-wide {
  max-width: var(--landscape-width);
}
.page-wide2 {
  max-width: 1600px;
}
.page-full {
  width: 100vw;
  padding: 0;
}
.page, .page-wide, .page-wide2, .page-full {
  background-color: var(--bg-page);
  margin: 0 auto;
  min-height: 100vh;

  position: relative;
  display: none;
  box-sizing: border-box;
}

.pageContent {
  width: 100%;
  min-height: 100vh;
  margin-bottom: -4rem;
  position: relative;
  box-sizing: border-box;
}
.pageContentWithFooter2 {
  width: 100%;
  min-height: calc(100vh - 8rem);
  margin-bottom: -4rem;
  position: relative;
  box-sizing: border-box;
}

.footer,
.push {
  height: 4rem;
}
.after-push {
  margin-top: 4rem; /*same as push*/
}
.after-push > button {
  margin: 0.2rem 0.2rem 0.2rem 0.6rem;
}
.footer {
  position: relative;
}
.footer button {
  position: absolute;
  top:0.5rem;
}

.footer button,
.sticky-title-w-buttons button,
button.colored {
  height: 2rem;
  width: var(--footer-btn-width);
  border-radius: 8px;
  background-image: var(--bg-button);
  color: var(--bg-white);
  border: none;
  outline: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}


.footer button:disabled,
.sticky-title-w-buttons button:disabled,
button.colored:disabled {
  opacity:0.5;
  color: black;
}
@media (hover: hover) and (pointer: fine) {
  .footer button:hover:enabled,
  .sticky-title-w-buttons button:hover:enabled,
  button.colored:enabled {
    background-image: var(--bg-button);
  }
}

@media screen and (min-width: 768px) {
  .footer button.left {
    left: 2rem;
  }
  .footer button.right {
    right: 2rem;
  }
}
@media screen and (min-width: 376px) and (max-width: 767px) {
  .footer button.left {
    left: 1rem;
  }
  .footer button.right {
    right: 1rem;
  }
}
@media screen and (max-width: 375px) {
  .footer button.left {
    left: 0.5rem;
  }
  .footer button.right {
    right: 0.5rem;
  }
}

@media screen and (max-width: 450px) {
  .bigDev {
    display: none;
  }

  table.menuItemsTbl span.status,
  #kitchenTbl span.status,
  #monitoringPage span.status {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0.3rem;
    border: 1px solid black;
  }

  table.menuItemsTbl th:nth-child(n+4),
  table.menuItemsTbl td:nth-child(n+4) {
    width: 1rem !important;
  }
}
@media screen and (min-width: 451px) {
  .smallDev {
    display: none;
  }

  table.menuItemsTbl span.status,
  #kitchenTbl span.status,
  #monitoringPage span.status {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.7rem;
    border: 2px solid black;
  }
}

.footer button.center {
  left: calc(50% - var(--footer-btn-width)/2);
}

.ta-right {
  text-align: right !important;
}
.ta-left {
  text-align: left !important;
}
.ta-center {
  text-align: center !important;
}
.editButton {
  border: 3px solid;
  border-image: var(--bg-button);
  border-image-slice: 1;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  background-color: white;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #575757;
}

.sticky-title-w-buttons {
  display: flex;
  align-content: stretch;
  align-items: center;
  position: sticky;
  top:0;
  background-color: var(--bg-page);
}
.sticky-title-w-buttons h1 {
  flex: 10 10 20rem;
}
.sticky-title-w-buttons button {
  flex: 1 1 calc(var(--footer-btn-width) + 2rem);
}

/********************* App Menu **********************/

#appMenuPage {
  background-color: rgba(0,0,0,0.8);
  position: absolute;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
}

#appMenuPageAlign {
  max-width: var(--portrait-width);
  height: 100%;
  margin: auto;
  position: relative;
}

#appMenuPage nav {
  width: 220px;
  position: absolute;
  top: 3.5rem;
  left: 1rem;
  background-color: var(--bg-white);
  color: black;
}
#appMenuPage nav div {
  padding: 0.3rem 1rem;
  line-height: 1.3rem;
  cursor: pointer;
}
#appMenuPage nav div:hover {
  background: var(--bg-header);
  color: var(--bg-white);
}

.restoapp-about {
  width: 500px;
}

/********************* Login Page **********************/
#loginPage {
  padding-top: 20vh;
}
#loginPage h1 {
  margin-bottom: 10vh;
}
#loginPage p {
  text-align: center;
}
#lgnErrorTxt {
  text-align: center;
  color: red;
}

/********************* Alternate user Page **********************/
#alterUserPage .pageContent {
  padding-top: 20vh;
}
#alterUserPage h3 {
  text-align: center;
  margin-bottom: 10vh
}
#alterUserPage p {
  text-align: center;
}
#alterErrorTxt {
  text-align: center;
  color: red;
}
/********************* Main Page **********************/

#mainPage .pageContent {
  padding-top: 4.5rem; /* compensate for the header*/
}

.orderBoxContainer {
  display: flex;
}
.orderBoxContainer .orderBox:nth-child(1) {
  flex: 3 3 auto;
}
.orderBoxContainer .orderBox:nth-child(2) {
  flex: 2 2 12rem; /* was auto */
}

#mainPage .orderBox {
  margin: 1rem 0;
}
#mainPage .orderRight {
  background: var(--bg-white);
  position: relative;
}

#selOrderBell {
  position: absolute;
  right: 0;
  bottom: 0;
}
#selOrderBell svg {
  width: 20px;
  fill:lightgray;
}
.beeping svg  {
  fill:red !important;
}

/*** header ***/
.mpHeader {
  position: absolute;
  top:0;
  left:-0.2rem; /*pading of the page*/
  width: calc(100% + 0.4rem);/*pading of the page*/
  height: 3.2rem;
  padding-top: 1rem;
  text-align: center;
  background: var(--bg-header);
  box-shadow: 0 -3px 2px -2px rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0
      rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.offline .mpHeader {
  background:coral;
}
.local .mpHeader {
  background:green;
}
.msgInHdr {
  position: absolute;
  top: 0;
  left:0;
  right:0;
  text-align: center;
  color: white;
  margin: 0;
  font-size: 0.8rem;
}

.menuBtn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: var(--bg-white);

  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}
.menuBtn img {
  width: 100%;
  height: 100%;
}
.queueStatus {
  position: absolute;
  top:3.1rem;
  left:1rem;
  font-size: 0.8rem;
  color:white;
  width: 2rem;
  text-align: center;
}

#addBtn {
  width: 2rem;
  height: 2rem;

  font-size: 1.3rem;
  line-height: 1.8rem;
  padding: 0;

  position: absolute;
  top: 1rem;
  right: 1rem;
}

#openOrders {
  height: 2rem;
  width: calc(100% - 8rem);
}

.serverName {
  height: 1rem;
  width: 100%;
  position: absolute;
  bottom: 0;

  font-size: 0.8rem;
  color: white;
}

/*** order body ***/
.selOrderDet {
  font-size: 1rem;
  font-weight: bold;
  padding: 0;
  /*margin: 0.2rem 1rem;*/
  text-align: center;
}
.selOrderId {
  padding: 0;
  margin: 1.5rem 0 0.5rem 0;
  text-align: right;
}
.dietaryHdr {
  font-weight: bold;
}
.dietary {
  font-weight: normal;
  font-style: italic;
  font-size: 14px;
  color: red;
}

/*** menu items ***/
table.menuItemsTbl {
  width: 100%;
  border-collapse: collapse;
}

table.menuItemsTbl tr {
  background-color: var(--bg-white);
}

table.menuItemsTbl tr.ordr-edt-mode {
  background-color: lightsteelblue;
}
table.menuItemsTbl tr.ordr-edt-mode-empty {
  background-color: darkgray;
}


table.menuItemsTbl th,
table.menuItemsTbl td {
  padding: 0.4rem; /*0.2rem 0.4rem*/
}
table.menuItemsTbl tr {
  border-bottom: 0.5px solid rgba(151,151,151,0.2);
}

table.menuItemsTbl th:first-child,
table.menuItemsTbl td:first-child {
  text-align: left;
}

@media screen and (min-width: 801px) {
  table.menuItemsTbl th:nth-child(2) select {
    max-width: 11.8rem;
  }
}
@media screen and (max-width: 800px) {
  table.menuItemsTbl th:nth-child(2) select {
    max-width: calc(100vw - 13rem);
  }
}


table.menuItemsTbl th:nth-child(1),
table.menuItemsTbl td:nth-child(1) {
  width: 1.2rem;
}
table.menuItemsTbl td:nth-child(1) {
  font-size: 0.8rem;
}
table.menuItemsTbl thead th:nth-child(2) {
  text-align: left;
}
table.menuItemsTbl th:nth-child(n+4),
table.menuItemsTbl td:nth-child(n+4) {
  width: 3rem;
  text-align: right;
}
table.menuItemsTbl th:nth-child(5),
table.menuItemsTbl td:nth-child(5) {
  text-align: center;
}

table.menuItemsTbl td:nth-child(4) input {
  width: 2rem;
  text-align: right;
}
table.menuItemsTbl td:nth-child(5) input {
  width: 3rem;
  text-align: right;
}
table.menuItemsTbl th:nth-child(3),
table.menuItemsTbl th:nth-child(7),
table.menuItemsTbl td:nth-child(3),
table.menuItemsTbl td:nth-child(7) {
  width: 2rem;
}
table.menuItemsTbl td:nth-child(7) {
  padding: 0.2rem 0.4rem 0 0;
}

#sendToKitchenRow {
  background-color: transparent;
  border-bottom: none;
}
#sendToKitchenRow td {
  text-align: center;
  position: relative;
}

#sendToKitchenRow td button {
  position: relative;
  top: -1.4rem;
  width: var(--footer-btn-width);
  height: 2rem;
  border-radius: 8px;
  background-image: var(--bg-button);
  color: var(--bg-white);
  border: none;
  outline: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cmnt {
  font-size: 0.7rem;
  color: darkslateblue;
}
.small3 {
  width: 3rem;
  text-align: right;
}
/********************* Kitchen Page **********************/

#placesFilter {
  height: 2rem;
}

.kitchenContent {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}

.kitchenContent table {
  width: calc(100% - 1rem);
  border-collapse: separate;
  border-spacing: 0;
  position: relative;
  margin: 1rem 0.5rem;
}

.kitchenContent table td {
  text-align: center;
  padding: 0.5rem;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}
.kitchenContent table th {
  position: sticky;
  top: 0;
  background-color: lightcyan;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}
.kitchenContent table td.left-border,
.kitchenContent table th:first-child {
  border-left: 1px solid black;
}
.kitchenContent table button {
  width: 5rem;
  height: 1.6rem;
  border: 2px solid black;
  border-radius: 6px;
}

.status-N {
  background-color: red;
}
.status-P {
  background-color: /*goldenrod*/#f0dc40;
}
.status-R {
  background-color: yellowgreen;
}
.status-D {
  /*background-color: lightcyan;*/
  background-color: white;
}

.speed-H {
  background-color: blue;
}
.speed-G {
  background-color: white;
}

.kitchenContent table tr.odd {
  background-color: lightgrey;
}
/*we start from even (index:0) */
.kitchenContent table tr.even {
  background-color: white;
}

.blink {
  animation: blinker 2s linear infinite;
}

@keyframes blinker {  
  50% { background-color: red; }
}

/********************* New Table/Order Page **********************/

.page h1 {
  text-align: center;
  padding: 1rem;
  margin: 0;
  font-size: 1.2rem;
}

.ntGrid {
  display: grid;
  grid-template-columns: 10em auto;
  align-items: baseline;
  margin: 1rem;
}

.ntGrid > span {
  padding: 0.7em 0;
}
.ntGrid > select {
  height: 2em;
  width: 100%;
}
.ntGrid > input {
  height: 1.5em;
}

#ntNameSelect {
  display: none;
}

#ntWarning {
  margin: 1rem;
  color: red;
  text-align: center;
}
/********************* Main menu Page **********************/
#mainMenuGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem; /*was: 2rem 3rem;*/
  margin: 1rem 2rem 0 2rem; /*margin-top was 4rem*/
}

#mainMenuGrid button {
  min-height: 4rem;
  border-image: var(--bg-button);
  border-image-slice: 1;
  border-radius: 8px;
  box-shadow: 0 -3px 2px -2px rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0
      rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  background: var(--bg-white);
  letter-spacing: 0.5px;
  color: #575757;
}

/********************* Menu Page **********************/

table.menuPageItemsTbl {
  width: 100%;
  border-collapse: collapse;
}
table.menuPageItemsTbl,
table.menuPageItemsTbl tr,
table.menuPageItemsTbl th,
table.menuPageItemsTbl td {
  /*border: 1px solid grey;*/
  background: var(--bg-white);
}

table.menuPageItemsTbl,
table.menuPageItemsTbl tr.menuHighlight,
table.menuPageItemsTbl tr.menuHighlight th,
table.menuPageItemsTbl tr.menuHighlight td {
  background: var(--bg-page);
}

table.menuPageItemsTbl th,
table.menuPageItemsTbl td {
  padding: 0.2rem 0.4rem;
}

table.menuPageItemsTbl th:first-child,
table.menuPageItemsTbl td:first-child {
  text-align: left;
}

table.menuPageItemsTbl th:not(:first-child),
table.menuPageItemsTbl td:not(:first-child) {
  /*max-width: 1.5rem;*/
  text-align: right;
}

table.menuPageItemsTbl th:nth-child(3) input,
table.menuPageItemsTbl td:nth-child(3) input {
  width: 3rem;
  line-height: 1.2rem; /*2rem*/
  font-size: 1rem; /*1.5rem*/
  border-image: var(--bg-button);
  border-image-slice: 1;
}

/********************* Pay Page **********************/
#payPage h2 {
  padding: 0 0.4rem;
}

#payPageTbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  /*
  position: absolute;
  top: 10%;*/
}

#payPageTbl th,
#payPageTbl td {
  padding: 0.4rem;
}
#payPageTbl td button {
  width: 4rem;
  height: 1.8rem;
  border-image: var(--bg-button);
  border-image-slice: 1;
  background: var(--bg-white);
  color: #575757;
  font-size: 0.8rem;
}

#payPageTbl input {
  width: 4rem;
  height: 1.4rem;
  text-align: right;
  border-image: var(--bg-button);
  border-image-slice: 1;
  background: var(--bg-page);
}
.pdr {
    padding-right: 1rem;
}

#payPageTbl th:last-child,
#payPageTbl td:last-child {
  color: #575757;
}

#payWarning {
  margin: 1rem;
  color: red;
  text-align: center;
}

/********************* Edit menu items page **********************/
#editMenuFilter {
  vertical-align: middle;
}
#editMenuPage h2 button {
  vertical-align: text-top;
}
/*
#editMenuPage table {
  width: 100%;
  border-collapse: collapse;
}

#editMenuPage table,
#editMenuPage table tr,
#editMenuPage table th,
#editMenuPage table td {
  border: 1px solid grey;
}*/

.edit-menu-item {
  width: 100%;
  display: flex;
  align-content: stretch;
  align-items: center;
}
.edit-menu-header {
  font-weight: bold;
  align-items: flex-end;
  position: relative;
  /*min-height: 7rem;*/
}

.edit-menu-item > :first-child {
  flex: 0 0 1.7rem;
  text-align: right;
}
.edit-menu-item > :nth-child(2) {
  flex: 1 0 10rem;
}
.edit-menu-item > :nth-child(3) {
  flex: 0 0 4rem;
}
.edit-menu-item > :nth-child(4) {
  flex: 0 0 3rem;
}
.edit-menu-item > :nth-child(5) {
  flex: 0 0 2rem;
}
.edit-menu-item > :nth-child(6) {
  flex: 0 0 3rem;
}
.edit-menu-item > :nth-child(7),
.edit-menu-item > :nth-child(8) {
  flex: 0 0 5rem;
}
.edit-menu-item > :nth-child(9) {
  flex: 0 0 5.5rem;
}
.edit-menu-item > :nth-child(10) {
  flex: 0 0 2rem;
}
.edit-menu-item input {
  width: 0;
}
.edit-menu-item * {
  margin: 0.2rem 0.3rem;
}
.page-wide h1,
.page-wide2 h1 {
  text-align: center;
  margin: 0;
  padding-top: 2rem;
}
#editMenuPage h1.extra-padding {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.edit-menu-item > :nth-child(3),
.edit-menu-item > :nth-child(4) {
  text-align: right;
}
.edit-menu-item > :nth-child(5),
.edit-menu-item > :nth-child(6),
.edit-menu-item > :nth-child(9),
.edit-menu-item > :nth-child(10)  {
  text-align: center;
}
.edit-menu-item > :nth-child(n+11) {
  flex: 0 0 3.5rem; /* was: 2.8rem, but it is too little*/
  text-align: right;
}
.edit-menu-item span:nth-child(n+11) {
  padding: 4px;
}

.edit-menu-handler {
  cursor: ns-resize;
}
.edit-menu-item-drop {
  background: var(--bg-header);
}

.edit-menu-category-wrapper {
  margin-top: 5rem;
}
.edit-menu-category-hdr {
  font-size: 24px;
  font-weight: bold;
}
.edit-menu-category-hdr > span {
  margin: 0.2rem;
}
.edit-menu-category-hdr > button {
  font-size: 16px;
  width: 5rem;
  margin-left: 0.5rem;
  padding: 5px 0;
  position: relative;
  top: -3px; /* to align the button with the rest of the line */
}
.edit-menu-category {
  width: 25rem !important;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
}

.discount-header {
  font-size: 0.8rem;
  text-align: center !important;
}

/********************* Edit config page **********************/

#editConfigPage h1.extra-padding {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

#editConfigPage input.inputBig {
  width: calc(100% - 2rem);
}

.edit-config-item {
  width: 100%;
  display: flex;
  align-content: stretch;
  align-items: center;
}
.edit-config-header {
  font-weight: bold;
  align-items: flex-end;
  position: relative;
  min-height: 2rem;
}
.edit-config-item :first-child {
  flex: 0 0 12rem;
}
.edit-config-item :nth-child(2) {
  flex: 2 2 20rem;
}
.edit-config-item :nth-child(3) {
  flex: 1 1 7rem;
}
/* why was this?
.edit-config-item input {
  width: 0;
}*/
#editConfigPage input.inputSmall {
  width: 3rem;
}

.edit-config-item * {
  margin: 0.2rem 0.3rem;
}

/********************* Edit discounts page **********************/

#editDiscountsTable {
  margin-top: 1.5rem;
}

.edit-discount-item {
  width: 100%;
  display: flex;
  align-content: stretch;
  align-items: center;
}
.edit-discount-item :first-child {
  flex: 0 0 3rem;
  text-align: right;
}
.edit-discount-item :nth-child(2) {
  flex: 1 1 17rem;
  text-align: left;
}
.edit-discount-item :nth-child(3) {
  flex: 0 0 9rem;
  text-align: center;
}
.edit-discount-item :nth-child(n+4) {
  flex: 0 0 5rem;
  text-align: center;
}
.edit-discount-item :nth-child(5) {
  flex: 0 0 3rem;
  text-align: center;
}
.edit-discount-item :nth-child(8) {
  flex: 0 0 4rem;
  text-align: center;
}
.edit-discount-item :nth-child(9) {
  flex: 0 0 10rem;
  text-align: center;
}


/********************* Ingredients page **********************/
.ingrdSelRow {
  margin-top: 1rem;
}
.ingrdSelRow span.neIngred {
  width: 11em;
  display: inline-block;
}
#newIngredName, #existingIngredName {
  width: 11rem;
  padding: 1px 2px;
  box-sizing:content-box;
}
#newIngredType, #existingIngredType {
  width: 6rem;
  padding: 1px 2px;
  box-sizing:content-box;
}
#existingIngredType {
  display: inline-block;
  border: 2px solid transparent;
}
#newIngredQty, #existingIngredQty {
  width: 6rem;
}
#newIngredUnit, #existingIngredUnit {
  width: 4rem;
  padding: 1px 2px;
  display: inline-block;
}

#existingIngredientsContainer {
  width: 50rem;
}
.ingredients-row {
  display: flex;
}
.ingredients-row > :first-child {
  flex: 0 0 3rem;
}
.ingredients-row > :nth-child(2) {
  flex: 0 0 3rem;
}
.ingredients-row > :nth-child(3),
.ingredients-row > :nth-child(4) {
  flex: 1 1 10rem;
}
.ingredients-row > :nth-child(5) {
  flex: 0 0 4rem;
}
.ingredients-row > :nth-child(6) {
  flex: 0 0 4rem;
}

/********************* Inventory page **********************/
#inventoryTable {
  width: 100%;
  border: none;
  border-collapse: collapse;
}
/*
#inventoryTable tr:nth-child(even) {
  background-color: #CCC;
}*/
#inventoryTable tr.inv-item:hover {
  background-color: #E0E0E0;
}
#inventoryTable td {
  padding: 2px 1rem;
  text-align: center;
  border: none;
}
#inventoryTable td.left,
#inventoryTable th.left {
  padding: 2px 0;
  text-align: left;
}
#inventoryTable td.right {
  padding: 2px 5px;
  text-align: right;
}
#inventoryTable td input {
  width: 5rem;
}

#invSelection select,
#inventoryFilter {
  vertical-align: middle;
}
/********************* Guests page **********************/


#guestsTable {
  margin-top: 1.5rem;
  width: 100%;
}
.hg-name {
  width: 10rem;
}
.hg-small {
  width: 1rem;
}
.hg-num {
  width: 2.5rem;
}
.hg-date {
  width: 8.5rem;
}
.hg-checkbox {
  margin-left: 3rem;
}
#guestsTable button {
  width: 5rem;
  margin: 0.5rem 0 0.5rem 1rem;
}
#guestsTable tbody tr {
  margin-top: 0.5rem;
}

#guestsTable tbody::before {
  content: "-";
  display: block;
  line-height: 2rem;
  color: transparent;
}

#guestsTable tbody tr.odd {
  background-color: lightgrey;
}
/*
#guestsTable tbody tr.even {
  background-color: white;
}*/

/********************* Users page **********************/


#usersTable {
  margin: 1.5rem auto 0 auto;
  max-width: 40rem;
}

.user-item,
.acu-row {
  width: 100%;
  display: flex;
  align-content: stretch;
  align-items: center;
}

.user-item span {
  margin: 0.2rem;
}
.user-item span * {
  width: 80%;
}
.user-item > :first-child {
  flex: 1 1 10rem;
  text-align: left;
}

.user-item > :not(:first-child) {
  flex: 1 1 10rem;
  text-align: center;
}

#addChangeUser {
  margin: 1.5rem auto 0 auto;
  max-width: 30rem;
  display: none;
}

.acu-row span {
  margin: 0.2rem 0.5rem;
  flex: 1 1 10rem;
  text-align: left;
}

.acu-row span input {
  width: 80%;
}
.acu-row span select {
  width: calc(80% + 8px);
}

#usersPermissionsTable {
  border: 1px solid black;
  border-collapse: collapse;
  margin: 1.5rem;
}
#usersPermissionsTable td,
#usersPermissionsTable th {
  border: 1px solid black;
  padding: 0.2rem 0.5rem;
}

#usersPermissionsTable td:not(:first-child) {
  text-align: center;
  width: 5rem;
}

/********************* Monitoring page **********************/

#monitoringPage h1 {
  padding: 0.5em 0;
  background: var(--bg-header);
} 

#monitoringOrders {
  padding-left: 2rem;
}
.offline #monitoringPage h1 {
  background:coral;
}
.local #monitoringPage h1 {
  background:green;
}

.menu-item-row {
  display: flex;
}
.menu-item-row .mr-opening-time {
  flex: 1 1 5rem;
}
.menu-item-row .mr-name {
  flex: 5 5 15rem;
}
.menu-item-row .mr-qty {
  flex: 1 1 3rem;
}
.menu-item-row .mr-status {
  flex: 1 1 5rem;
}

/********************* Warning page **********************/

#warningPage {
  position: fixed;
  top:0;
  left:0;
  right: 0;
  bottom: 0;
  background-color: black;
  opacity: 0;
  color:white;
  padding-top: 30vh;
  display: none;
  transition: opacity 1s linear;
}
#warningPage h1 {
  text-align: center;
}

/********************* Dialog page **********************/

#dialogPage {
  position: fixed;
  top:0;
  left:0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0);
  display: none;
  transition: background-color 1s linear;
  text-align: center;
  z-index: 2;
}
#dialogBox {
  display: none;
}
.dialog-item {
  display: none;
}
div.msgBox {
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;

  background-color: rgba(255,255,255,0);
  color: black;

  /* -webkit-user-select: none; */
  display: inline-block;
  top: 15%;
  position: relative;
  text-align: center;
  max-height: 90%;
  min-width: 20rem;
  max-width: 80%;
  padding: 0;
  transition: background-color 0.3s linear;
}

div.msgBox div.header {
  text-align: center;
  padding: 1em;
  white-space: nowrap;
  margin-top: -2px;
  background-color: var(--bg-header);
  color: var(--bg-white);

  border-top-left-radius: 5px;
  border-top-right-radius: 5px;

  position: sticky;
  top: 0;
}
div.msgBox div.header h1 {
  padding: 0 1em 0 0;
  margin: 0;
  white-space: nowrap;
  font-weight: normal;
  font-size: 1.5rem;
}

div.header .dismiss {
  position: absolute;
  top: 0;
  right: 0;
  width: 1em;
  height: 1em;
  padding: 1em 1em 2em 2em;
  opacity: 0.3;
  font-size: 1rem;
}
div.header .dismiss:hover,
div.header .dismiss:active {
    opacity:1;
}

.dateSelBtn {
  width: 5rem;
  height: 2rem;
  border-radius: 8px;
  background-image: var(--bg-button);
  color: var(--bg-white);
  border: none;
  outline: none;
}

span.dateSelSpan {
  display: inline-block;
  width: 6rem;
  text-align: left;
}

span.spacer {
  display: inline-block;
  width: 3rem;
}

.eqw {
  width: 6rem;
}

#existingOrderSelectionDlg {
  min-width: 34rem;
}

#timeSelectionPart {
  text-align: left;
  margin: 1rem 2rem;
}
#timeSelectionPart label {
  display: block;
}



#inventoryAddDlg p {
  text-align: left;
  margin: 1rem 2rem;
}
#inventoryAddDlg p input[type="number"] {
  width: 7rem;
  text-align: right;
}
#inventoryAddDlg p span.front {
  display: inline-block;
  width: 6rem;
} 
#inventoryAddDlg p button {
  width: 5rem;
} 
#inventoryAddDlg p.error {
  color: red;
  text-align: center;
}
#invReportInvSelectRow select,
#invReportInvSelectRow2 select {
  box-sizing: content-box;
  padding: 0 1px;
}

#dateIntervalSelectionDlg p.error {
  color: red;
  text-align: center;
}

.w7rem {
  width: 7rem;
}

/********************* Print Section **********************/
#printPage {
  display: none;
  margin: 0;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  position: relative;
  font-size: 12px;
  /*background-color: aliceblue; -> this is for development */
}

#printPage.thermal {
  margin: 0 3mm;
  width: calc(100% - 6mm);
}

.printBusinessH {
  text-align: center;
  margin: 0;
}
.printBusinessHdr {
  text-align: center;
  font-size: 0.7rem;
  margin: 0.5rem 0 1rem 0;
}

#printSignature {
  position: absolute;
  bottom: 2.5rem;
  left: 1rem;
  right: 1rem;
  text-align: center;
}

#printPage h1 {
  text-align: center;
  font-size: 18px;
  font-weight: bolder;
}

.margin-top {
  margin-top: 2rem;
}
.smaller {
  font-size: 1rem;
}


@media print {
  html, body {
    height:100vh;
    margin: 0 !important;
    padding: 0 !important;
  }

  .new-page {
    page-break-before: always;
    margin-top: 3.5rem;
  }
}

@media screen {
  #printPage {
    visibility: hidden;
  }
}

/* for debug
#printReceipt {
  background-color: red;
}*/

/********************* added by Cristina **********************/
div.withBar {
  position: relative;
}

div.withBar::after {
  background-color: rgba(151,151,151,0.2);
  content: '';
  width: 0.2px;
  height: 2em;
  position: absolute;
  right: 0;
  top: calc(50% - 1em);
}

div.flexRow {
  line-height: 1;
  width: 100%;
  height: 2em;
  display: flex;
  text-align: center;
  align-items: center;
}

div.flexRow .col1 {
  flex: 2 0 10rem;
  text-align:left;
  padding-left: 1rem;
}
div.flexRow .col2,
div.flexRow .col4 {
  flex: 0 0 4rem;
}
div.flexRow .col3 {
  flex: 0 0 3rem
}
div.flexRow .col3p {
  flex: 0 0 5rem
}
div.flexRow .col123 {
  flex: 2 0 17rem;
  text-align: right;
  padding-right: 1rem;
}
div.flexRow .col12 {
  flex: 2 0 12rem;
  text-align: left;
  padding-left: 1rem;
}

.withBorder {
  border-bottom: 0.2px solid rgba(151,151,151,0.2);
}
div.discountRow{
  color: rgb(19,163,142);
}
.highlightRow{
  box-shadow: 0 -3px 2px -2px rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0
      rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  font-weight: bold;
  background-color: white;
  line-height: 2.2;
}
div.orderBox {
  line-height: 1.5;
  font-size: 0.7rem;
  margin-bottom: 1rem;
  margin-top: 3.5rem;
  box-sizing: border-box; /* to include the padding in the 50vw*/
}
.orderLeft {
  padding-left: 1rem;
}
.orderRight {
  padding: 0.5rem;
  box-shadow: 0 -3px 2px -2px rgba(0, 0, 0, 0.2), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0
      rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.bold {
  font-size: 0.9rem;
  font-weight: bold;
}


.printHeader {
    position: fixed;
    top: 1rem;
    width: 100%;
    height: 2.5rem;
    text-align: center;
    opacity: 0.85;
}
.printFooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    line-height: 1.3;
    font-size: 0.5rem;
    text-align: center;
    opacity: 0.85;
}
.printFooterThermal {
  /*not forced to bottom*/
  width: 100%;
  height: 2.5rem;
  line-height: 1.3;
  font-size: 0.5rem;
  text-align: center;
  opacity: 0.85;
}
.printFooterThermal.spaceTop {
  margin-top: 2rem;
}


.thermalSpace {
  height: 6rem;
}

#printPaymentItems.with-space-above {
  margin-top: 2rem; /*if this changes radically (more than 0.5rem) also change the JS in print page.*/
}

/********************* Reports Page **********************/
#printPage h1 {
  /*background-color: var(--bg-header);
  color: black;*/
  font-size: 1rem;
  font-weight: bold;

  width: 80%;
  margin: 2rem 10% 1rem 10%;
}
#printPage h1.break-before {
  page-break-before: always;
}
#printPage table {
  width: 80%;
  margin: 1rem 10%;
  text-align: center;
  border-collapse: collapse;
}

#printPage table tr,
#printPage table th,
#printPage table td {
  border: none;
}


#printPage table th {
  background-color: lightskyblue;
  color: black;
}

#printPage table tr.mini-header {
  border-bottom: 1px solid black;
}
#printPage table tr.mini-footer {
  border-top: 1px solid black;
}

#printPage table tr.odd {
  background-color: lightgrey;
}
/*we start from even (index:0) */
#printPage table tr.even {
  background-color: white;
}

/********************* Statistics Page **********************/

.stats-bar {
  height: 4rem;
  width: 100%;
  display: flex;
}

.stats-bar > div {
  flex: 1;
  text-align: center;
  padding-top: 1rem;
}