:root {
  --nx-ink: #0f172a;
  --nx-muted: #64748b;
  --nx-line: #e2e8f0;
  --nx-surface: #ffffff;
  --nx-canvas: #f6f7fb;
  --nx-primary: #4f46e5;
  --nx-primary-dark: #3730a3;
  --nx-accent: #06b6d4;
  --nx-success: #059669;
  --nx-danger: #dc2626;
  --nx-radius: 16px;
  --nx-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

@media print {
  #scrollable-container {
    overflow: visible !important;
    height: auto !important;
  }

  .side-bar,
  .thetop > aside {
    display: none !important;
  }
}

.small-view-side-active {
  display: grid !important;
  z-index: 1000;
  position: absolute;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .8);
}

.tw-dw-btn.tw-dw-btn-xs.tw-dw-btn-outline {
  width: max-content;
  margin: 2px;
}

#scrollable-container {
  position: relative;
}

html, body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--nx-ink);
}

body.nx-app-body {
  background: var(--nx-canvas) !important;
}

body.nx-app-body .form-control,
body.nx-app-body .select2-selection,
.nx-auth-body .form-control,
.nx-auth-body .select2-selection {
  min-height: 44px;
  border: 1px solid var(--nx-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.nx-app-body .form-control:focus,
.nx-auth-body .form-control:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12) !important;
}

body.nx-app-body .btn-primary,
.nx-auth-body .btn-primary {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--nx-primary), #6366f1) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .22);
}

body.nx-app-body .box,
body.nx-app-body .modal-content,
body.nx-app-body .nav-tabs-custom {
  border: 1px solid var(--nx-line) !important;
  border-radius: var(--nx-radius) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .06) !important;
}

body.nx-app-body .table > thead > tr > th {
  border-bottom: 1px solid var(--nx-line);
  color: #475569;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nx-sidebar {
  width: 268px !important;
  border-right: 1px solid rgba(148, 163, 184, .15) !important;
  background: #0b1220 !important;
  color: #cbd5e1;
}

.nx-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px 18px;
  color: #fff !important;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.nx-sidebar-brand img {
  width: 42px;
  height: 42px;
}

.nx-sidebar-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.03em;
}

.nx-sidebar-brand small {
  display: block;
  max-width: 170px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-sidebar .sidebar-menu {
  padding: 14px 10px !important;
}

.nx-sidebar .sidebar-menu > li > a,
.nx-sidebar .treeview-menu > li > a {
  margin: 3px 0;
  padding: 11px 12px !important;
  color: #cbd5e1 !important;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}

.nx-sidebar .sidebar-menu > li:hover > a,
.nx-sidebar .sidebar-menu > li.active > a,
.nx-sidebar .treeview-menu > li.active > a {
  color: #fff !important;
  background: rgba(99, 102, 241, .22) !important;
}

.nx-sidebar .treeview-menu {
  margin: 3px 0 8px 12px !important;
  padding-left: 8px !important;
  border-left: 1px solid rgba(148, 163, 184, .16);
  background: transparent !important;
}

.nx-app-header {
  min-height: 74px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nx-line) !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--nx-ink);
  backdrop-filter: blur(18px);
}

.nx-app-header > div {
  padding: 17px 22px !important;
}

.nx-app-header button,
.nx-app-header summary,
.nx-app-header a {
  color: #334155 !important;
}

.nx-app-header .tw-bg-primary-800,
.nx-app-header [class*="tw-bg-"][class*="-800"] {
  background: #f1f5f9 !important;
}

.nx-main,
.nx-main #scrollable-container {
  background: var(--nx-canvas) !important;
}

.nx-dashboard-hero {
  padding-top: 16px;
  background: linear-gradient(135deg, #111827 0%, #312e81 55%, #155e75 100%) !important;
}

.nx-dashboard-hero [class*="tw-from-"][class*="-800"] {
  background: transparent !important;
}

.nx-main .tw-rounded-xl,
.nx-main .tw-rounded-2xl {
  border-radius: var(--nx-radius) !important;
}

.nx-main .tw-bg-white {
  border-color: rgba(226, 232, 240, .9) !important;
}

/* Public and authentication */
html:has(.nx-auth-body) {
  min-height: 100%;
  background: #080d19 !important;
}

.nx-auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 70, 229, .30), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(6, 182, 212, .20), transparent 28%),
    linear-gradient(145deg, #080d19 0%, #111827 55%, #172554 100%) !important;
}

.nx-auth-body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.nx-auth-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.04em;
}

.nx-brand:hover { color: #fff !important; }
.nx-brand img { width: 42px; height: 42px; }

.nx-auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nx-auth-actions > a {
  color: #dbeafe !important;
  font-weight: 650;
}

.nx-auth-actions .nx-nav-cta {
  padding: 10px 18px;
  color: #fff !important;
  border: 1px solid rgba(165, 180, 252, .38);
  border-radius: 999px;
  background: rgba(99, 102, 241, .18);
}

.nx-auth-main {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 90px);
}

.nx-auth-stage {
  min-height: calc(100vh - 92px);
  padding: 30px 20px 64px !important;
  background: transparent !important;
}

.nx-login-grid {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 430px) 1fr;
  align-items: center;
  min-height: 70vh;
}

.nx-login-grid > [class*="col-"] {
  width: auto !important;
  float: none !important;
}

.nx-auth-promo {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  color: #fff;
}

.nx-auth-promo h1 {
  margin: 22px 0 16px;
  color: #fff;
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.nx-auth-promo p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.7;
}

.nx-auth-promo ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  color: #dbeafe;
  list-style: none;
}

.nx-auth-promo li::before {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  color: #0f172a;
  content: "✓";
  border-radius: 50%;
  background: #67e8f9;
}

.nx-auth-card,
.nx-auth-body .tw-bg-white {
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .30) !important;
}

.nx-auth-card input[type="text"],
.nx-auth-card input[type="password"],
.nx-auth-card input[type="email"] {
  width: 100%;
  min-height: 48px;
  border-color: var(--nx-line) !important;
  border-radius: 12px !important;
}

.nx-auth-card button[type="submit"] {
  background: linear-gradient(135deg, var(--nx-primary), #2563eb) !important;
  box-shadow: 0 12px 26px rgba(79, 70, 229, .25);
}

.nx-register-wrap {
  max-width: 1000px;
  margin: 18px auto 0 !important;
  float: none !important;
}

.nx-register-card {
  padding: 10px 16px 20px !important;
}

.nx-auth-body .wizard > .steps > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nx-auth-body .wizard > .steps > ul > li {
  width: 100% !important;
  float: none !important;
}

.nx-auth-body .wizard > .steps a {
  border-radius: 12px !important;
}

.nx-auth-body .wizard > .steps .current a {
  background: var(--nx-primary) !important;
}

.nx-auth-body .wizard > .content {
  min-height: auto !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}

.nx-auth-body .input-group-addon {
  min-width: 40px;
  border-color: var(--nx-line) !important;
  border-radius: 12px 0 0 12px !important;
  background: #fff !important;
}

.nx-auth-body .input-group .form-control {
  border-radius: 0 12px 12px 0 !important;
}

/* Landing */
.nx-landing {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: #fff;
}

.nx-hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 64px;
  align-items: center;
  min-height: 72vh;
  padding: 42px 0 82px;
}

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(129, 140, 248, .30);
  border-radius: 999px;
  background: rgba(79, 70, 229, .12);
}

.nx-hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -.065em;
}

.nx-hero h1 span {
  color: #a5f3fc;
}

.nx-hero-copy {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.nx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.nx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: #fff !important;
  font-weight: 750;
  border-radius: 13px;
}

.nx-button-primary {
  background: linear-gradient(135deg, var(--nx-primary), #2563eb);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .30);
}

.nx-button-secondary {
  border: 1px solid rgba(226, 232, 240, .18);
  background: rgba(255, 255, 255, .06);
}

.nx-product-preview {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 26px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
  backdrop-filter: blur(20px);
}

.nx-preview-window {
  overflow: hidden;
  border-radius: 18px;
  background: #f8fafc;
}

.nx-preview-top {
  display: flex;
  gap: 6px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid var(--nx-line);
}

.nx-preview-top i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.nx-preview-body { padding: 20px; }
.nx-preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nx-preview-kpis div { height: 72px; padding: 13px; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.07); }
.nx-preview-kpis b { display: block; color: var(--nx-ink); font-size: 17px; }
.nx-preview-kpis small { color: var(--nx-muted); }
.nx-preview-chart { display: flex; align-items: end; gap: 9px; height: 155px; margin-top: 16px; padding: 20px; border-radius: 14px; background: #fff; }
.nx-preview-chart i { flex: 1; min-height: 22px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#6366f1, #22d3ee); }

.nx-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 90px;
}

.nx-feature {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}

.nx-feature strong { display: block; margin-bottom: 8px; color: #fff; font-size: 17px; }
.nx-feature p { margin: 0; color: #94a3b8; line-height: 1.65; }

/* POS */
.nx-pos-shell {
  padding: 14px 14px 110px !important;
  background: var(--nx-canvas);
}

.nx-pos-shell .tw-shadow-\[rgba\(17\,_17\,_26\,_0\.1\)_0px_0px_16px\] {
  border: 1px solid var(--nx-line);
  box-shadow: 0 10px 35px rgba(15, 23, 42, .07) !important;
}

.nx-pos-shell #search_product {
  height: 50px;
  padding-left: 44px;
  font-size: 15px;
}

.nx-pos-shell .product_box {
  overflow: hidden;
  border: 1px solid var(--nx-line) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.nx-pos-shell .product_box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, .12);
}

.nx-app-body .pos-form-actions {
  border-top: 1px solid var(--nx-line);
  border-radius: 18px 18px 0 0 !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 -18px 50px rgba(15,23,42,.10) !important;
  backdrop-filter: blur(16px);
}

.nx-app-body #pos-finalize,
.nx-app-body .pos-express-finalize {
  border-radius: 11px !important;
}

@media (max-width: 1023px) {
  .nx-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
  .nx-product-preview { max-width: 720px; }
  .nx-feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nx-auth-nav { width: calc(100% - 28px); padding: 14px 0; }
  .nx-auth-actions { gap: 9px; }
  .nx-brand span { display: none; }
  .nx-auth-actions { font-size: 12px; }
  .nx-auth-actions .nx-nav-cta { padding: 8px 12px; }
  .nx-login-grid { display: block; min-height: auto; padding-top: 28px; }
  .nx-login-grid .nx-demo { display: none; }
  .nx-auth-stage { padding: 12px 14px 42px !important; }
  .nx-register-wrap { margin-top: 8px !important; }
  .nx-auth-body .wizard > .steps > ul { grid-template-columns: 1fr; }
  .nx-landing { width: calc(100% - 30px); }
  .nx-hero { min-height: auto; padding: 50px 0 64px; }
  .nx-hero h1 { font-size: 44px; }
  .nx-preview-kpis { grid-template-columns: 1fr; }
  .nx-preview-kpis div { height: 58px; }
  .nx-sidebar { width: 280px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* NexaPOS Professional application system */
body.nx-app-body {
  --nx-nav: #111c32;
  --nx-nav-soft: #1b2944;
  --nx-canvas: #f5f7fb;
  --nx-surface: #ffffff;
  --nx-surface-soft: #f8fafc;
  --nx-line: #e2e8f0;
  --nx-text: #0f172a;
  --nx-muted: #64748b;
  --nx-primary: #4f46e5;
  --nx-primary-hover: #4338ca;
  --nx-success: #059669;
  --nx-danger: #dc2626;
  --nx-warning: #d97706;
  color: var(--nx-text) !important;
  background: var(--nx-canvas) !important;
}

body.nx-app-body .thetop {
  min-height: 100vh;
  background: var(--nx-canvas);
}

body.nx-app-body :focus-visible {
  outline: 2px solid #6366f1 !important;
  outline-offset: 2px;
}

body.nx-app-body .nx-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 252px !important;
  min-height: 100vh !important;
  color: #cbd5e1;
  border-right: 0 !important;
  background: var(--nx-nav) !important;
}

body.nx-app-body .nx-sidebar-brand {
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
}

body.nx-app-body .nx-sidebar-brand img {
  width: 38px;
  height: 38px;
}

body.nx-app-body .nx-sidebar-brand small {
  color: #94a3b8;
}

body.nx-app-body .nx-sidebar #side-bar {
  padding: 14px 10px 90px !important;
  border: 0 !important;
}

body.nx-app-body .nx-sidebar #side-bar > div {
  background: transparent !important;
}

body.nx-app-body .nx-sidebar #side-bar > div.tw-text-primary-700 > a,
body.nx-app-body .nx-sidebar #side-bar a[tw-text-primary-700] {
  color: #fff !important;
  background: rgba(79,70,229,.88) !important;
}

body.nx-app-body .nx-sidebar #side-bar > div.tw-text-primary-700 .chiled a {
  color: #cbd5e1 !important;
  background: transparent !important;
}

body.nx-app-body .nx-sidebar #side-bar > a,
body.nx-app-body .nx-sidebar #side-bar > div > a,
body.nx-app-body .nx-sidebar #side-bar .chiled a {
  min-height: 42px;
  color: #aebbd0 !important;
  border-radius: 9px;
}

body.nx-app-body .nx-sidebar #side-bar > a:hover,
body.nx-app-body .nx-sidebar #side-bar > div > a:hover,
body.nx-app-body .nx-sidebar #side-bar > div > a:focus,
body.nx-app-body .nx-sidebar #side-bar > a.tw-bg-gray-200 {
  color: #fff !important;
  background: rgba(79,70,229,.88) !important;
  box-shadow: 0 7px 18px rgba(49,46,129,.25);
}

body.nx-app-body .nx-sidebar #side-bar .chiled,
body.nx-app-body .nx-sidebar #side-bar .chiled > div:first-child {
  border-color: rgba(255,255,255,.1) !important;
  background: transparent !important;
}

body.nx-app-body .nx-app-header {
  position: relative;
  z-index: 1000;
  min-height: 72px !important;
  overflow: visible;
  color: var(--nx-text);
  border: 0 !important;
  border-bottom: 1px solid var(--nx-line) !important;
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
  backdrop-filter: blur(14px);
}

body.nx-app-body .nx-app-header > div {
  padding: 16px 22px !important;
}

body.nx-app-body .nx-app-header button,
body.nx-app-body .nx-app-header summary,
body.nx-app-body .nx-app-header a {
  color: #334155 !important;
}

body.nx-app-body .nx-app-header .tw-bg-primary-800,
body.nx-app-body .nx-app-header [class*="tw-bg-"][class*="-800"],
body.nx-app-body .nx-app-header [class*="tw-bg-"][class*="-700"] {
  color: #334155 !important;
  border: 1px solid var(--nx-line) !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(15,23,42,.04) !important;
}

body.nx-app-body .nx-app-header details,
body.nx-app-body .nx-app-header details[open] {
  position: relative;
  z-index: 1100;
}

body.nx-app-body .nx-app-header details > ul,
body.nx-app-body .nx-app-header .dropdown-menu,
body.nx-app-body .nx-app-header .popover {
  z-index: 1200 !important;
  color: var(--nx-text) !important;
  border-color: var(--nx-line) !important;
  background: #fff !important;
  box-shadow: 0 16px 35px rgba(15,23,42,.14) !important;
}

body.nx-app-body .nx-app-header ul a:hover {
  color: var(--nx-primary) !important;
  background: #eef2ff !important;
}

body.nx-app-body .nx-main,
body.nx-app-body .nx-main #scrollable-container,
body.nx-app-body .content {
  background: var(--nx-canvas) !important;
}

body.nx-app-body .nx-main {
  position: relative;
  z-index: 1;
}

body.nx-app-body .nx-dashboard-hero {
  padding: 24px 0 26px;
  color: var(--nx-text);
  border-bottom: 1px solid var(--nx-line);
  background: var(--nx-canvas) !important;
}

body.nx-app-body .nx-dashboard-hero [class*="tw-from-"],
body.nx-app-body .nx-dashboard-hero [class*="tw-to-"] {
  background: transparent !important;
}

body.nx-app-body .nx-dashboard-hero h1 {
  color: var(--nx-text) !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 750 !important;
  letter-spacing: -.035em !important;
}

body.nx-app-body .nx-dashboard-hero .tw-bg-white,
body.nx-app-body .nx-dashboard-hero [class~="tw-bg-white"] {
  color: var(--nx-text) !important;
  border: 1px solid var(--nx-line) !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.045) !important;
}

body.nx-app-body .nx-dashboard-hero .tw-text-gray-900,
body.nx-app-body .nx-dashboard-hero .tw-text-black {
  color: var(--nx-text) !important;
}

body.nx-app-body .nx-dashboard-hero .tw-text-gray-500,
body.nx-app-body .nx-dashboard-hero .tw-text-gray-600 {
  color: var(--nx-muted) !important;
}

body.nx-app-body .nx-kpi-grid > div:nth-child(n+5) {
  display: none;
}

body.nx-app-body .nx-secondary-kpis > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #4338ca;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #c7d2fe;
  border-radius: 9px;
  background: #eef2ff;
}

body.nx-app-body .nx-secondary-kpis[open] > summary {
  margin-bottom: 12px;
}

body.nx-app-body .nx-main .tw-bg-white,
body.nx-app-body .nx-main [class~="tw-bg-white"],
body.nx-app-body .box,
body.nx-app-body .info-box,
body.nx-app-body .nav-tabs-custom,
body.nx-app-body .modal-content {
  color: var(--nx-text) !important;
  border: 1px solid var(--nx-line) !important;
  background: var(--nx-surface) !important;
  box-shadow: 0 5px 18px rgba(15,23,42,.055) !important;
}

body.nx-app-body .nx-main .tw-bg-gray-50,
body.nx-app-body .nx-main [class~="tw-bg-gray-50"] {
  border-color: var(--nx-line) !important;
  background: var(--nx-surface-soft) !important;
}

body.nx-app-body .nx-main .tw-ring-gray-200 {
  --tw-ring-color: var(--nx-line) !important;
}

body.nx-app-body .nx-main .tw-text-gray-900,
body.nx-app-body .nx-main .tw-text-black,
body.nx-app-body .nx-main h3,
body.nx-app-body .box-title,
body.nx-app-body .content-header > h1,
body.nx-app-body legend,
body.nx-app-body label {
  color: var(--nx-text) !important;
}

body.nx-app-body .nx-main .tw-text-gray-500,
body.nx-app-body .nx-main .tw-text-gray-600,
body.nx-app-body .text-muted,
body.nx-app-body .help-block {
  color: var(--nx-muted) !important;
}

body.nx-app-body .content-header {
  padding: 26px 24px 14px;
}

body.nx-app-body .content {
  padding: 14px 24px 28px;
}

body.nx-app-body .form-control,
body.nx-app-body .select2-selection,
body.nx-app-body .input-group-addon,
body.nx-app-body input,
body.nx-app-body textarea {
  color: var(--nx-text) !important;
  border-color: var(--nx-line) !important;
  background: #fff !important;
}

body.nx-app-body .form-control::placeholder,
body.nx-app-body input::placeholder,
body.nx-app-body textarea::placeholder {
  color: #94a3b8 !important;
}

body.nx-app-body .select2-dropdown,
body.nx-app-body .dropdown-menu {
  color: var(--nx-text);
  border-color: var(--nx-line);
  background: #fff;
}

body.nx-app-body .select2-results__option--highlighted,
body.nx-app-body .dropdown-menu > li > a:hover {
  color: #fff !important;
  background: var(--nx-primary) !important;
}

body.nx-app-body .table,
body.nx-app-body .dataTable {
  color: #334155 !important;
  background: #fff !important;
}

body.nx-app-body .table > thead > tr > th,
body.nx-app-body .dataTable > thead > tr > th {
  color: #475569 !important;
  border-color: var(--nx-line) !important;
  background: #f8fafc !important;
}

body.nx-app-body .table > tbody > tr:not(.success):not(.danger):not(.warning):not(.info) > td,
body.nx-app-body .dataTable > tbody > tr:not(.success):not(.danger):not(.warning):not(.info) > td {
  color: #334155 !important;
  border-color: #edf0f5 !important;
  background: #fff !important;
}

body.nx-app-body .table-striped > tbody > tr:not(.success):not(.danger):not(.warning):not(.info):nth-of-type(odd) > td {
  background: #fbfcfe !important;
}

body.nx-app-body .table > tbody > tr:not(.success):not(.danger):not(.warning):not(.info):hover > td {
  background: #f8faff !important;
}

body.nx-app-body .highcharts-background,
body.nx-app-body .highcharts-plot-background {
  fill: #fff !important;
}

body.nx-app-body .highcharts-axis-line,
body.nx-app-body .highcharts-grid-line {
  stroke: #e2e8f0 !important;
}

body.nx-app-body .highcharts-axis-labels text,
body.nx-app-body .highcharts-axis-title,
body.nx-app-body .highcharts-legend-item text,
body.nx-app-body .highcharts-title {
  color: #64748b !important;
  fill: #64748b !important;
}

body.nx-app-body footer,
body.nx-app-body .main-footer {
  color: #475569 !important;
  border-top: 1px solid var(--nx-line) !important;
  background: var(--nx-canvas) !important;
}

body.nx-app-body .main-footer .tw-text-gray-500,
body.nx-app-body .main-footer .tw-text-xs,
body.nx-app-body .nx-app-footer .tw-text-gray-500,
body.nx-app-body .nx-app-footer .tw-text-xs {
  color: #334155 !important;
}

/* POS workspace: catalog first, cart and payment second */
body.nx-app-body .nx-pos-shell {
  padding: 14px 18px 108px !important;
  background: var(--nx-canvas) !important;
}

body.nx-app-body .pos-header {
  padding: 0 18px;
  background: var(--nx-canvas);
}

body.nx-app-body .pos-header > div {
  min-height: 64px;
  border: 1px solid var(--nx-line);
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.045) !important;
}

body.nx-app-body .pos-header a,
body.nx-app-body .pos-header button {
  min-width: 36px;
  min-height: 36px;
  border-color: var(--nx-line) !important;
  background: #fff !important;
}

body.nx-app-body .pos-header [class*="tw-bg-[#646EE4]"] {
  color: #4338ca !important;
  background: #eef2ff !important;
}

body.nx-app-body .pos-header .curr_datetime {
  color: #3730a3 !important;
}

body.nx-app-body .nx-pos-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr);
  gap: 16px !important;
  align-items: stretch !important;
}

body.nx-app-body .nx-pos-products {
  order: 1;
  width: 100% !important;
  padding: 0 !important;
}

body.nx-app-body .nx-pos-cart {
  order: 2;
  width: 100% !important;
  padding: 0 !important;
}

body.nx-app-body .nx-pos-cart > div,
body.nx-app-body .nx-pos-products > div,
body.nx-app-body .nx-pos-shell .tw-bg-white {
  border: 1px solid var(--nx-line) !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(15,23,42,.055) !important;
}

body.nx-app-body .nx-pos-shell #search_product {
  height: 50px;
  border-radius: 10px !important;
}

body.nx-app-body .nx-pos-shell .product_box {
  overflow: hidden;
  color: var(--nx-text) !important;
  border: 1px solid var(--nx-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(15,23,42,.045) !important;
}

body.nx-app-body .nx-pos-shell .product_box:hover {
  border-color: #a5b4fc !important;
  box-shadow: 0 8px 20px rgba(79,70,229,.12) !important;
  transform: translateY(-1px);
}

body.nx-app-body .nx-pos-shell #product_category_div label[for="my-drawer-4"],
body.nx-app-body .nx-pos-shell #product_brand_div label[for="my-drawer-brand"] {
  color: #4338ca !important;
  border: 1px solid #c7d2fe;
  background: #eef2ff !important;
  box-shadow: none;
}

body.nx-app-body .nx-pos-shell .tw-dw-drawer-toggle:not(:checked) ~ .tw-dw-drawer-side {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.nx-app-body .nx-pos-shell .tw-dw-drawer-toggle:checked ~ .tw-dw-drawer-side {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.nx-app-body .pos-form-actions {
  border-top: 1px solid var(--nx-line);
  border-radius: 14px 14px 0 0 !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 -10px 30px rgba(15,23,42,.10) !important;
  backdrop-filter: blur(14px);
}

body.nx-app-body .pos-form-actions button {
  min-height: 42px;
  border-radius: 9px !important;
}

body.nx-app-body #pos-finalize {
  color: #fff !important;
  background: var(--nx-primary) !important;
}

body.nx-app-body .pos-express-finalize[data-pay_method="cash"] {
  color: #fff !important;
  background: #047857 !important;
}

/* Catalog and management surfaces */
body.nx-app-body .nx-product-page .content-header,
body.nx-app-body .nx-product-page.content {
  max-width: 1600px;
  margin-right: auto;
  margin-left: auto;
}

body.nx-app-body .nx-product-page .nav-tabs-custom {
  overflow: hidden;
  border-radius: 14px !important;
}

body.nx-app-body .nx-product-page .nav-tabs {
  padding: 0 16px;
  border-bottom-color: var(--nx-line);
  background: #fff;
}

body.nx-app-body .nx-product-page .tab-content {
  padding: 18px;
}

body.nx-app-body .nx-product-page .tw-dw-btn {
  border-radius: 9px !important;
  background: var(--nx-primary) !important;
}

body.nx-app-body .nx-product-page a[data-toggle="collapse"] {
  color: #334155 !important;
}

body.nx-app-body .nx-product-page .dt-buttons .btn,
body.nx-app-body .nx-product-page .dt-buttons button {
  color: #fff !important;
  border-color: #4338ca !important;
  background: #4338ca !important;
}

body.nx-app-body .nx-product-page .dt-buttons button span {
  color: #fff !important;
}

body.nx-app-body .nx-product-page .dataTables_paginate a {
  color: #475569 !important;
}

body.nx-app-body .nx-product-page tfoot .tw-dw-btn-outline {
  color: #334155 !important;
  border-color: #94a3b8 !important;
  background: #fff !important;
}

body.nx-app-body .dataTables_wrapper .dataTables_filter input {
  min-width: 280px;
  border-radius: 9px !important;
}

body.nx-app-body .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: #fff !important;
  border-color: var(--nx-primary) !important;
  background: var(--nx-primary) !important;
}

/* Dialogs */
body.nx-app-body .register_details_modal .modal-dialog,
body.nx-app-body .close_register_modal .modal-dialog {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto;
}

body.nx-app-body .register_details_modal .modal-content,
body.nx-app-body .close_register_modal .modal-content {
  overflow: hidden;
  border-color: var(--nx-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
}

body.nx-app-body .register_details_modal .modal-header,
body.nx-app-body .close_register_modal .modal-header {
  padding: 18px 22px;
  color: var(--nx-text);
  border-bottom: 1px solid var(--nx-line);
  background: #fff;
}

body.nx-app-body .register_details_modal .modal-title,
body.nx-app-body .close_register_modal .modal-title,
body.nx-app-body .register_details_modal h3,
body.nx-app-body .close_register_modal h3 {
  color: var(--nx-text) !important;
  font-weight: 700;
}

body.nx-app-body .register_details_modal .modal-body,
body.nx-app-body .close_register_modal .modal-body {
  max-height: calc(100vh - 150px);
  padding: 20px 22px 28px;
  overflow-y: auto;
  color: #334155;
  background: #fff;
}

body.nx-app-body .register_details_modal .table > tbody > tr.success > th,
body.nx-app-body .register_details_modal .table > tbody > tr.success > td,
body.nx-app-body .close_register_modal .table > tbody > tr.success > th,
body.nx-app-body .close_register_modal .table > tbody > tr.success > td {
  color: #065f46 !important;
  background: #ecfdf5 !important;
}

body.nx-app-body .register_details_modal .table > tbody > tr.danger > th,
body.nx-app-body .register_details_modal .table > tbody > tr.danger > td,
body.nx-app-body .close_register_modal .table > tbody > tr.danger > th,
body.nx-app-body .close_register_modal .table > tbody > tr.danger > td {
  color: #991b1b !important;
  background: #fef2f2 !important;
}

body.nx-app-body .nx-mobile-nav {
  display: none;
}

/* Public and authentication surfaces */
html:has(.nx-auth-body) {
  background: #f5f7fb !important;
}

.nx-auth-body {
  color: #0f172a;
  background:
    radial-gradient(circle at 8% 12%, rgba(79,70,229,.09), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(14,165,233,.08), transparent 28%),
    #f5f7fb !important;
}

.nx-auth-body::before {
  opacity: .35;
  background-image: linear-gradient(rgba(148,163,184,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.10) 1px, transparent 1px);
}

.nx-auth-body .nx-brand,
.nx-auth-body .nx-brand:hover {
  color: #111c32 !important;
}

.nx-auth-body .nx-auth-actions > a {
  color: #334155 !important;
}

.nx-auth-body .nx-auth-actions .nx-nav-cta {
  color: #fff !important;
  border-color: #4f46e5;
  background: #4f46e5;
}

.nx-auth-body .nx-auth-promo,
.nx-auth-body .nx-auth-promo h1 {
  color: #111c32;
}

.nx-auth-body .nx-auth-promo p,
.nx-auth-body .nx-auth-promo ul {
  color: #475569;
}

.nx-auth-body .nx-auth-promo li::before {
  color: #fff;
  background: #4f46e5;
}

.nx-auth-body .nx-auth-card,
.nx-auth-body .tw-bg-white {
  border-color: #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 20px 55px rgba(15,23,42,.12) !important;
}

.nx-auth-body .nx-landing {
  color: #0f172a;
}

.nx-auth-body .nx-hero h1 {
  color: #111c32;
}

.nx-auth-body .nx-hero h1 span {
  color: #4f46e5;
}

.nx-auth-body .nx-hero-copy {
  color: #475569;
}

.nx-auth-body .nx-eyebrow {
  color: #4338ca;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.nx-auth-body .nx-button-secondary {
  color: #334155 !important;
  border-color: #cbd5e1;
  background: #fff;
}

.nx-auth-body .nx-product-preview {
  border-color: #dbe3ee;
  background: rgba(255,255,255,.74);
  box-shadow: 0 26px 65px rgba(15,23,42,.14);
}

.nx-auth-body .nx-feature {
  border-color: #e2e8f0;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15,23,42,.05);
}

.nx-auth-body .nx-feature strong {
  color: #111c32;
}

.nx-auth-body .nx-feature p {
  color: #64748b;
}

@media (max-width: 1023px) {
  body.nx-app-body .nx-sidebar {
    position: fixed;
    z-index: 1300;
    width: 264px !important;
  }

  body.nx-app-body .nx-pos-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  }
}

@media (max-width: 1023px) {
  body.nx-app-body .nx-pos-workspace {
    display: flex !important;
    flex-direction: column;
  }

  body.nx-app-body .nx-pos-products,
  body.nx-app-body .nx-pos-cart {
    width: 100% !important;
  }

  body.nx-app-body .nx-pos-products { order: 1; }
  body.nx-app-body .nx-pos-cart { order: 2; }
}

@media (max-width: 767px) {
  body.nx-app-body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  body.nx-app-body .nx-app-header {
    min-height: 64px !important;
  }

  body.nx-app-body .nx-app-header > div {
    padding: 13px 14px !important;
  }

  body.nx-app-body .content-header {
    padding: 20px 16px 10px;
  }

  body.nx-app-body .content {
    padding: 10px 14px 22px;
  }

  body.nx-app-body .nx-dashboard-hero {
    padding: 18px 0 20px;
  }

  body.nx-app-body .nx-dashboard-hero > div,
  body.nx-app-body .nx-main > .tw-px-5 {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.nx-app-body .nx-dashboard-hero .tw-grid.tw-grid-cols-1 {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }

  body.nx-app-body .nx-dashboard-hero .tw-grid.tw-grid-cols-1 > div {
    min-width: 0;
  }

  body.nx-app-body .nx-pos-shell {
    padding: 10px 10px calc(126px + env(safe-area-inset-bottom)) !important;
  }

  body.nx-app-body .pos-header {
    padding: 0 10px;
  }

  body.nx-app-body .pos-form-actions {
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }

  body.nx-app-body .register_details_modal .modal-dialog,
  body.nx-app-body .close_register_modal .modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  body.nx-app-body .register_details_modal .modal-body,
  body.nx-app-body .close_register_modal .modal-body {
    max-height: calc(100vh - 96px);
    padding: 16px;
  }

  body.nx-app-body .dataTables_wrapper .dataTables_filter input {
    min-width: 0;
    width: 100%;
  }

  body.nx-app-body .nx-product-page .dt-buttons {
    display: none;
  }

  body.nx-app-body .nx-product-page #product_table,
  body.nx-app-body .nx-product-page #product_table tbody {
    display: block;
    width: 100% !important;
  }

  body.nx-app-body .nx-product-page #product_table thead {
    display: none;
  }

  body.nx-app-body .nx-product-page #product_table tbody tr {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) auto;
    gap: 8px 12px;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--nx-line);
    border-radius: 12px;
    background: #fff;
  }

  body.nx-app-body .nx-product-page #product_table tbody td {
    display: none;
    width: auto !important;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.nx-app-body .nx-product-page #product_table tbody td:nth-child(2),
  body.nx-app-body .nx-product-page #product_table tbody td:nth-child(3),
  body.nx-app-body .nx-product-page #product_table tbody td:nth-child(4) {
    display: block;
  }

  body.nx-app-body .nx-product-page #product_table tbody td:nth-child(2) {
    grid-row: span 2;
  }

  body.nx-app-body .nx-product-page #product_table tbody td:nth-child(4) {
    color: var(--nx-text) !important;
    font-weight: 700;
  }

  body.nx-app-body .nx-mobile-nav {
    position: fixed;
    z-index: 1250;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--nx-line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 24px rgba(15,23,42,.09);
    backdrop-filter: blur(14px);
  }

  body.nx-app-body .nx-mobile-nav a,
  body.nx-app-body .nx-mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 44px;
    min-height: 46px;
    padding: 3px;
    color: #64748b !important;
    font-size: 10px;
    border: 0;
    background: transparent;
  }

  body.nx-app-body .nx-mobile-nav .is-primary {
    color: var(--nx-primary) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* POS register details */
body.nx-app-body.nx-pos-layout .register_details_modal .nx-register-dialog {
  width: min(1080px, calc(100% - 32px));
  margin: 18px auto;
}

body.nx-app-body .register_details_modal .nx-register-details {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.nx-register-header {
  padding: 20px 24px 18px;
  color: #e2e8f0;
  border: 0;
  background: #111c32 !important;
}

.nx-register-header .close {
  color: #fff;
  opacity: .8;
  text-shadow: none;
}

body.nx-app-body.nx-pos-layout .register_details_modal .nx-register-header .modal-title {
  margin-top: 3px;
  color: #fff !important;
  font-size: 24px;
  font-weight: 800;
}

.nx-register-eyebrow {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nx-register-header .nx-register-eyebrow { color: #93c5fd; }

.nx-register-period {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #e2e8f0;
  background: #111c32;
  font-size: 12px;
}

.nx-register-details .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  padding: 18px 22px;
  overflow-y: auto;
  background: #f1f5f9;
}

.nx-register-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nx-register-metric {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
}

.nx-register-metric span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.nx-register-metric strong {
  color: #0f172a;
  font-size: 21px;
  font-weight: 800;
}

.nx-register-metric-primary { border-color: #93c5fd; background: #eff6ff; }
.nx-register-metric-primary span { color: #475569; }
.nx-register-metric-primary strong { color: #1d4ed8; }
.nx-register-metric-danger strong { color: #b91c1c; }

.nx-register-section,
.nx-register-products > .row,
.nx-register-meta {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
}

.nx-register-section-header h4,
.nx-register-products h3 {
  margin: 3px 0 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.nx-register-table,
.nx-register-products .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.nx-register-table thead th,
.nx-register-products .table tr:first-child th {
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nx-register-table td,
.nx-register-table th,
.nx-register-products .table td,
.nx-register-products .table th {
  padding: 9px 10px !important;
  vertical-align: middle !important;
}

.nx-register-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nx-register-meta div { display: grid; gap: 3px; }
.nx-register-meta span { color: #64748b; font-size: 11px; font-weight: 700; }
.nx-register-meta strong { overflow-wrap: anywhere; color: #0f172a; }

.nx-register-products > .row { margin-right: 0; margin-left: 0; }
.nx-register-products > .row hr { display: none; }

.nx-register-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.nx-register-footer .tw-dw-btn-primary {
  background: #4338ca !important;
}

@media (max-width: 767px) {
  body.modal-open .nx-pos2-mobile-tabs { visibility: hidden; }

  body.nx-app-body.nx-pos-layout .register_details_modal .nx-register-dialog {
    width: auto;
    margin: 8px;
  }

  body.nx-app-body .register_details_modal .nx-register-details { max-height: calc(100dvh - 16px); }
  .nx-register-details .modal-body { padding: 12px; }
  .nx-register-header { padding: 16px; }
  body.nx-app-body.nx-pos-layout .register_details_modal .nx-register-header .modal-title { font-size: 19px; }
  .nx-register-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-register-metric { min-height: 72px; padding: 10px 12px; }
  .nx-register-metric strong { font-size: 17px; }
  .nx-register-meta { grid-template-columns: 1fr; }
  .nx-register-footer { flex-wrap: wrap; padding: 10px 12px; }
}

@media print {
  body.nx-app-body .register_details_modal .nx-register-details { display: block; max-height: none; }
  .nx-register-details .modal-body { max-height: none; overflow: visible; background: #fff; }
  .nx-register-details { box-shadow: none; }
}