html,
body,
.fullcontainer,
.companycontainer {
  height: 100%;
}

body {
  background-color: #efefef;
  overflow-x: hidden;
  overflow-y: auto;
}

body.offline-mode .companycontainer {
  filter: grayscale(100%);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

.fullcontainer {
  padding: 0.9rem;
  padding-bottom: 1.4rem;
}

.syncstatus {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  height: 8px;
  background: #d64545;
  transition: background-color 0.2s ease;
}

.syncstatus.online {
  background: #20875a;
}

.syncstatus.stale {
  background: #c27803;
}

.offlinebanner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1900;
  display: none;
  width: min(820px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(214, 69, 69, 0.45);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
  text-align: center;
}

.offlinebanner.visible {
  display: block;
}

.offlinebanner-inner {
  padding: 34px 30px 32px;
}

.offlinebanner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 8vw, 82px);
  height: clamp(58px, 8vw, 82px);
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(214, 69, 69, 0.1);
  color: #9b1c1c;
}

.offlinebanner-icon svg {
  width: 62%;
  height: 62%;
  fill: currentColor;
}

.offlinebanner-title {
  margin-bottom: 14px;
  color: #9b1c1c;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.1;
}

.offlinebanner-text {
  color: #1f2933;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.35;
}

.offlinebanner-text span {
  display: inline-block;
  color: #0050a4;
  font-weight: 700;
  white-space: nowrap;
}

.cmpny {
  height: 220px !important;
  padding-top: 20px;
  padding-bottom: 20px;
  cursor: pointer;
}

.cmpny.disabled {
  cursor: not-allowed;
}

.mw100 {
  max-width: 80%;
  max-height: 200px !important;
  height: auto;
  border: 0;
  image-rendering: -webkit-optimize-contrast;
}

.gray {
  filter: grayscale(100%);
  opacity: 0.3;
}

.gray img {
  opacity: 0.5;
}

#pinpad {
  width: 100%;
  height: 300px;
}

#pinbuttons {
  width: 100%;
  height: 75px;
}

#pinpad td {
  width: 33%;
}

#pinpad button,
#pinbuttons button {
  width: 100%;
  height: 100%;
}

.button-spinner {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.2em;
  border: 0.18em solid rgba(255, 255, 255, 0.45);
  border-right-color: white;
  border-radius: 50%;
  animation: button-spinner 0.75s linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

#pinentered {
  height: 50px;
  overflow: hidden;
  font-size: 2.5em;
  font-weight: bold;
  letter-spacing: 10px;
}

#pinerror {
  display: none;
  height: 50px;
  overflow: hidden;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.9em;
  letter-spacing: 10px;
}

#pinmodal h5.modal-title {
  font-size: 150%;
}

div.alarm {
  color: white;
}

.h-big,
.h-small {
  height: auto;
}

@media (min-width: 768px) {
  body {
    overflow: hidden;
  }

  .border-between > [class*='col-md-']:before,
  .border-between .col:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10px;
    content: " ";
    background: #efefef;
  }

  .border-between > [class*='col-md-']:first-child:before,
  .border-between .col:first-child:before {
    display: none;
  }

  .cmpny {
    height: unset !important;
    padding-top: unset !important;
    padding-bottom: unset !important;
  }

  .h-big {
    height: 28.5714285714%;
  }

  .h-small {
    height: 14.2857142857%;
  }
}
