/**
 * Nanban E-Sevai — World-class POS (Square / Toast inspired, Tamil desk-friendly)
 */
body.esevai-mode #esPosSection.es-pos-world {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.esevai-mode #esPosSection.es-pos-world.active-section {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 38%, #ffffff 100%);
  min-height: calc(100vh - 120px);
}

.es-pos-world-header {
  max-width: 1480px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #064e3b 0%, #059669 55%, #10b981 100%);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(5, 150, 105, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.es-pos-world-header__title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 1000;
  letter-spacing: -0.02em;
  margin: 0;
}

.es-pos-world-header__sub {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.88;
  margin-top: 4px;
}

.es-pos-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.es-pos-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 0.25s ease;
}

.es-pos-step.is-done {
  background: rgba(255, 255, 255, 0.95);
  color: #065f46;
}

.es-pos-step.is-active {
  background: #fff;
  color: #047857;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.es-pos-step__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.es-pos-step.is-done .es-pos-step__dot,
.es-pos-step.is-active .es-pos-step__dot {
  opacity: 1;
}

/* Catalog cards */
#esPosSection.es-pos-world #esServiceCatalog,
#esPosSection.es-pos-world .es-pos-service-catalog {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  max-height: min(50vh, 480px);
  align-content: start;
}

.es-pos-svc-card {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.es-pos-svc-card:hover {
  transform: translateY(-2px);
  border-color: #6ee7b7;
  box-shadow: 0 12px 28px -14px rgba(5, 150, 105, 0.45);
}

.es-pos-svc-card:active {
  transform: scale(0.98);
}

.es-pos-svc-card__name {
  font-weight: 1000;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.25;
  flex: 1;
}

.es-pos-svc-card__cat {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.es-pos-svc-card__prices {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.es-pos-svc-card__badge {
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
}

.es-pos-svc-card__badge--gov {
  background: #fef2f2;
  color: #b91c1c;
}

.es-pos-svc-card__badge--srv {
  background: #ecfdf5;
  color: #047857;
}

.es-pos-svc-card__add {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-weight: 1000;
  font-size: 12px;
  background: var(--es-primary, #059669);
  color: #fff;
  cursor: pointer;
}

/* Quick favorites strip */
#esQuickPick.es-pos-fav-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.es-pos-fav-btn {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d1fae5;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px -8px rgba(5, 150, 105, 0.35);
}

.es-pos-fav-btn:hover {
  border-color: #059669;
  background: #ecfdf5;
}

.es-pos-fav-btn__icon {
  font-size: 22px;
  line-height: 1;
}

.es-pos-fav-btn__label {
  font-size: 10px;
  font-weight: 1000;
  color: #065f46;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quick pay row */
.es-pos-quick-pay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.es-pos-quick-pay__btn {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 11px 8px;
  font-size: 11px;
  font-weight: 1000;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: 0.18s ease;
  text-align: center;
}

.es-pos-quick-pay__btn:hover {
  border-color: #059669;
  background: #f0fdf4;
  color: #047857;
}

.es-pos-quick-pay__btn--primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-color: transparent;
  grid-column: span 2;
  font-size: 13px;
  padding: 13px 10px;
}

.es-pos-quick-pay__btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* Cart — compact line items */
.es-pos-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fafafa;
}

.es-pos-cart-line__name {
  font-weight: 900;
  font-size: 13px;
  color: #0f172a;
}

.es-pos-cart-line__meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.es-pos-cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.es-pos-cart-line__qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 1000;
  cursor: pointer;
}

.es-pos-cart-line__total {
  font-weight: 1000;
  font-size: 15px;
  color: #059669;
  text-align: right;
}

.es-pos-cart-line__remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

/* Customer dropdown */
#esCustDropdown.es-pos-cust-dd {
  max-height: 280px;
  overflow-y: auto;
}

.es-pos-cust-row {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.es-pos-cust-row:hover,
.es-pos-cust-row.is-highlight {
  background: #ecfdf5;
}

.es-pos-cust-row--new {
  background: #f0fdf4;
  color: #047857;
  font-weight: 1000;
  text-align: center;
}

.es-pos-cust-empty {
  padding: 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

/* Mobile payment dock */
.es-pos-mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -12px 32px -12px rgba(15, 23, 42, 0.18);
}

.es-pos-mobile-dock__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
}

.es-pos-mobile-dock__total-k {
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
}

.es-pos-mobile-dock__total-v {
  font-size: 22px;
  font-weight: 1000;
  color: #059669;
  line-height: 1.1;
}

.es-pos-mobile-dock__save {
  min-width: 148px;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-weight: 1000;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(5, 150, 105, 0.55);
}

/* Receipt modal polish */
#esReceiptModal .es-pos-receipt-wrap {
  max-width: 360px;
  margin: 0 auto;
}

#esReceiptModal .receipt-container {
  width: 100%;
  max-width: 80mm;
  margin: 0 auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  border: 1px dashed #cbd5e1;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.es-pos-receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.es-pos-receipt-actions .btn {
  padding: 12px;
  border-radius: 14px;
  font-weight: 1000;
  font-size: 13px;
}

/* POS success overlay actions */
#esEsevaiSuccessOverlay .es-pos-success-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

#esEsevaiSuccessOverlay .es-pos-success-actions button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 1000;
  font-size: 12px;
  cursor: pointer;
  background: #059669;
  color: #fff;
}

#esEsevaiSuccessOverlay .es-pos-success-actions button.secondary {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 1200px) {
  body.esevai-mode .es-pos-layout {
    grid-template-columns: 1fr !important;
  }

  body.esevai-mode .es-pos-right {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 768px) {
  .es-pos-quick-pay {
    grid-template-columns: 1fr 1fr;
  }

  .es-pos-quick-pay__btn--primary {
    grid-column: span 2;
  }

  body.esevai-mode #esPosSection.es-pos-world {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  body.esevai-mode .es-pos-mobile-dock {
    display: block;
  }

  body.esevai-mode #btnESSaveBill {
    display: none;
  }

  .es-pos-world-header {
    border-radius: 18px;
    padding: 14px;
  }

  .es-pos-steps {
    width: 100%;
  }
}

@media (min-width: 769px) {
  body.esevai-mode #esPosSection.es-pos-world .es-pos-mobile-dock {
    display: none !important;
  }
}

/* POS Pro — agent/direct mode + keyboard hints */
.es-pos-mode-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.es-pos-mode-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.es-pos-mode-btn kbd {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
}

.es-pos-mode-btn.is-active {
  border-color: #059669;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.es-pos-mode-btn--direct.is-active {
  border-color: #0284c7;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0c4a6e;
}

.es-pos-kb-hints {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.es-pos-newbill-btn {
  padding: 10px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s ease;
}

.es-pos-newbill-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #065f46;
}

.es-pos-newbill-btn--catalog {
  background: rgba(255, 255, 255, 0.28);
}

.es-pos-catalog-quick {
  background: #059669 !important;
  color: #fff !important;
  border: none !important;
}

/* Products & Services catalog tab */
body.esevai-mode #esCatalogSection.es-catalog-world.active-section {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 40%, #fff 100%);
  min-height: calc(100vh - 120px);
  padding-bottom: 32px;
}

.es-catalog-header {
  max-width: 1280px;
  margin: 0 auto 20px;
}

.es-catalog-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 20px;
  align-items: start;
}

.es-catalog-form-card,
.es-catalog-list-card {
  padding: 22px;
  border-radius: 24px;
}

.es-catalog-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.es-catalog-field label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.es-catalog-field--wide {
  grid-column: 1 / -1;
}

.es-catalog-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.es-catalog-check input {
  width: auto;
  margin: 0;
}

.es-catalog-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.es-catalog-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.es-catalog-search {
  max-width: 220px;
  min-width: 160px;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-weight: 800;
}

.es-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
}

.es-catalog-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.es-catalog-card:hover {
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
}

.es-catalog-card__name {
  font-weight: 1000;
  color: #0f172a;
  font-size: 14px;
}

.es-catalog-card__cat {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 800;
  margin-top: 4px;
}

.es-catalog-card__rates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.es-catalog-rate {
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 999px;
}

.es-catalog-rate--gov {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.es-catalog-rate--direct {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #bbf7d0;
}

.es-catalog-rate--agent {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.es-catalog-card__edit {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 900;
  color: #059669;
}

.es-catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-weight: 800;
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .es-catalog-layout {
    grid-template-columns: 1fr;
  }
}

/* ── World-class desk POS v2 ── */
body.esevai-mode #esPosSection.es-pos-desk.active-section {
  min-height: 0 !important;
  height: calc(100dvh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
  padding: 8px 10px 0 !important;
  background: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 45%, #fff 100%) !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-desk-header {
  flex-shrink: 0;
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 14px;
  gap: 10px;
}

.es-pos-header-brand {
  min-width: 120px;
}

.es-pos-header-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.es-pos-hstat {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  min-width: 56px;
}

.es-pos-hstat--pay {
  background: rgba(255, 255, 255, 0.95);
  color: #065f46;
}

.es-pos-hstat__k {
  display: block;
  font-size: 9px;
  font-weight: 900;
  opacity: 0.85;
  text-transform: uppercase;
}

.es-pos-hstat__v {
  display: block;
  font-size: 13px;
  font-weight: 1000;
}

.es-pos-header-actions {
  display: flex;
  gap: 6px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-desk-hide {
  display: none !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
  grid-template-columns: minmax(0, 1.15fr) min(400px, 36vw);
  max-width: 100%;
  align-items: stretch;
  margin: 0;
}

.es-pos-catalog-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  overflow: hidden;
}

.es-pos-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.12);
}

.es-pos-search-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

.es-pos-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.45;
  pointer-events: none;
}

.es-pos-search-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  font-weight: 700;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.es-pos-search-input:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.es-pos-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.es-pos-type-pill {
  font-size: 11px;
  font-weight: 1000;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.es-pos-tool-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}

.es-pos-tool-btn:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.es-pos-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 2px 0;
  scrollbar-width: none;
}

.es-pos-cat-chip {
  flex: 0 0 auto;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #475569 !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer;
  transition: 0.15s;
}

.es-pos-cat-chip.active,
.es-pos-category-tabs .chip.active {
  background: #059669 !important;
  color: #fff !important;
  border-color: #059669 !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-service-catalog {
  flex: 1;
  min-height: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  max-height: none !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-content: start;
  padding: 4px 2px 8px 0;
}

.es-pos-checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.es-pos-checkout-hero {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #064e3b, #059669);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(5, 150, 105, 0.6);
}

.es-pos-checkout-hero__k {
  font-size: 11px;
  font-weight: 900;
  opacity: 0.9;
  text-transform: uppercase;
}

.es-pos-checkout-hero__hint {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}

.es-pos-checkout-hero__amt {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.es-pos-card-title {
  font-size: 11px;
  font-weight: 1000;
  color: #059669;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.es-pos-cust-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.es-pos-cust-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.es-pos-cust-input {
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.es-pos-cust-add {
  width: 40px;
  border: none;
  border-radius: 12px;
  background: #059669;
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
}

.es-pos-direct-wrap {
  margin-top: 8px;
}

.es-pos-direct-phone {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
}

.es-pos-balance-line {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-customer-card {
  flex-shrink: 0;
  padding: 12px !important;
  border-radius: 14px !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-compact {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px !important;
  border-radius: 14px !important;
  overflow: hidden;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-items {
  flex: 1;
  min-height: 80px;
  max-height: none;
  overflow-y: auto;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-pay-compact {
  flex-shrink: 0;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
  margin-top: 4px;
}

.es-pos-llr-title {
  font-size: 11px;
  color: #6d28d9;
  font-weight: 900;
  margin-bottom: 8px;
}

.es-pos-llr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.es-pos-more-grid {
  margin-top: 8px;
}

.es-pos-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-right {
  overflow: hidden;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-gov-bank-always {
  display: block !important;
}

@media (max-width: 1100px) {
  body.esevai-mode #esPosSection.es-pos-desk .es-pos-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  body.esevai-mode #esPosSection.es-pos-desk.active-section {
    height: auto;
    max-height: none;
    overflow: visible !important;
  }

  body.esevai-mode #esPosSection.es-pos-desk .es-pos-catalog-panel,
  body.esevai-mode #esPosSection.es-pos-desk .es-pos-checkout-panel,
  body.esevai-mode #esPosSection.es-pos-desk .es-pos-service-catalog {
    max-height: none;
    overflow: visible;
  }
}

.es-pos-lbl {
  display: block;
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.es-pos-select {
  width: 100%;
  padding: 8px 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
}

.es-pos-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.es-pos-cart-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 1000;
  color: var(--es-primary, #059669);
}

.es-pos-clear-btn {
  border: none;
  background: none;
  color: #ef4444;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.es-pos-cart-items {
  min-height: 48px;
  max-height: 140px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.es-pos-totals-compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.es-pos-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.es-pos-totals-row--pay {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
  margin-top: 4px;
  margin-bottom: 0;
}

.es-pos-totals-row--pay span {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.es-pos-totals-row--pay b {
  font-size: 20px;
  font-weight: 1000;
  color: #059669;
}

.es-pos-pay-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Payment / Gov bank — big tap chips */
.es-pos-pay-block {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 10px 12px;
}

.es-pos-pay-block__head {
  margin-bottom: 8px;
}

.es-pos-pay-block__title {
  font-size: 13px;
  font-weight: 1000;
  color: #0f172a;
  line-height: 1.2;
}

.es-pos-pay-block__sub {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 2px;
}

.es-pos-chip-grid {
  display: grid;
  gap: 8px;
}

.es-pos-chip-grid--pay {
  grid-template-columns: repeat(3, 1fr);
}

.es-pos-chip-grid--gov {
  grid-template-columns: repeat(4, 1fr);
}

.es-pos-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 6px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.es-pos-chip:active {
  transform: scale(0.96);
}

.es-pos-chip__ico {
  font-size: 22px;
  line-height: 1;
}

.es-pos-chip__txt {
  font-size: 11px;
  font-weight: 1000;
  color: #334155;
  letter-spacing: 0.02em;
}

.es-pos-chip:hover {
  border-color: #86efac;
  background: #f0fdf4;
}

.es-pos-chip.is-active {
  border-color: #059669;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 6px 16px -8px rgba(5, 150, 105, 0.55);
}

.es-pos-chip.is-active .es-pos-chip__txt {
  color: #065f46;
}

.es-pos-chip--sbi.is-active {
  border-color: #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  box-shadow: 0 6px 16px -8px rgba(2, 132, 199, 0.45);
}

.es-pos-chip--sbi.is-active .es-pos-chip__txt {
  color: #0369a1;
}

.es-pos-chip--cash.is-active {
  border-color: #16a34a;
}

.es-pos-chip--upi.is-active {
  border-color: #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  box-shadow: 0 6px 16px -8px rgba(124, 58, 237, 0.35);
}

.es-pos-chip--upi.is-active .es-pos-chip__txt {
  color: #6d28d9;
}

.es-pos-chip--credit.is-active {
  border-color: #ea580c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 6px 16px -8px rgba(234, 88, 12, 0.35);
}

.es-pos-chip--credit.is-active .es-pos-chip__txt {
  color: #c2410c;
}

.es-pos-pay-block--gov.es-pos-gov-bank--required {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  animation: es-pos-gov-pulse 1.6s ease-in-out infinite;
}

.es-pos-pay-block--gov.es-pos-gov-bank--required .es-pos-chip:not(.is-active) {
  border-color: #fcd34d;
  background: #fff;
}

@keyframes es-pos-gov-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
  }
}

.es-pos-gov-bank--shake {
  animation: es-pos-shake 0.45s ease;
}

@keyframes es-pos-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}

.es-pos-sr-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.es-pos-received-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: end;
}

.es-pos-exact-btn {
  min-height: 72px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(5, 150, 105, 0.55);
  line-height: 1.15;
  padding: 8px 6px;
}

.es-pos-exact-btn span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.92;
  margin-top: 2px;
}

.es-pos-exact-btn:active {
  transform: scale(0.97);
}

.es-pos-received-wrap--grow {
  flex: 1;
  margin-top: 0;
}

.es-pos-pay-row {
  margin-bottom: 0;
}

.es-pos-quick-pay--desk {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 0;
}

.es-pos-quick-pay--desk .es-pos-quick-pay__btn {
  padding: 9px 4px;
  font-size: 10px;
}

.es-pos-quick-pay__btn--sbi {
  border-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}

.es-pos-received-wrap {
  margin-top: 2px;
}

.es-pos-received {
  font-size: 22px !important;
  font-weight: 1000 !important;
  text-align: center;
  padding: 10px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #059669 !important;
}

.es-pos-hint-compact {
  padding: 8px 10px !important;
  font-size: 10px !important;
  margin: 0 !important;
}

.es-pos-more {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  background: #fafafa;
}

.es-pos-more summary {
  cursor: pointer;
  font-weight: 900;
  color: #475569;
}

.es-pos-cart-line__qty input.es-pos-qty-input,
.es-pos-cart-line__qty .es-pos-qty-input {
  width: 48px;
  min-width: 48px;
  margin: 0;
  padding: 4px 2px;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.es-pos-cart-line__qty input.es-pos-qty-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.es-pos-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.es-pos-cart-line__main {
  min-width: 0;
}

.es-pos-cart-line__name {
  font-weight: 900;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 8px;
}

.es-pos-cart-line__fees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.es-pos-fee-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.es-pos-fee-lbl {
  font-size: 9px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
}

.es-pos-fee-input {
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.es-pos-fee-input--gov:focus {
  border-color: #0284c7;
  background: #f0f9ff;
  outline: none;
}

.es-pos-fee-input--srv:focus {
  border-color: #059669;
  background: #ecfdf5;
  outline: none;
}

.es-pos-gov-bank--required {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 8px;
}

.es-pos-gov-bank--required .es-pos-select {
  border-color: #f59e0b !important;
  background: #fff !important;
}

@media (max-width: 480px) {
  .es-pos-chip-grid--pay {
    grid-template-columns: repeat(2, 1fr);
  }

  .es-pos-chip-grid--gov {
    grid-template-columns: repeat(2, 1fr);
  }

  .es-pos-received-row {
    grid-template-columns: 1fr;
  }

  .es-pos-exact-btn {
    min-height: 48px;
    width: 100%;
  }
}

.es-pos-req {
  color: #dc2626;
  font-weight: 1000;
}

.es-pos-wa-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 8px;
  cursor: pointer;
}

.es-pos-wa-opt input {
  width: 16px;
  height: 16px;
  accent-color: #059669;
}

.es-pos-save-btn {
  width: 100%;
  padding: 14px !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
  border-radius: 14px !important;
  background: var(--es-primary, #059669) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 20px -8px rgba(5, 150, 105, 0.5);
  margin-top: 4px;
}

body.esevai-mode #esPosSection.es-pos-desk .glass-card {
  padding: 12px !important;
  border-radius: 16px !important;
}

body.esevai-mode #esPosSection.es-pos-desk #esPosSrvSearch {
  padding: 10px 12px 10px 40px !important;
  font-size: 14px !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-stage-strip {
  gap: 6px;
}

@media (max-width: 1100px) {
  body.esevai-mode #esPosSection.es-pos-desk .es-pos-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  body.esevai-mode #esPosSection.es-pos-desk.active-section {
    height: auto;
    max-height: none;
    overflow: visible !important;
  }

  body.esevai-mode #esPosSection.es-pos-desk .es-pos-layout > div:first-child,
  body.esevai-mode #esPosSection.es-pos-desk .es-pos-right {
    max-height: none;
    overflow: visible;
  }
}

/* ── Professional desk POS (mature counter UI) ── */
body.esevai-mode #esPosSection.es-pos-desk {
  --es-pro-bg: #e8edf3;
  --es-pro-surface: #ffffff;
  --es-pro-border: #d0d7e2;
  --es-pro-text: #1e293b;
  --es-pro-muted: #64748b;
  --es-pro-accent: #0d9488;
  --es-pro-accent-dark: #0f766e;
  --es-pro-header: #1e293b;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.esevai-mode #esPosSection.es-pos-desk.active-section {
  background: var(--es-pro-bg) !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-desk-header,
body.esevai-mode #esPosSection.es-pos-desk .es-pos-world-header {
  background: var(--es-pro-header);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  padding: 10px 14px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-world-header__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff !important;
}

/* Ensure POS header title/sub always readable on the dark header */
body.esevai-mode #esPosSection.es-pos-desk .es-pos-desk-header .es-pos-world-header__title,
body.esevai-mode #esPosSection.es-pos-desk .es-pos-desk-header .es-pos-header-brand h2,
body.esevai-mode #esPosSection.es-pos-desk .es-pos-world-header__sub {
  color: #ffffff !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-hstat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 10px;
  min-width: 52px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-hstat--pay {
  background: rgba(255, 255, 255, 0.95);
  color: var(--es-pro-accent-dark);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-hstat__k {
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-hstat__v {
  font-size: 14px;
  font-weight: 700;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-newbill-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-newbill-btn:hover {
  background: #fff;
  color: var(--es-pro-header);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-newbill-btn--catalog {
  background: rgba(255, 255, 255, 0.16);
}

body.esevai-mode #esPosSection.es-pos-desk .glass-card {
  background: var(--es-pro-surface) !important;
  border: 1px solid var(--es-pro-border) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  border-radius: 10px !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-toolbar {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--es-pro-border);
  padding: 8px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-search-input {
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px !important;
  background: #f8fafc;
  border-color: var(--es-pro-border);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-search-input:focus {
  border-color: var(--es-pro-accent);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-search-icon {
  display: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-tool-btn--text {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--es-pro-text);
  border-radius: 8px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-type-pill {
  font-weight: 600;
  font-size: 11px;
  border-radius: 6px;
  background: #f1f5f9;
  border-color: var(--es-pro-border);
  color: var(--es-pro-text);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-fav-btn {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--es-pro-border);
  box-shadow: none;
  background: var(--es-pro-surface);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-fav-btn:hover {
  border-color: var(--es-pro-accent);
  background: #f0fdfa;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-fav-btn__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--es-pro-text);
  max-width: 100px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-fav-btn__icon {
  display: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cat-chip,
body.esevai-mode #esPosSection.es-pos-desk .es-pos-category-tabs .chip {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cat-chip.active,
body.esevai-mode #esPosSection.es-pos-desk .es-pos-category-tabs .chip.active {
  background: var(--es-pro-accent-dark) !important;
  border-color: var(--es-pro-accent-dark) !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--es-pro-border);
  box-shadow: none;
  transform: none !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card:hover {
  border-color: var(--es-pro-accent);
  background: #f8fafc;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: none !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card:active {
  transform: none !important;
  background: #f0fdfa;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__cat {
  font-size: 10px;
  font-weight: 500;
  color: var(--es-pro-muted);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__prices {
  display: flex;
  gap: 4px;
  margin: 0;
  flex-shrink: 0;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__badge--gov {
  background: #fef2f2;
  color: #991b1b;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__badge--srv {
  background: #f0fdfa;
  color: #0f766e;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card__add {
  display: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-checkout-hero {
  background: var(--es-pro-surface);
  color: var(--es-pro-text);
  border: 1px solid var(--es-pro-border);
  box-shadow: none;
  border-radius: 10px;
  padding: 12px 14px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-checkout-hero__k {
  font-size: 11px;
  font-weight: 600;
  color: var(--es-pro-muted);
  text-transform: none;
  opacity: 1;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-checkout-hero__hint {
  font-size: 10px;
  color: #94a3b8;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-checkout-hero__amt {
  font-size: 26px;
  font-weight: 700;
  color: var(--es-pro-accent-dark);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--es-pro-text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef2f6;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-mode-btn {
  border-radius: 8px;
  border-width: 1px;
  font-weight: 600;
  font-size: 12px;
  padding: 9px 10px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-mode-btn.is-active {
  background: #f0fdfa;
  border-color: var(--es-pro-accent);
  color: var(--es-pro-accent-dark);
  box-shadow: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-mode-btn--direct.is-active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cust-add {
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--es-pro-text);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--es-pro-muted);
  border: 1px dashed var(--es-pro-border);
  border-radius: 8px;
  background: #f8fafc;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-totals-compact {
  background: #f8fafc;
  border-radius: 8px;
  border-color: var(--es-pro-border);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-totals-row--pay b {
  font-size: 18px;
  font-weight: 700;
  color: var(--es-pro-accent-dark);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-pay-block {
  background: var(--es-pro-surface);
  border: 1px solid var(--es-pro-border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-pay-block__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--es-pro-text);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-pay-block__sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--es-pro-muted);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip {
  min-height: 44px;
  border-radius: 8px;
  border-width: 1px;
  padding: 8px 4px;
  flex-direction: row;
  gap: 0;
  transform: none !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip:active {
  transform: none !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip__ico {
  display: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip__txt {
  font-size: 12px;
  font-weight: 600;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip.is-active {
  background: #f0fdfa;
  border-color: var(--es-pro-accent);
  border-width: 2px;
  box-shadow: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip.is-active .es-pos-chip__txt {
  color: var(--es-pro-accent-dark);
  font-weight: 700;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-chip--credit.is-active {
  background: #fff7ed;
  border-color: #ea580c;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-pay-block--gov.es-pos-gov-bank--required {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  animation: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-exact-btn {
  min-height: 52px;
  border-radius: 8px;
  background: var(--es-pro-accent-dark);
  font-weight: 600;
  font-size: 13px;
  box-shadow: none;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-exact-btn:active {
  transform: none;
  filter: brightness(0.95);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-received {
  font-size: 20px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: #fff !important;
  border: 1px solid var(--es-pro-border) !important;
  color: var(--es-pro-text) !important;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-wa-opt {
  font-size: 12px;
  font-weight: 500;
  background: #f8fafc;
  border-color: var(--es-pro-border);
  color: var(--es-pro-text);
  border-radius: 8px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-save-btn {
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--es-pro-accent-dark) !important;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25) !important;
  letter-spacing: 0.01em;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-line {
  border-radius: 8px;
  padding: 10px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-line__name {
  font-weight: 600;
  font-size: 13px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-line__remove {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: underline;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-cart-line__total {
  font-weight: 700;
  font-size: 14px;
  color: var(--es-pro-accent-dark);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-lbl {
  font-weight: 600;
  text-transform: none;
  font-size: 11px;
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-mobile-dock__save {
  border-radius: 10px;
  background: var(--es-pro-accent-dark);
  font-weight: 700;
  box-shadow: none;
}

/* ── World-class UX polish v3 (badge, feedback, busy, focus) ── */
.es-pos-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.es-pos-cart-count--pop {
  animation: es-pos-count-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes es-pos-count-pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

.es-pos-amt-flash {
  animation: es-pos-amt-flash 0.55s ease;
}

@keyframes es-pos-amt-flash {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12);
    filter: brightness(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* Busy / saving state for save buttons */
.es-pos-save-btn.es-pos-btn--busy,
.es-pos-mobile-dock__save.es-pos-btn--busy {
  position: relative;
  opacity: 0.85;
  cursor: progress;
  pointer-events: none;
}

.es-pos-save-btn.es-pos-btn--busy::after,
.es-pos-mobile-dock__save.es-pos-btn--busy::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: es-pos-spin 0.7s linear infinite;
}

@keyframes es-pos-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Clearer keyboard focus ring across POS controls */
body.esevai-mode #esPosSection .es-pos-svc-card:focus-visible,
body.esevai-mode #esPosSection .es-pos-chip:focus-visible,
body.esevai-mode #esPosSection button:focus-visible,
body.esevai-mode #esPosSection input:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Smooth add feedback on service cards */
body.esevai-mode #esPosSection.es-pos-desk .es-pos-svc-card {
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .es-pos-cart-count--pop,
  .es-pos-amt-flash {
    animation: none !important;
  }
}

/* ── Customer type filter chips ── */
.es-cust-filter-chip {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.es-cust-filter-chip:hover {
  border-color: #6ee7b7;
  background: #f0fdf4;
}

.es-cust-filter-chip.is-active {
  background: linear-gradient(135deg, #059669, #0d9488);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(5, 150, 105, 0.6);
}

/* ── Bill History row action buttons ── */
.es-hist-actions .btn {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 800;
}

/* ── Today collected highlight in POS header ── */
body.esevai-mode #esPosSection.es-pos-desk .es-pos-hstat--today {
  background: rgba(94, 234, 212, 0.18);
  border-color: rgba(94, 234, 212, 0.35);
}

body.esevai-mode #esPosSection.es-pos-desk .es-pos-hstat--today .es-pos-hstat__v {
  color: #5eead4;
}

/* ── Keyboard shortcut help overlay ── */
.es-pos-kb-help {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.es-pos-kb-help__card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: min(380px, 100%);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.5);
}

.es-pos-kb-help__title {
  font-size: 17px;
  font-weight: 1000;
  color: #0f172a;
  margin-bottom: 16px;
}

.es-pos-kb-help__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.es-pos-kb-help__row span {
  margin-left: auto;
  text-align: right;
}

.es-pos-kb-help__row kbd {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.es-pos-kb-help__close {
  margin-top: 18px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #0f766e);
}
