:root {
  --erp-primary: #2563eb;
  --erp-navy: #0f172a;
  --erp-canvas: #f4f7fb;
  --erp-surface: #fff;
  --erp-border: #e2e8f0;
  --erp-text: #0f172a;
  --erp-muted: #64748b;
  --erp-success: #059669;
  --erp-warning: #d97706;
  --erp-danger: #dc2626;
}

html {
  background: #f4f7fb;
}

body, button, input, select, textarea, .select2-container {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: #0f172a;
  background: #f4f7fb;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:not(.pos-layout) .wrapper.thetop {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

html:has(body.superadmin-business-show-page),
body.superadmin-business-show-page {
  height: auto !important;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.superadmin-business-show-page .wrapper.thetop,
body.superadmin-business-show-page .content-wrapper {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
}

body.superadmin-business-show-page .content-wrapper {
  padding-bottom: max(96px, env(safe-area-inset-bottom));
}

a {
  color: #2563eb;
}

a:hover, a:focus {
  color: #1d4ed8;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.content-wrapper {
  background: #f4f7fb;
}

.content-header, .content-header-custom {
  padding: 24px 28px 10px;
  background: transparent !important;
  color: #0f172a !important;
}

.content-header > h1, .content-header-custom > h1 {
  color: #0f172a !important;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.content-header > h1 small {
  color: #64748b;
}

.content {
  padding: 16px 28px 32px;
}

body[class*=skin-] .content-wrapper .content-header-custom {
  padding: 24px 28px 10px;
  color: #0f172a !important;
  background: transparent !important;
  background-image: none !important;
}

body[class*=skin-] .content-wrapper .content-header-custom > h1,
body[class*=skin-] .content-wrapper .content-header-custom > h1 a {
  color: #0f172a !important;
}

body[class*=skin-] .content-wrapper .content-header-custom > h1 small {
  color: #64748b !important;
}

body[class*=skin-] .content-wrapper .content-custom {
  margin-top: 0 !important;
}

.main-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.main-header .logo,
.main-header .navbar,
.skin-blue-light .main-header .logo,
.skin-blue-light .main-header .navbar,
.skin-blue .main-header .logo,
.skin-blue .main-header .navbar {
  background: #fff !important;
  color: #0f172a !important;
}

.main-header .logo {
  border-right: 1px solid #e2e8f0;
  color: #0f172a !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-header .navbar a, .main-header .navbar .sidebar-toggle, .main-header .navbar .nav > li > a {
  color: #475569;
}

.main-header .navbar .nav > li > a:hover, .main-header .navbar .nav > li > a:focus, .main-header .navbar .sidebar-toggle:hover {
  color: #2563eb;
  background: #f8fafc;
}

body[class*=skin-] .main-header .navbar > .sidebar-toggle,
body[class*=skin-] .main-header .navbar .nav > li > a,
body[class*=skin-] .main-header .navbar .navbar-custom-menu .navbar-nav > li > a,
body[class*=skin-] .main-header .navbar .navbar-right > li > a,
body[class*=skin-] .main-header .header-date {
  color: #475569 !important;
}

body[class*=skin-] .main-header .navbar .nav > li > a:hover,
body[class*=skin-] .main-header .navbar .nav > li > a:focus,
body[class*=skin-] .main-header .navbar .nav > .open > a,
body[class*=skin-] .main-header .navbar .sidebar-toggle:hover {
  color: #2563eb !important;
  background: #f8fafc !important;
}

.main-header .header-date {
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.main-header .navbar-custom-menu {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 88px);
}

.main-header .header-action-scroll {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 62px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.main-header .header-action-scroll > * {
  flex: 0 0 auto;
}

.main-header .header-action-scroll .dropdown-menu.header-shortcut-floating {
  position: fixed !important;
  z-index: 1100;
  display: block;
  max-height: calc(100dvh - 76px);
  overflow-x: hidden;
  overflow-y: auto;
}

.main-header .header-account-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 62px;
  margin: 0;
}

.main-header .user-menu > a {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.active-subscription-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.active-subscription-info:hover,
.active-subscription-info:focus {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  outline: none;
}

.theme-dark .active-subscription-info {
  color: #f8fafc;
}

.theme-dark .active-subscription-info:hover,
.theme-dark .active-subscription-info:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.popover .active-subscription-details {
  width: 100%;
  min-width: 0 !important;
  margin-bottom: 0;
  color: #334155;
}

.popover .active-subscription-details > tbody > tr > td {
  border-color: #e2e8f0;
  color: inherit;
}

.theme-dark .popover .active-subscription-details {
  color: #e5edf8;
}

.drp-mobile-header {
  display: none;
}

.main-header .user-image.user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px 0 -4px 0;
  float: none;
  border-radius: 50%;
  color: #fff;
  background: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.main-sidebar,
.skin-blue-light .main-sidebar,
.skin-black-light .main-sidebar,
.skin-purple-light .main-sidebar,
.skin-green-light .main-sidebar,
.skin-red-light .main-sidebar,
.skin-yellow-light .main-sidebar {
  background: #0f172a;
  border: 0;
}

.main-sidebar .logo {
  color: #fff;
  font-weight: 700;
}

.sidebar-menu > li.header {
  color: #64748b;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.sidebar-menu > li:hover > a, .sidebar-menu > li.active > a, .sidebar-menu > li.menu-open > a {
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
}

.sidebar-menu > li.active > a {
  box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar-menu .treeview-menu {
  margin: 0 10px 6px;
  padding: 4px 0;
  background: rgba(2, 6, 23, 0.3);
  border-radius: 8px;
}

.sidebar-menu .treeview-menu > li > a {
  padding: 8px 12px 8px 34px;
  color: #94a3b8;
}

.sidebar-menu .treeview-menu > li.active > a, .sidebar-menu .treeview-menu > li > a:hover {
  color: #fff;
}

.box, .info-box, .small-box, .nav-tabs-custom, .modal-content, .dropdown-menu, .panel {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.box, .info-box, .nav-tabs-custom, .panel {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0 !important;
  background: #fff;
}

.box:has(.dataTables_wrapper),
.box:has(.table-responsive .dropdown-menu),
.box:has(table .dropdown-menu) {
  overflow: visible;
}

.dataTables_wrapper,
.dataTables_wrapper .table-responsive {
  overflow-y: visible;
}

.dataTables_wrapper .dropdown,
.dataTables_wrapper td {
  position: relative;
}

.dataTables_wrapper .dropdown.open {
  z-index: 1050;
}

.dataTables_wrapper .dropdown-menu {
  z-index: 1060;
  max-height: none;
}

.box-header, .panel-heading, .modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.box-body {
  padding: 18px;
}

.box-title, .panel-title, .modal-title {
  color: #0f172a;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.form-control, .select2-container .select2-selection, .input-group-addon {
  min-height: 40px;
  border-color: #cbd5e1;
  border-radius: 8px !important;
  box-shadow: none;
  background: #fff;
}

.input-group .form-control:first-child, .input-group-addon:first-child {
  border-radius: 8px 0 0 8px !important;
}

.input-group .form-control:last-child, .input-group-btn:last-child > .btn {
  border-radius: 0 8px 8px 0 !important;
}

.form-control:focus, .select2-container--focus .select2-selection, .select2-container--open .select2-selection {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
  min-height: 38px;
  border-radius: 8px !important;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

button.btn > i, a.btn > i,
button.btn > strong, a.btn > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-file {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.btn-group {
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
}

.btn-group > .btn {
  float: none;
}

.btn-primary, .btn-info {
  color: #fff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.btn-primary:hover, .btn-info:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.btn-success {
  color: #fff !important;
  background: #059669 !important;
  border-color: #059669 !important;
}

.btn-warning {
  color: #fff !important;
  background: #d97706 !important;
  border-color: #d97706 !important;
}

.btn-danger {
  color: #fff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.btn-default {
  color: #334155;
  background: #fff;
  border-color: #cbd5e1;
}

.btn-default:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #94a3b8;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.dashboard-toolbar .form-group {
  margin-bottom: 0;
}

.dashboard-kpis {
  display: flex;
  flex-wrap: wrap;
}

.dashboard-kpis > [class*=col-] {
  display: flex;
}

.erp-dashboard .info-box-new-style {
  position: relative;
  width: 100%;
  min-height: 116px;
  margin-bottom: 16px;
  overflow: visible;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.erp-dashboard .info-box-new-style:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
}

.erp-dashboard .info-box-icon {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 42px;
}

.erp-dashboard .info-box-icon.bg-aqua {
  color: #0369a1 !important;
  background: #e0f2fe !important;
}

.erp-dashboard .info-box-icon.bg-green {
  color: #047857 !important;
  background: #d1fae5 !important;
}

.erp-dashboard .info-box-icon.bg-yellow {
  color: #b45309 !important;
  background: #fef3c7 !important;
}

.erp-dashboard .info-box-icon.bg-red {
  color: #b91c1c !important;
  background: #fee2e2 !important;
}

.erp-dashboard .info-box-content {
  min-height: 114px;
  margin-left: 0;
  padding: 20px 70px 18px 18px;
}

.erp-dashboard .info-box-text {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.erp-dashboard .info-box-number {
  color: #0f172a;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.erp-dashboard .info-box-new-style > p {
  position: absolute;
  right: 16px;
  bottom: 10px;
  left: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.table-responsive {
  border: 0;
  border-radius: 10px;
}

.table {
  margin-bottom: 0;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.table > thead > tr > th {
  padding: 11px 12px;
  color: #475569;
  background: #f8fafc;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table > tbody > tr > td, .table > tfoot > tr > td {
  padding: 11px 12px;
  border-color: #e2e8f0;
  border-right: 0;
  border-left: 0;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: #fbfdff;
}

.table-hover > tbody > tr:hover, .table > tbody > tr:hover {
  background: #eff6ff;
}

.dataTables_wrapper .row:first-child {
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid #e2e8f0;
}

.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate {
  padding: 14px 8px;
  color: #64748b;
}

.erp-dashboard .table-responsive,
.erp-dashboard .dataTables_wrapper,
.erp-dashboard .dataTables_scroll,
.erp-dashboard .dataTables_scrollHead,
.erp-dashboard .dataTables_scrollHeadInner,
.erp-dashboard .dataTables_scrollBody,
.erp-dashboard table.dataTable,
.erp-dashboard .dataTables_scrollHeadInner > table {
  width: 100% !important;
  max-width: none;
}

.pagination > li > a, .pagination > li > span {
  margin: 0 2px;
  border-color: #e2e8f0;
  border-radius: 7px !important;
  color: #475569;
}

.pagination > .active > a, .pagination > .active > span {
  background: #2563eb;
  border-color: #2563eb;
}

.nav-tabs-custom > .nav-tabs {
  padding: 0 10px;
  border-bottom: 1px solid #e2e8f0;
}

.nav-tabs > li > a {
  color: #64748b;
  border-radius: 8px 8px 0 0;
}

.nav-tabs-custom > .nav-tabs > li.active {
  border-top-color: #2563eb;
}

.nav-tabs > li.active > a {
  color: #0f172a;
  font-weight: 600;
}

.dropdown-menu {
  padding: 6px;
  border: 1px solid #e2e8f0;
}

.dropdown-menu > li > a {
  padding: 9px 12px;
  border-radius: 7px;
}

.dropdown-menu > li > a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.dropdown-menu .dropdown-form-action {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  text-align: left;
  white-space: nowrap;
}

.dropdown-menu .dropdown-form-action:hover,
.dropdown-menu .dropdown-form-action:focus {
  background: #eff6ff;
  color: #1d4ed8;
}

#sell_table_wrapper .dropdown-menu {
  padding: 4px;
}

#sell_table_wrapper .dropdown-menu > li > a {
  padding: 6px 10px;
  line-height: 1.35;
}

#sell_table_wrapper .dropdown-menu .divider {
  margin: 4px 0;
}

.modal-content {
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.modal-backdrop.in {
  opacity: 0.55;
}

.alert {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.label {
  border-radius: 6px;
  padding: 0.35em 0.6em;
}

.pos-total {
  border-radius: 10px;
  background: #0f172a !important;
  font-variant-numeric: tabular-nums;
}

/* POS workspace */
.pos-layout {
  min-height: 100dvh;
  background: #f4f7fb;
}

.pos-layout .wrapper {
  min-height: 100dvh;
  background: #f4f7fb;
}

.pos-layout .pos-header {
  position: sticky;
  z-index: 1030;
  top: 0;
  width: 100%;
  padding: 8px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.pos-layout .pos-header > .row {
  display: flex;
  align-items: center;
}

.pos-layout .pos-header p {
  margin: 0;
  color: #64748b;
}

.pos-layout .pos-header p strong {
  color: #0f172a;
}

.pos-layout .pos-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin: 2px 4px !important;
  border: 0 !important;
  box-shadow: none;
}

.pos-layout .content.pos-workspace {
  width: calc(100% - 24px);
  max-width: 1920px;
  margin: 20px auto 0 !important;
  padding: 8px 6px 112px !important;
}

.pos-workspace > .row {
  margin: 0;
}

.pos-workspace .box {
  overflow: visible;
  margin-bottom: 24px;
  border-radius: 14px;
}

.pos-workspace .box-body {
  padding: 16px 16px 22px;
}

.pos-workspace .form-group {
  margin-bottom: 12px;
}

.pos-workspace .input-group-addon {
  min-width: 42px;
  color: #64748b;
  background: #f8fafc;
}

.pos-workspace #search_product {
  height: 46px;
  font-size: 15px;
  font-weight: 600;
}

.pos-workspace .select2-container .select2-selection,
.pos-workspace .form-control {
  border-color: #cbd5e1;
}

.pos-workspace .pos_product_div {
  min-height: 310px;
  max-height: calc(100dvh - 390px);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.pos-workspace #pos_table {
  width: 100%;
  min-width: 680px;
}

.pos-workspace #pos_table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.pos-workspace #pos_table > thead > tr > th {
  padding: 13px 12px;
  background: #eef4ff;
  color: #334155;
}

.pos-workspace #pos_table > tbody > tr > td {
  padding: 10px 12px;
  background: #fff;
}

.pos-workspace .pos_form_totals {
  margin: 14px 0 8px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.pos-workspace .pos_form_totals .table {
  background: transparent;
}

.pos-workspace .pos_form_totals td {
  border: 0;
  color: #64748b;
}

.pos-workspace .pos_form_totals b {
  color: #0f172a;
}

.pos-workspace .pos-form-actions {
  position: fixed;
  z-index: 1020;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 18px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.09);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.pos-workspace .pos-form-actions > .col-md-12 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.pos-workspace .pos-form-actions .btn {
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
}

.pos-workspace .pos-form-actions .pos-total {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-left: auto;
  padding: 8px 16px;
}

.pos-workspace .pos-form-actions .pos-total .text {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.pos-workspace .pos-form-actions .pos-total .number {
  color: #fff;
  font-size: 24px;
  font-weight: 750;
}

.pos-workspace #recent-transactions {
  order: 20;
  float: none !important;
}

.pos-footer-meta {
  position: fixed;
  z-index: 1021;
  right: 455px;
  bottom: 18px;
  left: 850px;
  margin: 0;
  color: #64748b !important;
  pointer-events: none;
}

.pos-footer-meta__text {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pos-footer-meta__text b {
  font-weight: 500;
}

.pos-workspace #product_list_body .product_box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pos-workspace #product_list_body .product_box:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.pos-shortcuts-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  vertical-align: middle;
}

.pos-shortcuts-trigger:hover, .pos-shortcuts-trigger:focus {
  border-color: #2563eb;
  color: #2563eb;
  outline: 0;
}

#btnCalculator {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

#btnCalculator > strong, #btnCalculator .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1 !important;
}

.pos-layout .pos-header #btnCalculator {
  position: relative;
}

.pos-layout .pos-header #btnCalculator::after {
  position: absolute;
  z-index: 1060;
  top: calc(100% + 8px);
  right: 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  content: attr(data-label);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.pos-layout .pos-header #btnCalculator:hover::after, .pos-layout .pos-header #btnCalculator:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.pos-shortcuts-modal .modal-dialog {
  width: 520px;
  max-width: calc(100% - 24px);
  margin: 70px auto;
}

.pos-shortcuts-modal .modal-body {
  padding: 8px 20px 18px;
}

.pos-shortcuts-table {
  margin: 0;
}

.pos-shortcuts-table > tbody > tr > th, .pos-shortcuts-table > tbody > tr > td {
  padding: 11px 8px;
  border-color: #e2e8f0;
  vertical-align: middle;
}

.pos-shortcuts-table th:last-child, .pos-shortcuts-table td:last-child {
  width: 165px;
  text-align: right;
}

.pos-shortcuts-table kbd {
  display: inline-block;
  min-width: 68px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
}

.calculator-modal .modal-dialog {
  width: 360px;
  margin: 70px auto;
}

.calculator-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
}

.calculator-modal .modal-body {
  padding: 20px;
  background: #f8fafc;
}

.calculator-modal .calculator__display {
  margin: 0 0 14px;
}

.calculator-modal #calculator .screen {
  width: 100% !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.calculator-modal .calculator__keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calculator-modal #calculator .calculator__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 11px !important;
  background: #fff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.calculator-modal #calculator .calculator__key:hover, .calculator-modal #calculator .calculator__key:focus {
  border-color: #93c5fd !important;
  background: #eff6ff;
  color: #2563eb;
  outline: 0;
}

.calculator-modal #calculator .calculator__key--operator {
  background: #eaf2ff;
  color: #2563eb;
}

.calculator-modal #calculator .calculator__key--danger {
  border-color: #dc2626 !important;
  background: #dc2626;
  color: #fff;
}

.calculator-modal #calculator .calculator__key--warning {
  border-color: #d97706 !important;
  background: #d97706;
  color: #fff;
}

.calculator-modal #calculator .calculator__key--equals {
  border-color: #059669 !important;
  background: #059669;
  color: #fff;
}

.calculator-modal #calculator .calculator__key--danger:hover, .calculator-modal #calculator .calculator__key--warning:hover, .calculator-modal #calculator .calculator__key--equals:hover {
  color: #fff;
  filter: brightness(0.94);
}

.calculator-modal #calculator .calculator__key--zero {
  grid-column: span 2;
}

.superadmin-business-page .table-responsive {
  overflow-x: visible;
}

.superadmin-business-page #superadmin_business_table {
  width: 100% !important;
  table-layout: auto;
  font-size: 12px;
}

.superadmin-business-page #superadmin_business_table th,
.superadmin-business-page #superadmin_business_table td {
  padding: 7px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.superadmin-business-page #superadmin_business_table th {
  font-size: 10px;
  line-height: 1.25;
}

.superadmin-business-page #superadmin_business_table th:last-child,
.superadmin-business-page #superadmin_business_table td:last-child {
  width: 1%;
  min-width: 92px;
  white-space: nowrap;
}

.superadmin-business-page #superadmin_business_table td:last-child .btn {
  min-height: 30px;
  padding: 4px 7px;
  font-size: 11px;
}

/* Dark theme */
html.theme-dark {
  color-scheme: dark;
  background: #0b1120;
  --erp-canvas: #0b1120;
  --erp-surface: #111827;
  --erp-border: #293548;
  --erp-text: #e5edf8;
  --erp-muted: #94a3b8;
}

.theme-dark body,
.theme-dark .content-wrapper,
.theme-dark .pos-layout,
.theme-dark .pos-layout .wrapper {
  color: #e5edf8;
  background: #0b1120;
}

.theme-dark .content-header > h1,
.theme-dark .content-header-custom > h1,
.theme-dark body[class*=skin-] .content-wrapper .content-header-custom > h1,
.theme-dark body[class*=skin-] .content-wrapper .content-header-custom > h1 a,
.theme-dark .box-title,
.theme-dark .panel-title,
.theme-dark .modal-title {
  color: #e5edf8 !important;
}

.theme-dark .content-header > h1 small,
.theme-dark body[class*=skin-] .content-wrapper .content-header-custom > h1 small,
.theme-dark .help-block,
.theme-dark .text-muted {
  color: #94a3b8 !important;
}

.theme-dark .main-header,
.theme-dark .main-header .logo,
.theme-dark .main-header .navbar,
.theme-dark body[class*=skin-] .main-header .logo,
.theme-dark body[class*=skin-] .main-header .navbar {
  background: #111827 !important;
}

.theme-dark .main-header .logo {
  border-color: #293548;
  color: #f8fafc !important;
}

.theme-dark body[class*=skin-] .main-header .navbar > .sidebar-toggle,
.theme-dark body[class*=skin-] .main-header .navbar .nav > li > a,
.theme-dark body[class*=skin-] .main-header .navbar .navbar-custom-menu .navbar-nav > li > a,
.theme-dark body[class*=skin-] .main-header .navbar .navbar-right > li > a,
.theme-dark body[class*=skin-] .main-header .header-date {
  color: #cbd5e1 !important;
}

.theme-dark body[class*=skin-] .main-header .navbar .nav > li > a:hover,
.theme-dark body[class*=skin-] .main-header .navbar .nav > li > a:focus,
.theme-dark body[class*=skin-] .main-header .navbar .nav > .open > a,
.theme-dark body[class*=skin-] .main-header .navbar .sidebar-toggle:hover {
  background: #1e293b !important;
  color: #60a5fa !important;
}

.theme-dark body[class*=skin-] .main-sidebar,
.theme-dark .main-sidebar,
.theme-dark .main-sidebar .sidebar,
.theme-dark .main-sidebar .sidebar-menu {
  background: #070d1a !important;
}

.theme-dark .main-sidebar .logo {
  background: #111827 !important;
  color: #f8fafc !important;
}

.theme-dark .sidebar-menu > li,
.theme-dark .sidebar-menu > li > a {
  background: transparent !important;
  color: #cbd5e1 !important;
}

.theme-dark .sidebar-menu > li > a .fa,
.theme-dark .sidebar-menu > li > a .fas,
.theme-dark .sidebar-menu > li > a .far,
.theme-dark .sidebar-menu > li > a .glyphicon,
.theme-dark .sidebar-menu > li > a .pull-right-container {
  color: inherit !important;
}

.theme-dark .sidebar-menu > li:hover > a,
.theme-dark .sidebar-menu > li.active > a,
.theme-dark .sidebar-menu > li.menu-open > a {
  background: #172554 !important;
  color: #fff !important;
}

.theme-dark .sidebar-menu > li.active > a {
  box-shadow: inset 3px 0 0 #60a5fa;
}

.theme-dark body[class*=skin-] .sidebar-menu > li > .treeview-menu,
.theme-dark .sidebar-menu .treeview-menu {
  background: #0f172a !important;
}

.theme-dark .sidebar-menu .treeview-menu > li,
.theme-dark .sidebar-menu .treeview-menu > li > a {
  background: transparent !important;
  color: #94a3b8 !important;
}

.theme-dark .sidebar-menu .treeview-menu > li.active > a,
.theme-dark .sidebar-menu .treeview-menu > li > a:hover,
.theme-dark .sidebar-menu .treeview-menu > li > a:focus {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.theme-dark .box,
.theme-dark .info-box,
.theme-dark .small-box,
.theme-dark .nav-tabs-custom,
.theme-dark .panel,
.theme-dark .modal-content,
.theme-dark .dropdown-menu,
.theme-dark .box-header,
.theme-dark .box-body,
.theme-dark .panel-heading,
.theme-dark .panel-body,
.theme-dark .modal-header,
.theme-dark .modal-body,
.theme-dark .user-footer,
.theme-dark .dashboard-toolbar,
.theme-dark .erp-dashboard .info-box-new-style {
  background: #111827;
  border-color: #293548;
  color: #e5edf8;
}

.theme-dark .erp-dashboard .info-box-number {
  color: #f8fafc;
}

.theme-dark .box,
.theme-dark .info-box,
.theme-dark .nav-tabs-custom,
.theme-dark .panel {
  border-color: #293548;
  border-top-color: #293548 !important;
}

.theme-dark .box-header,
.theme-dark .panel-heading,
.theme-dark .modal-header,
.theme-dark .nav-tabs-custom > .nav-tabs {
  border-color: #293548;
}

.theme-dark .form-control,
.theme-dark .select2-container .select2-selection,
.theme-dark .select2-dropdown,
.theme-dark .select2-search__field,
.theme-dark .input-group-addon,
.theme-dark .dataTables_wrapper .dataTables_filter input,
.theme-dark .dataTables_wrapper .dataTables_length select {
  background: #0f172a;
  border-color: #334155;
  color: #e5edf8;
}

.theme-dark .form-control::-moz-placeholder, .theme-dark input::-moz-placeholder, .theme-dark textarea::-moz-placeholder {
  color: #718096;
}

.theme-dark .form-control::placeholder,
.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
  color: #718096;
}

.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__choice,
.theme-dark label {
  color: #cbd5e1;
}

.theme-dark .select2-results__option {
  background: #111827;
  color: #e5edf8;
}

.theme-dark .select2-results__option[aria-selected=true],
.theme-dark .select2-results__option--highlighted[aria-selected] {
  background: #1d4ed8 !important;
  color: #fff !important;
}

.theme-dark .daterangepicker,
.theme-dark .daterangepicker .calendar-table {
  background: #111827;
  border-color: #334155;
  color: #e5edf8;
}

.theme-dark .daterangepicker::before {
  border-bottom-color: #334155;
}

.theme-dark .daterangepicker::after {
  border-bottom-color: #111827;
}

.theme-dark .daterangepicker .drp-buttons {
  border-color: #334155;
}

.theme-dark .daterangepicker .ranges li {
  color: #cbd5e1;
}

.theme-dark .daterangepicker .ranges li:hover {
  background: #1e293b;
  color: #f8fafc;
}

.theme-dark .daterangepicker .ranges li.active {
  background: #2563eb;
  color: #fff;
}

.theme-dark .daterangepicker th {
  color: #cbd5e1;
}

.theme-dark .daterangepicker .calendar-table .next span,
.theme-dark .daterangepicker .calendar-table .prev span {
  border-color: #cbd5e1;
}

.theme-dark .daterangepicker td {
  color: #e5edf8;
}

.theme-dark .daterangepicker td.off,
.theme-dark .daterangepicker td.off.in-range,
.theme-dark .daterangepicker td.off.start-date,
.theme-dark .daterangepicker td.off.end-date {
  background: #111827;
  color: #64748b;
}

.theme-dark .daterangepicker td.available:hover,
.theme-dark .daterangepicker th.available:hover {
  background: #1e293b;
  color: #fff;
}

.theme-dark .daterangepicker td.in-range {
  background: #1e3a5f;
  color: #e5edf8;
}

.theme-dark .daterangepicker td.active,
.theme-dark .daterangepicker td.active:hover {
  background: #2563eb;
  color: #fff;
}

.theme-dark .daterangepicker select,
.theme-dark .daterangepicker .drp-manual-dates input {
  background: #0f172a;
  border-color: #475569;
  color: #e5edf8;
}

.theme-dark .daterangepicker .drp-manual-separator {
  color: #94a3b8;
}

.theme-dark .table {
  background: #111827;
  color: #e5edf8;
}

.theme-dark .table > thead > tr > th {
  background: #172033;
  border-color: #334155;
  color: #cbd5e1;
}

.theme-dark .table > tbody > tr > td,
.theme-dark .table > tfoot > tr > td,
.theme-dark .table-bordered,
.theme-dark .table-bordered > thead > tr > th,
.theme-dark .table-bordered > tbody > tr > td {
  border-color: #293548;
}

.theme-dark .table-striped > tbody > tr:nth-of-type(odd) {
  background: #0f172a;
}

.theme-dark .table-hover > tbody > tr:hover,
.theme-dark .table > tbody > tr:hover {
  background: #172554;
}

.theme-dark .bg-gray,
.theme-dark .table > tfoot > tr {
  background: #1e293b !important;
  color: #e5edf8;
}

.theme-dark .dataTables_wrapper .row:first-child {
  border-color: #293548;
}

.theme-dark .dataTables_wrapper .dataTables_info,
.theme-dark .dataTables_wrapper .dataTables_paginate {
  color: #94a3b8;
}

.theme-dark .dropdown-menu > li > a {
  color: #cbd5e1;
}

.theme-dark .dropdown-menu .dropdown-form-action {
  color: #cbd5e1;
}

.theme-dark .dropdown-menu > li > a:hover,
.theme-dark .dropdown-menu > li > a:focus,
.theme-dark .dropdown-menu .dropdown-form-action:hover,
.theme-dark .dropdown-menu .dropdown-form-action:focus {
  background: #1e293b;
  color: #f8fafc;
}

.theme-dark .dropdown-menu .divider {
  background: #293548;
}

.theme-dark .tooltip.in {
  opacity: 1;
}

.theme-dark .tooltip-inner {
  max-width: 300px;
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.theme-dark .tooltip.top .tooltip-arrow {
  border-top-color: #475569;
}

.theme-dark .tooltip.right .tooltip-arrow {
  border-right-color: #475569;
}

.theme-dark .tooltip.bottom .tooltip-arrow {
  border-bottom-color: #475569;
}

.theme-dark .tooltip.left .tooltip-arrow {
  border-left-color: #475569;
}

.theme-dark .popover {
  background: #1e293b;
  border-color: #475569;
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.theme-dark .popover-title {
  background: #172033;
  border-color: #475569;
  color: #f8fafc;
}

.theme-dark .popover-content {
  color: #e5edf8;
}

.theme-dark .popover.top > .arrow {
  border-top-color: #475569;
}

.theme-dark .popover.top > .arrow::after {
  border-top-color: #1e293b;
}

.theme-dark .popover.right > .arrow {
  border-right-color: #475569;
}

.theme-dark .popover.right > .arrow::after {
  border-right-color: #1e293b;
}

.theme-dark .popover.bottom > .arrow {
  border-bottom-color: #475569;
}

.theme-dark .popover.bottom > .arrow::after {
  border-bottom-color: #1e293b;
}

.theme-dark .popover.left > .arrow {
  border-left-color: #475569;
}

.theme-dark .popover.left > .arrow::after {
  border-left-color: #1e293b;
}

.theme-dark .btn-default,
.theme-dark .theme-toggle {
  background: #172033;
  border-color: #334155;
  color: #e5edf8;
}

.theme-dark .btn-default:hover,
.theme-dark .theme-toggle:hover {
  background: #1e293b;
  border-color: #475569;
  color: #fff;
}

.theme-dark .pagination > li > a,
.theme-dark .pagination > li > span {
  background: #111827;
  border-color: #293548;
  color: #cbd5e1;
}

.theme-dark .pagination > .active > a,
.theme-dark .pagination > .active > span {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.theme-dark .nav-tabs > li > a {
  color: #94a3b8;
}

.theme-dark .nav-tabs > li.active > a,
.theme-dark .nav-tabs > li.active > a:hover,
.theme-dark .nav-tabs > li.active > a:focus {
  background: #111827;
  border-color: #293548;
  color: #e5edf8;
}

.theme-dark .nav-tabs-custom > .tab-content {
  background: #111827;
  color: #e5edf8;
}

.theme-dark .nav-tabs-custom > .tab-content h4 {
  color: #e5edf8;
}

.theme-dark hr {
  border-color: #293548;
}

.theme-dark #ledger_tab,
.theme-dark #contact_ledger_div,
.theme-dark #contact_ledger_div > div {
  background: #111827;
  color: #e5edf8;
}

.theme-dark #ledger_tab .btn-group > .btn-default.active,
.theme-dark #ledger_tab .btn-group > .btn-default:active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.theme-dark #contact_ledger_div .blue-heading {
  background: #1d4ed8 !important;
  color: #fff !important;
}

.theme-dark #contact_ledger_div p,
.theme-dark #contact_ledger_div small,
.theme-dark #contact_ledger_div strong {
  color: inherit;
}

.theme-dark #contact_ledger_div hr {
  border-color: #334155;
}

.theme-dark #contact_ledger_div .table-responsive {
  background: #111827;
}

.theme-dark #contact_ledger_div #ledger_table > thead > tr > th {
  background: #172554;
  color: #f8fafc;
}

.theme-dark #contact_ledger_div #ledger_table > tbody > tr > td {
  background: #111827;
  color: #e5edf8;
  border-color: #334155;
}

.theme-dark #contact_ledger_div #ledger_table > tbody > tr:nth-of-type(odd) > td {
  background: #0f172a;
}

.theme-dark .pos-layout .pos-header,
.theme-dark .pos-workspace .pos-form-actions {
  background: rgba(17, 24, 39, 0.97);
  border-color: #293548;
}

.theme-dark .pos-layout .pos-header p strong,
.theme-dark .pos-workspace .pos_form_totals b {
  color: #e5edf8;
}

.theme-dark .pos-workspace .pos_product_div,
.theme-dark .pos-workspace #pos_table > tbody > tr > td,
.theme-dark .pos-workspace #product_list_body .product_box {
  background: #111827;
  border-color: #293548;
}

.theme-dark .pos-workspace #pos_table > thead > tr > th,
.theme-dark .pos-workspace .pos_form_totals,
.theme-dark .pos-workspace .input-group-addon {
  background: #172033;
  color: #cbd5e1;
  border-color: #334155;
}

.theme-dark .calculator-modal .modal-body {
  background: #0f172a;
}

.theme-dark .calculator-modal #calculator .calculator__key {
  background: #172033;
  border-color: #334155 !important;
  color: #e5edf8;
}

.theme-dark .main-footer {
  background: #111827;
  border-top: 0 !important;
  box-shadow: none;
  color: #94a3b8;
}

.main-footer .toggle-font-size {
  min-width: 28px !important;
  min-height: 28px !important;
  height: 28px;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1;
}

.main-footer .toggle-font-size .fa {
  font-size: 10px;
}

.scrolltop {
  z-index: 1080 !important;
  right: 16px !important;
  bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  width: auto !important;
  margin: 0 !important;
}

.scrolltop .scroll {
  position: static;
  margin: 0;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    padding: 10px 12px;
  }
  .main-footer .footer-copy {
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .main-footer .footer-font-controls {
    display: flex;
    flex: 0 0 auto;
    float: none !important;
  }
}
.theme-dark .navbar-default.bg-white,
.theme-dark section.no-print > .navbar.navbar-default {
  background: #111827 !important;
  border-color: #293548;
}

.theme-dark .navbar-default .navbar-brand,
.theme-dark .navbar-default .navbar-nav > li > a {
  color: #cbd5e1;
}

.theme-dark .navbar-default .navbar-brand:hover,
.theme-dark .navbar-default .navbar-brand:focus,
.theme-dark .navbar-default .navbar-nav > li > a:hover,
.theme-dark .navbar-default .navbar-nav > li > a:focus {
  background: #1e293b;
  color: #60a5fa;
}

.theme-dark .navbar-default .navbar-nav > .active > a,
.theme-dark .navbar-default .navbar-nav > .active > a:hover,
.theme-dark .navbar-default .navbar-nav > .active > a:focus {
  background: #172554;
  color: #fff;
}

.theme-dark .navbar-default .navbar-toggle {
  border-color: #475569;
}

.theme-dark .navbar-default .navbar-toggle .icon-bar {
  background: #cbd5e1;
}

.theme-dark .navbar-default .navbar-collapse {
  border-color: #293548;
}

.theme-dark .highcharts-background,
.theme-dark .highcharts-plot-background {
  fill: #111827;
}

.theme-dark .highcharts-axis-line,
.theme-dark .highcharts-tick,
.theme-dark .highcharts-grid-line {
  stroke: #293548;
}

.theme-dark .highcharts-axis-labels text,
.theme-dark .highcharts-axis-title,
.theme-dark .highcharts-legend-item text,
.theme-dark .highcharts-title,
.theme-dark .highcharts-subtitle {
  fill: #cbd5e1 !important;
  color: #cbd5e1 !important;
}

.theme-dark .highcharts-button-box {
  fill: #111827;
  stroke: #293548;
}

.theme-dark .highcharts-button-symbol {
  stroke: #cbd5e1;
}

.theme-dark .pos-tab-container,
.theme-dark .pos-tab,
.theme-dark .pos-tab-content {
  background: #111827 !important;
  color: #e5edf8;
}

.theme-dark .pos-tab-menu .list-group,
.theme-dark .pos-tab-menu .list-group-item {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.theme-dark .pos-tab-menu .list-group-item.active,
.theme-dark .pos-tab-menu .list-group-item:hover,
.theme-dark .pos-tab-menu .list-group-item:focus {
  background: #1d4ed8;
  color: #fff;
}

.theme-dark .navbar-nav > .user-menu > .dropdown-menu,
.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-header,
.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-footer {
  background: #111827 !important;
  border-color: #334155;
  color: #e5edf8;
}

.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-header p {
  color: #e5edf8;
}

.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-header img {
  background: #fff;
}

.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn {
  background: #172033 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
  opacity: 1;
}

.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn:hover,
.theme-dark .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn:focus {
  background: #1e293b !important;
  border-color: #64748b !important;
  color: #fff !important;
}

.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating {
  background: #111827 !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating > li > a {
  background: transparent !important;
  color: #e5edf8 !important;
  opacity: 1;
}

.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating > li > a > i {
  color: #94a3b8 !important;
  opacity: 1;
}

.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating > li > a:hover,
.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating > li > a:focus {
  background: #1e293b !important;
  color: #fff !important;
}

.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating > li > a:hover > i,
.theme-dark .header-action-scroll .dropdown-menu.header-shortcut-floating > li > a:focus > i {
  color: #60a5fa !important;
}

.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu,
.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu > li,
.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu > li .menu,
.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li,
.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a {
  background: #111827 !important;
  border-color: #293548 !important;
  color: #cbd5e1 !important;
}

.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a:hover,
.theme-dark .navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a:focus {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.theme-dark .notifications-menu .notif-info {
  color: #cbd5e1 !important;
}

.theme-dark .notifications-menu .time {
  color: #94a3b8 !important;
}

.theme-dark .notifications-menu .unread,
.theme-dark .notifications-menu .unread > a {
  background: #172033 !important;
}

.theme-dark .notifications-menu .menu {
  scrollbar-color: #475569 #111827;
  color-scheme: dark;
}

.theme-dark .tox.tox-tinymce,
.theme-dark .tox .tox-menubar,
.theme-dark .tox .tox-toolbar-overlord,
.theme-dark .tox .tox-toolbar,
.theme-dark .tox .tox-toolbar__primary,
.theme-dark .tox .tox-statusbar {
  background: #111827 !important;
  border-color: #334155;
}

.theme-dark .tox .tox-mbtn,
.theme-dark .tox .tox-tbtn,
.theme-dark .tox .tox-statusbar {
  color: #e5edf8;
}

.theme-dark input[type=file] {
  color: #cbd5e1;
}

.theme-dark .sale-serial-modal .purchase-serial-editor {
  color: #e5edf8;
}

.theme-dark .sale-serial-modal .purchase-serial-heading,
.theme-dark .sale-serial-modal .purchase-serial-row {
  border-color: #334155;
}

.theme-dark .sale-serial-modal .purchase-serial-row {
  background: #172033;
}

.theme-dark .sale-serial-modal .purchase-serial-field label {
  color: #e5edf8;
}

.theme-dark .sale-serial-modal .purchase-serial-heading span,
.theme-dark .sale-serial-modal .purchase-serial-field label small {
  color: #94a3b8;
}

@media print {
  html.theme-dark {
    color-scheme: light;
  }
  html.theme-dark body,
html.theme-dark .content-wrapper,
html.theme-dark .print_section,
html.theme-dark .invoice {
    background: #fff !important;
    color: #000 !important;
  }
  html.theme-dark body * {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #000 !important;
    text-shadow: none !important;
  }
  html.theme-dark table,
html.theme-dark thead,
html.theme-dark tbody,
html.theme-dark tfoot,
html.theme-dark tr,
html.theme-dark th,
html.theme-dark td {
    background: #fff !important;
    color: #000 !important;
  }
  html.theme-dark th,
html.theme-dark td {
    border-color: #b8c0cc !important;
  }
  html.theme-dark .highcharts-background,
html.theme-dark .highcharts-plot-background {
    fill: #fff !important;
  }
  html.theme-dark .highcharts-axis-labels text,
html.theme-dark .highcharts-axis-title,
html.theme-dark .highcharts-legend-item text,
html.theme-dark .highcharts-title,
html.theme-dark .highcharts-subtitle {
    fill: #000 !important;
    color: #000 !important;
  }
  html.theme-dark .highcharts-axis-line,
html.theme-dark .highcharts-tick,
html.theme-dark .highcharts-grid-line {
    stroke: #cbd5e1 !important;
  }
}
@media (max-width: 1199px) {
  .main-header .navbar-custom-menu {
    width: calc(100% - 88px);
  }
  .main-header .header-action-scroll {
    justify-content: flex-start;
  }
  .main-header .header-date {
    display: none !important;
  }
  .main-header .header-account-menu .user-menu > a > span:not(.user-image) {
    display: none;
  }
  .pos-workspace .pos-form-actions > .col-md-12 {
    flex-wrap: wrap;
  }
  .pos-workspace .pos-form-actions .pos-total {
    margin-left: 0;
  }
  .pos-layout .content.pos-workspace {
    padding-bottom: 158px !important;
  }
  .pos-footer-meta {
    display: none;
  }
}
@media (max-width: 991px) {
  .content-header, .content-header-custom {
    padding: 20px 18px 8px;
  }
  .content {
    padding: 12px 18px 28px;
  }
  .dashboard-toolbar {
    display: block;
  }
  .dashboard-toolbar .pull-right {
    float: none !important;
    margin-top: 10px;
  }
}
@media (max-width: 767px) {
  .content-header, .content-header-custom {
    padding: 16px 12px 6px;
  }
  .content-header > h1, .content-header-custom > h1 {
    font-size: 22px;
  }
  body[class*=skin-] .content-wrapper .content-header-custom {
    padding: 16px 12px 6px;
  }
  .content {
    padding: 10px 10px 24px;
  }
  .main-header .navbar {
    min-height: 62px;
    padding-right: 0;
  }
  .main-header .navbar-custom-menu {
    float: none;
    width: 100%;
    max-width: none;
    overflow: hidden;
  }
  .main-header .header-action-scroll {
    padding-right: 96px;
  }
  .main-header .navbar-custom-menu .header-account-menu {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 1050;
    top: 0;
    right: 0;
    height: 62px;
    margin: 0;
    background: inherit;
  }
  .main-header .header-account-menu > li {
    display: flex;
    align-items: center;
    height: 62px;
    float: left;
  }
  .main-header .header-account-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    padding: 0 10px;
  }
  .main-header .header-account-menu .user-menu > a > span:not(.user-image) {
    display: none;
  }
  .main-header .header-account-menu .dropdown-menu {
    position: fixed;
    top: 62px;
    right: 8px !important;
    left: auto !important;
    width: min(325px, 100vw - 16px) !important;
    max-width: calc(100vw - 16px);
    margin: 0 !important;
  }
  .main-header .notifications-menu .dropdown-menu > li .menu {
    max-height: calc(100dvh - 130px);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .main-header .user-menu .dropdown-menu > .user-header {
    width: 100%;
  }
  .main-header .user-menu .dropdown-menu > .user-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .main-header .user-menu .dropdown-menu > .user-footer::before,
.main-header .user-menu .dropdown-menu > .user-footer::after {
    display: none;
  }
  .main-header .user-menu .dropdown-menu > .user-footer > div {
    float: none !important;
  }
  .main-header .header-impersonation-action span {
    display: none;
  }
  .main-header .navbar-custom-menu > .btn, .main-header .navbar-nav > li > a, .sidebar-toggle, .btn:not(.btn-xs) {
    min-width: 44px;
    min-height: 44px;
  }
  .form-control, .select2-container .select2-selection {
    min-height: 44px;
    font-size: 16px;
  }
  .box-body {
    padding: 14px;
  }
  .dashboard-kpis > [class*=col-] {
    display: block;
  }
  .erp-dashboard .info-box-new-style {
    min-height: 104px;
  }
  .erp-dashboard .info-box-content {
    min-height: 102px;
  }
  .table-responsive, .dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table {
    min-width: 640px;
  }
  .product-form-actions {
    overflow: hidden;
  }
  .product-form-actions .btn-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .product-form-actions .btn-group > .btn {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    white-space: normal;
  }
  .superadmin-business-page {
    min-height: calc(100dvh - 105px);
    padding-bottom: 80px;
    overflow: visible;
  }
  .superadmin-business-page .box-body {
    overflow: visible;
  }
  .superadmin-business-page .dataTables_wrapper {
    padding-bottom: 12px;
  }
  .superadmin-business-page .dataTables_length,
.superadmin-business-page .dataTables_filter {
    float: none;
    width: 100%;
    text-align: left;
  }
  .superadmin-business-page .dataTables_filter input {
    width: calc(100% - 70px);
  }
  .superadmin-business-show .table-responsive {
    border: 0;
    margin: 0;
    padding-bottom: 8px;
  }
  .superadmin-business-show .table {
    table-layout: auto;
  }
  .superadmin-dashboard-filters > [class*=col-] {
    width: 100%;
  }
  .superadmin-date-filters {
    display: flex;
    float: none !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .superadmin-date-filters > .btn {
    float: none;
    flex: 1 0 auto;
    min-width: -moz-max-content;
    min-width: max-content;
    margin: 0;
  }
  .superadmin-stat-cards > [class*=col-] {
    width: 100%;
    float: none;
  }
  .superadmin-stat-cards .small-box {
    width: 100%;
    min-height: 150px;
    margin-bottom: 16px;
  }
  .superadmin-stat-cards .small-box .inner {
    min-height: 112px;
    padding: 16px;
  }
  .superadmin-stat-cards .small-box h3 {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .superadmin-stat-cards .small-box-footer {
    padding: 8px 12px;
    text-align: left;
  }
  .dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_buttons {
    display: flex;
    float: none;
    width: 100%;
    max-width: 100%;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dataTables_buttons .btn {
    flex: 0 0 auto;
    width: auto;
  }
  .modal-dialog {
    width: auto;
    margin: 10px;
  }
  .modal-body {
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pos-layout .pos-header {
    position: relative;
    padding: 8px 10px;
  }
  .pos-layout .pos-header > .row {
    display: block;
  }
  .pos-layout .pos-header .col-md-6 {
    width: 100%;
  }
  .pos-layout .pos-header .btn {
    min-width: 44px;
    min-height: 44px;
  }
  .pos-layout .content.pos-workspace {
    width: calc(100% - 16px);
    margin-top: 14px !important;
    padding: 4px 2px 190px !important;
  }
  .pos-workspace .box-body {
    padding: 12px;
  }
  .pos-workspace .pos_product_div {
    min-height: 260px;
    max-height: none;
  }
  .pos-workspace .pos-form-actions {
    padding: 10px;
  }
  .pos-workspace .pos-form-actions > .col-md-12 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pos-workspace .pos-form-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .pos-workspace #recent-transactions {
    float: none !important;
  }
  .calculator-modal .modal-dialog {
    width: auto;
    margin: 20px 12px;
  }
  .daterangepicker {
    position: fixed !important;
    top: 70px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 78px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }
  .daterangepicker::before,
.daterangepicker::after {
    display: none;
  }
  .daterangepicker .drp-mobile-header {
    display: flex;
    position: sticky;
    z-index: 4;
    top: 0;
    justify-content: flex-end;
    padding: 6px;
    border-bottom: 1px solid #d8e0ea;
    background: #fff;
  }
  .daterangepicker .drp-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
  }
  .daterangepicker.show-calendar .ranges {
    width: 100%;
    max-height: min(38dvh, 304px);
    margin-top: 0;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .daterangepicker .ranges ul {
    display: block;
    width: 100%;
    overflow: visible;
    padding: 0;
    white-space: normal;
  }
  .daterangepicker .ranges li {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: 6px;
    white-space: normal;
  }
  .daterangepicker:has(.ranges li:last-child.active) .ranges {
    max-height: none;
    overflow: hidden;
  }
  .daterangepicker:has(.ranges li:last-child.active) .ranges li:not(.active) {
    display: none;
  }
  .daterangepicker .drp-calendar {
    float: none !important;
    width: 100%;
    max-width: none;
    padding: 8px !important;
  }
  .daterangepicker .calendar-table {
    width: 100%;
  }
  .daterangepicker .calendar-table table {
    width: 100%;
    min-width: 0;
  }
  .daterangepicker .drp-buttons {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 8px;
    background: inherit;
  }
}
.theme-dark .daterangepicker .drp-mobile-header {
  background: #111827;
  border-color: #334155;
}

.theme-dark .daterangepicker .drp-mobile-close {
  background: #172033;
  border-color: #475569;
  color: #f8fafc;
}

.sidebar-business-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-dark .product_table .dropdown-menu,
.theme-dark #product_table .dropdown-menu,
.theme-dark .superadmin-business-page .dropdown-menu {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e5edf8 !important;
}

.theme-dark .product_table .dropdown-menu > li > a,
.theme-dark #product_table .dropdown-menu > li > a,
.theme-dark .superadmin-business-page .dropdown-menu > li > a {
  color: #cbd5e1 !important;
}

.theme-dark .product_table .dropdown-menu > li > a:hover,
.theme-dark #product_table .dropdown-menu > li > a:hover,
.theme-dark .superadmin-business-page .dropdown-menu > li > a:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.theme-dark .superadmin-business-page .well,
.theme-dark .superadmin-business-page .dataTables_wrapper,
.theme-dark .superadmin-business-page table,
.theme-dark .superadmin-business-page th,
.theme-dark .superadmin-business-page td {
  background-color: #111827 !important;
  border-color: #334155 !important;
  color: #e5edf8 !important;
}

.theme-dark .superadmin-business-page .text-muted {
  color: #94a3b8 !important;
}

.theme-dark .superadmin-business-page .dataTables_info,
.theme-dark .superadmin-business-page .dataTables_length,
.theme-dark .superadmin-business-page .dataTables_filter,
.theme-dark .superadmin-business-page .dataTables_paginate {
  color: #cbd5e1 !important;
}

.theme-dark .superadmin-business-page .pagination > li > a,
.theme-dark .superadmin-business-page .pagination > li > span {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

.theme-dark nav.navbar-default {
  background: #111827 !important;
  border-color: #334155 !important;
}

.theme-dark nav.navbar-default .navbar-brand,
.theme-dark nav.navbar-default .navbar-nav > li > a {
  color: #e5edf8 !important;
}

.theme-dark nav.navbar-default .navbar-nav > .active > a,
.theme-dark nav.navbar-default .navbar-nav > .active > a:hover,
.theme-dark nav.navbar-default .navbar-nav > li > a:hover {
  background: #1e293b !important;
  color: #fff !important;
}

.theme-dark nav.navbar-default .navbar-toggle {
  border-color: #475569;
}

.theme-dark nav.navbar-default .navbar-toggle .icon-bar {
  background: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Business-selected accent palettes. Blue Light remains the unchanged default. */
body.skin-blue {
  --erp-theme-primary:#2563eb;
  --erp-theme-primary-dark:#1d4ed8;
  --erp-theme-primary-rgb:37,99,235;
  --erp-theme-soft:#eff6ff;
}

body.skin-black, body.skin-black-light {
  --erp-theme-primary:#334155;
  --erp-theme-primary-dark:#1e293b;
  --erp-theme-primary-rgb:51,65,85;
  --erp-theme-soft:#f1f5f9;
}

body.skin-purple, body.skin-purple-light {
  --erp-theme-primary:#7c3aed;
  --erp-theme-primary-dark:#6d28d9;
  --erp-theme-primary-rgb:124,58,237;
  --erp-theme-soft:#f5f3ff;
}

body.skin-green, body.skin-green-light {
  --erp-theme-primary:#059669;
  --erp-theme-primary-dark:#047857;
  --erp-theme-primary-rgb:5,150,105;
  --erp-theme-soft:#ecfdf5;
}

body.skin-red, body.skin-red-light {
  --erp-theme-primary:#dc2626;
  --erp-theme-primary-dark:#b91c1c;
  --erp-theme-primary-rgb:220,38,38;
  --erp-theme-soft:#fef2f2;
}

body.skin-yellow {
  --erp-theme-primary:#d97706;
  --erp-theme-primary-dark:#b45309;
  --erp-theme-primary-rgb:217,119,6;
  --erp-theme-soft:#fffbeb;
}

body:not(.skin-blue-light)[class*=skin-] {
  --erp-primary:var(--erp-theme-primary);
}

body:not(.skin-blue-light)[class*=skin-] a {
  color: var(--erp-theme-primary);
}

body:not(.skin-blue-light)[class*=skin-] a:hover,
body:not(.skin-blue-light)[class*=skin-] a:focus {
  color: var(--erp-theme-primary-dark);
}

body:not(.skin-blue-light)[class*=skin-] :focus-visible {
  outline-color: rgba(var(--erp-theme-primary-rgb), 0.3);
}

body:not(.skin-blue-light)[class*=skin-] .main-header .user-image.user-avatar-fallback,
body:not(.skin-blue-light)[class*=skin-] .btn-primary,
body:not(.skin-blue-light)[class*=skin-] .btn-info,
body:not(.skin-blue-light)[class*=skin-] .pagination > .active > a,
body:not(.skin-blue-light)[class*=skin-] .pagination > .active > span,
body:not(.skin-blue-light)[class*=skin-] .select2-results__option--highlighted[aria-selected],
body:not(.skin-blue-light)[class*=skin-] .daterangepicker td.active,
body:not(.skin-blue-light)[class*=skin-] .daterangepicker td.active:hover,
body:not(.skin-blue-light)[class*=skin-] .daterangepicker .ranges li.active {
  background: var(--erp-theme-primary) !important;
  border-color: var(--erp-theme-primary) !important;
  color: #fff !important;
}

body:not(.skin-blue-light)[class*=skin-] .btn-primary:hover,
body:not(.skin-blue-light)[class*=skin-] .btn-primary:focus,
body:not(.skin-blue-light)[class*=skin-] .btn-info:hover,
body:not(.skin-blue-light)[class*=skin-] .btn-info:focus {
  background: var(--erp-theme-primary-dark) !important;
  border-color: var(--erp-theme-primary-dark) !important;
}

body:not(.skin-blue-light)[class*=skin-] .form-control:focus,
body:not(.skin-blue-light)[class*=skin-] .select2-container--focus .select2-selection,
body:not(.skin-blue-light)[class*=skin-] .select2-container--open .select2-selection {
  border-color: var(--erp-theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--erp-theme-primary-rgb), 0.14);
}

body:not(.skin-blue-light)[class*=skin-] .main-header .navbar .nav > li > a:hover,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar .nav > li > a:focus,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar .nav > .open > a,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar .sidebar-toggle:hover,
body:not(.skin-blue-light)[class*=skin-] .navbar-default .navbar-nav > li > a:hover,
body:not(.skin-blue-light)[class*=skin-] .navbar-default .navbar-nav > li > a:focus {
  background: var(--erp-theme-soft) !important;
  color: var(--erp-theme-primary) !important;
}

body:not(.skin-blue-light)[class*=skin-] .sidebar-menu > li:hover > a,
body:not(.skin-blue-light)[class*=skin-] .sidebar-menu > li.active > a,
body:not(.skin-blue-light)[class*=skin-] .sidebar-menu > li.menu-open > a {
  background: rgba(var(--erp-theme-primary-rgb), 0.22) !important;
}

body:not(.skin-blue-light)[class*=skin-] .sidebar-menu > li.active > a {
  box-shadow: inset 3px 0 0 var(--erp-theme-primary);
}

body:not(.skin-blue-light)[class*=skin-] .nav-tabs-custom > .nav-tabs > li.active,
body:not(.skin-blue-light)[class*=skin-] .box.box-primary {
  border-top-color: var(--erp-theme-primary) !important;
}

body:not(.skin-blue-light)[class*=skin-] .nav-pills > li.active > a,
body:not(.skin-blue-light)[class*=skin-] .nav-pills > li.active > a:hover,
body:not(.skin-blue-light)[class*=skin-] .nav-pills > li.active > a:focus,
body:not(.skin-blue-light)[class*=skin-] .navbar-default .navbar-nav > .active > a,
body:not(.skin-blue-light)[class*=skin-] .navbar-default .navbar-nav > .active > a:hover,
body:not(.skin-blue-light)[class*=skin-] .navbar-default .navbar-nav > .active > a:focus {
  background: var(--erp-theme-primary) !important;
  color: #fff !important;
}

body:not(.skin-blue-light)[class*=skin-] .content-wrapper {
  background-color: #f4f7fb;
  background-image: radial-gradient(circle at 100% 0, rgba(var(--erp-theme-primary-rgb), 0.075), transparent 34rem);
}

body:not(.skin-blue-light)[class*=skin-] .main-header .logo {
  box-shadow: inset 0 -2px 0 var(--erp-theme-primary);
}

body:not(.skin-blue-light)[class*=skin-] .content-header > h1::after,
body:not(.skin-blue-light)[class*=skin-] .content-header-custom > h1::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--erp-theme-primary);
  content: "";
}

body:not(.skin-blue-light)[class*=skin-] .dashboard-toolbar {
  border-left: 3px solid var(--erp-theme-primary);
}

body:not(.skin-blue-light)[class*=skin-] .erp-dashboard .info-box-new-style {
  background-image: linear-gradient(90deg, rgba(var(--erp-theme-primary-rgb), 0.045), transparent 35%);
}

body:not(.skin-blue-light)[class*=skin-] .erp-dashboard .info-box-new-style::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 54px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--erp-theme-primary);
  content: "";
}

body:not(.skin-blue-light)[class*=skin-] .erp-dashboard .info-box-new-style:hover {
  border-color: rgba(var(--erp-theme-primary-rgb), 0.34);
  box-shadow: 0 12px 30px rgba(var(--erp-theme-primary-rgb), 0.12);
}

body:not(.skin-blue-light)[class*=skin-] .box-header,
body:not(.skin-blue-light)[class*=skin-] .panel-heading {
  background-image: linear-gradient(90deg, rgba(var(--erp-theme-primary-rgb), 0.055), transparent 28%);
}

body:not(.skin-blue-light)[class*=skin-] .box-title::before,
body:not(.skin-blue-light)[class*=skin-] .panel-title::before {
  display: inline-block;
  width: 3px;
  height: 16px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--erp-theme-primary);
  vertical-align: -3px;
  content: "";
}

body:not(.skin-blue-light)[class*=skin-] .table > thead > tr > th {
  box-shadow: inset 0 -1px 0 rgba(var(--erp-theme-primary-rgb), 0.24);
}

body:not(.skin-blue-light)[class*=skin-] .table-hover > tbody > tr:hover,
body:not(.skin-blue-light)[class*=skin-] .table > tbody > tr:hover {
  background: rgba(var(--erp-theme-primary-rgb), 0.055);
}

body:not(.skin-blue-light)[class*=skin-] .nav-tabs-custom > .nav-tabs > li.active > a,
body:not(.skin-blue-light)[class*=skin-] .nav-tabs-custom > .nav-tabs > li.active > a:hover,
body:not(.skin-blue-light)[class*=skin-] .nav-tabs-custom > .nav-tabs > li.active > a:focus {
  color: var(--erp-theme-primary) !important;
}

body:not(.skin-blue-light)[class*=skin-] .pos-tab-menu .list-group-item.active,
body:not(.skin-blue-light)[class*=skin-] .pos-tab-menu .list-group-item:hover,
body:not(.skin-blue-light)[class*=skin-] .pos-tab-menu .list-group-item:focus,
body:not(.skin-blue-light)[class*=skin-] .list-group-item.active,
body:not(.skin-blue-light)[class*=skin-] .list-group-item.active:hover,
body:not(.skin-blue-light)[class*=skin-] .list-group-item.active:focus {
  background: var(--erp-theme-primary) !important;
  border-color: var(--erp-theme-primary) !important;
  color: #fff !important;
}

body:not(.skin-blue-light)[class*=skin-] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body:not(.skin-blue-light)[class*=skin-] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--erp-theme-primary) !important;
  border-color: var(--erp-theme-primary) !important;
  color: #fff !important;
}

body:not(.skin-blue-light)[class*=skin-] input[type=checkbox]:checked,
body:not(.skin-blue-light)[class*=skin-] input[type=radio]:checked {
  accent-color: var(--erp-theme-primary);
}

body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-primary,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-info,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-success,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-group > .btn-success {
  background: linear-gradient(135deg, var(--erp-theme-primary), var(--erp-theme-primary-dark)) !important;
  border-color: var(--erp-theme-primary) !important;
  box-shadow: 0 4px 12px rgba(var(--erp-theme-primary-rgb), 0.2);
  color: #fff !important;
}

body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-primary:hover,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-primary:focus,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-info:hover,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-info:focus,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-success:hover,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-success:focus,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-group > .btn-success:hover,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-group > .btn-success:focus {
  background: var(--erp-theme-primary-dark) !important;
  border-color: var(--erp-theme-primary-dark) !important;
  box-shadow: 0 6px 16px rgba(var(--erp-theme-primary-rgb), 0.3);
  transform: translateY(-1px);
}

body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-primary:active,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-info:active,
body:not(.skin-blue-light)[class*=skin-] .main-header .navbar-custom-menu .btn-success:active {
  box-shadow: 0 2px 6px rgba(var(--erp-theme-primary-rgb), 0.2);
  transform: translateY(0);
}

.theme-dark body:not(.skin-blue-light)[class*=skin-] {
  --erp-theme-soft:rgba(var(--erp-theme-primary-rgb),.16);
}

.theme-dark body:not(.skin-blue-light)[class*=skin-] .content-wrapper {
  background-color: #0b1120;
  background-image: radial-gradient(circle at 100% 0, rgba(var(--erp-theme-primary-rgb), 0.11), transparent 34rem);
}

.theme-dark body:not(.skin-blue-light)[class*=skin-] .erp-dashboard .info-box-new-style,
.theme-dark body:not(.skin-blue-light)[class*=skin-] .box-header,
.theme-dark body:not(.skin-blue-light)[class*=skin-] .panel-heading {
  background-image: linear-gradient(90deg, rgba(var(--erp-theme-primary-rgb), 0.1), transparent 38%);
}

/* Superadmin settings: tabs above the form on constrained screens. */
@media (min-width: 1200px) and (max-width: 1888px) {
  .business-settings-page .pos-tab-content > .row > [class*=col-] {
    width: 50%;
    max-width: 50%;
    min-width: 0;
  }
  .business-settings-page .pos-tab-content .form-group,
.business-settings-page .pos-tab-content .input-group,
.business-settings-page .pos-tab-content .form-control,
.business-settings-page .pos-tab-content .select2-container {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }
  .business-settings-page .pos-tab-content input[type=file] {
    max-width: 100%;
  }
}
@media (max-width: 1199px) {
  .superadmin-nav .navbar-header {
    float: none;
  }
  .superadmin-nav .navbar-toggle {
    display: block;
  }
  .superadmin-nav .navbar-collapse {
    border-top: 1px solid #e2e8f0;
    box-shadow: none;
  }
  .superadmin-nav .navbar-collapse.collapse {
    display: none !important;
  }
  .superadmin-nav .navbar-collapse.collapse.in {
    display: block !important;
    overflow-y: auto !important;
  }
  .superadmin-nav .navbar-nav {
    float: none !important;
    margin: 7.5px -15px;
  }
  .superadmin-nav .navbar-nav > li {
    float: none;
  }
  .superadmin-nav .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  body.superadmin-settings-page {
    overflow-x: hidden;
  }
  .superadmin-settings-page .wrapper,
.superadmin-settings-page .content-wrapper,
.superadmin-settings-page .content,
.superadmin-settings-page .content > form,
.superadmin-settings-page .content > form > .row,
.superadmin-settings-page .content > form > .row > .col-xs-12 {
    max-width: 100%;
    min-width: 0;
  }
  .superadmin-settings-page .content-header h1 small {
    display: block;
    margin: 4px 0 0;
  }
  .superadmin-settings-page .pos-tab-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow-x: clip;
    overflow-y: visible;
  }
  .superadmin-settings-page .pos-tab-container::after {
    display: table;
    clear: both;
    content: "";
  }
  .superadmin-settings-page .pos-tab-menu,
.superadmin-settings-page .pos-tab {
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }
  .superadmin-settings-page .pos-tab-menu .list-group {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .superadmin-settings-page .pos-tab-menu .list-group-item {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 44px;
    padding: 11px 14px;
    white-space: nowrap;
  }
  .superadmin-settings-page .pos-tab-content .input-group,
.superadmin-settings-page .pos-tab-content .form-control,
.superadmin-settings-page .pos-tab-content .select2-container {
    width: 100% !important;
  }
  .superadmin-settings-page .pos-tab-content {
    max-width: 100%;
    padding: 16px 15px;
    overflow-wrap: anywhere;
  }
  .superadmin-settings-page .pos-tab-content > .row > .col-xs-4,
.superadmin-settings-page .pos-tab-content > .row > .col-xs-6 {
    width: 50%;
  }
  .superadmin-settings-page .pos-tab-content > .row > .col-xs-8 {
    width: 100%;
  }
  .business-settings-page .pos-tab-content > .row > [class*=col-] {
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .business-settings-page .pos-tab-content > .row {
    margin-right: -15px;
    margin-left: -15px;
  }
}
@media (max-width: 767px) {
  .superadmin-settings-page .content {
    padding-right: 16px;
    padding-left: 16px;
  }
  .superadmin-settings-page .content > form > .row {
    margin-right: 0;
    margin-left: 0;
  }
  .superadmin-settings-page .content > form > .row > .col-xs-12 {
    padding-right: 0;
    padding-left: 0;
  }
  .superadmin-settings-page .pos-tab-content > .row > .col-xs-4,
.superadmin-settings-page .pos-tab-content > .row > .col-xs-6,
.superadmin-settings-page .pos-tab-content > .row > .col-xs-8 {
    float: none;
    width: 100%;
  }
}
