[x-cloak] {
  display: none !important;
}

html,
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.vh-100 {
  height: 100vh !important;
  height: 100dvh !important;
}

.min-vh-100 {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

body,
button,
input,
optgroup,
select,
textarea {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Allow text selection and typing in input fields and textareas */
input,
textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

/* Remove default number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* Sleek Green Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #198754 transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #198754;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #157347;
}

/* Mobile Momentum Scrolling */
.overflow-y-auto,
.overflow-auto {
  -webkit-overflow-scrolling: touch;
}

/* App Fixed Max-Width Shell */
.app-shell {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.login-shell {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Tiled Pattern Brand Header & Full Background */
.brand-header,
.brand-pattern-bg {
  position: relative;
  background-color: #198754;
  overflow: hidden;
}

.brand-header::before,
.brand-pattern-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('pattern.png');
  background-repeat: repeat;
  background-size: 110px auto;
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.brand-header > *,
.brand-pattern-bg > * {
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.search-input-group {
  max-width: 180px;
}

.qty-stepper {
  width: auto;
}

.qty-stepper .form-control {
  width: 42px;
  max-width: 42px;
  padding-left: 2px;
  padding-right: 2px;
  flex: none;
}

.modal-backdrop-custom {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1085;
}

.entry-card {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.entry-card:active {
  transform: scale(0.995);
}