/**
 * Body CSS
 */

html,
body {
  height: 100%;
  background-color: #eee;
}

html,
body,
input,
textarea,
button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}

#Loader {
  display: none;
  z-index: 100;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #fffffff2;
}

#LoaderImageWrapper {
  position: relative;
  left: 50%;
  top: 50%;
  width: 0px;
  height: 0px;
}

#LoaderImageWrapper img {
  transform: translate(-50%, -50%);
}

/**
 * Layout CSS
 */

#header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  transition: left 0.2s;
}

#sidedrawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 200px;
  left: -200px;
  overflow: auto;
  z-index: 2;
  background-color: #fff;
  transition: transform 0.2s;
}

#content-wrapper {
  min-height: 100%;
  overflow-x: hidden;
  margin-left: 0px;
  transition: margin-left 0.2s;
  /* sticky bottom */
  margin-bottom: -60px;
  padding: 0 8px;
}

#footer {
  height: 60px;
  margin-left: 0px;
  transition: margin-left 0.2s;
  position: relative;
}

@media (min-width: 768px) {
  #header {
    left: 200px;
  }
  #sidedrawer {
    transform: translate(200px);
  }
  #content-wrapper {
    margin-left: 200px;
  }
  #footer {
    margin-left: 200px;
  }
  body.hide-sidedrawer #header {
    left: 0;
  }
  body.hide-sidedrawer #sidedrawer {
    transform: translate(0px);
  }
  body.hide-sidedrawer #content-wrapper {
    margin-left: 0;
  }
  body.hide-sidedrawer #footer {
    margin-left: 0;
  }
}

/**
 * Toggle Side drawer
 */

#sidedrawer.active {
  transform: translate(200px);
}

.mui-appbar {
  background-color: #b0bec5;
}

/**
 * Header CSS
 */

.sidedrawer-toggle {
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 20px;
  margin-right: 10px;
}

.sidedrawer-toggle:hover {
  color: #fff;
  text-decoration: none;
}

/**
 * Footer CSS
 */

#footer {
  background-color: #b0bec5;
  color: #fff;
}

#footer a {
  color: #fff;
  text-decoration: underline;
}

/**
 * Side drawer CSS
 */

#sidedrawer-brand {
  padding-left: 20px;
}

#sidedrawer ul {
  list-style: none;
}

#sidedrawer > ul {
  padding-left: 0px;
}

#sidedrawer > ul > li:first-child {
  padding-top: 15px;
}

#sidedrawer strong {
  display: block;
  padding: 15px 22px;
  cursor: pointer;
}

#sidedrawer strong:hover {
  background-color: #e0e0e0;
}

#sidedrawer strong + ul > li {
  padding: 6px 0px;
}

.mui-container-fluid {
  white-space: nowrap;
}

#CameraSelectPanel {
  margin: 8px;
  text-align: center;
}

#CameraSelector {
  padding: 2px;
  border-radius: 8px;
}

#CameraSelector > option {
  -webkit-appearance: menulist-button;
  height: 32px;
  line-height: 32px;
}

#CameraContainer {
  width: 300px;
  height: 150px;
  position: relative;
  left: 50%;
  margin-left: -150px;
  overflow: hidden;
  border: 1px solid #aaa;
}

#CameraLoader {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #fff;
  /* line-height: 300px; */
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#CameraFlash {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9;
  opacity: 0;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

#CameraFlash.flash {
  animation-name: flash;
}

@keyframes flash {
  0%,
  100% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
}

/* #cameraPositioner {
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  position: relative;
} */

#CameraSource {
  left: 50%;
  top: 50%;
  position: relative;
  transform: translate(-50%, -50%);
  height: auto !important;
  width: 100%;
}

#CameraDecorations {
  display: block;
  position: absolute;
  left: 0px;
  top: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  border: 12px solid #0000008f;
  z-index: 1;
}

#CameraDecorations > .lt,
#CameraDecorations > .rt,
#CameraDecorations > .lb,
#CameraDecorations > .rb {
  position: absolute;
  display: block;
  box-sizing: border-box;
  border: 2px solid lime;
  width: 40px;
  height: 40px;
}

#CameraDecorations > .lt {
  left: -2px;
  top: -2px;
  border-right: 0;
  border-bottom: 0;
}

#CameraDecorations > .rt {
  right: -2px;
  top: -2px;
  border-left: 0;
  border-bottom: 0;
}

#CameraDecorations > .lb {
  left: -2px;
  bottom: -2px;
  border-right: 0;
  border-top: 0;
}

#CameraDecorations > .rb {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}

#CameraDecorations > .line {
  width: 100%;
  height: 1px;
  display: block;
  position: absolute;
  background-color: red;
  top: 50%;
  animation: line_flashing 500ms infinite linear;
}

@keyframes line_flashing {
  0%,
  100% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
}

#CameraResult {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  border: 1px solid #aaa;
  background-color: white;
  border-left: 4px solid #0066b6;
  padding: 8px;
  display: grid;
  align-content: center;
  justify-content: space-between;
  align-items: end;
  justify-items: start;
  grid-gap: 4px;
  grid-template: "a b c";
}

#CameraResult > .price {
  font-size: 1.2rem;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
}

#CameraResult > .price > .number {
  font-size: 1em;
  font-weight: bold;
  margin-right: 4px;
}

#CameraResult > .price > .number.kop {
  font-size: 0.5em;
  margin-right: 4px;
  margin-top: 12%;
  /* position: relative; */
  /* height: 100%; */
  /* flex: 1 1 auto; */
  align-self: normal;
  font-weight: normal;
  /* text-decoration: underline; */
}

#CameraResult > .price > .unit {
  font-size: 0.3em;
  margin-right: 8px;
  display: none;
}

.hidden {
  display: none !important;
}

.taCenter {
  text-align: center;
}

.gutter1 {
  margin-bottom: 8px;
}

#DataDialog {
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

#DataDialog.float {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#DataDialog.fullScreen {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#DataDialog > .modal {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #ffffffc2;
}

#DataDialog.showModal > .modal {
  display: block;
}

#DataDialog > .container {
  /* width: calc(100vw - 90px); */
  width: 320px;
  height: calc(100vh - 150px);
  z-index: 1;
  background-color: #fff;
  /* padding: 16px; */
  display: flex;
  flex-direction: column;
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 40px 16px #a9a9a9;
  border-radius: 8px;
}

@media screen and (max-width: 320px) {
  #DataDialog > .container {
    max-width: 270px;
  }
}

#DataDialog > .container > .body {
  flex: 1 1 auto;
  position: relative;
  /* left: 0; */
  /* top: 0; */
  /* right: 0; */
  /* bottom: 24px; */
  margin: 16px;
  margin-right: 0px;
  overflow-y: scroll;
  overflow-x: hidden;
}

#DataDialog > .container > .buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#DataDialog > .container > .buttons > * {
  flex: 0 1 auto;
  display: block;
  /* width: 100%; */
  height: 48px;
  background-color: #b0bec5;
  border-radius: 8px;
  border: 1px solid #78787836;
  box-shadow: 3px 4px 12px -3px #5e5e5e;
  color: #fff;
  font-size: 24px;
  font-variant-caps: all-petite-caps;
  text-align: center;
  line-height: 48px;
  text-shadow: 2px 2px 6px #2a2a2a;
  cursor: pointer;
  margin: 4px;
  margin-top: 0px;
}

/*
  Covid cert classes
*/

#covidCertificateWrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#covidCertificateWrapper > .certStatus {
  min-width: 300px;
  color: white;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  padding-bottom: 0px;
  flex: 1 1 auto;
}

@media screen and (max-width: 360px) {
  #covidCertificateWrapper > .certStatus {
    max-width: 270px;
    padding: 0;
  }
}

#covidCertificateWrapper > .certStatus.success {
  background-color: rgb(45, 195, 106);
}

#covidCertificateWrapper > .certStatus.failed {
  background-color: red;
}

#covidCertificateWrapper > .certStatus > * {
  margin-bottom: 16px;
}

#covidCertificateWrapper > .certStatus > .title {
  font-size: 1.5em;
  text-align: center;
  border-bottom: 1px solid white;
  padding-bottom: 8px;
}

#covidCertificateWrapper > .certStatus > .status {
  width: 75%;
  text-align: center;
  background: white;
  color: black;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px white;
}

#covidCertificateWrapper > .certStatus > .number {
  font-size: 1.3em;
}

/* #covidCertificateWrapper>.certStatus>.exporedAt {} */

/* #covidCertificateWrapper>.certStatus>.fio {} */

/* #covidCertificateWrapper>.certStatus>.passport {} */

#ErrorMsg {
  min-width: 270px;
  font-size: 1.3em;
  text-align: center;
  margin: 16px 0px;
}

#ErrorMsg > .error_msg {
  margin-bottom: 16px;
}

#RekomaProduct {
  /* max-height: 500px;     */
  max-width: 350px;
  display: flex;
  align-items: center;
  flex-direction: column;
  /* padding-top: 16px; */
}

#RekomaProduct.notFound {
  max-height: 50px;
}

#RekomaProduct.notFound > * {
  font-size: 1.8rem;
  color: #0000007a;
  margin-bottom: 0;
}

#RekomaProduct > * {
  margin-bottom: 16px;
}

#RekomaProduct > .image {
  max-height: 180px;
  border: 1px solid #999;
}

#RekomaProduct #Info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: right;
}

#RekomaProduct #Info > * {
  /* width: 100%; */
  margin-bottom: 16px;
}

#RekomaProduct #Info > .title {
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  color: #000000a3;
  margin-right: 16px;
}

/* #RekomaProduct #Info>.productInfo {} */

#RekomaProduct #Info > .productInfo > * {
  margin-bottom: 8px;
}

#RekomaProduct #Info > .productInfo > .code {
  text-align: left;
  color: #000000a3;
}

#RekomaProduct #Info > .productInfo > .artikul {
  text-align: left;
  color: #000000a3;
}

#RekomaProduct #Info > .productInfo > .barcode {
  text-align: left;
  color: #000000a3;
}

#RekomaProduct #Info > .productInfo > .unit {
  text-align: left;
  color: #000000a3;
}

#RekomaProduct #Info > .productInfo > .code::before {
  content: "Код:";
  /* margin-right: 16px; */
  width: 80px;
  display: inline-block;
}

#RekomaProduct #Info > .productInfo > .artikul::before {
  content: "Артикул:";
  /* margin-right: 16px; */
  width: 80px;
  display: inline-block;
}

#RekomaProduct #Info > .productInfo > .barcode::before {
  content: "Штрихкод:";
  /* margin-right: 16px; */
  width: 80px;
  display: inline-block;
}

#RekomaProduct #Info > .productInfo > .unit::before {
  content: "Ед.:";
  /* margin-right: 16px; */
  width: 80px;
  display: inline-block;
}

/* #RekomaProduct #Info>.storeContainer {} */

#RekomaProduct #Info > .storeContainer > .store {
  border-bottom: 1px solid #eee;
  margin-right: 16px;
  margin-bottom: 8px;
}

#RekomaProduct #Info > .storeContainer > .store > .amount {
  float: right;
}

/* #RekomaProduct #Info>.description {} */

#RekomaProduct #Info > .price {
  font-size: 1.2rem;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
}

#RekomaProduct #Info > .price > .number {
  font-size: 3rem;
  font-weight: bold;
  margin-right: 4px;
}

#RekomaProduct #Info > .price > .number.kop {
  font-size: 1.5rem;
  margin-right: 4px;
  margin-top: 7px;
  /* position: relative; */
  /* height: 100%; */
  /* flex: 1 1 auto; */
  align-self: normal;
  font-weight: normal;
  /* text-decoration: underline; */
}

#RekomaProduct #Info > .price > .unit {
  font-size: 0.8rem;
  margin-right: 8px;
  display: none;
}

@media screen and (max-width: 360px) {
  #CameraContainer {
    width: 270px;
    height: 150px;
    margin-left: -135px;
  }
  #RekomaProduct {
    max-width: 270px;
  }
  #RekomaProduct > .image {
    max-width: 200px;
    max-height: 200px;
  }
}

@media screen and (max-height: 520px) {
  /* #RekomaProduct {
        /* padding-top: 0; * /
    } */
  #RekomaProduct > .image {
    /* max-height: calc(50%); */
    max-height: 200px;
  }
}

@media screen and (max-height: 480px) {
  #RekomaProduct > .image {
    max-height: 120px;
  }
}

@media screen and (orientation: landscape) {
  /* #RekomaProduct>* {} */
  #RekomaProduct #Info {
    height: 100%;
  }
}
