html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.pos-test-client {
  margin-bottom: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(47, 120, 198, 0.12), rgba(242, 242, 247, 0) 60%),
              #f2f2f7;
  --pos-surface: #ffffff;
  --pos-surface-2: #f7f8fb;
  --pos-border: rgba(17, 24, 39, 0.12);
  --pos-text: rgba(17, 24, 39, 0.86);
  --pos-muted: rgba(75, 85, 99, 0.92);
  --pos-primary: #2f78c6;
  --pos-primary-2: #1f5fa6;
  --pos-success: #34a853;
  --pos-danger: #b84a4a;
  --pos-focus: rgba(47, 120, 198, 0.35);
  --pos-divider-accent: rgba(47, 120, 198, 0.26);
  --pos-label-size: clamp(16px, 2vw, 22px);
  --pos-hamburger-left: clamp(16px, 2.5vw, 24px);
}

body.pos-test-client.pos-theme-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0) 40%),
              #f4f6fb;
  --pos-surface: #ffffff;
  --pos-surface-2: #fbfcff;
  --pos-border: rgba(15, 23, 42, 0.14);
  --pos-text: rgba(15, 23, 42, 0.88);
  --pos-muted: rgba(71, 85, 105, 0.92);
  --pos-primary: #2563eb;
  --pos-primary-2: #2563eb;
  --pos-focus: rgba(37, 99, 235, 0.30);
  --pos-divider-accent: rgba(15, 23, 42, 0.10);
}

body.pos-test-client.pos-theme-glass {
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(99, 102, 241, 0.22), rgba(244, 246, 251, 0) 60%),
    radial-gradient(1000px 680px at 90% 12%, rgba(14, 165, 233, 0.20), rgba(244, 246, 251, 0) 55%),
    #f4f6fb;
  --pos-surface: rgba(255, 255, 255, 0.74);
  --pos-surface-2: rgba(255, 255, 255, 0.62);
  --pos-border: rgba(255, 255, 255, 0.52);
  --pos-text: rgba(15, 23, 42, 0.86);
  --pos-muted: rgba(51, 65, 85, 0.80);
  --pos-primary: #0ea5e9;
  --pos-primary-2: #6366f1;
  --pos-focus: rgba(99, 102, 241, 0.28);
  --pos-divider-accent: rgba(99, 102, 241, 0.24);
}

body.pos-test-client .pos-main {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

body.pos-test-client .pos-card {
  width: 100%;
  margin: 0;
  background: var(--pos-surface);
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body.pos-test-client.pos-theme-glass .pos-card {
  background: var(--pos-surface);
  backdrop-filter: blur(12px);
}

body.pos-test-client .pos-container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

body.pos-test-client.pos-full-width .pos-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

body.pos-test-client .pos-header {
  --pos-hamburger-size: clamp(40px, 7vh, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pos-border);
  padding-block: clamp(14px, 2.2vh, 20px);
}

@media (min-width: 768px) {
  body.pos-test-client .pos-header {
    --pos-hamburger-size: clamp(56px, 7.5vh, 90px);
  }
}

@media (min-width: 768px) and (max-height: 1100px) {
  body.pos-test-client .pos-header {
    --pos-hamburger-size: clamp(72px, 10vh, 90px);
  }
}

body.pos-test-client .pos-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-divider-accent) 50%, transparent 100%);
  opacity: 0.85;
  filter: blur(0.2px);
  pointer-events: none;
}

body.pos-test-client.pos-theme-glass .pos-header {
  background: rgba(255, 255, 255, 0.56);
  border-bottom-color: rgba(255, 255, 255, 0.52);
}

body.pos-test-client .pos-header .pos-container {
  padding-inline: max(clamp(18px, 4vw, 56px), calc(max(var(--pos-hamburger-left), env(safe-area-inset-left, 0px)) + var(--pos-hamburger-size)));
}

body.pos-test-client .pos-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

body.pos-test-client .pos-hamburger {
  position: absolute;
  left: max(var(--pos-hamburger-left), env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8%;
  width: var(--pos-hamburger-size);
  height: var(--pos-hamburger-size);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--pos-surface-2);
  color: var(--pos-text);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

body.pos-test-client.pos-theme-glass .pos-hamburger {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--pos-border);
}

body.pos-test-client .pos-hamburger:hover {
  background: rgba(99, 102, 241, 0.12);
}

body.pos-test-client.pos-theme-glass .pos-hamburger:hover {
  background: rgba(99, 102, 241, 0.14);
}

body.pos-test-client .pos-hamburger:active {
  transform: translateY(-50%) translateY(1px);
}

body.pos-test-client .pos-hamburger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 6px var(--pos-focus);
}

body.pos-test-client .pos-hamburger-bar {
  display: block;
  width: 46%;
  height: 6%;
  min-height: 1px;
  border-radius: 1px;
  background: rgba(17, 24, 39, 0.78);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.pos-test-client.pos-theme-glass .pos-hamburger-bar {
  background: rgba(15, 23, 42, 0.72);
}

body.pos-test-client .pos-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.pos-test-client .pos-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.pos-test-client .pos-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 82vw);
  max-width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--pos-surface);
  box-shadow: 16px 0 56px rgba(15, 23, 42, 0.12);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
}

body.pos-test-client .pos-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  border-radius: 0 4px 0 0;
}

@media (min-width: 768px) {
  body.pos-test-client .pos-sidebar {
    width: min(360px, 42vw);
    max-width: 360px;
    border-radius: 0 24px 24px 0;
  }
}

body.pos-test-client.pos-theme-glass .pos-sidebar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 20px 0 60px rgba(99, 102, 241, 0.08);
}

body.pos-test-client .pos-sidebar.is-open {
  transform: translateX(0);
}

body.pos-test-client .pos-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px;
  padding-top: 28px;
  border-bottom: none;
}

body.pos-test-client .pos-sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--pos-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  body.pos-test-client .pos-sidebar-header {
    padding: 28px 28px 24px;
    padding-top: 32px;
  }
  body.pos-test-client .pos-sidebar-title {
    font-size: 16px;
  }
}

body.pos-test-client .pos-sidebar-close {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--pos-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

body.pos-test-client .pos-sidebar-close:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--pos-text);
}

body.pos-test-client .pos-sidebar-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--pos-focus);
}

body.pos-test-client .pos-sidebar-close-icon {
  display: block;
  width: 18px;
  height: 18px;
  position: relative;
}

body.pos-test-client .pos-sidebar-close-icon::before,
body.pos-test-client .pos-sidebar-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
}

body.pos-test-client .pos-sidebar-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.pos-test-client .pos-sidebar-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 768px) {
  body.pos-test-client .pos-sidebar-close {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 18px;
  }
  body.pos-test-client .pos-sidebar-close-icon {
    width: 22px;
    height: 22px;
  }
  body.pos-test-client .pos-sidebar-close-icon::before,
  body.pos-test-client .pos-sidebar-close-icon::after {
    width: 28px;
    height: 3px;
  }
}

body.pos-test-client .pos-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 24px;
  gap: 0;
}

body.pos-test-client .pos-sidebar-rule {
  height: 1px;
  margin: 14px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-border) 18%, var(--pos-border) 82%, transparent 100%);
  position: relative;
  flex-shrink: 0;
}

body.pos-test-client .pos-sidebar-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-divider-accent) 50%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

body.pos-test-client .pos-sidebar-link {
  display: block;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  color: var(--pos-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

body.pos-test-client .pos-sidebar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--pos-primary), var(--pos-primary-2));
  transition: height 0.2s ease;
}

body.pos-test-client .pos-sidebar-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--pos-primary);
}

body.pos-test-client .pos-sidebar-link:hover::before {
  height: 24px;
}

@media (min-width: 768px) {
  body.pos-test-client .pos-sidebar-link {
    padding: 18px 22px;
    font-size: clamp(18px, 2.2vw, 22px);
  }
}

body.pos-test-client .pos-sidebar-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--pos-focus);
}

body.pos-test-client .pos-sidebar-link-logout {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--pos-border);
  color: var(--pos-muted);
}

body.pos-test-client .pos-sidebar-link-logout:hover {
  color: var(--pos-danger);
}

body.pos-test-client .pos-sidebar-link-logout:hover::before {
  background: var(--pos-danger);
}

body.pos-test-client .pos-sidebar-mode {
  margin-top: auto;
  padding: 16px 20px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pos-muted);
}

body.pos-test-client .pos-sidebar-mode span {
  color: var(--pos-primary);
}

@media (min-width: 768px) {
  body.pos-test-client .pos-sidebar-mode {
    padding: 18px 22px 12px;
    font-size: 15px;
  }
}

body.pos-test-client .pos-body {
  padding-block: clamp(18px, 2.6vh, 26px);
}

body.pos-test-client .pos-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 750;
  text-align: center;
  color: var(--pos-text);
  letter-spacing: -0.02em;
}

body.pos-test-client .pos-header .pos-title {
  color: rgba(15, 23, 42, 0.74);
}

body.pos-test-client .pos-rule {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-border) 18%, var(--pos-border) 82%, transparent 100%);
  margin: clamp(14px, 2.4vh, 22px) 0;
  position: relative;
}

body.pos-test-client .pos-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-divider-accent) 50%, transparent 100%);
  filter: blur(0.25px);
  opacity: 0.85;
  pointer-events: none;
}

body.pos-test-client .pos-row {
  display: grid;
  grid-template-columns: auto minmax(300px, 420px);
  align-items: center;
  gap: 16px;
  justify-content: center;
}

body.pos-test-client .pos-row-label {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: var(--pos-text);
  text-align: right;
  white-space: nowrap;
}

body.pos-test-client .pos-input,
body.pos-test-client .pos-select {
  height: 58px;
  font-size: 18px;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  color: var(--pos-text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  outline: none;
}

body.pos-test-client.pos-theme-alt .pos-input,
body.pos-test-client.pos-theme-alt .pos-select {
  border: 2px solid rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  background: var(--pos-surface-2);
  box-shadow: none;
}

body.pos-test-client.pos-theme-glass .pos-input,
body.pos-test-client.pos-theme-glass .pos-select {
  border: 1px solid var(--pos-border);
  background: var(--pos-surface-2);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

body.pos-test-client .pos-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0 54px 0 16px;
}

body.pos-test-client .pos-select-wrap {
  position: relative;
}

body.pos-test-client .pos-select-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 3px solid rgba(15, 23, 42, 0.50);
  border-bottom: 3px solid rgba(15, 23, 42, 0.50);
  transform: translateY(-55%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

body.pos-test-client.pos-theme-glass .pos-select-wrap::after {
  border-right-color: rgba(15, 23, 42, 0.46);
  border-bottom-color: rgba(15, 23, 42, 0.46);
}

body.pos-test-client .pos-input {
  padding: 0 16px;
}

body.pos-test-client .pos-input:focus,
body.pos-test-client .pos-select:focus {
  border-color: rgba(47, 120, 198, 0.55);
  box-shadow: 0 0 0 6px var(--pos-focus);
}

body.pos-test-client.pos-theme-alt .pos-input:focus,
body.pos-test-client.pos-theme-alt .pos-select:focus {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 8px var(--pos-focus);
}

body.pos-test-client .pos-main-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-block: clamp(24px, 5vh, 48px);
  padding-inline: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

body.pos-test-client .pos-login-card {
  position: relative;
  width: 100%;
  max-width: min(560px, 94vw);
  min-height: auto;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  align-self: center;
}

body.pos-test-client .pos-login-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

body.pos-test-client .pos-login-loading.is-visible {
  opacity: 1;
  visibility: visible;
}

body.pos-test-client .pos-login-loading .pos-loader {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background: conic-gradient(from 180deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.22));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  animation: posSpin 0.9s linear infinite;
}

body.pos-test-client .pos-login-loading-text {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  color: var(--pos-muted);
}

body.pos-test-client .pos-login-cancel-btn {
  margin-top: 8px;
  min-width: 140px;
  padding: 14px 28px;
  font-size: clamp(16px, 1.8vw, 19px);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--pos-muted);
}

body.pos-test-client .pos-login-cancel-btn:hover {
  background: rgba(148, 163, 184, 0.28);
  color: var(--pos-text);
}

body.pos-test-client .pos-btn-secondary {
  background: rgba(148, 163, 184, 0.18);
  color: var(--pos-muted);
}

body.pos-test-client .pos-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.28);
  color: var(--pos-text);
}

body.pos-test-client .pos-login-form .pos-row {
  margin-inline: clamp(12px, 2.5vw, 20px);
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 88px;
}

body.pos-test-client .pos-login-form .pos-row-label {
  font-size: clamp(14px, 1.6vw, 18px);
  text-align: left;
  white-space: normal;
}

body.pos-test-client .pos-login-form .pos-input {
  height: 58px;
  min-height: 58px;
  font-size: 22px;
}

body.pos-test-client .pos-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.pos-test-client .pos-mode-option {
  position: relative;
  margin: 0;
}

body.pos-test-client .pos-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.pos-test-client .pos-mode-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--pos-text);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.pos-test-client .pos-mode-option input:checked + span {
  border-color: rgba(79, 70, 229, 0.36);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.12));
  color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

body.pos-test-client .pos-mode-option input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--pos-focus);
}

body.pos-test-client .pos-login-actions {
  margin-inline: clamp(12px, 2.5vw, 20px);
  padding-bottom: 24px;
}

body.pos-test-client .pos-login-btn {
  width: 100%;
  height: 84px;
  font-size: clamp(22px, 2.6vw, 32px);
  border-radius: 14px;
}

@media (min-width: 768px) {
  body.pos-test-client .pos-input {
    height: 72px;
    min-height: 72px;
    font-size: 22px;
    padding: 0 20px;
  }
  body.pos-test-client.pos-login .pos-login-card {
    max-width: min(680px, 94vw);
  }
  body.pos-test-client.pos-login .pos-login-form .pos-row-label {
    font-size: clamp(20px, 2.4vw, 26px);
  }
  body.pos-test-client.pos-login .pos-login-form .pos-input {
    height: 80px;
    min-height: 80px;
    font-size: 24px;
    padding: 0 24px;
  }
  body.pos-test-client .pos-mode-option span {
    min-height: 80px;
    font-size: clamp(20px, 2.2vw, 24px);
    padding: 0 24px;
  }
  body.pos-test-client.pos-login .pos-login-btn {
    height: 100px;
    font-size: clamp(28px, 3.2vw, 38px);
  }
  body.pos-test-client.pos-login .pos-login-loading .pos-loader {
    width: 52px;
    height: 52px;
  }
  body.pos-test-client.pos-login .pos-login-loading-text {
    font-size: clamp(22px, 2.4vw, 28px);
  }
  body.pos-test-client.pos-login .pos-login-form .pos-row {
    min-height: 110px;
  }
}

body.pos-test-client .pos-amount {
  display: grid;
  gap: 10px;
}

body.pos-test-client .pos-section-label {
  font-size: var(--pos-label-size);
  font-weight: 600;
  color: var(--pos-text);
}

body.pos-test-client .pos-muted-text {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--pos-muted);
  margin-top: 12px;
}

body.pos-test-client .pos-batch-search-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 8px;
  width: 100%;
  min-width: 0;
}

body.pos-test-client .pos-batch-search-bar .pos-batch-form {
  width: 100%;
  min-width: 0;
}

body.pos-test-client .pos-batch-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  box-shadow: 0 10px 26px rgba(47, 120, 198, 0.22), 0 1px 0 rgba(0, 0, 0, 0.08);
}

body.pos-test-client .pos-batch-search-btn:hover {
  filter: brightness(1.03);
}

body.pos-test-client .pos-batch-search-btn:active {
  transform: translateY(1px);
}

body.pos-test-client .pos-batch-search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 6px var(--pos-focus);
}

body.pos-test-client .pos-batch-search-icon {
  width: 24px;
  height: 24px;
}

body.pos-test-client.pos-theme-alt .pos-batch-search-btn {
  background: var(--pos-primary);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

body.pos-test-client.pos-theme-alt .pos-batch-search-btn:hover {
  filter: brightness(1.02);
}

body.pos-test-client.pos-theme-glass .pos-batch-search-btn {
  background: linear-gradient(135deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  box-shadow:
    0 14px 34px rgba(99, 102, 241, 0.24),
    0 10px 22px rgba(14, 165, 233, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.10);
}

body.pos-test-client.pos-theme-glass .pos-batch-search-btn:hover {
  filter: brightness(1.04);
}

body.pos-test-client .pos-batch-form .pos-row {
  justify-content: center;
  grid-template-columns: auto minmax(340px, 480px);
  margin-inline: clamp(16px, 4vw, 24px);
}

@media (min-width: 768px) {
  body.pos-test-client .pos-batch-form .pos-row {
    grid-template-columns: auto minmax(400px, 560px);
  }
}

body.pos-test-client .pos-batch-control {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

body.pos-test-client .pos-batch-control .pos-select-wrap {
  flex: 1;
  min-width: 0;
}

body.pos-test-client .pos-batch-control .pos-select {
  height: 100%;
  min-height: 58px;
}

body.pos-test-client .pos-batch-btn {
  height: 58px;
  padding: 0 24px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  body.pos-test-client .pos-batch-control .pos-select {
    min-height: 88px;
  }

  body.pos-test-client .pos-batch-btn {
    height: 88px;
    padding: 0 32px;
    font-size: clamp(18px, 2vw, 22px);
  }
}

@media (max-width: 819px) {
  body.pos-test-client .pos-batch-form .pos-row {
    grid-template-columns: 1fr;
  }

  body.pos-test-client .pos-batch-control {
    flex-direction: column;
  }

  body.pos-test-client .pos-batch-btn {
    width: 100%;
    height: 84px;
    font-size: clamp(22px, 2.6vw, 32px);
  }
}

body.pos-test-client .pos-batch-loading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  margin-inline: clamp(16px, 4vw, 24px);
}

body.pos-test-client .pos-batch-loading .pos-loader {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background: conic-gradient(from 180deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.22));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  animation: posSpin 0.9s linear infinite;
}

body.pos-test-client .pos-batch-loading-text {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--pos-muted);
}

body.pos-test-client .pos-batch-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-bottom: 20px;
  margin-inline: clamp(16px, 4vw, 24px);
}

body.pos-test-client .pos-batch-header .pos-batch-search-btn {
  margin-left: auto;
}

body.pos-test-client .pos-batch-meta {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--pos-text);
}

body.pos-test-client .pos-batch-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--pos-border);
  background: var(--pos-surface-2);
}

body.pos-test-client.pos-theme-glass .pos-batch-table-wrap {
  background: rgba(255, 255, 255, 0.5);
}

body.pos-test-client .pos-batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(17px, 2vw, 22px);
}

body.pos-test-client .pos-batch-table th,
body.pos-test-client .pos-batch-table td {
  padding: 14px 18px;
  text-align: left;
}

body.pos-test-client .pos-batch-table th {
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 24px);
  color: var(--pos-text);
  background-color: #f0f2f5;
  background-image:
    linear-gradient(90deg, transparent 0%, var(--pos-divider-accent) 50%, transparent 100%),
    linear-gradient(90deg, transparent 0%, var(--pos-border) 18%, var(--pos-border) 82%, transparent 100%);
  background-size: 100% 1px, 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom;
  position: sticky;
  top: 0;
  z-index: 1;
}

body.pos-test-client.pos-theme-glass .pos-batch-table th {
  background-color: #e8ecf4;
}

body.pos-test-client .pos-batch-table td {
  font-weight: 600;
}

body.pos-test-client .pos-batch-table th.pos-batch-col-amount {
  text-align: right;
}

body.pos-test-client .pos-batch-table tbody tr:not(:last-child) {
  background-image:
    linear-gradient(90deg, transparent 0%, var(--pos-divider-accent) 50%, transparent 100%),
    linear-gradient(90deg, transparent 0%, var(--pos-border) 18%, var(--pos-border) 82%, transparent 100%);
  background-size: 100% 1px, 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom;
}

body.pos-test-client .pos-batch-table .pos-batch-col-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.pos-test-client .pos-batch-table .pos-batch-tx-refund {
  color: var(--pos-success);
}

body.pos-test-client .pos-batch-table .pos-batch-tx-voided {
  color: var(--pos-danger);
}

body.pos-test-client .pos-batch-table .pos-batch-tx-void {
  color: var(--pos-muted);
  opacity: 0.85;
}

body.pos-test-client .pos-batch-empty {
  padding: 24px 20px;
  margin-inline: clamp(16px, 4vw, 24px);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  color: var(--pos-muted);
  text-align: center;
}

body.pos-test-client .pos-batch-error {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(184, 74, 74, 0.1);
  border: 1px solid rgba(184, 74, 74, 0.22);
  color: var(--pos-danger);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 21px);
}

body.pos-test-client .pos-amount-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

@media (min-width: 768px) {
  body.pos-test-client {
    --pos-label-size: clamp(26px, 2.6vw, 36px);
  }

  body.pos-test-client .pos-container {
    padding-inline: clamp(32px, 5.2vw, 88px);
  }

  body.pos-test-client .pos-header {
    padding-block: clamp(22px, 3.2vh, 34px);
  }

  body.pos-test-client .pos-body {
    padding-block: clamp(28px, 4vh, 44px);
  }

  body.pos-test-client .pos-title {
    font-size: clamp(34px, 3.2vw, 48px);
  }

  body.pos-test-client .pos-rule {
    margin: clamp(22px, 3.6vh, 36px) 0;
  }

  body.pos-test-client .pos-row {
    gap: 24px;
    grid-template-columns: auto minmax(340px, 520px);
  }

  body.pos-test-client .pos-row-label {
    font-size: clamp(26px, 2.6vw, 36px);
  }

  body.pos-test-client .pos-select {
    height: 88px;
    font-size: 28px;
  }

  body.pos-test-client .pos-amount-input {
    height: 132px;
    font-size: clamp(60px, 5vw, 80px);
  }

  body.pos-test-client .pos-accept-btn {
    height: 132px;
    font-size: clamp(34px, 3.6vw, 52px);
  }

  body.pos-test-client .pos-toggle-row {
    padding: 18px 0;
  }

  body.pos-test-client .pos-switch.form-check-input {
    width: 124px;
    height: 70px;
  }

  body.pos-test-client .pos-close-btn {
    font-size: clamp(34px, 3.6vw, 52px);
    padding: 18px 28px;
  }

  body.pos-test-client #posResultModal .modal-dialog {
    max-width: min(760px, 94vw);
  }

  body.pos-test-client #posResultModal .modal-content {
    border-radius: 18px;
    min-height: clamp(520px, 42vh, 640px);
  }

  body.pos-test-client #posResultModal .modal-body {
    padding: 40px 36px;
  }

  body.pos-test-client #posResultModal #posResultIcon.pos-loader {
    width: 4.75rem;
    height: 4.75rem;
  }

  body.pos-test-client #posResultModal #posResultTitle {
    font-size: clamp(36px, 3.4vw, 50px);
    font-weight: 700;
  }

  body.pos-test-client #posResultModal .pos-result-meta {
    font-size: clamp(24px, 2.4vw, 32px);
  }

  body.pos-test-client #posResultModal .pos-result-ok {
    font-size: clamp(28px, 2.6vw, 36px);
    padding: 20px 60px;
    border-radius: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (max-height: 820px) and (pointer: coarse) {
  body.pos-test-client {
    --pos-label-size: clamp(20px, 2.2vw, 26px);
  }

  body.pos-test-client .pos-container {
    padding-inline: clamp(18px, 3.2vw, 42px);
  }

  body.pos-test-client .pos-header {
    padding-block: clamp(14px, 2.2vh, 18px);
  }

  body.pos-test-client .pos-body {
    padding-block: clamp(16px, 2.6vh, 22px);
  }

  body.pos-test-client .pos-title {
    font-size: clamp(28px, 3vw, 34px);
  }

  body.pos-test-client .pos-rule {
    margin: clamp(14px, 2.2vh, 18px) 0;
  }

  body.pos-test-client .pos-row {
    gap: 16px;
    grid-template-columns: auto minmax(300px, 420px);
  }

  body.pos-test-client .pos-row-label {
    font-size: clamp(20px, 2.2vw, 26px);
  }

  body.pos-test-client .pos-select {
    height: 72px;
    font-size: 22px;
  }

  body.pos-test-client .pos-amount {
    gap: 8px;
  }

  body.pos-test-client .pos-amount-grid {
    gap: 12px;
  }

  body.pos-test-client .pos-amount-input {
    height: 108px;
    font-size: clamp(48px, 5vw, 62px);
  }

  body.pos-test-client .pos-accept-btn {
    height: 108px;
    font-size: clamp(24px, 3vw, 34px);
  }

  body.pos-test-client .pos-toggle-row {
    padding: 10px 0;
  }

  body.pos-test-client .pos-close-wrap {
    padding: clamp(10px, 1.8vh, 14px) 0 clamp(2px, 0.6vh, 6px);
  }

  body.pos-test-client .pos-close-btn {
    font-size: clamp(22px, 2.4vw, 28px);
    padding: 10px 16px;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) and (max-height: 860px) and (pointer: coarse) {
  body.pos-test-client {
    --pos-label-size: clamp(22px, 2.1vw, 28px);
  }

  body.pos-test-client .pos-container {
    padding-inline: clamp(22px, 3.6vw, 54px);
  }

  body.pos-test-client .pos-header {
    padding-block: clamp(16px, 2.4vh, 20px);
  }

  body.pos-test-client .pos-body {
    padding-block: clamp(18px, 2.8vh, 26px);
  }

  body.pos-test-client .pos-title {
    font-size: clamp(30px, 2.8vw, 38px);
  }

  body.pos-test-client .pos-rule {
    margin: clamp(16px, 2.4vh, 22px) 0;
  }

  body.pos-test-client .pos-row {
    gap: 18px;
    grid-template-columns: auto minmax(320px, 460px);
  }

  body.pos-test-client .pos-row-label {
    font-size: clamp(22px, 2.1vw, 28px);
  }

  body.pos-test-client .pos-select {
    height: 78px;
    font-size: 24px;
  }

  body.pos-test-client .pos-amount {
    gap: 8px;
  }

  body.pos-test-client .pos-amount-grid {
    gap: 14px;
  }

  body.pos-test-client .pos-amount-input {
    height: 116px;
    font-size: clamp(54px, 4.8vw, 70px);
  }

  body.pos-test-client .pos-accept-btn {
    height: 116px;
    font-size: clamp(28px, 3vw, 40px);
  }

  body.pos-test-client .pos-toggle-row {
    padding: 12px 0;
  }

  body.pos-test-client .pos-close-wrap {
    padding: clamp(12px, 2vh, 18px) 0 clamp(3px, 0.8vh, 8px);
  }

  body.pos-test-client .pos-close-btn {
    font-size: clamp(24px, 2.2vw, 30px);
    padding: 12px 18px;
  }
}

body.pos-test-client .pos-amount-input {
  height: 84px;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.pos-test-client .pos-btn {
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.pos-test-client .pos-btn:active {
  transform: translateY(1px);
}

body.pos-test-client .pos-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 6px var(--pos-focus);
}

body.pos-test-client .pos-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  box-shadow: 0 10px 26px rgba(47, 120, 198, 0.22), 0 1px 0 rgba(0, 0, 0, 0.08);
}

body.pos-test-client.pos-theme-alt .pos-btn-primary {
  background: var(--pos-primary);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

body.pos-test-client.pos-theme-alt .pos-btn-primary:hover {
  filter: brightness(1.02);
}

body.pos-test-client.pos-theme-glass .pos-btn-primary {
  background: linear-gradient(135deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  box-shadow:
    0 14px 34px rgba(99, 102, 241, 0.24),
    0 10px 22px rgba(14, 165, 233, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.10);
}

body.pos-test-client.pos-theme-glass .pos-btn-primary:hover {
  filter: brightness(1.04);
}

body.pos-test-client .pos-btn-primary:hover {
  filter: brightness(1.03);
}

body.pos-test-client .pos-btn-link {
  background: transparent;
  color: var(--pos-danger);
  padding: 8px 14px;
}

body.pos-test-client .pos-btn-link:hover {
  filter: brightness(0.96);
}

body.pos-test-client .pos-accept-btn {
  height: 84px;
  font-size: clamp(22px, 2.6vw, 32px);
}

body.pos-test-client .pos-toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 2px 0;
}

body.pos-test-client .pos-toggle-text {
  font-size: var(--pos-label-size);
  font-weight: 600;
  color: var(--pos-text);
  padding-left: 2px;
}

body.pos-test-client .pos-switch-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

body.pos-test-client .pos-switch {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.pos-test-client .pos-switch-ui {
  width: 74px;
  height: 40px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.85);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: background 0.15s ease;
}

body.pos-test-client.pos-theme-alt .pos-switch-ui {
  background: rgba(148, 163, 184, 0.55);
  box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.10);
}

body.pos-test-client .pos-switch-ui::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  left: 3px;
  top: 3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease;
}

body.pos-test-client .pos-switch:checked + .pos-switch-ui {
  background: rgba(52, 168, 83, 0.95);
}

body.pos-test-client.pos-theme-alt .pos-switch:checked + .pos-switch-ui {
  background: rgba(52, 168, 83, 0.95);
}

body.pos-test-client.pos-theme-glass .pos-switch:checked + .pos-switch-ui {
  background: linear-gradient(135deg, rgba(52, 168, 83, 0.95) 0%, rgba(34, 197, 94, 0.95) 100%);
}

body.pos-test-client .pos-switch:checked + .pos-switch-ui::before {
  transform: translateX(34px);
}

body.pos-test-client .pos-switch:focus-visible + .pos-switch-ui {
  box-shadow: 0 0 0 6px var(--pos-focus), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.pos-test-client .pos-close-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(14px, 2.6vh, 26px) 0 clamp(4px, 1vh, 10px);
}

@media (max-width: 540px) {
  body.pos-test-client .pos-close-wrap {
    padding: clamp(14px, 2.6vh, 26px) 0 clamp(20px, 2.5vh, 32px);
  }
}

body.pos-test-client .pos-close-btn {
  color: var(--pos-danger);
  font-size: clamp(24px, 2.8vw, 32px);
}

body.pos-test-client .pos-close-btn:focus,
body.pos-test-client .pos-close-btn:hover {
  color: rgba(184, 74, 74, 0.9);
  text-decoration: none;
}

body.pos-test-client .pos-error-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.pos-test-client .pos-error-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.pos-test-client .pos-error-overlay-box {
  width: 100%;
  max-width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(184, 74, 74, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

body.pos-test-client .pos-error-overlay-content {
  padding: 24px 28px;
  color: var(--pos-danger);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 21px);
  text-align: center;
}

body.pos-test-client .pos-error-overlay-close {
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-top: 1px solid rgba(184, 74, 74, 0.12);
  border-radius: 0;
  color: #fff;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  box-shadow: 0 10px 26px rgba(47, 120, 198, 0.22), 0 1px 0 rgba(0, 0, 0, 0.08);
}

body.pos-test-client.pos-theme-glass .pos-error-overlay-close {
  background: linear-gradient(135deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
  box-shadow:
    0 14px 34px rgba(99, 102, 241, 0.24),
    0 10px 22px rgba(14, 165, 233, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.10);
}

body.pos-test-client .pos-error-overlay-close:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.pos-test-client .pos-error-overlay-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pos-focus);
}

body.pos-test-client .pos-error {
  margin-top: 12px;
  margin-inline: auto;
  width: min(1160px, 100%);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(184, 74, 74, 0.1);
  border: 1px solid rgba(184, 74, 74, 0.22);
  color: rgba(140, 30, 30, 0.92);
  font-weight: 650;
}

body.pos-test-client .pos-error-overlay-source {
  display: none;
}

body.pos-test-client #posResultModal .modal-content {
  border: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

body.pos-test-client.pos-theme-glass #posResultModal .modal-content {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 56px rgba(15, 23, 42, 0.24);
}

body.pos-test-client #posResultModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
}

body.pos-test-client #posResultModal .pos-result-icon-wrap {
  margin-top: 6px;
  margin-bottom: 4px;
}

body.pos-test-client #posResultModal .pos-result-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(17, 24, 39, 0.82);
  line-height: 1.1;
}

body.pos-test-client #posResultModal .pos-result-meta {
  color: rgba(75, 85, 99, 0.95);
  line-height: 1.45;
}

body.pos-test-client.pos-theme-glass #posResultModal .pos-result-title {
  color: rgba(15, 23, 42, 0.82);
}

body.pos-test-client.pos-theme-glass #posResultModal .pos-result-meta {
  color: rgba(51, 65, 85, 0.82);
}

body.pos-test-client #posResultModal .pos-result-meta strong {
  color: rgba(31, 41, 55, 0.9);
  font-weight: 700;
}

body.pos-test-client #posResultModal .pos-result-error {
  width: min(560px, 90vw);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: rgba(153, 27, 27, 0.92);
  font-weight: 650;
  line-height: 1.3;
}

body.pos-test-client #posResultModal .pos-result-divider {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-border) 18%, var(--pos-border) 82%, transparent 100%);
  margin: 0;
  position: relative;
}

body.pos-test-client #posResultModal .pos-result-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--pos-divider-accent) 50%, transparent 100%);
  filter: blur(0.4px);
  opacity: 0.8;
  pointer-events: none;
}

body.pos-test-client #posResultModal .pos-result-ok {
  min-width: min(360px, 86vw);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

body.pos-test-client #posResultModal .pos-result-actions {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 74px;
}

body.pos-test-client #posResultModal .pos-result-action-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

body.pos-test-client #posResultModal .pos-result-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: clamp(120px, 18vh, 190px);
  padding-bottom: 10px;
}

body.pos-test-client #posResultModal .pos-result-footer .pos-result-actions {
  margin-top: auto;
}

body.pos-test-client #posResultModal .pos-result-ok:disabled {
  opacity: 0.65;
  box-shadow: none;
}

body.pos-test-client #posResultModal .pos-result-status-circle {
  border-width: 3px !important;
}

body.pos-test-client #posResultModal .pos-result-status-circle svg {
  color: currentColor;
}

body.pos-test-client #posResultModal .pos-result-status-circle--success {
  background: rgba(52, 168, 83, 0.10);
  color: #34a853;
}

body.pos-test-client #posResultModal .pos-result-status-circle--fail {
  background: rgba(220, 38, 38, 0.10);
  color: #dc2626;
}

body.pos-test-client #posResultModal .pos-loader {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background:
    conic-gradient(from 180deg, rgba(47, 120, 198, 0.22), rgba(47, 120, 198, 0.95), rgba(47, 120, 198, 0.22));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  animation: posSpin 0.9s linear infinite;
}

@keyframes posSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  body.pos-test-client .pos-row {
    grid-template-columns: 1fr;
  }

  body.pos-test-client .pos-row-label {
    text-align: left;
  }

  body.pos-test-client .pos-amount-grid {
    grid-template-columns: 1fr;
  }

  body.pos-test-client #posResultModal .modal-dialog {
    max-width: min(560px, 92vw);
    margin-inline: auto;
  }

  body.pos-test-client #posResultModal .modal-content {
    min-height: clamp(440px, 62vh, 560px);
    border-radius: 22px;
  }

  body.pos-test-client #posResultModal .modal-body {
    padding: 28px 22px;
    gap: 26px;
  }

  body.pos-test-client #posResultModal .pos-result-error {
    width: min(520px, 86%);
    margin-inline: auto;
  }

  body.pos-test-client #posResultModal .pos-result-ok {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    border-radius: 16px;
  }

  body.pos-test-client #posResultModal .pos-result-actions {
    min-height: 66px;
  }
}

@media (min-width: 900px) {
  body.pos-test-client #posResultModal .modal-dialog {
    max-width: min(640px, 92vw);
  }

  body.pos-test-client #posResultModal .modal-content {
    min-height: 560px;
  }

  body.pos-test-client #posResultModal .modal-body {
    padding: 48px 44px;
    gap: 26px;
    justify-content: flex-start;
  }

  body.pos-test-client #posResultModal .pos-result-error {
    width: min(480px, 78%);
  }

  body.pos-test-client #posResultModal .pos-result-ok {
    min-height: 78px;
    width: min(420px, 70%);
    min-width: 0;
    padding: 22px 70px;
    border-radius: 16px;
  }

  body.pos-test-client #posResultModal .pos-result-actions {
    min-height: 78px;
  }
}

@media (min-width: 900px) and (pointer: coarse) {
  body.pos-test-client #posResultModal .modal-dialog {
    max-width: min(720px, 92vw);
  }
}

body.pos-test-client .modal-backdrop.show {
  opacity: 0.42;
}

body.pos-test-client.pos-theme-glass .modal-backdrop.show {
  opacity: 0.55;
  background: rgba(15, 23, 42, 0.76);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}