@font-face {
  font-family: "Google Sans";
  src: url("../fonts/Google Sans/GoogleSans-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: bolder;
}

@font-face {
  font-family: "Google Sans";
  src: url("../fonts/Google Sans/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: bold;
}

@font-face {
  font-family: "Google Sans";
  src: url("../fonts/Google Sans/GoogleSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Google Sans";
  src: url("../fonts/Google Sans/GoogleSans-Regular.ttf") format("truetype");
  font-weight: 300;
  font-style: lighter;
}

:root {
  /*--f7-theme-color: #42a5f5 !important;
    --f7-theme-color-rgb: 66, 165, 245 !important;
    --f7-theme-color-shade: #1691f5 !important;
    --f7-theme-color-tint: #60b4f7 !important;
    --f7-table-head-cell-height: 40px;
    --f7-list-group-title-height: 35px;
    --f7-messagebar-link-color: #42a5f5 !important;*/
  --f7-dialog-button-text-transform: none;
  --f7-navbar-large-title-font-size: 27px;

  --f7-card-header-border-color: rgba(0, 0, 0, 0.24);
  --f7-card-header-font-size: 15px;
  --f7-card-border-radius: 8px;
  --f7-card-margin-vertical: 12px;
  --f7-card-footer-border-color: rgba(0, 0, 0, 0.44);

  --f7-sheet-height: auto;

  --red: rgba(239, 83, 80, 1);
  --pink: rgba(233, 30, 99, 1);
  --purple: rgba(171, 71, 188, 1);
  --deeppurple: rgba(126, 87, 194, 1);
  --lightindigo: rgba(121, 134, 203, 1);
  --indigo: rgba(92, 107, 192, 1);
  --blue: rgba(66, 165, 245, 1);
  --lightblue: rgba(38, 198, 218, 1);
  --lightcyan: rgba(77, 208, 225, 1);
  --cyan: rgba(38, 198, 218, 1);
  --teal: rgba(38, 166, 154, 1);
  --green: rgba(102, 187, 106, 1);
  --lightgreen: rgba(156, 204, 101, 1);
  --lime: rgba(212, 225, 87, 1);
  --yellow: rgba(255, 238, 88, 1);
  --amber: rgba(255, 202, 40, 1);
  --orange: rgba(255, 167, 38, 1);
  --deeporange: rgba(255, 112, 67, 1);
  --brown: rgba(141, 110, 99, 1);
  --gray: rgba(189, 189, 189, 1);
  --bluegray: rgba(120, 144, 156, 1);

  --f7-label-font-size: 13px;
  --f7-floating-label-scale: calc(16 / 13);
  --f7-input-outline-height: 44px;
  --f7-input-outline-border-color: rgba(0, 0, 0, 0.12);

  --f7-list-group-title-font-size: 15px;
  --f7-list-media-item-padding-vertical: 10px;

  --f7-input-clear-button-color: rgba(0, 0, 0, 0.54);
  --f7-tabbar-link-inactive-color: rgba(0, 0, 0, 0.84);

  --tabbar-icon-color: rgba(0, 0, 0, 0.73);

  --f7-preloader-color: #2196f3;

  --f7-searchbar-input-font-size: 18px;
  --chart-grid-line-color: rgba(0, 0, 0, 0.05);
  --f7-page-bg-color: rgba(0, 0, 0, 0.04);
}

html {
  overflow: hidden;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* iOS Cordova Tweak */
.device-cordova.device-ios {
  height: 100vh;
}

/* Custom color theme properties */
:root {
  --f7-theme-color: #007aff;
  --f7-theme-color-rgb: 0, 122, 255;
  --f7-theme-color-shade: #0066d6;
  --f7-theme-color-tint: #298fff;
  --f7-list-group-title-height: 32px;
  --f7-searchbar-input-font-size: 17px;
}

/* Left Panel right border when it is visible by breakpoint */
.panel-left.panel-in-breakpoint:before {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  content: "";
  z-index: 6000;
}

/* Hide navbar link which opens left panel when it is visible by breakpoint */
.panel-left.panel-in-breakpoint ~ .view .navbar .panel-open[data-panel="left"] {
  display: none;
}

.block-title {
  color: var(--f7-text-color);
}

.text-primary {
  color: var(--f7-text-color);
}

.text-muted {
  color: var(--f7-card-footer-text-color);
}

.block-strong::before {
  content: "";
  position: absolute;
  background-color: var(--f7-list-border-color);
  display: block;
  z-index: 15;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  height: 1px;
  width: 100%;
  transform-origin: 50% 0%;
  transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
}

.block-strong::after {
  content: "";
  position: absolute;
  background-color: var(--f7-list-border-color);
  display: block;
  z-index: 15;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
}

.card-header {
  font-weight: 500;
}

.card-footer::before {
  opacity: 0.6;
}

/* POPUP */

.popup-open > * {
  pointer-events: none !important;
}

.popup {
  --f7-popup-border-radius: 10px 10px 0 0;
  --f7-popup-tablet-border-radius: 10px;
  --f7-block-strong-border-color: transparent;
  max-height: calc(100% - var(--f7-navbar-height) - var(--f7-safe-area-top));
  top: calc(var(--f7-navbar-height) + var(--f7-safe-area-top));
}

.popup .navbar {
  height: var(--f7-navbar-height) !important;
}

.popup .navbar-inner {
  padding: 0 0 0 4px;
}

.popup .page {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.popup.shrink-0 {
  transform: translate3d(0, 0, 0) scale(1);
}

.popup.shrink-1 {
  transform: translate3d(0, -3%, 0) scale(0.96);
  pointer-events: none;
}

.popup.shrink-1 .page-content {
  display: none;
}

.popup.shrink-2 {
  transform: translate3d(0, -5.5%, 0) scale(0.93);
  pointer-events: none;
}

.popup.shrink-2 .page-content {
  display: none;
}

.popup.shrink-3 {
  transform: translate3d(0, -7.8%, 0) scale(0.9);
  pointer-events: none;
}

.popup.shrink-3 .page-content {
  display: none;
}

.popup.shrink-4 {
  transform: translate3d(0, -9.7%, 0) scale(0.88);
  pointer-events: none;
}

.popup.shrink-4 .page-content {
  display: none;
}
/* END POPUP */

.page-content {
  overflow-x: hidden;
}

hr {
  content: "";
  background-color: var(--f7-list-border-color);
  display: block;
  z-index: 15;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
  border: none;
}

.item-media {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-media img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.container {
  max-width: 700px;
  margin: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination input {
  background: transparent;
  width: 30px;
  border: none;
  box-shadow: none;
  color: var(--f7-text-color);
  text-align: center;
  padding: 5px;
}

.searchbar-inner {
  height: 100% !important;
  display: flex;
  align-items: center;
}

.data-table table {
  table-layout: fixed;
}

.data-table table th {
  height: 40px;
}

.data-table table td {
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  height: auto;
  min-height: 60px;
}

.data-table table th.item {
  width: auto;
}

.data-table table td.item {
  display: flex;
  align-items: center;
}

.data-table table td.item .image {
  display: flex;
  align-items: center;
  width: 50px;
  flex-basis: 50px;
  flex-shrink: 0;
}

.data-table table td.item .image img {
  width: 40px;
  height: 40px;
  border-radius: 3px;
}

.data-table table td.item .description {
  width: 100%;
  overflow: hidden;
}

.data-table table td.item .description .title {
  /*white-space: nowrap;*/
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table table td.item .description .subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--f7-label-text-color);
}

.data-table table th.ordered,
.data-table table th.picked,
.data-table table th.cashed {
  width: 80px;
  padding: 0 10px;
}

.data-table table td.ordered,
.data-table table td.picked,
.data-table table td.cashed {
  padding: 0 10px;
}

.data-table table th.quantity {
  width: 125px;
  padding: 0 10px;
}

.data-table table td.quantity {
  padding: 0 10px;
}

.data-table table td.quantity select {
  width: 30px;
  display: inline-block;
}

.data-table table td.quantity input {
  width: 60px;
  display: inline-block;
}

.data-table table td.quantity .stepper {
  width: 25px;
  display: inline-block;
  position: absolute;
  right: 20px;
  top: 10px;
}

.data-table table td.quantity .stepper button {
  width: 25px;
  height: 20px;
}

.data-table table th.price,
.data-table table th.discount {
  width: 80px;
  padding: 0;
}

.data-table table td.price,
.data-table table td.discount {
  padding: 0;
}

.data-table table th.action {
  width: 50px;
  padding: 0;
}

.data-table table td.action {
  padding: 0;
}

.data-table table th.number {
  width: 100px;
}

.data-table table th.time {
  width: 200px;
}

.data-table .data-label {
  display: none;
}

@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table tr {
    display: block;
  }

  table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px !important;
  }

  .data-table .data-label {
    display: block;
    color: var(--f7-label-text-color);
  }
}

.item-label {
  padding-left: 4px !important;
  align-self: center;
  padding-top: 0;
}

@media screen and (max-width: 600px) {
  .item-input .item-label {
    width: 100% !important;
  }
  .item-input .item-inner {
    flex-direction: column;
  }
}

.order-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-description .title {
  font-weight: 500;
  width: 50px;
  font-size: 15px;
}

.order-description .description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.order-description.city {
  display: none;
}

[status="pending"] .order-description.city,
[status="waiting_delivery"] .order-description.city,
[status="delivering"] .order-description.city {
  display: flex;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 15px;
}

.order-item .item {
  display: flex;
  align-items: center;
  width: 100%;
}

.order-item .item .item-title {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item .item .image {
  display: flex;
  align-items: center;
  margin: 0 10px 0 5px;
}

.order-item .item .image img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.order-item .ordered,
.order-item .picked {
  width: 60px;
  display: flex;
  align-items: center;
  flex-basis: 60px;
  flex-shrink: 0;
  text-align: right;
}

.order-item .quantity {
  width: 145px;
  display: flex;
  align-items: center;
  flex-basis: 145px;
  flex-shrink: 0;
}

.order-item .quantity select {
  width: 45px;
  font-size: 15px;
}

.order-item .quantity input {
  padding: 0;
  width: 60px;
  text-align: center;
  font-size: 15px;
}

.order-item .quantity button {
  height: 25px;
  width: 40px;
  padding: 0;
}

.order-item .comment textarea {
  height: 50px;
  padding: 0;
  font-size: 15px;
}

.order-item .price {
  width: 80px;
  text-align: right;
  flex-basis: 80px;
  flex-shrink: 0;
}

.order-item .actions {
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.order-item .actions .checkbox {
  margin-left: 10px;
}

.order-card .card-footer {
  text-align: center;
}

/* START: CHART CONTAINER */

.chart-container {
  padding-top: 50%;
  width: 100%;
}

.chart-container-2 {
  padding-top: 70%;
  width: 100%;
}

.chart-container canvas {
  position: absolute;
  top: 0;
  margin-top: 13px;
}

.chart-container .legends {
  position: absolute;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 60px);
  bottom: 43px;
  padding: 0 10px;
}

.chart-container .legends .legend {
  color: var(--f7-list-item-after-text-color);
}

.chart-container .empty {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-container .empty i {
  color: var(--f7-theme-color) !important;
  font-size: 38px;
}

.chart-container .empty h3 {
  font-weight: 500;
  margin-top: 7px;
}

/* END: CHART CONTAINER */

.image-input {
  display: flex;
  justify-content: center;
}

.image-input img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  object-fit: cover;
  object-position: center;
}

.image-input .button {
  position: absolute;
  bottom: -16px;
  margin-left: 100px;
  border-radius: 50%;
  height: 40px;
  width: 40px !important;
}
.text-white {
  color: #fff !important;
}

.empty {
  text-align: center;
  margin: 10px 0;
}

.stepper-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.quantity-input {
  text-align: center;
  font-size: 18px !important;
  width: 80px;
}

.unit-label {
  margin-left: 5px;
  font-size: 16px;
  color: var(--f7-theme-color);
}

.item-after {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
  display: block;
}
.popup.smart-select-popup .page-content {
  max-height: 85vh;
  overflow-y: auto;
}
