*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #1a1a1a;
  direction: rtl;
  min-height: 100vh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

#app-root[hidden] {
  display: none;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1024px;
  margin: 0 auto;
  background-color: #ffffff;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 14px;
  background-color: #f97316;
  color: #ffffff;
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.header__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.header__market {
  font-size: 0.75rem;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.header__time {
  font-size: 0.8rem;
  opacity: 0.9;
}

.header__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.8rem;
}

.header__status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  flex-shrink: 0;
}

.status-dot--offline {
  background-color: #ef4444;
}

.header__cashier strong,
.header__status strong {
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__actions[hidden] {
  display: none;
}

.force-update-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.legacy-update-text {
  line-height: 1.7;
  font-size: 1rem;
}

.legacy-update-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.logout-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.reprint-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid #ffffff;
  border-radius: 8px;
  cursor: pointer;
  color: #f97316;
  background: #ffffff;
}

.install-btn {
  min-height: 48px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid #ffffff;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  color: #f97316;
  background-color: #ffffff;
  white-space: nowrap;
}

.install-btn:active {
  background-color: #fff7ed;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
}

.search-wrapper {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.125rem;
  font-family: inherit;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background-color: #fafafa;
  color: #1a1a1a;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  border-color: #f97316;
  background-color: #ffffff;
}

.search-result {
  flex-shrink: 0;
  margin-bottom: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.search-result[hidden] {
  display: none;
}

.search-result__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
}

.search-result__meta {
  min-width: 0;
}

.search-result__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.search-result__detail {
  font-size: 0.85rem;
  color: #666;
}

.search-result__add {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background-color: #f97316;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
}

.search-result__empty,
.search-result__notice {
  padding: 14px;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  border: 2px dashed #e0e0e0;
  border-radius: 10px;
}

.search-result__notice {
  color: #b45309;
  border-color: #fdba74;
  background: #fff7ed;
}

.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  background-color: #fafafa;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty p {
  font-size: 1.125rem;
  color: #888888;
  text-align: center;
  padding: 24px;
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-list[hidden] {
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background-color: #fafafa;
}

.cart-item__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 0.9rem;
  color: #666;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid #f97316;
  border-radius: 8px;
  background: #ffffff;
  color: #f97316;
  cursor: pointer;
  touch-action: manipulation;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-item__qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-item__remove {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
  touch-action: manipulation;
}

.footer {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background-color: #ffffff;
  border-top: 2px solid #e5e5e5;
  flex-shrink: 0;
  pointer-events: auto;
}

.footer__total-label {
  font-size: 0.875rem;
  color: #666666;
}

.footer__total-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer__offline-msg {
  font-size: 0.85rem;
  color: #b91c1c;
  margin-top: 4px;
}

.pay-button {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  min-width: 160px;
  min-height: 48px;
  padding: 18px 32px;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background-color: #f97316;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.pay-button:disabled {
  background-color: #fdba74;
  cursor: not-allowed;
  opacity: 0.7;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.modal-overlay[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

body.payment-modal-open {
  overflow: hidden;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}

.modal-card--wide {
  max-width: 480px;
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #f97316;
  color: #ffffff;
}

.modal-card__header h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.modal-card__close-x {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
}

.modal-card__body {
  padding: 16px 20px;
  overflow-y: auto;
}

.modal-card__footer {
  padding: 16px 20px;
  border-top: 1px solid #eeeeee;
}

.modal-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn--close {
  color: #666;
  background: #f5f5f5;
}

.modal-btn--primary {
  color: #fff;
  background: #f97316;
  margin-top: 12px;
}

.modal-error {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.install-steps {
  padding-right: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-tab {
  flex: 1;
  min-width: 70px;
  min-height: 44px;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  touch-action: manipulation;
}

.payment-tab--active {
  border-color: #f97316;
  background: #fff7ed;
  color: #f97316;
}

.payment-panel[hidden] {
  display: none;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 1rem;
}

.payment-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0 6px;
}

.payment-input {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-family: inherit;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  margin-bottom: 8px;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.quick-amount-btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid #f97316;
  border-radius: 8px;
  background: #fff7ed;
  color: #f97316;
  cursor: pointer;
  touch-action: manipulation;
}

.credit-customer {
  padding: 14px;
  margin: 12px 0;
  background: #fafafa;
  border-radius: 10px;
  font-size: 1rem;
}

.customer-search-results {
  max-height: 160px;
  overflow-y: auto;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-search-item {
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: right;
}

.customer-search-item--selected {
  border-color: #f97316;
  background: #fff7ed;
}

.success-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: perspective(600px) rotateX(2deg);
  animation: success-pop 0.4s ease;
}

@keyframes success-pop {
  from { transform: perspective(600px) rotateX(20deg) scale(0.8); opacity: 0; }
  to { transform: perspective(600px) rotateX(2deg) scale(1); opacity: 1; }
}

.success-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 2.5rem;
  line-height: 72px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.success-card__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.print-receipt {
  display: none;
}

.receipt-inner {
  width: 58mm;
  max-width: 58mm;
  font-family: monospace, "Courier New", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
  padding: 4mm;
}

.receipt-title {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.receipt-sub {
  text-align: center;
  margin-bottom: 8px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.receipt-line--sub {
  font-size: 11px;
  color: #333;
  margin-bottom: 6px;
}

.receipt-line--bold {
  font-weight: 700;
  font-size: 13px;
}

.receipt-divider {
  border-top: 1px dashed #000;
  margin: 6px 0;
}

.receipt-thanks {
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
}

.screen-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f5f5;
}

.screen-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.screen-card h1 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #f97316;
}

.screen-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Login screen v34 ── */
.sasyas-login-page {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #f7f5f2;
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255, 149, 0, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 24, 0.06) 0%, transparent 40%);
  position: relative;
}

.sasyas-login-page__glow,
.sasyas-login-page__orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.sasyas-login-page__glow {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 149, 0, 0.12) 0%, transparent 70%);
}

.sasyas-login-page__orb {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 214, 160, 0.18) 0%, transparent 68%);
}

.sasyas-login-card {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: calc(100% - 28px);
  max-width: 560px;
  padding: 28px 24px 22px;
  background: #ffffff;
  border: 1px solid rgba(255, 149, 0, 0.12);
  border-radius: 32px;
  box-shadow:
    0 18px 48px rgba(28, 28, 30, 0.08),
    0 4px 14px rgba(255, 122, 24, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sasyas-login-page .sasyas-login-hero {
  width: 100%;
  height: 210px;
  min-height: 190px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  background: #f7f5f2;
  border: 1px solid rgba(255, 122, 24, 0.14);
  box-shadow: 0 6px 18px rgba(28, 28, 30, 0.06);
  flex-shrink: 0;
}

.sasyas-login-page .sasyas-login-hero-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.sasyas-login-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1c1c1e;
  line-height: 1.25;
}

.sasyas-login-title__accent {
  color: #ff7a18;
}

.sasyas-login-sub {
  margin: 0 0 4px;
  text-align: center;
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.5;
}

.sasyas-login-hint {
  margin: 0 0 14px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.82rem;
}

.sasyas-login-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin: 0 auto 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  background: #ecfdf3;
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.sasyas-login-page .sasyas-login-status {
  display: flex;
}

.sasyas-login-status--offline {
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.35);
  color: #c2410c;
}

.sasyas-login-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.sasyas-login-status__dot.status-dot--offline,
.sasyas-login-status--offline .sasyas-login-status__dot {
  background: #f97316;
}

.sasyas-login-page .sasyas-login-form,
.sasyas-login-page #login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.sasyas-login-page .sasyas-login-field__input {
  display: block;
  visibility: visible;
  opacity: 1;
}

.sasyas-login-page .sasyas-login-submit {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.sasyas-login-form {
  margin: 0;
}

.sasyas-login-field {
  margin-bottom: 14px;
}

.sasyas-login-field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.sasyas-login-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sasyas-login-field__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sasyas-login-field__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 14px 46px 14px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #e5e7eb;
  border-radius: 17px;
  background: #f9fafb;
  color: #111827;
  direction: ltr;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sasyas-login-field__input:focus {
  outline: none;
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.18);
  background: #fff;
}

.sasyas-login-field__toggle {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sasyas-login-field__toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.sasyas-login-error {
  margin-bottom: 12px;
}

.sasyas-login-activation {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.25);
  text-align: center;
}

.sasyas-login-activation__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #b45309;
}

.sasyas-login-activation__code {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.sasyas-login-activation__hint {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #64748b;
}

.sasyas-login-activation__status {
  margin: 0 0 10px;
  min-height: 1.2em;
  color: #334155;
  font-weight: 600;
}

.sasyas-login-activation__check {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 149, 0, 0.45);
  border-radius: 12px;
  background: #fff;
  color: #c2410c;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sasyas-login-submit {
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  margin-top: 4px;
  padding: 0 18px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(145deg, #ff7a18 0%, #ff9500 100%);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.sasyas-login-submit:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.22);
}

.sasyas-login-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.sasyas-login-submit__icon {
  display: flex;
  align-items: center;
}

.sasyas-login-page .sasyas-login-support--compact {
  margin-top: 10px;
  padding: 10px 12px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.sasyas-login-page .sasyas-login-support__line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.45;
}

.sasyas-login-page .sasyas-login-support__line + .sasyas-login-support__line {
  margin-top: 6px;
}

.sasyas-login-page .sasyas-login-support__mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
  pointer-events: none;
  cursor: default;
}

.sasyas-login-page .sasyas-login-support__mini-icon--whatsapp {
  color: #22c55e;
}

.sasyas-login-page .sasyas-login-support__line--whatsapp {
  color: #374151;
}

#native-printer-status-button-v32,
.native-printer-status-btn,
#thermal-printer-diag-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
  .sasyas-login-page .sasyas-login-hero {
    min-height: 180px;
    height: 190px;
  }
}

@media (max-width: 480px) {
  .sasyas-login-page {
    align-items: flex-start;
    padding: 10px 10px 16px;
  }

  .sasyas-login-page .sasyas-login-card {
    width: calc(100% - 20px);
    padding: 18px 14px 14px;
    border-radius: 28px;
  }

  .sasyas-login-page .sasyas-login-hero {
    min-height: 160px;
    height: 168px;
    margin-bottom: 10px;
    border-radius: 18px;
  }

  .sasyas-login-title {
    font-size: 1.35rem;
  }

  .sasyas-login-hint {
    margin-bottom: 10px;
  }
}

@media (max-width: 360px) {
  .sasyas-login-page {
    padding: 8px 8px 14px;
  }

  .sasyas-login-page .sasyas-login-card {
    width: calc(100% - 12px);
    padding: 14px 12px 12px;
  }

  .sasyas-login-page .sasyas-login-hero {
    min-height: 145px;
    height: 152px;
  }

  .sasyas-login-hint {
    font-size: 0.78rem;
  }

  .sasyas-login-page .sasyas-login-submit {
    min-height: 58px;
    font-size: 1rem;
  }
}

.sasyas-login-page .sasyas-login-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.config-error {
  text-align: center;
  color: #b91c1c;
  font-size: 1.1rem;
  font-weight: 700;
}

@media print {
  @page {
    size: 58mm auto;
    margin: 0;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body * {
    visibility: hidden !important;
  }

  #thermal-receipt-print-area,
  #thermal-receipt-print-area * {
    visibility: visible !important;
  }

  #thermal-receipt-print-area {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 58mm !important;
    max-width: 58mm !important;
    margin: 0 !important;
    padding: 2mm !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  #thermal-receipt-print-area.thermal-paper-80 {
    width: 80mm !important;
    max-width: 80mm !important;
  }

  .thermal-preview-actions,
  .thermal-paper-selector,
  .thermal-preview-paper-select,
  .thermal-preview-hint,
  .thermal-preview-debug,
  #pos-debug-panel,
  #pos-sale-debug-status,
  .sale-success-notification,
  .thermal-print-status-toast,
  .no-print {
    display: none !important;
  }

  #print-receipt,
  #print-receipt * {
    visibility: hidden !important;
  }
}

@media (max-width: 480px) {
  .header { padding: 8px 10px; }
  .header__title { font-size: 1rem; }
  .install-btn { width: 100%; }
  .footer { flex-direction: column; align-items: stretch; }
  .pay-button { width: 100%; }
  .cart-item { flex-direction: column; align-items: stretch; }
  .cart-item__actions { justify-content: center; }
}

@media (min-width: 481px) {
  .header__actions { margin-right: auto; }
}

/* ============================================================
   POS Machine Mode — /u/ path (body.pos-mode)
   ============================================================ */

body.pos-mode {
  overflow: hidden;
}

body.pos-mode .app--pos {
  max-width: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transform: none;
  -webkit-transform: none;
}

body.pos-mode .pos-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: #ffffff;
  border-bottom: 2px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 8px 10px 6px;
  pointer-events: auto;
  touch-action: manipulation;
}

body.pos-mode .pos-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

body.pos-mode .pos-toolbar__row--meta {
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

body.pos-mode .pos-toolbar__row--pay {
  margin-bottom: 8px;
}

body.pos-mode .pos-toolbar__row--actions {
  justify-content: space-between;
  gap: 12px;
}

body.pos-mode .pos-toolbar__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

body.pos-mode .pos-toolbar__market {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a1a1a;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pos-mode .pos-toolbar__cashier {
  color: #333;
}

body.pos-mode .pos-toolbar__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
}

body.pos-mode .pos-pay-button {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #f97316;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 20;
  opacity: 0.78;
}

body.pos-mode .pos-pay-button--ready {
  opacity: 1;
}

body.pos-mode .pos-pay-button:disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.pos-mode .pos-pay-total {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

body.pos-mode .pos-update-button,
body.pos-mode .pos-logout-button {
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body.pos-mode .pos-update-button {
  flex: 1 1 auto;
  background: #2563eb;
  color: #ffffff;
  border: none;
}

body.pos-mode .pos-update-button[hidden] {
  display: none !important;
}

body.pos-mode .pos-logout-button {
  background: #ffffff;
  color: #dc2626;
  border: 2px solid #fecaca;
}

body.pos-mode .pos-toolbar__hint,
body.pos-mode .pos-toolbar__status-msg {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #dc2626;
}

body.pos-mode .pos-toolbar__offline {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #dc2626;
}

body.pos-mode .pos-toolbar__build {
  margin-top: 4px;
  font-size: 0.62rem;
  color: #888;
  text-align: left;
  direction: ltr;
}

body.pos-mode .main--pos {
  flex: 1;
  padding: 8px 10px 12px;
  padding-top: 196px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: none;
  -webkit-transform: none;
}

body.pos-mode .search-wrapper {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

body.pos-mode .search-input {
  padding: 12px 14px;
  font-size: 1rem;
}

body.pos-mode .search-result {
  max-height: 200px;
}

body.pos-mode .cart-list { gap: 8px; }
body.pos-mode .cart-item { padding: 10px 12px; }
body.pos-mode .cart-empty { padding: 14px 10px; }

body.pos-mode .modal-card__header {
  position: relative;
}

.payment-connection-status {
  display: inline-block;
  margin-right: auto;
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.95;
}

body.pos-mode .payment-connection-status {
  font-size: 0.68rem;
}


body.pos-mode .modal-overlay {
  z-index: 10000;
}

body.pos-mode .modal-overlay:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed;
  inset: 0;
}

body.pos-mode .modal-card {
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.pos-mode .modal-btn,
body.pos-mode .payment-tab,
body.pos-mode .quick-amount-btn {
  min-height: 48px;
}

.pos-pay-debug {
  position: fixed;
  left: 6px;
  bottom: 6px;
  z-index: 9000;
  max-width: 92vw;
  max-height: 28vh;
  overflow: auto;
  padding: 6px 8px;
  font-size: 0.58rem;
  line-height: 1.35;
  font-family: monospace;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ccc;
  border-radius: 6px;
  pointer-events: none;
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
}

body.pos-mode .modal-overlay[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.pos-mode.payment-modal-open .search-input,
body.payment-modal-open.pos-mode .search-input {
  pointer-events: none;
}

@media (max-width: 420px) {
  body.pos-mode .main--pos { padding-top: 210px; }
  body.pos-mode .pos-toolbar__market { max-width: 36vw; }
}

@media (orientation: landscape) {
  body.pos-mode .main--pos { padding-top: 168px; }
}

.sale-success-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  direction: rtl;
}

.sale-success-toast__icon {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.sale-success-toast__title {
  font-size: 1rem;
  font-weight: 700;
}

.sale-success-toast__invoice {
  font-size: 0.85rem;
  opacity: 0.95;
  margin-top: 2px;
}

.sale-print-fail-toast {
  position: fixed;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  max-width: 92vw;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.94);
  color: #fff;
  font-size: 0.9rem;
  pointer-events: none;
  direction: rtl;
  text-align: center;
}

.pos-debug-panel {
  position: fixed;
  left: 4px;
  bottom: 72px;
  z-index: 9500;
  max-width: 96vw;
  max-height: 32vh;
  overflow: auto;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  font-family: monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  pointer-events: none;
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
}

.pos-sale-debug-status {
  margin: 0 0 10px;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #111;
  background: rgba(255, 235, 59, 0.92);
  border: 1px solid #f59e0b;
  border-radius: 6px;
  direction: ltr;
  text-align: left;
  pointer-events: none;
}

.pos-debug-unlock-btn {
  position: fixed;
  right: 8px;
  bottom: 72px;
  z-index: 9600;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  border: none;
  border-radius: 8px;
  pointer-events: auto;
  touch-action: manipulation;
}

body.payment-modal-open .pos-debug-panel {
  max-height: 18vh;
  bottom: 8px;
  font-size: 0.62rem;
}

.pos-last-invoice-button {
  min-height: 48px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  touch-action: manipulation;
  cursor: pointer;
}

.thermal-receipt-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 60000;
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  direction: rtl;
}

.thermal-preview-card {
  width: min(100%, 360px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.thermal-preview-scroll {
  overflow-y: auto;
  max-height: calc(92vh - 140px);
  padding: 14px 12px 8px;
  display: flex;
  justify-content: center;
  background: #e5e7eb;
}

.thermal-receipt-paper {
  width: 58mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 6px;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.35;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.thermal-receipt-paper.thermal-paper-58 {
  width: 58mm;
}

.thermal-receipt-paper.thermal-paper-80 {
  width: 80mm;
}

.thermal-title {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.thermal-subtitle {
  text-align: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.thermal-divider {
  border-top: 1px dashed #000;
  margin: 6px 0;
}

.thermal-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 2px 0;
}

.thermal-line--head {
  font-weight: 700;
}

.thermal-line--head-sub {
  font-size: 11px;
  opacity: 0.85;
}

.thermal-line--item-name {
  font-weight: 600;
  margin-top: 4px;
}

.thermal-line--item-row {
  font-size: 11px;
}

.thermal-item-qty {
  flex: 1;
  min-width: 0;
}

.thermal-item-total {
  flex-shrink: 0;
  direction: ltr;
  text-align: left;
}

.thermal-line--total-row span:last-child {
  direction: ltr;
  text-align: left;
}

.thermal-thanks {
  text-align: center;
  margin: 8px 0 2px;
  font-weight: 600;
}

.thermal-preview-paper-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f3f4f6;
  border-top: 1px solid #d1d5db;
}

.thermal-preview-paper-label {
  font-size: 0.85rem;
  color: #374151;
}

.thermal-paper-btn {
  min-height: 40px;
  min-width: 56px;
  padding: 6px 10px;
  font-size: 0.85rem;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
  touch-action: manipulation;
  cursor: pointer;
}

.thermal-paper-btn--active {
  background: #f97316;
  color: #fff;
  border-color: #ea580c;
}

.thermal-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 14px;
  background: #f3f4f6;
}

.thermal-line--center {
  justify-content: center;
  text-align: center;
}

.thermal-preview-hint {
  margin: 0;
  padding: 8px 12px 0;
  font-size: 0.82rem;
  color: #4b5563;
  text-align: center;
  line-height: 1.4;
}

.thermal-preview-debug {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 8px;
}

.thermal-preview-btn--debug {
  min-height: 44px;
  background: #2563eb;
  color: #fff;
}

.thermal-preview-btn {
  min-height: 52px;
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  touch-action: manipulation;
  cursor: pointer;
}

.thermal-preview-btn--print {
  background: #16a34a;
  color: #fff;
}

.thermal-preview-btn--close {
  background: #6b7280;
  color: #fff;
}

.thermal-preview-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.thermal-print-status-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14000;
  max-width: 92vw;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.94);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  direction: rtl;
  pointer-events: none;
}

.machine-app-download-wrap {
  width: 100%;
  padding: 8px 10px 4px;
  box-sizing: border-box;
}

body.pos-mode .machine-app-download-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.12);
}

.machine-app-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 55%, #ea580c 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
  touch-action: manipulation;
  cursor: pointer;
  box-sizing: border-box;
}

.machine-app-download-btn:active {
  transform: scale(0.98);
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
}

.machine-app-download-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.machine-app-download-btn__version {
  font-size: 0.78rem;
  opacity: 0.92;
  font-weight: 600;
}

.machine-app-download-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

body:not(.pos-mode) .machine-app-download-wrap {
  padding: 8px 12px;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}

body:not(.pos-mode) .machine-app-download-hint {
  color: #9a3412;
}

.machine-app-download-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55000;
  max-width: 92vw;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.96);
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
  direction: rtl;
  pointer-events: none;
}

@media (max-width: 420px) {
  body.pos-mode .machine-app-download-wrap {
    padding: 6px 8px 2px;
  }
  .machine-app-download-btn {
    font-size: 0.86rem;
    min-height: 48px;
    padding: 8px 10px;
  }
}

.login-transition-overlay-v38 {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.login-transition-overlay-v38.login-transition-v38--visible {
  opacity: 1;
}

.login-transition-overlay-v38.login-transition-v38--hiding {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.login-transition-v38__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fff8f1 0%, #ffffff 45%, #fff4ea 100%);
}

.login-transition-v38__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-transition-v38__glow--one {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 8%;
  background: rgba(255, 122, 24, 0.12);
}

.login-transition-v38__glow--two {
  width: 260px;
  height: 260px;
  right: 6%;
  bottom: 10%;
  background: rgba(255, 149, 0, 0.1);
}

.login-transition-v38__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  max-width: 92vw;
  transform: translateY(8px) scale(0.96);
  opacity: 0;
  animation: loginTransitionBrandInV38 350ms ease forwards;
}

.login-transition-v38__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-transition-v38__brand-box {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(255, 122, 24, 0.16);
  box-shadow: 0 10px 28px rgba(255, 122, 24, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-transition-v38__brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1c1c1e;
  letter-spacing: 0.02em;
}

.login-transition-v38__ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.login-transition-v38__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 122, 24, 0.18);
  border-top-color: #ff7a18;
  animation: loginTransitionSpinV38 1050ms linear infinite;
}

.login-transition-v38__check,
.login-transition-v38__error-mark {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 220ms ease, transform 220ms ease;
}

.login-transition-v38__check::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  width: 16px;
  height: 4px;
  background: #22c55e;
  border-radius: 2px;
  transform: rotate(45deg);
}

.login-transition-v38__check::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 30px;
  width: 30px;
  height: 4px;
  background: #22c55e;
  border-radius: 2px;
  transform: rotate(-45deg);
}

.login-transition-v38__error-mark::before,
.login-transition-v38__error-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 4px;
  background: #ef4444;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.login-transition-v38__error-mark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.login-transition-v38__message {
  margin: 0;
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  min-height: 1.6em;
  transition: opacity 180ms ease;
}

.login-transition-overlay-v38.login-transition-v38--success .login-transition-v38__ring {
  animation: none;
  border-color: rgba(34, 197, 94, 0.25);
  border-top-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.login-transition-overlay-v38.login-transition-v38--success .login-transition-v38__check {
  opacity: 1;
  transform: scale(1);
}

.login-transition-overlay-v38.login-transition-v38--error .login-transition-v38__ring {
  animation: none;
  border-color: rgba(239, 68, 68, 0.25);
  border-top-color: rgba(239, 68, 68, 0.25);
}

.login-transition-overlay-v38.login-transition-v38--error .login-transition-v38__error-mark {
  opacity: 1;
  transform: scale(1);
}

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

@keyframes loginTransitionBrandInV38 {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .login-transition-v38__brand-box {
    width: 96px;
    height: 96px;
  }
  .login-transition-v38__message {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-transition-v38__panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .login-transition-v38__ring {
    animation: none;
    border-top-color: #ff9500;
  }
  .login-transition-overlay-v38,
  .login-transition-overlay-v38.login-transition-v38--hiding {
    transition: opacity 120ms linear;
    transform: none;
  }
  .login-transition-v38__check,
  .login-transition-v38__error-mark {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SaaS Yas Cashier POS v39 — Premium touch-first redesign
   Scoped under .sasyas-pos-page-v39 (login screen unaffected)
   ═══════════════════════════════════════════════════════════════ */

.sasyas-pos-page-v39,
.sasyas-pos-page-v39 * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.sasyas-pos-page-v39 {
  background: #fff8f1;
  color: #1c1c1e;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.sasyas-pos-page-v39 .pos-v39-header {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 12px rgba(28, 28, 30, 0.06);
  padding: 10px 12px 12px;
  position: relative;
  z-index: 20;
}

.sasyas-pos-page-v39 .pos-v39-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sasyas-pos-page-v39 .pos-v39-header__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.sasyas-pos-page-v39 .pos-toolbar__logo,
.sasyas-pos-page-v39 .pos-v39-header__identity img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sasyas-pos-page-v39 .pos-v39-header__text {
  min-width: 0;
}

.sasyas-pos-page-v39 .pos-v39-header__market {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sasyas-pos-page-v39 .pos-v39-header__cashier {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.sasyas-pos-page-v39 .pos-v39-header__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8f1;
  border: 1px solid #f0e4d8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #1c1c1e;
  white-space: nowrap;
  flex-shrink: 0;
}

.sasyas-pos-page-v39 .pos-v39-status-dot.status-dot--offline {
  background: #ef4444;
}

.sasyas-pos-page-v39 .pos-v39-header__build {
  font-size: 9px;
  color: #9ca3af;
  align-self: flex-start;
  flex-shrink: 0;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pay button */
.sasyas-pos-page-v39 .pos-v39-pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff7a18 0%, #ff9500 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 122, 24, 0.35);
  cursor: pointer;
  margin-bottom: 8px;
}

.sasyas-pos-page-v39 .pos-v39-pay-button:disabled,
.sasyas-pos-page-v39 .pos-v39-pay-button[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
}

.sasyas-pos-page-v39 .pos-pay-separator {
  opacity: 0.75;
}

.sasyas-pos-page-v39 .pos-v39-header__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sasyas-pos-page-v39 .pos-v39-action-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 600;
}

/* Main */
.sasyas-pos-page-v39 .pos-v39-main {
  padding: 10px 12px 24px;
  overflow-x: hidden;
}

/* Search */
.sasyas-pos-page-v39 .pos-v39-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.sasyas-pos-page-v39 .pos-v39-search__input {
  width: 100%;
  min-height: 60px;
  height: 60px;
  padding: 0 48px 0 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  font-size: 17px;
  color: #1c1c1e;
  outline: none;
}

.sasyas-pos-page-v39 .pos-v39-search__input:focus {
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

.sasyas-pos-page-v39 .pos-v39-search__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.sasyas-pos-page-v39 .pos-v39-search__icon--search {
  right: 14px;
}

.sasyas-pos-page-v39 .pos-v39-search__icon--barcode {
  left: 14px;
  color: #ff9500;
}

/* Summary */
.sasyas-pos-page-v39 .pos-v39-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(28, 28, 30, 0.04);
}

.sasyas-pos-page-v39 .pos-v39-summary__item {
  flex: 1;
  text-align: center;
}

.sasyas-pos-page-v39 .pos-v39-summary__label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.sasyas-pos-page-v39 .pos-v39-summary__item strong {
  font-size: 16px;
  color: #1c1c1e;
  font-weight: 700;
}

.sasyas-pos-page-v39 .pos-v39-summary__item--total strong {
  color: #ff7a18;
}

/* Empty cart */
.sasyas-pos-page-v39 .pos-v39-empty {
  min-height: 260px;
  max-height: 380px;
  margin: 4px 0 12px;
  padding: 24px 16px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(28, 28, 30, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sasyas-pos-page-v39 .pos-v39-empty__icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #fff8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sasyas-pos-page-v39 .pos-v39-empty__title {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 6px;
}

.sasyas-pos-page-v39 .pos-v39-empty__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 4px;
}

.sasyas-pos-page-v39 .pos-v39-empty__hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* Cart list */
.sasyas-pos-page-v39 .pos-v39-cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}

.sasyas-pos-page-v39 .cart-item-v39 {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(28, 28, 30, 0.04);
}

.sasyas-pos-page-v39 .cart-item-v39__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.sasyas-pos-page-v39 .cart-item-v39__name {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.3;
}

.sasyas-pos-page-v39 .cart-item-v39__barcode {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.sasyas-pos-page-v39 .cart-item-v39__unit-price {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.sasyas-pos-page-v39 .cart-item-v39__line-total {
  font-size: 17px;
  font-weight: 700;
  color: #ff7a18;
  white-space: nowrap;
}

.sasyas-pos-page-v39 .cart-item-v39__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sasyas-pos-page-v39 .cart-item-v39__qty-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff8f1;
  color: #1c1c1e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sasyas-pos-page-v39 .cart-item-v39__qty-btn:disabled {
  opacity: 0.45;
}

.sasyas-pos-page-v39 .cart-item-v39__qty {
  min-width: 32px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.sasyas-pos-page-v39 .cart-item-v39__remove {
  margin-right: auto;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Cart item animations */
.sasyas-pos-page-v39 .cart-item-v39--enter {
  animation: posV39CartEnter 360ms ease-out;
}

.sasyas-pos-page-v39 .cart-item-v39--enter-reduced {
  animation: none;
}

.sasyas-pos-page-v39 .cart-item-v39--highlight {
  border-color: #86efac;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

@keyframes posV39CartEnter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Total pulse */
.sasyas-pos-page-v39 .pos-v39-pulse {
  display: inline-block;
  animation: posV39Pulse 220ms ease-out;
}

.sasyas-pos-page-v39 .pos-v39-pulse--reduced {
  display: inline-block;
  background: rgba(255, 149, 0, 0.12);
  border-radius: 6px;
  padding: 0 4px;
}

@keyframes posV39Pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Toast */
.sasyas-pos-page-v39 .pos-v39-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 9000;
  pointer-events: none;
}

.sasyas-pos-page-v39 .pos-v39-toast__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c1e;
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(28, 28, 30, 0.25);
}

.sasyas-pos-page-v39 .pos-v39-toast--show {
  animation: posV39ToastIn 200ms ease-out;
}

.sasyas-pos-page-v39 .pos-v39-toast--hide {
  animation: posV39ToastOut 180ms ease-in forwards;
}

.sasyas-pos-page-v39 .pos-v39-toast__title {
  font-size: 14px;
  font-weight: 700;
}

.sasyas-pos-page-v39 .pos-v39-toast__detail {
  font-size: 12px;
  color: #d1d5db;
  margin-top: 2px;
}

.sasyas-pos-page-v39 .pos-v39-toast__icon {
  color: #ff9500;
  flex-shrink: 0;
}

@keyframes posV39ToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes posV39ToastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

/* Search results in POS */
.sasyas-pos-page-v39 .pos-v39-search-result {
  margin-bottom: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ececec;
  background: #ffffff;
}

/* Desktop chrome mode footer pay */
.sasyas-pos-page-v39 .pos-v39-footer .pos-v39-pay-button--footer {
  min-height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff7a18 0%, #ff9500 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0 24px;
}

/* Responsive heights for empty state */
@media (min-height: 720px) {
  .sasyas-pos-page-v39 .pos-v39-empty {
    min-height: 320px;
  }
}

@media (max-width: 480px), (max-height: 800px) {
  .sasyas-pos-page-v39 .pos-v39-empty {
    min-height: 220px;
    max-height: 300px;
  }
  .sasyas-pos-page-v39 .pos-v39-pay-button {
    min-height: 56px;
    height: 56px;
  }
}

@media (max-width: 360px) {
  .sasyas-pos-page-v39 .pos-v39-header__build {
    display: none;
  }
  .sasyas-pos-page-v39 .pos-v39-summary__label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sasyas-pos-page-v39 .cart-item-v39--enter {
    animation: none;
  }
  .sasyas-pos-page-v39 .pos-v39-pulse {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SaaS Yas Cashier POS v44 — Emerald pay + gold lights + layout
   Scoped under .sasyas-pos-page-v44
   ═══════════════════════════════════════════════════════════════ */

.sasyas-pos-page-v44,
.sasyas-pos-page-v44 * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.sasyas-pos-page-v44 {
  background: #ffffff;
  color: #1c1c1e;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Identity row — single compact header */
.sasyas-pos-page-v44 .pos-identity-row-v44 {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  direction: ltr;
  min-height: 48px;
  max-height: 54px;
  padding: 6px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sasyas-pos-page-v44 .pos-market-identity-v44 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  direction: rtl;
  justify-self: start;
}

.sasyas-pos-page-v44 .pos-market-logo-v44 {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f3f4f6;
}

.sasyas-pos-page-v44 .pos-market-logo-fallback-v44 {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #047857;
  font-size: 15px;
  font-weight: 700;
}

.sasyas-pos-page-v44 .pos-market-name-v44 {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sasyas-pos-page-v44 .pos-connection-v44 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
  direction: rtl;
  white-space: nowrap;
  font-size: 12px;
  color: #166534;
}

.sasyas-pos-page-v44 .pos-online-dot-v44 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  flex: 0 0 auto;
}

.sasyas-pos-page-v44 .pos-online-dot-v44--offline,
.sasyas-pos-page-v44 .pos-status-dot.status-dot--offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.sasyas-pos-page-v44 .pos-connection-label-v44 {
  font-size: 13px;
}

.sasyas-pos-page-v44 .pos-cashier-identity-v44 {
  min-width: 0;
  justify-self: end;
  direction: rtl;
  text-align: right;
}

.sasyas-pos-page-v44 .pos-cashier-name-v44 {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Identity row v51 — compact single-line header with logout */
.sasyas-pos-page-v44 .pos-identity-row-v51 {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 0.8fr) auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 4px 8px;
  box-sizing: border-box;
  direction: ltr;
  min-height: 38px;
  max-height: 42px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sasyas-pos-page-v44 .pos-market-identity-v51 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  direction: rtl;
  justify-self: start;
}

.sasyas-pos-page-v44 .pos-market-identity-v51 .pos-market-logo-v44,
.sasyas-pos-page-v44 .pos-market-identity-v51 .pos-market-logo-fallback-v44 {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.sasyas-pos-page-v44 .pos-market-identity-v51 .pos-market-logo-fallback-v44 {
  font-size: 13px;
}

.sasyas-pos-page-v44 .pos-market-name-v51 {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sasyas-pos-page-v44 .pos-connection-v51 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  direction: rtl;
  white-space: nowrap;
  font-size: 11px;
  color: #166534;
}

.sasyas-pos-page-v44 .pos-connection-dot-v51 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  flex: 0 0 auto;
}

.sasyas-pos-page-v44 .pos-connection-dot-v51.pos-online-dot-v44--offline,
.sasyas-pos-page-v44 .pos-connection-dot-v51.status-dot--offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.sasyas-pos-page-v44 .pos-connection-label-v51 {
  font-size: 11px;
}

.sasyas-pos-page-v44 .pos-cashier-name-v51 {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  justify-self: end;
  direction: rtl;
  text-align: right;
}

.sasyas-pos-page-v44 .pos-logout-link-v51 {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  padding: 3px 2px;
  margin: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
  white-space: nowrap;
  min-width: auto;
  min-height: auto;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  justify-self: end;
}

.sasyas-pos-page-v44 .pos-logout-link-v51:active {
  opacity: 0.55;
}

/* Search directly under identity row */
.sasyas-pos-page-v44 .pos-v44-search {
  flex: 0 0 auto;
  margin: 2px 10px 0;
}

.sasyas-pos-page-v44 .pos-v44-search .search-input,
.sasyas-pos-page-v44 .pos-v44-search .pos-v39-search__input {
  min-height: 58px;
  height: 60px;
  font-size: 16px;
  border-radius: 18px;
}

/* Products area — scrollable middle */
.sasyas-pos-page-v44 .pos-v44-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 0;
}

.sasyas-pos-page-v44 .pos-v39-search-result {
  margin-top: 0;
  margin-bottom: 8px;
}

.sasyas-pos-page-v44 .pos-v39-cart-list {
  margin-top: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Footer — total + pay */
.sasyas-pos-page-v44 .pos-v44-footer {
  flex: 0 0 auto;
  padding: 10px 10px 12px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sasyas-pos-page-v44 .pos-invoice-total-v44 {
  background: #f8faf9;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 15px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  direction: rtl;
}

.sasyas-pos-page-v44 .pos-invoice-total-v44__label {
  font-size: 13px;
  color: #4b5563;
}

.sasyas-pos-page-v44 .pos-invoice-total-v44__value {
  font-size: 25px;
  font-weight: 700;
  color: #064e3b;
  font-variant-numeric: tabular-nums;
}

.sasyas-pos-page-v44 .pos-v44-offline {
  margin-top: 6px;
  font-size: 12px;
  color: #b45309;
  text-align: center;
}

.sasyas-pos-page-v44 .pos-v39-header,
.sasyas-pos-page-v44 .header,
.sasyas-pos-page-v44 .pos-v44-update-button,
.sasyas-pos-page-v44 .install-btn,
.sasyas-pos-page-v44 .force-update-btn,
.sasyas-pos-page-v44 .reprint-btn,
.sasyas-pos-page-v44 .machine-app-download-wrap {
  display: none !important;
}

/* Browser-only download/install bar (hidden by default; JS reveals in regular browser) */
#app-acquisition-v45[hidden],
.browser-app-actions-v45[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

body.sasyas-native-app-v45 .browser-app-actions-v45,
body.sasyas-native-app-v45 #app-acquisition-v45 {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

.browser-app-actions-v45 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 8px 4px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
}

.sasyas-login-page .browser-app-actions-v45 {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 10px auto 0;
  width: calc(100% - 24px);
}

.browser-app-actions-v45__download,
.browser-app-actions-v45__install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.browser-app-actions-v45__download {
  color: #fff;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.browser-app-actions-v45__install {
  color: #1e3a8a;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.25);
}

.browser-app-actions-v45__download[hidden],
.browser-app-actions-v45__install[hidden] {
  display: none !important;
}

.browser-app-actions-v45__download:active,
.browser-app-actions-v45__install:active {
  transform: scale(0.98);
}

@media (max-width: 380px) {
  .browser-app-actions-v45 {
    gap: 6px;
    padding: 5px 6px;
  }
  .browser-app-actions-v45__download,
  .browser-app-actions-v45__install {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

/* Pay glow frame in footer */
.sasyas-pos-page-v44 .pos-v44-footer .pos-pay-glow-frame-v44 {
  margin-bottom: 0;
}

/* Pay glow frame */
.sasyas-pos-page-v44 .pos-pay-glow-frame-v44 {
  position: relative;
  padding: 4px;
  margin-bottom: 0;
  border-radius: 22px;
  overflow: hidden;
}

.sasyas-pos-page-v44 .pos-pay-light-v44 {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.78;
}

.sasyas-pos-page-v44 .pos-pay-light-v44--top,
.sasyas-pos-page-v44 .pos-pay-light-v44--bottom {
  left: 4px;
  right: 4px;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    rgba(255, 247, 204, 0.35) 9px,
    #fde68a 12px,
    #facc15 16px,
    transparent 18px,
    transparent 28px
  );
  background-size: 56px 4px;
  animation: posPayLightMoveH 3.8s linear infinite;
}

.sasyas-pos-page-v44 .pos-pay-light-v44--top {
  top: 0;
  border-radius: 4px 4px 0 0;
}

.sasyas-pos-page-v44 .pos-pay-light-v44--bottom {
  bottom: 0;
  border-radius: 0 0 4px 4px;
  animation-direction: reverse;
}

.sasyas-pos-page-v44 .pos-pay-light-v44--left,
.sasyas-pos-page-v44 .pos-pay-light-v44--right {
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 8px,
    rgba(255, 247, 204, 0.35) 9px,
    #fde68a 12px,
    #facc15 16px,
    transparent 18px,
    transparent 28px
  );
  background-size: 4px 56px;
  animation: posPayLightMoveV 3.8s linear infinite;
}

.sasyas-pos-page-v44 .pos-pay-light-v44--left {
  left: 0;
  border-radius: 4px 0 0 4px;
  animation-direction: reverse;
}

.sasyas-pos-page-v44 .pos-pay-light-v44--right {
  right: 0;
  border-radius: 0 4px 4px 0;
}

@keyframes posPayLightMoveH {
  0% { background-position: 0 0; }
  100% { background-position: 56px 0; }
}

@keyframes posPayLightMoveV {
  0% { background-position: 0 0; }
  100% { background-position: 0 56px; }
}

/* Emerald pay button */
.sasyas-pos-page-v44 .pos-v44-pay-button {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  height: 60px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    #064e3b 0%,
    #047857 35%,
    #059669 68%,
    #10b981 100%
  );
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow:
    0 10px 22px rgba(5, 150, 105, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  overflow: hidden;
}

.sasyas-pos-page-v44 .pos-v44-pay-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.20),
    transparent 100%
  );
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.sasyas-pos-page-v44 .pos-v44-pay-button:active {
  transform: translateY(1px);
}

.sasyas-pos-page-v44 .pos-v44-pay-button:disabled,
.sasyas-pos-page-v44 .pos-v44-pay-button[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
}

.sasyas-pos-page-v44 .pos-pay-total {
  color: #fff7cc;
}

.sasyas-pos-page-v44 .pos-pay-label,
.sasyas-pos-page-v44 .pos-pay-separator {
  color: #ffffff;
}

/* No empty cart state */
.sasyas-pos-page-v44 .pos-v39-empty,
.sasyas-pos-page-v44 .cart-empty,
.sasyas-pos-page-v44 #cart-empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.sasyas-pos-page-v44 .pos-last-invoice-button,
.sasyas-pos-page-v44 #last-invoice-button {
  display: none !important;
}

@media (max-width: 480px), (max-height: 800px) {
  .sasyas-pos-page-v44 .pos-identity-row-v51 {
    padding: 4px 8px;
    min-height: 36px;
    max-height: 42px;
    gap: 5px;
  }

  .sasyas-pos-page-v44 .pos-market-name-v51,
  .sasyas-pos-page-v44 .pos-cashier-name-v51 {
    font-size: 11px;
  }

  .sasyas-pos-page-v44 .pos-connection-label-v51 {
    font-size: 11px;
  }

  .sasyas-pos-page-v44 .pos-identity-row-v44 {
    padding: 6px 10px;
    min-height: 44px;
  }

  .sasyas-pos-page-v44 .pos-market-name-v44,
  .sasyas-pos-page-v44 .pos-cashier-name-v44 {
    font-size: 13px;
  }

  .sasyas-pos-page-v44 .pos-connection-label-v44 {
    font-size: 12px;
  }

  .sasyas-pos-page-v44 .pos-v44-pay-button {
    min-height: 58px;
    height: 58px;
  }

  .sasyas-pos-page-v44 .pos-invoice-total-v44__value {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sasyas-pos-page-v44 .pos-pay-light-v44--top,
  .sasyas-pos-page-v44 .pos-pay-light-v44--bottom,
  .sasyas-pos-page-v44 .pos-pay-light-v44--left,
  .sasyas-pos-page-v44 .pos-pay-light-v44--right {
    animation: none;
    opacity: 0.72;
  }
}

.sasyas-session-restore-v44 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fffaf5;
  background-image: radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255, 149, 0, 0.12) 0%, transparent 55%);
}

.sasyas-session-restore-v44__card {
  max-width: 380px;
  width: 100%;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid rgba(255, 149, 0, 0.15);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(28, 28, 30, 0.08);
  text-align: center;
}

.sasyas-session-restore-v44__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c1c1e;
}

.sasyas-session-restore-v44__title span { color: #f97316; }

.sasyas-session-restore-v44__text {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.sasyas-session-restore-v44__spinner {
  width: 40px;
  height: 40px;
  margin: 18px auto 0;
  border: 3px solid rgba(249, 115, 22, 0.2);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: boot-spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SaaS Yas Cashier POS v46 — compact rows, orange borders, top toast
   Scoped under .sasyas-pos-page-v44
   ═══════════════════════════════════════════════════════════════ */

.sasyas-pos-page-v44 {
  --pos-orange-border: #f97316;
}

.sasyas-pos-page-v44 .pos-v39-search__icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.sasyas-pos-page-v44 .pos-v44-search .search-input,
.sasyas-pos-page-v44 .pos-v44-search .pos-v39-search__input {
  padding-left: 14px !important;
  padding-right: 14px !important;
  border-color: var(--pos-orange-border) !important;
}

.sasyas-pos-page-v44 .pos-v44-search .pos-v39-search__input:focus {
  border-color: var(--pos-orange-border) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18) !important;
}

.sasyas-pos-page-v44 .pos-invoice-total-v44 {
  border-color: var(--pos-orange-border) !important;
}

.sasyas-pos-page-v44 .pos-v39-cart-list {
  gap: 5px !important;
  padding-bottom: 6px !important;
}

.sasyas-pos-page-v44 .pos-product-row-v47 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
  align-items: center;
  gap: 4px;
  direction: rtl;
  min-height: 52px;
  max-height: 60px;
  padding: 4px 6px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--pos-orange-border);
  border-radius: 10px;
  box-shadow: none;
}

.sasyas-pos-page-v44 .pos-product-name-v47 {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sasyas-pos-page-v44 .pos-product-stock-v47 {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sasyas-pos-page-v44 .pos-product-price-v47 {
  font-size: 12px;
  font-weight: 700;
  color: #1c1c1e;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sasyas-pos-page-v44 .pos-product-minus-v47,
.sasyas-pos-page-v44 .pos-product-plus-v47 {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--pos-orange-border);
  background: #fffaf5;
  color: #1c1c1e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  touch-action: manipulation;
}

.sasyas-pos-page-v44 .pos-product-quantity-v47 {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.sasyas-pos-page-v44 .pos-product-row-v47 .cart-item-v39__main,
.sasyas-pos-page-v44 .pos-product-row-v47 .cart-item-v39__actions,
.sasyas-pos-page-v44 .pos-product-row-v47 .cart-item-v39__barcode,
.sasyas-pos-page-v44 .pos-product-row-v47 .cart-item-v39__unit-price,
.sasyas-pos-page-v44 .pos-product-row-v47 .cart-item-v39__line-total,
.sasyas-pos-page-v44 .pos-product-row-v47 .cart-item-v39__remove,
.sasyas-pos-page-v44 .pos-product-delete-v47 {
  display: none !important;
}

.sasyas-pos-page-v44 .pos-product-row-v47.cart-item-v39 {
  padding: 4px 6px;
  border-radius: 10px;
}

.sasyas-pos-page-v44 .pos-v39-toast,
.sasyas-pos-page-v44 #product-toast-v39,
.sasyas-pos-page-v44 #pay-now-hint,
.sasyas-pos-page-v44 #pos-pay-hint,
.sasyas-pos-page-v44 .footer__offline-msg {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.pos-top-notification-v46 {
  position: fixed;
  top: 6px;
  left: 8px;
  right: 8px;
  z-index: 12000;
  background: #16a34a;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  pointer-events: none;
  transform: translateY(-140%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.pos-top-notification-v46[hidden] {
  display: none !important;
}

.pos-top-notification-v46--show {
  transform: translateY(0);
  opacity: 1;
}

.pos-top-notification-v46--hide {
  transform: translateY(-140%);
  opacity: 0;
}

@media (max-width: 380px) {
  .sasyas-pos-page-v44 .pos-product-row-v47 {
    gap: 3px;
    padding: 3px 4px;
  }
  .sasyas-pos-page-v44 .pos-product-name-v47 {
    font-size: 12px;
  }
  .sasyas-pos-page-v44 .pos-product-stock-v47,
  .sasyas-pos-page-v44 .pos-product-price-v47 {
    font-size: 10px;
  }
  .sasyas-pos-page-v44 .pos-product-minus-v47,
  .sasyas-pos-page-v44 .pos-product-plus-v47 {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}

/* ═══ v50 POS products watermark — orange logo PNG ═══ */

.pos-v44-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.pos-products-region-v50 {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
  isolation: isolate;
}

.pos-products-watermark-v50 {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 203px;
  height: auto;
  max-width: 57%;
  transform: translate(-50%, -50%);
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
  filter: none !important;
  mix-blend-mode: normal;
  image-rendering: auto;
}

.pos-products-region-v50 #cart-list {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent !important;
  background-color: transparent !important;
}

@media (max-width: 420px) {
  .pos-products-watermark-v50 {
    width: 180px;
    max-width: 51%;
  }
}

@media print {
  .pos-products-watermark-v50 {
    display: none !important;
  }
}

/* ═══ v53 — SUNMI touch + login scroll lock ═══ */
html.login-screen-active-v53,
body.login-screen-active-v53 {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.sasyas-login-page.sasyas-login-root-v53 {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--login-height-v53, 100vh);
  min-height: var(--login-height-v53, 100vh);
  overflow: hidden;
  overscroll-behavior: none;
  overflow-y: hidden;
  -webkit-overflow-scrolling: auto;
}

.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-card {
  position: relative;
  z-index: 2;
  max-height: calc(var(--login-height-v53, 100vh) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-title,
.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-sub,
.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-hint,
.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-support {
  user-select: none;
  -webkit-user-select: none;
}

.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-field__input {
  pointer-events: auto;
  touch-action: manipulation;
  user-select: text;
  -webkit-user-select: text;
}

.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-field__toggle {
  pointer-events: auto;
  touch-action: manipulation;
  position: relative;
  z-index: 3;
}

.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-submit {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
}

.sasyas-login-page.sasyas-login-root-v53 .sasyas-login-submit.is-processing-v53 {
  opacity: 0.72;
  pointer-events: none;
}

.sasyas-pos-page-v44 .pos-logout-link-v51 {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
  padding: 3px 4px;
}

/* v55 — logout trigger swapped with connection slot */
.sasyas-pos-page-v44 .pos-identity-row-v55 .pos-logout-trigger-v55 {
  min-width: 64px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 50;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  overflow: visible;
  appearance: none;
  outline: 0;
  box-shadow: none;
  font-family: inherit;
  cursor: pointer;
  justify-self: center;
  line-height: 1.2;
}

.sasyas-pos-page-v44 .pos-identity-row-v55 .pos-connection-edge-v55 {
  justify-self: end;
}

.sasyas-pos-page-v44 .pos-identity-row-v55 .pos-logout-trigger-v55:active {
  opacity: 0.55;
}

/* v55 — logout confirmation modal */
.logout-confirm-overlay-v55 {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  direction: rtl;
  background: rgba(17, 24, 39, 0.45);
  pointer-events: auto;
  touch-action: manipulation;
  padding: 16px;
}

.logout-confirm-card-v55 {
  width: min(100%, 380px);
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 28, 30, 0.22);
  padding: 20px 18px 16px;
  text-align: center;
  pointer-events: auto;
}

.logout-confirm-title-v55 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 16px;
  line-height: 1.6;
}

.logout-confirm-actions-v55 {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}

.logout-confirm-yes-v55,
.logout-confirm-no-v55 {
  flex: 1;
  min-height: 52px;
  min-width: 100px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  position: relative;
}

.logout-confirm-yes-v55::before,
.logout-confirm-yes-v55::after,
.logout-confirm-no-v55::before,
.logout-confirm-no-v55::after {
  pointer-events: none;
}

.logout-confirm-yes-v55 {
  background: #dc2626;
  color: #ffffff;
}

.logout-confirm-no-v55 {
  background: #e5e7eb;
  color: #1f2937;
}

/* v56 — WebView-compatible logout confirm modal */
.logout-confirm-overlay-v56 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647;
  display: block;
  overflow: hidden;
  direction: rtl;
  background: rgba(17, 24, 39, 0.45);
  pointer-events: auto;
  touch-action: manipulation;
  padding: 20% 16px 16px;
  box-sizing: border-box;
}

.logout-confirm-card-v56 {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 28, 30, 0.22);
  padding: 20px 18px 16px;
  text-align: center;
  pointer-events: auto;
  box-sizing: border-box;
}

.logout-confirm-title-v56 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 16px;
  line-height: 1.6;
}

.logout-confirm-actions-v56 {
  display: block;
  text-align: center;
}

.logout-confirm-yes-v56,
.logout-confirm-no-v56 {
  display: inline-block;
  min-height: 52px;
  min-width: 100px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin: 0 5px;
  padding: 0 12px;
  box-sizing: border-box;
}

.logout-confirm-yes-v56 {
  background: #dc2626;
  color: #ffffff;
}

.logout-confirm-no-v56 {
  background: #e5e7eb;
  color: #1f2937;
}

/* v54 — password popup above keyboard on login */
.password-popup-overlay-v54 {
  position: fixed;
  inset: 0;
  z-index: 9100;
  pointer-events: auto;
  touch-action: manipulation;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px;
  direction: rtl;
  overflow: hidden;
}

.password-popup-card-v54 {
  position: relative;
  width: min(100%, 420px);
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(28, 28, 30, 0.18);
  padding: 14px 14px 12px;
  direction: rtl;
  pointer-events: auto;
  touch-action: manipulation;
}

.password-popup-title-v54 {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 10px;
  text-align: center;
}

.password-popup-field-v54 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.password-popup-input-v54 {
  flex: 1;
  min-height: 48px;
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  direction: ltr;
  text-align: left;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.password-popup-eye-v54 {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.password-popup-done-v54 {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: #f97316;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* v54 — logout confirmation modal */
.logout-confirm-overlay-v54 {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  direction: rtl;
  background: rgba(17, 24, 39, 0.45);
  pointer-events: auto;
  touch-action: manipulation;
  padding: 16px;
}

.logout-confirm-card-v54 {
  width: min(100%, 380px);
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 28, 30, 0.22);
  padding: 20px 18px 16px;
  text-align: center;
  pointer-events: auto;
}

.logout-confirm-text-v54 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 16px;
  line-height: 1.6;
}

.logout-confirm-actions-v54 {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}

.logout-confirm-yes-v54,
.logout-confirm-no-v54 {
  flex: 1;
  min-height: 48px;
  min-width: 120px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  position: relative;
}

.logout-confirm-yes-v54::before,
.logout-confirm-yes-v54::after,
.logout-confirm-no-v54::before,
.logout-confirm-no-v54::after {
  pointer-events: none;
}

.logout-confirm-yes-v54 {
  background: #dc2626;
  color: #ffffff;
}

.logout-confirm-no-v54 {
  background: #e5e7eb;
  color: #1f2937;
}

.sasyas-login-submit.is-processing-v54 {
  opacity: 0.75;
  pointer-events: none;
}
