* {
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif !important;
}

.epos__container {
  display: flex;
  height: 100vh;
  position: fixed;
  width: 100%;
}

.epos__applets {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.epos__applets #app-placeholder {
  flex-grow: 1;
}

/* temporary to overstyle nitro 1 EAppletWrapper — has to be padding because of h-full */
.epos__applets > :not(#epos-homescreen) .epos-applet {
  padding-top: 2.5rem;
}

.auth-loading-message {
  color: rgb(55, 114, 255);
  width: 200px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 32px;
  display: block;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: calc(50vh - 200px) auto 0;
}

.loading > .loading-message {
  color: rgb(55, 114, 255);
  width: 200px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 32px;
  display: block;
}

.loading .support {
  font-size: 12px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.loading > .loading-message::after {
  content: '';
  display: block;
  width: 0;
  margin-top: 6px;
  height: 3px;
  background: rgb(55, 114, 255);
  animation: loadBorder 2.4s forwards;
}

@keyframes loadBorder {
  0% {
    width: 0;
  }

  35% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

/* Logout page styles */
.logout-page-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  z-index: 9999;
}

.logout-page-container img {
  margin-bottom: 2rem;
}

.logout-page-container h2 {
  margin-bottom: 1.5rem;
  font-family: 'Source Sans Pro', sans-serif;
  color: #333;
}

.logout-page-container .button-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;
}

.logout-page-container .login-button {
  padding: 0.75rem 1.5rem;
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
}

/* Okta login error page styles */
.okta-login-error-page-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  z-index: 9999;
}

.okta-login-error-page-container img {
  margin-bottom: 2rem;
}

.okta-login-error-page-container h2 {
  margin-bottom: 1rem;
  font-family: 'Source Sans Pro', sans-serif;
  color: #d32f2f;
  text-align: center;
}

.okta-login-error-page-container p {
  margin-bottom: 2rem;
  font-family: 'Source Sans Pro', sans-serif;
  color: #666;
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

.okta-login-error-page-container .button-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;
}

.okta-login-error-page-container .login-button {
  padding: 0.75rem 1.5rem;
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
}

.okta-login-error-page-container .login-button.secondary {
  background-color: transparent;
  color: #0078d7;
  border: 1px solid #0078d7;
}

.okta-login-error-page-container .error-data {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  max-height: 150px;
  overflow: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
