:root {
  --dc-bg: #050b12;
  --dc-bg-2: #071522;
  --dc-panel: #0d1927;
  --dc-panel-2: #101f30;
  --dc-panel-3: #14263a;
  --dc-border: rgba(148, 163, 184, 0.18);
  --dc-border-strong: rgba(125, 211, 252, 0.35);
  --dc-text: #e5eef8;
  --dc-muted: #8fa3bb;
  --dc-soft: #b8c7d9;
  --dc-accent: #38bdf8;
  --dc-accent-2: #22c55e;
  --dc-warn: #f59e0b;
  --dc-danger: #fb7185;
  --dc-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --dc-radius: 16px;
}

body.dark-command-app:not(.dark-command-pos),
body.dark-command-auth {
  background:
    radial-gradient(circle at 16% 10%, rgba(56, 189, 248, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 8%, rgba(34, 197, 94, 0.11), transparent 26rem),
    linear-gradient(135deg, #030711 0%, #06101b 42%, #081724 100%) !important;
  color: var(--dc-text);
  letter-spacing: 0;
}

.dark-command-app:not(.dark-command-pos) main {
  background:
    linear-gradient(180deg, rgba(9, 18, 30, 0.96), rgba(5, 11, 18, 0.98)),
    var(--dc-bg) !important;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container {
  background:
    linear-gradient(rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    var(--dc-bg) !important;
  background-size: 48px 48px;
  color: var(--dc-text);
}

.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6 {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.24), transparent 24rem),
    radial-gradient(circle at 82% 0%, rgba(34, 197, 94, 0.16), transparent 26rem),
    linear-gradient(135deg, #08131f 0%, #0c1e2e 62%, #07111d 100%) !important;
  border-bottom: 1px solid var(--dc-border);
  padding-bottom: 28px !important;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6 > .tw-px-5 {
  padding-top: 26px !important;
}

.dark-command-app:not(.dark-command-pos) h1,
.dark-command-app:not(.dark-command-pos) h2,
.dark-command-app:not(.dark-command-pos) h3,
.dark-command-app:not(.dark-command-pos) h4,
.dark-command-app:not(.dark-command-pos) .box-title {
  color: var(--dc-text) !important;
  letter-spacing: 0;
}

.dark-command-app:not(.dark-command-pos) .tw-text-gray-900,
.dark-command-app:not(.dark-command-pos) .tw-text-black,
.dark-command-app:not(.dark-command-pos) .text-black,
.dark-command-app:not(.dark-command-pos) .text-gray,
.dark-command-app:not(.dark-command-pos) .text-muted {
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-text-gray-500,
.dark-command-app:not(.dark-command-pos) .tw-text-gray-600,
.dark-command-app:not(.dark-command-pos) .tw-text-gray-700,
.dark-command-app:not(.dark-command-pos) small,
.dark-command-app:not(.dark-command-pos) label {
  color: var(--dc-muted) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-bg-gray-100,
.dark-command-app:not(.dark-command-pos) .tw-bg-gray-50,
.dark-command-app:not(.dark-command-pos) .bg-light-gray {
  background-color: transparent !important;
}

.dark-command-app:not(.dark-command-pos) .tw-bg-white,
.dark-command-app:not(.dark-command-pos) .box,
.dark-command-app:not(.dark-command-pos) .box-body,
.dark-command-app:not(.dark-command-pos) .panel,
.dark-command-app:not(.dark-command-pos) .well,
.dark-command-app:not(.dark-command-pos) .modal-content,
.dark-command-app:not(.dark-command-pos) .dropdown-menu,
.dark-command-app:not(.dark-command-pos) .popover {
  background: linear-gradient(180deg, rgba(18, 33, 50, 0.96), rgba(11, 22, 35, 0.98)) !important;
  border-color: var(--dc-border) !important;
  color: var(--dc-text) !important;
  box-shadow: var(--dc-shadow) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-ring-gray-200,
.dark-command-app:not(.dark-command-pos) .box,
.dark-command-app:not(.dark-command-pos) .panel,
.dark-command-app:not(.dark-command-pos) .modal-content {
  --tw-ring-color: var(--dc-border) !important;
  border: 1px solid var(--dc-border) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-rounded-xl,
.dark-command-app:not(.dark-command-pos) .box,
.dark-command-app:not(.dark-command-pos) .panel,
.dark-command-app:not(.dark-command-pos) .modal-content {
  border-radius: var(--dc-radius) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-bg-sky-100,
.dark-command-app:not(.dark-command-pos) .tw-bg-green-100,
.dark-command-app:not(.dark-command-pos) .tw-bg-yellow-100,
.dark-command-app:not(.dark-command-pos) .tw-bg-red-100 {
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.dark-command-app:not(.dark-command-pos) .tw-text-sky-500 {
  color: #67e8f9 !important;
}

.dark-command-app:not(.dark-command-pos) .tw-text-green-500 {
  color: #4ade80 !important;
}

.dark-command-app:not(.dark-command-pos) .tw-text-yellow-500 {
  color: #fbbf24 !important;
}

.dark-command-app:not(.dark-command-pos) .tw-text-red-500 {
  color: #fb7185 !important;
}

.dark-command-app:not(.dark-command-pos) .tw-font-mono {
  color: #f8fafc !important;
  font-variant-numeric: tabular-nums;
}

/* Main shell */
.dark-command-app:not(.dark-command-pos) .side-bar {
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.98), rgba(5, 11, 18, 1)),
    var(--dc-bg) !important;
  border-right: 1px solid var(--dc-border);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22);
}

.dark-command-app:not(.dark-command-pos) .side-bar > a {
  height: 74px !important;
  justify-content: flex-start !important;
  padding: 0 18px !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(34, 197, 94, 0.08)) !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--dc-border) !important;
}

.dark-command-app:not(.dark-command-pos) .side-bar-heading {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar {
  border-right: 0 !important;
  padding: 14px 10px !important;
  scrollbar-color: rgba(125, 211, 252, 0.45) transparent;
}

.dark-command-app:not(.dark-command-pos) #side-bar a,
.dark-command-app:not(.dark-command-pos) #side-bar .drop_down {
  color: var(--dc-soft) !important;
  border: 1px solid transparent;
  border-radius: 12px !important;
  min-height: 42px;
}

.dark-command-app:not(.dark-command-pos) #side-bar a:hover,
.dark-command-app:not(.dark-command-pos) #side-bar .drop_down:hover,
.dark-command-app:not(.dark-command-pos) #side-bar a.tw-bg-gray-200,
.dark-command-app:not(.dark-command-pos) #side-bar .tw-bg-gray-200 {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.22);
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar svg,
.dark-command-app:not(.dark-command-pos) #side-bar i {
  color: #7dd3fc !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .chiled {
  margin-left: 3px;
  padding-left: 34px !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .chiled .tw-bg-gray-200,
.dark-command-app:not(.dark-command-pos) #side-bar .chiled a:hover {
  background: transparent !important;
  color: #67e8f9 !important;
}

.dark-command-app:not(.dark-command-pos) main > .no-print {
  position: relative;
  z-index: 10000;
  overflow: visible !important;
  background: rgba(8, 17, 29, 0.82) !important;
  border-bottom: 1px solid var(--dc-border) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.dark-command-app:not(.dark-command-pos) main > .no-print > div,
.dark-command-app:not(.dark-command-pos) main > .no-print .tw-flex,
.dark-command-app:not(.dark-command-pos) main > .no-print details {
  overflow: visible !important;
}

.dark-command-app:not(.dark-command-pos) main > .no-print details {
  position: relative;
  z-index: 10020;
}

.dark-command-app:not(.dark-command-pos) main > .no-print details[open] {
  z-index: 10080;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container {
  z-index: auto;
}

.dark-command-app:not(.dark-command-pos) main > .no-print button,
.dark-command-app:not(.dark-command-pos) main > .no-print a,
.dark-command-app:not(.dark-command-pos) main > .no-print summary {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(125, 211, 252, 0.2) !important;
  border-radius: 12px !important;
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) main > .no-print button:hover,
.dark-command-app:not(.dark-command-pos) main > .no-print a:hover,
.dark-command-app:not(.dark-command-pos) main > .no-print summary:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-dw-dropdown-content,
.dark-command-app:not(.dark-command-pos) details ul {
  z-index: 10090 !important;
  background: #0b1725 !important;
  border: 1px solid var(--dc-border) !important;
  border-radius: 14px !important;
}

.dark-command-app:not(.dark-command-pos) main > .no-print details > ul,
.dark-command-app:not(.dark-command-pos) main > .no-print .dropdown-menu,
.dark-command-app:not(.dark-command-pos) .navbar-custom-menu .dropdown-menu {
  z-index: 10090 !important;
  min-width: 220px;
  overflow: visible !important;
  background: linear-gradient(180deg, rgba(14, 28, 44, 0.98), rgba(7, 15, 26, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-dw-dropdown-content a,
.dark-command-app:not(.dark-command-pos) details ul a {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--dc-soft) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-dw-dropdown-content a:hover,
.dark-command-app:not(.dark-command-pos) details ul a:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  color: #ffffff !important;
}

/* Dashboard command center */
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding-bottom: 28px !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  background:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 6%, rgba(20, 184, 166, 0.22), transparent 30rem),
    linear-gradient(135deg, #07111d 0%, #0b1b2b 50%, #06121e 100%) !important;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 52%, rgba(56, 189, 248, 0.08) 52% 53%, transparent 53%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  pointer-events: none;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 {
  padding: 28px 24px 0 !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .sm\:tw-flex {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
  align-items: center !important;
  gap: 18px !important;
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(15, 30, 47, 0.88), rgba(7, 15, 26, 0.72));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .sm\:tw-flex::before {
  content: "Live overview";
  position: absolute;
  top: 18px;
  right: 22px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1 {
  max-width: 780px;
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: clamp(30px, 3.2vw, 52px) !important;
  font-weight: 900 !important;
  line-height: 0.98 !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1::after {
  content: "Today's operating snapshot";
  display: block;
  margin-top: 12px;
  color: #91a8c2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .sm\:tw-w-1\/2,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .md\:tw-w-1\/2,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .sm\:tw-w-1\/3,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .md\:tw-w-1\/4 {
  width: auto !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .select2-container {
  width: 100% !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero #dashboard_location + .select2-container .select2-selection,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .select2-container--default .select2-selection--single {
  min-height: 44px;
  border-radius: 999px !important;
  background: rgba(2, 6, 23, 0.68) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero #dashboard_date_filter {
  min-height: 44px;
  padding-inline: 16px !important;
  border-radius: 999px !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative {
  position: static !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative > .tw-absolute {
  display: none !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-px-5 {
  padding: 0 24px !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all {
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.16) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(16, 31, 48, 0.92), rgba(8, 17, 29, 0.96)) !important;
  box-shadow: none !important;
  transform: none !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #38bdf8, #14b8a6);
  opacity: 0.9;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all:nth-child(2n)::before {
  background: linear-gradient(180deg, #22c55e, #38bdf8);
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all:nth-child(3n)::before {
  background: linear-gradient(180deg, #f59e0b, #38bdf8);
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all:nth-child(4n)::before {
  background: linear-gradient(180deg, #fb7185, #38bdf8);
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.45), transparent);
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all > div {
  height: 100%;
  padding: 18px 18px 16px 22px !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-rounded-full {
  width: 46px !important;
  height: 46px !important;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(2, 6, 23, 0.62) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid p:first-of-type {
  color: #91a8c2 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-font-mono,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .total_expense {
  margin-top: 5px !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main {
  padding: 28px 24px 36px !important;
  background:
    linear-gradient(rgba(125, 211, 252, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.018) 1px, transparent 1px),
    #050b12 !important;
  background-size: 52px 52px;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid {
  gap: 20px !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid > .tw-transition-all {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.16) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(16, 31, 48, 0.92), rgba(7, 15, 26, 0.96)) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid > .tw-transition-all::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #22c55e, transparent);
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main h3 {
  color: #f8fafc !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .tw-border-2.tw-rounded-full {
  width: 42px !important;
  height: 42px !important;
  border-color: rgba(125, 211, 252, 0.42) !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .tw-h-100 {
  min-height: 340px;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.16) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 22rem),
    rgba(2, 6, 23, 0.62) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-container,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-container > svg,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-root,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-background,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-plot-background {
  background: transparent !important;
  fill: transparent !important;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6:not(.dc-dashboard-hero) h1 {
  font-size: clamp(26px, 3vw, 42px) !important;
  line-height: 1.08 !important;
}

.dark-command-app:not(.dark-command-pos) #dashboard_date_filter {
  background: rgba(226, 232, 240, 0.08) !important;
  color: var(--dc-text) !important;
  border: 1px solid rgba(125, 211, 252, 0.25) !important;
  border-radius: 999px !important;
}

.dark-command-app:not(.dark-command-pos) #dashboard_date_filter:hover {
  background: rgba(56, 189, 248, 0.16) !important;
}

.dark-command-app:not(.dark-command-pos) .total_sell,
.dark-command-app:not(.dark-command-pos) .net,
.dark-command-app:not(.dark-command-pos) .invoice_due,
.dark-command-app:not(.dark-command-pos) .total_sell_return,
.dark-command-app:not(.dark-command-pos) .total_purchase,
.dark-command-app:not(.dark-command-pos) .purchase_due,
.dark-command-app:not(.dark-command-pos) .total_purchase_return,
.dark-command-app:not(.dark-command-pos) .expense,
.dark-command-app:not(.dark-command-pos) .total_sell_return_paid,
.dark-command-app:not(.dark-command-pos) .total_purchase_return_paid {
  font-size: 22px !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6 .tw-grid > .tw-transition-all {
  position: relative;
  overflow: hidden;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6 .tw-grid > .tw-transition-all::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.65), transparent);
}

.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6 .tw-border-gray-200,
.dark-command-app:not(.dark-command-pos) .tw-border-gray-200 {
  border-color: rgba(125, 211, 252, 0.2) !important;
}

.dark-command-app:not(.dark-command-pos) .tw-border-dashed {
  border-style: solid !important;
}

.dark-command-app:not(.dark-command-pos) .tw-h-100,
.dark-command-app:not(.dark-command-pos) [id*="chart"],
.dark-command-app:not(.dark-command-pos) [id*="Chart"] {
  overflow: hidden;
  border-radius: 14px;
}

.dark-command-app:not(.dark-command-pos) .highcharts-container,
.dark-command-app:not(.dark-command-pos) .highcharts-root {
  width: 100% !important;
  border-radius: 14px;
  background: #07111d !important;
  color: var(--dc-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-container > svg {
  background: #07111d !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-background,
.dark-command-app:not(.dark-command-pos) .highcharts-plot-background,
.dark-command-app:not(.dark-command-pos) .highcharts-root rect.highcharts-background {
  fill: #07111d !important;
  stroke: rgba(125, 211, 252, 0.16) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-plot-border {
  stroke: rgba(125, 211, 252, 0.16) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-grid-line {
  stroke: rgba(148, 163, 184, 0.16) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-axis-line,
.dark-command-app:not(.dark-command-pos) .highcharts-tick {
  stroke: rgba(148, 163, 184, 0.28) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-title,
.dark-command-app:not(.dark-command-pos) .highcharts-subtitle,
.dark-command-app:not(.dark-command-pos) .highcharts-axis-title,
.dark-command-app:not(.dark-command-pos) .highcharts-axis-labels text,
.dark-command-app:not(.dark-command-pos) .highcharts-legend-item text,
.dark-command-app:not(.dark-command-pos) .highcharts-data-label text,
.dark-command-app:not(.dark-command-pos) .highcharts-label text {
  fill: #c8d7ea !important;
  color: #c8d7ea !important;
  text-shadow: none !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-legend-item-hidden text {
  fill: #64748b !important;
  color: #64748b !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-tooltip-box {
  fill: rgba(7, 15, 26, 0.98) !important;
  stroke: rgba(125, 211, 252, 0.32) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-tooltip text {
  fill: #f8fafc !important;
  color: #f8fafc !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-button-box {
  fill: rgba(15, 23, 42, 0.82) !important;
  stroke: rgba(125, 211, 252, 0.22) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-button-symbol {
  stroke: #c8d7ea !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-contextmenu,
.dark-command-app:not(.dark-command-pos) .highcharts-menu {
  z-index: 10070 !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-menu {
  background: #0b1725 !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  border-radius: 12px !important;
  box-shadow: var(--dc-shadow) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-menu-item {
  color: #d8e7f8 !important;
  background: transparent !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-menu-item:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #ffffff !important;
}

/* Shared daily screens */
.dark-command-app:not(.dark-command-pos) .content,
.dark-command-app:not(.dark-command-pos) section.content {
  background: transparent !important;
  color: var(--dc-text);
}

.dark-command-app:not(.dark-command-pos) .box-header,
.dark-command-app:not(.dark-command-pos) .modal-header,
.dark-command-app:not(.dark-command-pos) .panel-heading {
  border-color: var(--dc-border) !important;
}

.dark-command-app:not(.dark-command-pos) .table,
.dark-command-app:not(.dark-command-pos) table.dataTable {
  color: var(--dc-soft) !important;
  background: transparent !important;
}

.dark-command-app:not(.dark-command-pos) .table > thead > tr > th,
.dark-command-app:not(.dark-command-pos) table.dataTable thead th,
.dark-command-app:not(.dark-command-pos) table.dataTable tfoot th {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: var(--dc-border) !important;
  color: #dbeafe !important;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dark-command-app:not(.dark-command-pos) .table > tbody > tr > td,
.dark-command-app:not(.dark-command-pos) table.dataTable tbody td {
  border-color: rgba(148, 163, 184, 0.12) !important;
  color: var(--dc-soft) !important;
}

.dark-command-app:not(.dark-command-pos) .table-striped > tbody > tr:nth-of-type(odd),
.dark-command-app:not(.dark-command-pos) table.dataTable.stripe tbody tr.odd,
.dark-command-app:not(.dark-command-pos) table.dataTable.display tbody tr.odd {
  background: rgba(148, 163, 184, 0.04) !important;
}

.dark-command-app:not(.dark-command-pos) .table-hover > tbody > tr:hover,
.dark-command-app:not(.dark-command-pos) table.dataTable.hover tbody tr:hover,
.dark-command-app:not(.dark-command-pos) table.dataTable.display tbody tr:hover {
  background: rgba(56, 189, 248, 0.08) !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dataTables_filter input,
.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dataTables_length select,
.dark-command-app:not(.dark-command-pos) .form-control,
.dark-command-app:not(.dark-command-pos) input,
.dark-command-app:not(.dark-command-pos) select,
.dark-command-app:not(.dark-command-pos) textarea,
.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single,
.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple {
  background: rgba(2, 6, 23, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 12px !important;
  color: var(--dc-text) !important;
  box-shadow: none !important;
}

.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single .select2-selection__rendered,
.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .select2-dropdown {
  z-index: 10075 !important;
  background: #0b1725 !important;
  border-color: var(--dc-border) !important;
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .select2-container--open {
  z-index: 10074 !important;
}

.dark-command-app:not(.dark-command-pos) .select2-container--open .select2-dropdown {
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38) !important;
}

.dark-command-app:not(.dark-command-pos) .select2-results__option--highlighted {
  background: rgba(56, 189, 248, 0.2) !important;
}

.dark-command-app:not(.dark-command-pos) .btn,
.dark-command-app:not(.dark-command-pos) .tw-dw-btn {
  border-radius: 12px !important;
  border: 1px solid rgba(125, 211, 252, 0.2) !important;
  box-shadow: none !important;
}

.dark-command-app:not(.dark-command-pos) .btn-primary,
.dark-command-app:not(.dark-command-pos) .btn-success,
.dark-command-app:not(.dark-command-pos) .btn-info {
  background: linear-gradient(135deg, #0284c7, #0891b2) !important;
  border-color: rgba(125, 211, 252, 0.45) !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .btn-default {
  background: rgba(15, 23, 42, 0.78) !important;
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs {
  border-color: var(--dc-border) !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs > li > a {
  color: var(--dc-muted) !important;
  border-radius: 12px 12px 0 0 !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a,
.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a:hover,
.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a:focus {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: var(--dc-border) !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .alert {
  border-radius: 14px !important;
  border-color: var(--dc-border) !important;
}

/* Dense workspace pages: reports, product lists, CRUD tables */
.dark-command-app:not(.dark-command-pos) .content-header {
  padding: 22px 16px 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.dark-command-app:not(.dark-command-pos) .content-header h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: #f8fafc !important;
}

.dark-command-app:not(.dark-command-pos) .content-header h1 small {
  color: #8fb7d4 !important;
  font-weight: 600 !important;
}

.dark-command-app:not(.dark-command-pos) .content {
  padding: 14px 16px 28px !important;
}

.dark-command-app:not(.dark-command-pos) .content > .row,
.dark-command-app:not(.dark-command-pos) .content .row {
  margin-left: -8px;
  margin-right: -8px;
}

.dark-command-app:not(.dark-command-pos) .content [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom,
.dark-command-app:not(.dark-command-pos) .tab-content,
.dark-command-app:not(.dark-command-pos) .tab-pane,
.dark-command-app:not(.dark-command-pos) .box-solid,
.dark-command-app:not(.dark-command-pos) .box-primary,
.dark-command-app:not(.dark-command-pos) .box-info,
.dark-command-app:not(.dark-command-pos) .box-warning,
.dark-command-app:not(.dark-command-pos) .box-success,
.dark-command-app:not(.dark-command-pos) .box-danger {
  background: linear-gradient(180deg, rgba(13, 25, 39, 0.98), rgba(7, 15, 26, 0.98)) !important;
  border-color: var(--dc-border) !important;
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom {
  overflow: hidden;
  border: 1px solid var(--dc-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--dc-shadow);
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 10px 0;
  border: 0 !important;
  background: rgba(4, 12, 22, 0.74) !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs.nav-justified {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 8px;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li {
  float: none !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li > a,
.dark-command-app:not(.dark-command-pos) .nav-tabs > li > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  height: 100%;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 12px 12px 0 0 !important;
  background: transparent !important;
  color: #91a8c2 !important;
  font-weight: 800;
  line-height: 1.25 !important;
  text-align: center;
  white-space: normal !important;
  word-break: normal;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs.nav-justified > li > a {
  border-radius: 12px !important;
}

.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a,
.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a:hover,
.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a:focus {
  border-color: rgba(125, 211, 252, 0.28) !important;
  border-bottom-color: transparent !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(13, 25, 39, 0.98)) !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .tab-content {
  min-height: 180px;
  padding: 18px 12px 14px !important;
  border-top: 1px solid var(--dc-border) !important;
  overflow: visible !important;
}

.dark-command-app:not(.dark-command-pos) .tab-pane {
  border: 0 !important;
  min-width: 0;
}

.dark-command-app:not(.dark-command-pos) #ledger_tab .row,
.dark-command-app:not(.dark-command-pos) #ledger_tab .col-md-12 {
  min-width: 0;
}

.dark-command-app:not(.dark-command-pos) #ledger_tab .btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  vertical-align: middle;
}

.dark-command-app:not(.dark-command-pos) #ledger_tab .btn-group > .btn {
  float: none !important;
  border-radius: 999px !important;
}

.dark-command-app:not(.dark-command-pos) #contact_ledger_div {
  clear: both;
  overflow-x: auto;
  padding-top: 12px;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(2, 6, 23, 0.7);
}

.dark-command-app:not(.dark-command-pos) .box-header.with-border,
.dark-command-app:not(.dark-command-pos) .box-header {
  background: rgba(15, 30, 47, 0.68) !important;
  border-bottom: 1px solid var(--dc-border) !important;
  border-radius: 16px 16px 0 0;
}

.dark-command-app:not(.dark-command-pos) .box-header a {
  color: #67e8f9 !important;
  text-decoration: none !important;
}

.dark-command-app:not(.dark-command-pos) .box-body {
  background: rgba(7, 15, 26, 0.52) !important;
}

.dark-command-app:not(.dark-command-pos) #collapseFilter,
.dark-command-app:not(.dark-command-pos) .panel-collapse {
  background: transparent !important;
}

.dark-command-app:not(.dark-command-pos) #collapseFilter .box-body {
  padding: 14px 16px 2px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

.dark-command-app:not(.dark-command-pos) .form-group {
  margin-bottom: 16px;
}

.dark-command-app:not(.dark-command-pos) .input-group-addon {
  border-color: rgba(148, 163, 184, 0.22) !important;
  border-radius: 12px 0 0 12px !important;
  background: rgba(56, 189, 248, 0.14) !important;
  color: #67e8f9 !important;
}

.dark-command-app:not(.dark-command-pos) .input-group .form-control:last-child,
.dark-command-app:not(.dark-command-pos) .input-group select.form-control:last-child,
.dark-command-app:not(.dark-command-pos) .input-group input.form-control:last-child {
  border-radius: 0 12px 12px 0 !important;
}

.dark-command-app:not(.dark-command-pos) .content > .row.no-print:first-of-type,
.dark-command-app:not(.dark-command-pos) .content .row.no-print {
  margin-bottom: 14px;
}

.dark-command-app:not(.dark-command-pos) .form-group label,
.dark-command-app:not(.dark-command-pos) .control-label {
  margin-bottom: 7px;
  color: #a9bdd4 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dark-command-app:not(.dark-command-pos) .checkbox label,
.dark-command-app:not(.dark-command-pos) label.checkbox-inline,
.dark-command-app:not(.dark-command-pos) label.radio-inline,
.dark-command-app:not(.dark-command-pos) .form-group label:has(input[type="checkbox"]),
.dark-command-app:not(.dark-command-pos) .form-group label:has(input[type="radio"]) {
  letter-spacing: 0;
  text-transform: none;
}

.dark-command-app:not(.dark-command-pos) input[type="checkbox"],
.dark-command-app:not(.dark-command-pos) input[type="radio"] {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
  accent-color: #38bdf8;
}

.dark-command-app:not(.dark-command-pos) .dataTables_wrapper {
  clear: both;
  padding: 10px 2px 0;
  color: var(--dc-soft) !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_wrapper::before {
  content: "";
  display: table;
}

.dark-command-app:not(.dark-command-pos) .dataTables_wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.dark-command-app:not(.dark-command-pos) .dataTables_length,
.dark-command-app:not(.dark-command-pos) .dataTables_filter,
.dark-command-app:not(.dark-command-pos) .dt-buttons {
  margin: 4px 0 14px;
  color: #9fb3ca !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_filter label,
.dark-command-app:not(.dark-command-pos) .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9fb3ca !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.dark-command-app:not(.dark-command-pos) .dataTables_filter input {
  width: 210px !important;
  min-height: 36px;
  padding: 8px 13px !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_length select {
  min-width: 72px;
  min-height: 36px;
  padding: 6px 28px 6px 10px !important;
}

.dark-command-app:not(.dark-command-pos) .dt-buttons.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: auto;
}

.dark-command-app:not(.dark-command-pos) .dt-buttons .btn,
.dark-command-app:not(.dark-command-pos) .buttons-html5,
.dark-command-app:not(.dark-command-pos) .buttons-print,
.dark-command-app:not(.dark-command-pos) .buttons-colvis {
  min-height: 34px;
  padding: 7px 11px !important;
  border: 1px solid rgba(125, 211, 252, 0.25) !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  color: #d8e7f8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.dark-command-app:not(.dark-command-pos) .dt-buttons .btn:hover,
.dark-command-app:not(.dark-command-pos) .buttons-html5:hover,
.dark-command-app:not(.dark-command-pos) .buttons-print:hover,
.dark-command-app:not(.dark-command-pos) .buttons-colvis:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_scroll {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.7);
}

.dark-command-app:not(.dark-command-pos) .table-responsive,
.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .row,
.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .col-sm-12 {
  background: transparent !important;
}

.dark-command-app:not(.dark-command-pos) .table-responsive {
  overflow: auto;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.58) !important;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(2, 6, 23, 0.7);
}

.dark-command-app:not(.dark-command-pos) .dataTables_scrollHead,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFoot {
  background: #0d1828 !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_scrollHeadInner,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFootInner,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollHeadInner table,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFootInner table {
  background: #0d1828 !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_scrollBody {
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.96), rgba(5, 11, 18, 0.98)) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.08) !important;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(2, 6, 23, 0.7);
}

.dark-command-app:not(.dark-command-pos) .dataTables_scrollBody table {
  background: transparent !important;
}

/* Keep scroll header / body / footer column widths consistent (all DataTables) */
.dark-command-app:not(.dark-command-pos) .dataTables_scrollHead table,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollBody table,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFoot table,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollHeadInner table,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFootInner table {
  border-collapse: collapse !important;
  table-layout: auto !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_scrollHead th,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollHead td,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollBody th,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollBody td,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFoot th,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFoot td {
  box-sizing: border-box !important;
}

/* collapse (not separate): DataTables scrollX/syncs header & body; separate + borders caused column drift */
.dark-command-app:not(.dark-command-pos) .table,
.dark-command-app:not(.dark-command-pos) table.dataTable,
.dark-command-app:not(.dark-command-pos) table.table-bordered {
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 0 !important;
  table-layout: auto !important;
}

.dark-command-app:not(.dark-command-pos) .table > thead > tr > th,
.dark-command-app:not(.dark-command-pos) table.dataTable thead > tr > th,
.dark-command-app:not(.dark-command-pos) table.table-bordered thead > tr > th,
.dark-command-app:not(.dark-command-pos) .table > thead > tr > td,
.dark-command-app:not(.dark-command-pos) table.dataTable thead > tr > td {
  box-sizing: border-box !important;
  position: relative;
  min-height: 48px;
  padding: 13px 12px !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22) !important;
  background: linear-gradient(180deg, #111d30, #0b1524) !important;
  color: #f8fafc !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.dark-command-app:not(.dark-command-pos) .table > tbody > tr,
.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr,
.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr {
  background: rgba(10, 20, 33, 0.92) !important;
}

.dark-command-app:not(.dark-command-pos) .table > tbody > tr:nth-child(even),
.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr:nth-child(even),
.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr:nth-child(even) {
  background: rgba(14, 27, 43, 0.94) !important;
}

.dark-command-app:not(.dark-command-pos) .table > tbody > tr > td,
.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr > td,
.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr > td,
.dark-command-app:not(.dark-command-pos) .table > tbody > tr > th,
.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr > th {
  box-sizing: border-box !important;
  padding: 12px 12px !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.08) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
  background: transparent !important;
  color: #c8d7ea !important;
  vertical-align: middle !important;
}

.dark-command-app:not(.dark-command-pos) .table > tbody > tr:hover,
.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr:hover,
.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr:hover {
  background: rgba(14, 116, 144, 0.18) !important;
}

.dark-command-app:not(.dark-command-pos) .table > tbody > tr:hover > td,
.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr:hover > td,
.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr:hover > td {
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting,
.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting_asc,
.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting_desc {
  background-color: #0d1828 !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting::after,
.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting_asc::after,
.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting_desc::after {
  color: #67e8f9 !important;
  opacity: 0.75;
}

.dark-command-app:not(.dark-command-pos) .table tfoot tr,
.dark-command-app:not(.dark-command-pos) table.dataTable tfoot tr,
.dark-command-app:not(.dark-command-pos) .footer-total,
.dark-command-app:not(.dark-command-pos) .bg-gray {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #f8fafc !important;
}

.dark-command-app:not(.dark-command-pos) .table tfoot td,
.dark-command-app:not(.dark-command-pos) table.dataTable tfoot td,
.dark-command-app:not(.dark-command-pos) table.dataTable tfoot th,
.dark-command-app:not(.dark-command-pos) .table tfoot th {
  border-color: rgba(125, 211, 252, 0.18) !important;
  color: #f8fafc !important;
}

.dark-command-app:not(.dark-command-pos) .table-condensed > thead > tr > th,
.dark-command-app:not(.dark-command-pos) .table-condensed > tbody > tr > td,
.dark-command-app:not(.dark-command-pos) .table-condensed > tbody > tr > th,
.dark-command-app:not(.dark-command-pos) .table-condensed > tfoot > tr > td,
.dark-command-app:not(.dark-command-pos) .table-condensed > tfoot > tr > th {
  padding: 9px 10px !important;
}

.dark-command-app:not(.dark-command-pos) .table-bordered,
.dark-command-app:not(.dark-command-pos) .table-bordered > thead > tr > th,
.dark-command-app:not(.dark-command-pos) .table-bordered > tbody > tr > td,
.dark-command-app:not(.dark-command-pos) .table-bordered > tbody > tr > th,
.dark-command-app:not(.dark-command-pos) .table-bordered > tfoot > tr > td,
.dark-command-app:not(.dark-command-pos) .table-bordered > tfoot > tr > th {
  border-color: rgba(148, 163, 184, 0.1) !important;
}

.dark-command-app:not(.dark-command-pos) .table-hover > tbody > tr:hover > td,
.dark-command-app:not(.dark-command-pos) .table-hover > tbody > tr:hover > th {
  background: transparent !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_processing {
  top: 92px !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(7, 15, 26, 0.94) !important;
  color: #f8fafc !important;
  box-shadow: var(--dc-shadow);
}

.dark-command-app:not(.dark-command-pos) .DTFC_LeftWrapper,
.dark-command-app:not(.dark-command-pos) .DTFC_RightWrapper,
.dark-command-app:not(.dark-command-pos) .DTFC_LeftHeadWrapper,
.dark-command-app:not(.dark-command-pos) .DTFC_RightHeadWrapper,
.dark-command-app:not(.dark-command-pos) .DTFC_LeftBodyWrapper,
.dark-command-app:not(.dark-command-pos) .DTFC_RightBodyWrapper {
  background: #07111d !important;
}

.dark-command-app:not(.dark-command-pos) .DTFC_LeftWrapper table,
.dark-command-app:not(.dark-command-pos) .DTFC_RightWrapper table {
  background: #07111d !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_info,
.dark-command-app:not(.dark-command-pos) .dataTables_paginate {
  margin-top: 14px;
  color: #9fb3ca !important;
}

.dark-command-app:not(.dark-command-pos) .dataTables_empty {
  padding: 42px 12px !important;
  color: #91a8c2 !important;
}

.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a,
.dark-command-app:not(.dark-command-pos) .table .dropdown-menu > li > a {
  color: #d8e7f8 !important;
}

.dark-command-app:not(.dark-command-pos) .table .btn.dropdown-toggle,
.dark-command-app:not(.dark-command-pos) .table .btn-xs,
.dark-command-app:not(.dark-command-pos) .btn-xs {
  min-height: 28px;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  color: #67e8f9 !important;
}

.dark-command-app:not(.dark-command-pos) .product-thumbnail,
.dark-command-app:not(.dark-command-pos) .product_list_product_img,
.dark-command-app:not(.dark-command-pos) table img {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.dark-command-app:not(.dark-command-pos) .info-box,
.dark-command-app:not(.dark-command-pos) .small-box,
.dark-command-app:not(.dark-command-pos) .callout {
  border: 1px solid var(--dc-border) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(18, 33, 50, 0.96), rgba(8, 17, 29, 0.98)) !important;
  color: var(--dc-text) !important;
  box-shadow: var(--dc-shadow);
}

.dark-command-app:not(.dark-command-pos) .info-box-icon,
.dark-command-app:not(.dark-command-pos) .small-box .icon {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #67e8f9 !important;
}

.dark-command-app:not(.dark-command-pos) .info-box-text,
.dark-command-app:not(.dark-command-pos) .info-box-number,
.dark-command-app:not(.dark-command-pos) .small-box h3,
.dark-command-app:not(.dark-command-pos) .small-box p {
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .components-widget,
.dark-command-app:not(.dark-command-pos) .report-summary,
.dark-command-app:not(.dark-command-pos) #pl_data_div > .row > div > div,
.dark-command-app:not(.dark-command-pos) #pl_data_div .box,
.dark-command-app:not(.dark-command-pos) #pl_data_div .table,
.dark-command-app:not(.dark-command-pos) .tw-flow-root {
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .total_purchase,
.dark-command-app:not(.dark-command-pos) .purchase_inc_tax,
.dark-command-app:not(.dark-command-pos) .purchase_return_inc_tax,
.dark-command-app:not(.dark-command-pos) .sell_inc_tax,
.dark-command-app:not(.dark-command-pos) .sell_due,
.dark-command-app:not(.dark-command-pos) .sell_minus_purchase,
.dark-command-app:not(.dark-command-pos) .difference_due,
.dark-command-app:not(.dark-command-pos) .footer_total,
.dark-command-app:not(.dark-command-pos) [class*="footer_total"],
.dark-command-app:not(.dark-command-pos) [class*="footer_"] {
  color: #ffffff !important;
  font-weight: 800;
}

.dark-command-app:not(.dark-command-pos) .label,
.dark-command-app:not(.dark-command-pos) .badge {
  border-radius: 999px !important;
  padding: 5px 9px;
  font-weight: 800;
}

.dark-command-app:not(.dark-command-pos) .label-success,
.dark-command-app:not(.dark-command-pos) .badge-success,
.dark-command-app:not(.dark-command-pos) .bg-green {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #86efac !important;
}

.dark-command-app:not(.dark-command-pos) .label-warning,
.dark-command-app:not(.dark-command-pos) .badge-warning,
.dark-command-app:not(.dark-command-pos) .bg-yellow {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fcd34d !important;
}

.dark-command-app:not(.dark-command-pos) .label-danger,
.dark-command-app:not(.dark-command-pos) .badge-danger,
.dark-command-app:not(.dark-command-pos) .bg-red {
  background: rgba(251, 113, 133, 0.18) !important;
  color: #fda4af !important;
}

.dark-command-app:not(.dark-command-pos) .label-info,
.dark-command-app:not(.dark-command-pos) .badge-info,
.dark-command-app:not(.dark-command-pos) .bg-aqua,
.dark-command-app:not(.dark-command-pos) .bg-light-blue {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #7dd3fc !important;
}

.dark-command-app:not(.dark-command-pos) .chart,
.dark-command-app:not(.dark-command-pos) .chart-responsive,
.dark-command-app:not(.dark-command-pos) canvas,
.dark-command-app:not(.dark-command-pos) .highcharts-container {
  border-radius: 16px;
}

.dark-command-app:not(.dark-command-pos) .daterangepicker {
  z-index: 10085 !important;
  background: #0b1725 !important;
  border: 1px solid var(--dc-border) !important;
  color: var(--dc-text) !important;
  box-shadow: var(--dc-shadow);
}

.dark-command-app:not(.dark-command-pos) .popover,
.dark-command-app:not(.dark-command-pos) .tooltip,
.dark-command-app:not(.dark-command-pos) .ui-autocomplete {
  z-index: 10095 !important;
}

.dark-command-app:not(.dark-command-pos) .daterangepicker .calendar-table,
.dark-command-app:not(.dark-command-pos) .daterangepicker td.off,
.dark-command-app:not(.dark-command-pos) .daterangepicker td.available:hover,
.dark-command-app:not(.dark-command-pos) .daterangepicker th.available:hover {
  background: rgba(15, 23, 42, 0.9) !important;
  color: var(--dc-text) !important;
}

.dark-command-app:not(.dark-command-pos) .daterangepicker td.active,
.dark-command-app:not(.dark-command-pos) .daterangepicker td.active:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .pagination > li > a,
.dark-command-app:not(.dark-command-pos) .pagination > li > span {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: var(--dc-border) !important;
  color: var(--dc-soft) !important;
}

.dark-command-app:not(.dark-command-pos) .pagination > .active > a,
.dark-command-app:not(.dark-command-pos) .pagination > .active > span {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .tw-mt-auto p {
  color: var(--dc-muted) !important;
}

.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar,
.dark-command-auth ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-track,
.dark-command-auth ::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.75);
}

.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-thumb,
.dark-command-auth ::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.38);
  border-radius: 999px;
}

/* Auth and landing */
.dark-command-auth {
  min-height: 100vh;
}

.dark-command-auth .container-fluid,
.dark-command-auth .eq-height-row,
.dark-command-auth .right-col {
  min-height: 100vh;
}

.dark-command-auth .right-col {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(125, 211, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.2), transparent 26rem),
    linear-gradient(135deg, #030711 0%, #071521 100%) !important;
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.dark-command-auth .right-col > .row:first-child {
  position: relative;
  z-index: 4;
}

.dark-command-auth .right-col > .row:first-child > .tw-absolute {
  z-index: 8;
}

.dark-command-auth .right-col > .row:first-child a,
.dark-command-auth .right-col > .row:first-child .change_lang {
  color: rgba(226, 232, 240, 0.88) !important;
}

.dark-command-auth .right-col > .row:first-child .tw-rounded-full {
  background: rgba(15, 23, 42, 0.74) !important;
  border-color: rgba(125, 211, 252, 0.22) !important;
}

.dc-landing-shell,
.dc-login-shell {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: calc(100vh - 110px);
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 72px 0 34px;
  color: var(--dc-text);
}

.dc-landing-shell {
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 48px;
}

.dc-login-shell {
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 460px);
  align-items: center;
  gap: 36px;
}

.dc-landing-grid {
  position: absolute;
  inset: 60px auto auto 50%;
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 12px;
  transform: translateX(-20%);
  opacity: 0.18;
  pointer-events: none;
}

.dc-landing-grid span {
  height: 58px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.05);
}

.dc-landing-content,
.dc-login-brand,
.dc-login-card,
.dc-demo-panel,
.dc-landing-panel {
  position: relative;
  z-index: 2;
}

.dc-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 6px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(2, 132, 199, 0.15);
}

.dc-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dc-overline {
  margin: 22px 0 12px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dc-landing-content h1,
.dc-login-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.dc-landing-subtitle,
.dc-login-copy {
  max-width: 620px;
  margin-top: 22px;
  color: var(--dc-soft);
  font-size: 18px;
  line-height: 1.7;
}

.dc-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.dc-primary-link,
.dc-secondary-link,
.dc-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
}

.dc-primary-link,
.dc-submit-btn {
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: linear-gradient(135deg, #0284c7, #14b8a6);
  color: #ffffff !important;
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.25);
}

.dc-secondary-link {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.72);
  color: var(--dc-text) !important;
}

.dc-landing-panel,
.dc-login-card,
.dc-demo-panel {
  border: 1px solid var(--dc-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 33, 50, 0.9), rgba(6, 14, 24, 0.94));
  box-shadow: var(--dc-shadow);
  backdrop-filter: blur(18px);
}

.dc-landing-panel {
  padding: 22px;
}

.dc-panel-header {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.dc-panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
}

.dc-panel-header span:nth-child(2) {
  background: #22c55e;
}

.dc-panel-header span:nth-child(3) {
  background: #f59e0b;
}

.dc-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--dc-border);
  color: var(--dc-muted);
}

.dc-metric-row strong {
  color: #ffffff;
  font-size: 24px;
}

.dc-metric-row.is-strong strong {
  color: #67e8f9;
}

.dc-signal-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding: 22px 0;
}

.dc-signal-chart i {
  flex: 1;
  min-width: 22px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #67e8f9, #0f766e);
}

.dc-status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dc-status-strip span {
  padding: 10px;
  border: 1px solid var(--dc-border);
  border-radius: 12px;
  color: var(--dc-soft);
  font-size: 12px;
  text-align: center;
}

.dc-login-card {
  padding: 30px;
}

.dc-card-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
}

.dc-card-heading span {
  display: block;
  margin-top: 8px;
  color: var(--dc-muted);
}

.dc-login-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.dc-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--dc-soft);
}

.dc-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dc-soft);
}

.dc-field a,
.dc-register-link span {
  color: #67e8f9 !important;
}

.dc-field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  outline: none;
}

.dc-field input:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.dc-password-field {
  position: relative;
}

.dc-password-field input {
  padding-right: 52px;
}

.dc-password-field button {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
}

.dc-check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dc-soft);
  font-size: 13px;
}

.dc-check-row input {
  width: 18px;
  height: 18px;
  accent-color: #0891b2;
}

.dc-submit-btn {
  width: 100%;
  border-radius: 14px;
  border: 0;
}

.dc-register-link {
  display: block;
  margin-top: 18px;
  color: var(--dc-muted) !important;
  text-align: center;
}

.dc-login-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 30px;
}

.dc-login-telemetry div {
  padding: 16px;
  border: 1px solid var(--dc-border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.dc-login-telemetry span,
.dc-demo-panel p {
  display: block;
  color: var(--dc-muted);
  font-size: 12px;
}

.dc-login-telemetry strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
}

.dc-demo-panel {
  grid-column: 1 / -1;
  padding: 22px;
}

.dc-demo-panel h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.dc-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.dc-demo-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--dc-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--dc-text) !important;
  text-decoration: none !important;
}

.dc-recaptcha {
  overflow: hidden;
}

.dark-command-auth .help-block,
.dark-command-auth .text-danger,
.dark-command-app:not(.dark-command-pos) .help-block,
.dark-command-app:not(.dark-command-pos) .text-danger {
  color: #fda4af !important;
}

@media (max-width: 991px) {
  .dc-landing-shell,
  .dc-login-shell {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }

  .dc-landing-panel {
    max-width: 520px;
  }

  .dc-login-brand {
    max-width: 620px;
  }

  .dark-command-app:not(.dark-command-pos) .small-view-side-active {
    background: #07111d !important;
    width: min(86vw, 320px) !important;
    height: 100vh !important;
  }
}

@media (max-width: 640px) {
  .dc-landing-shell,
  .dc-login-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 132px;
  }

  .dc-landing-content h1,
  .dc-login-brand h1 {
    font-size: 42px;
  }

  .dc-login-card {
    padding: 22px;
    border-radius: 18px;
  }

  .dc-login-telemetry,
  .dc-status-strip {
    grid-template-columns: 1fr;
  }

  .dark-command-auth .right-col > .row:first-child > .tw-absolute {
    gap: 8px !important;
  }
}

/* Comfort contrast pass: softer dark surfaces, clearer sidebar, and readable daily tables */
:root {
  --dc-comfort-bg: #0b1420;
  --dc-comfort-bg-2: #0f1d2c;
  --dc-comfort-panel: #142337;
  --dc-comfort-panel-2: #192b41;
  --dc-comfort-panel-3: #203850;
  --dc-comfort-line: rgba(125, 211, 252, 0.24);
  --dc-comfort-line-strong: rgba(125, 211, 252, 0.38);
  --dc-comfort-text: #edf6ff;
  --dc-comfort-soft: #d3e1ef;
  --dc-comfort-muted: #a9bfd5;
  --dc-accent-cyan: #38bdf8;
  --dc-accent-green: #22c55e;
  --dc-accent-amber: #f59e0b;
  --dc-accent-rose: #fb7185;
}

body.dark-command-app:not(.dark-command-pos) {
  background:
    radial-gradient(circle at 22% 0%, rgba(56, 189, 248, 0.14), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(34, 197, 94, 0.11), transparent 30%),
    linear-gradient(135deg, #0b1420 0%, #0f1d2c 46%, #101827 100%) !important;
  color: var(--dc-comfort-text) !important;
}

.dark-command-app:not(.dark-command-pos) #scrollable-container,
.dark-command-app:not(.dark-command-pos) main,
.dark-command-app:not(.dark-command-pos) .content-wrapper,
.dark-command-app:not(.dark-command-pos) .right-side {
  background: transparent !important;
}

.dark-command-app:not(.dark-command-pos) .side-bar {
  background:
    linear-gradient(180deg, rgba(18, 43, 64, 0.98) 0%, rgba(9, 23, 36, 0.98) 54%, rgba(7, 17, 28, 0.98) 100%) !important;
  border-right: 1px solid rgba(125, 211, 252, 0.22) !important;
  box-shadow: 18px 0 48px rgba(2, 6, 23, 0.36) !important;
}

.dark-command-app:not(.dark-command-pos) .side-bar > a {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(34, 197, 94, 0.08)) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18) !important;
  color: #f8fafc !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar {
  padding: 16px 10px 24px !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar a,
.dark-command-app:not(.dark-command-pos) #side-bar .drop_down {
  min-height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  color: #d7e7f7 !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar a:hover,
.dark-command-app:not(.dark-command-pos) #side-bar .drop_down:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-active,
.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-open > .drop_down,
.dark-command-app:not(.dark-command-pos) #side-bar .tw-bg-gray-200 {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.23), rgba(34, 197, 94, 0.13)) !important;
  border-color: rgba(125, 211, 252, 0.42) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 var(--dc-accent-cyan), 0 12px 26px rgba(14, 165, 233, 0.12) !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-open {
  background: rgba(2, 6, 23, 0.18) !important;
  border: 1px solid rgba(125, 211, 252, 0.14) !important;
  border-radius: 16px !important;
  padding: 4px !important;
  margin: 4px 0 !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .chiled {
  margin: 8px 0 10px !important;
  padding-left: 24px !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .chiled .tw-absolute {
  background: linear-gradient(180deg, var(--dc-accent-cyan), var(--dc-accent-green)) !important;
  opacity: 0.55 !important;
  left: 13px !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .chiled a {
  min-height: 34px !important;
  padding: 7px 12px !important;
  color: #b9cce0 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

.dark-command-app:not(.dark-command-pos) #side-bar .chiled a:hover,
.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-child-active {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #e0f7ff !important;
}

.dark-command-app:not(.dark-command-pos) .navbar,
.dark-command-app:not(.dark-command-pos) .main-header,
.dark-command-app:not(.dark-command-pos) .main-header .navbar {
  background: rgba(13, 25, 40, 0.92) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18) !important;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(56, 189, 248, 0.17), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(20, 35, 55, 0.97), rgba(15, 31, 47, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.25) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-main {
  background: rgba(8, 18, 30, 0.58) !important;
  border-top: 1px solid rgba(125, 211, 252, 0.18) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-transition-all,
.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .tw-transition-all,
.dark-command-app:not(.dark-command-pos) .box,
.dark-command-app:not(.dark-command-pos) .panel,
.dark-command-app:not(.dark-command-pos) .modal-content,
.dark-command-app:not(.dark-command-pos) .nav-tabs-custom,
.dark-command-app:not(.dark-command-pos) .tab-content,
.dark-command-app:not(.dark-command-pos) .tw-bg-white {
  background: linear-gradient(180deg, rgba(25, 43, 65, 0.98), rgba(16, 31, 48, 0.98)) !important;
  border-color: rgba(125, 211, 252, 0.22) !important;
  color: var(--dc-comfort-soft) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-transition-all:nth-of-type(4n + 1) {
  border-left: 4px solid var(--dc-accent-cyan) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-transition-all:nth-of-type(4n + 2) {
  border-left: 4px solid var(--dc-accent-green) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-transition-all:nth-of-type(4n + 3) {
  border-left: 4px solid var(--dc-accent-amber) !important;
}

.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-transition-all:nth-of-type(4n + 4) {
  border-left: 4px solid var(--dc-accent-rose) !important;
}

.dark-command-app:not(.dark-command-pos) .table-responsive,
.dark-command-app:not(.dark-command-pos) .dataTables_wrapper,
.dark-command-app:not(.dark-command-pos) .dataTables_scroll,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollHead,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollBody,
.dark-command-app:not(.dark-command-pos) .dataTables_scrollFoot {
  background: #101f30 !important;
  border-color: rgba(125, 211, 252, 0.2) !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable,
.dark-command-app:not(.dark-command-pos) .table,
.dark-command-app:not(.dark-command-pos) .table-bordered {
  background: #101f30 !important;
  color: #d6e4f2 !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable thead th,
.dark-command-app:not(.dark-command-pos) table.dataTable thead td,
.dark-command-app:not(.dark-command-pos) .table > thead > tr > th {
  background: linear-gradient(180deg, #1c344e, #13263b) !important;
  border-color: rgba(125, 211, 252, 0.27) !important;
  color: #f8fafc !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable tbody tr,
.dark-command-app:not(.dark-command-pos) .table > tbody > tr {
  background: #101f30 !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable tbody tr:nth-child(even),
.dark-command-app:not(.dark-command-pos) .table > tbody > tr:nth-child(even) {
  background: #14283c !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable tbody tr:hover,
.dark-command-app:not(.dark-command-pos) .table-hover > tbody > tr:hover {
  background: rgba(56, 189, 248, 0.11) !important;
}

.dark-command-app:not(.dark-command-pos) table.dataTable td,
.dark-command-app:not(.dark-command-pos) .table > tbody > tr > td,
.dark-command-app:not(.dark-command-pos) .table > tfoot > tr > td {
  border-color: rgba(125, 211, 252, 0.13) !important;
  color: #d6e4f2 !important;
}

.dark-command-app:not(.dark-command-pos) .tw-text-gray-400,
.dark-command-app:not(.dark-command-pos) .tw-text-gray-500,
.dark-command-app:not(.dark-command-pos) .tw-text-gray-600,
.dark-command-app:not(.dark-command-pos) .text-muted,
.dark-command-app:not(.dark-command-pos) .help-block {
  color: var(--dc-comfort-muted) !important;
}

.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single,
.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple,
.dark-command-app:not(.dark-command-pos) input.form-control,
.dark-command-app:not(.dark-command-pos) select.form-control,
.dark-command-app:not(.dark-command-pos) textarea.form-control {
  background: #0e1b2b !important;
  border-color: rgba(125, 211, 252, 0.25) !important;
  color: #eef6ff !important;
}

.dark-command-app:not(.dark-command-pos) .select2-dropdown,
.dark-command-app:not(.dark-command-pos) .dropdown-menu,
.dark-command-app:not(.dark-command-pos) .daterangepicker {
  background: #142337 !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #edf6ff !important;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.42) !important;
}

.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a,
.dark-command-app:not(.dark-command-pos) .select2-results__option {
  color: #d8e7f7 !important;
}

.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a:hover,
.dark-command-app:not(.dark-command-pos) .select2-results__option--highlighted {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #ffffff !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-background,
.dark-command-app:not(.dark-command-pos) .highcharts-plot-background {
  fill: #101f30 !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-grid-line {
  stroke: rgba(148, 163, 184, 0.22) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-axis-line,
.dark-command-app:not(.dark-command-pos) .highcharts-tick {
  stroke: rgba(125, 211, 252, 0.36) !important;
}

.dark-command-app:not(.dark-command-pos) .highcharts-title,
.dark-command-app:not(.dark-command-pos) .highcharts-subtitle,
.dark-command-app:not(.dark-command-pos) .highcharts-axis-title,
.dark-command-app:not(.dark-command-pos) .highcharts-axis-labels text,
.dark-command-app:not(.dark-command-pos) .highcharts-legend-item text {
  fill: #d8e7f7 !important;
  color: #d8e7f7 !important;
}

/* Full-page background and button refresh for long forms */
html.tw-bg-white {
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(135deg, #0b1420 0%, #0f1d2c 48%, #101827 100%) !important;
}

body.dark-command-app.tw-bg-gray-100:not(.dark-command-pos),
body.dark-command-app:not(.dark-command-pos) .tw-bg-gray-100,
body.dark-command-app:not(.dark-command-pos) .tw-bg-gray-50,
body.dark-command-app:not(.dark-command-pos) main.tw-bg-gray-100,
body.dark-command-app:not(.dark-command-pos) #scrollable-container {
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(135deg, #0b1420 0%, #0f1d2c 48%, #101827 100%) !important;
}

body.dark-command-app:not(.dark-command-pos) #scrollable-container {
  min-height: 100vh !important;
}

body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6,
body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-flex-1,
body.dark-command-app:not(.dark-command-pos) .wrapper,
body.dark-command-app:not(.dark-command-pos) .main-footer,
body.dark-command-app:not(.dark-command-pos) footer,
body.dark-command-app:not(.dark-command-pos) .tw-mt-auto {
  background: transparent !important;
}

body.dark-command-app:not(.dark-command-pos) footer,
body.dark-command-app:not(.dark-command-pos) .tw-mt-auto p {
  color: rgba(211, 225, 239, 0.72) !important;
}

body.dark-command-app:not(.dark-command-pos) .btn,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn,
body.dark-command-app:not(.dark-command-pos) button.btn,
body.dark-command-app:not(.dark-command-pos) a.btn {
  min-height: 34px;
  border-radius: 12px !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-primary,
body.dark-command-app:not(.dark-command-pos) .btn-info,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-primary,
body.dark-command-app:not(.dark-command-pos) .tw-bg-primary-800,
body.dark-command-app:not(.dark-command-pos) .tw-bg-primary-700 {
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
  border-color: rgba(125, 211, 252, 0.55) !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-success,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-success {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border-color: rgba(94, 234, 212, 0.45) !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-warning,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: rgba(251, 191, 36, 0.48) !important;
  color: #111827 !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-danger,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-error,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-danger {
  background: linear-gradient(135deg, #fb7185, #e11d48) !important;
  border-color: rgba(253, 164, 175, 0.5) !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-default,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-outline,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-neutral {
  background: rgba(20, 35, 55, 0.96) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .btn:hover,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn:hover {
  filter: brightness(1.07) saturate(1.05);
  transform: translateY(-1px);
}

body.dark-command-app:not(.dark-command-pos) .btn:active,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn:active {
  transform: translateY(0);
}

/* Fast, distinct sidebar polish */
body.dark-command-app:not(.dark-command-pos) .side-bar {
  background:
    linear-gradient(180deg, rgba(28, 53, 76, 0.98) 0%, rgba(20, 39, 60, 0.99) 48%, rgba(15, 31, 49, 0.99) 100%) !important;
  border-right: 1px solid rgba(125, 211, 252, 0.32) !important;
  box-shadow: 14px 0 34px rgba(2, 6, 23, 0.28) !important;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out !important;
  will-change: transform;
}

body.dark-command-app:not(.dark-command-pos) .side-bar > a {
  min-height: 66px !important;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.12)),
    rgba(25, 48, 70, 0.92) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.3) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-command-app:not(.dark-command-pos) .side-bar-heading {
  color: #f8fafc !important;
  text-shadow: none !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar {
  padding: 12px 10px 18px !important;
  border-right: 0 !important;
  scrollbar-color: rgba(125, 211, 252, 0.55) rgba(15, 31, 49, 0.5) !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar,
body.dark-command-app:not(.dark-command-pos) #side-bar *,
body.dark-command-app:not(.dark-command-pos) .side-bar,
body.dark-command-app:not(.dark-command-pos) .side-bar * {
  transition-duration: 0.08s !important;
  transition-delay: 0s !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar a,
body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down {
  min-height: 40px !important;
  background: rgba(10, 24, 38, 0.18) !important;
  border: 1px solid rgba(125, 211, 252, 0.08) !important;
  border-radius: 12px !important;
  color: #dcecff !important;
  box-shadow: none !important;
  transform: translateZ(0);
}

body.dark-command-app:not(.dark-command-pos) #side-bar a:hover,
body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down:hover,
body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down:focus {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(125, 211, 252, 0.36) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-active,
body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-open > .drop_down,
body.dark-command-app:not(.dark-command-pos) #side-bar .tw-bg-gray-200 {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(34, 197, 94, 0.16)) !important;
  border-color: rgba(125, 211, 252, 0.48) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #67e8f9, 0 10px 22px rgba(8, 47, 73, 0.2) !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-open {
  background: rgba(12, 27, 43, 0.5) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 15px !important;
  margin: 3px 0 !important;
  padding: 3px !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar svg,
body.dark-command-app:not(.dark-command-pos) #side-bar i {
  color: #8be4ff !important;
  opacity: 0.95;
}

body.dark-command-app:not(.dark-command-pos) #side-bar .chiled {
  margin: 6px 0 8px !important;
  padding-left: 22px !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar .chiled .tw-absolute {
  left: 12px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #67e8f9, #5eead4) !important;
  opacity: 0.65 !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar .chiled a {
  min-height: 32px !important;
  padding: 6px 11px !important;
  background: transparent !important;
  border-color: transparent !important;
  color: #c8dbef !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar .chiled a:hover,
body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-child-active {
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: rgba(125, 211, 252, 0.24) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

body.dark-command-app:not(.dark-command-pos) .overlay {
  transition: opacity 0.1s ease-out !important;
}

/* Final designer pass: daily-use readability, focus, and hierarchy */
body.dark-command-app:not(.dark-command-pos) {
  --dc-finish-surface: #15263a;
  --dc-finish-surface-2: #102033;
  --dc-finish-surface-3: #1c3148;
  --dc-finish-border: rgba(148, 213, 242, 0.28);
  --dc-finish-border-soft: rgba(148, 213, 242, 0.16);
  --dc-finish-text: #eef7ff;
  --dc-finish-muted: #adc2d8;
  --dc-finish-cyan: #38bdf8;
  --dc-finish-teal: #2dd4bf;
  text-rendering: optimizeLegibility;
}

body.dark-command-app:not(.dark-command-pos) ::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

body.dark-command-app:not(.dark-command-pos) *:focus {
  outline: none !important;
}

body.dark-command-app:not(.dark-command-pos) a:focus-visible,
body.dark-command-app:not(.dark-command-pos) button:focus-visible,
body.dark-command-app:not(.dark-command-pos) .btn:focus-visible,
body.dark-command-app:not(.dark-command-pos) input:focus-visible,
body.dark-command-app:not(.dark-command-pos) select:focus-visible,
body.dark-command-app:not(.dark-command-pos) textarea:focus-visible,
body.dark-command-app:not(.dark-command-pos) .select2-container--focus .select2-selection {
  border-color: rgba(56, 189, 248, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 12px 28px rgba(2, 6, 23, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6:not(.dc-dashboard-hero) {
  padding: 18px 20px 34px !important;
}

body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6:not(.dc-dashboard-hero) > h1,
body.dark-command-app:not(.dark-command-pos) .content-header h1 {
  color: var(--dc-finish-text) !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 16px !important;
}

body.dark-command-app:not(.dark-command-pos) .breadcrumb {
  background: rgba(21, 38, 58, 0.72) !important;
  border: 1px solid var(--dc-finish-border-soft) !important;
  border-radius: 999px !important;
  color: var(--dc-finish-muted) !important;
  padding: 7px 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .box,
body.dark-command-app:not(.dark-command-pos) .panel,
body.dark-command-app:not(.dark-command-pos) .well,
body.dark-command-app:not(.dark-command-pos) .modal-content,
body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom {
  border-radius: 16px !important;
  border: 1px solid var(--dc-finish-border-soft) !important;
  background:
    linear-gradient(180deg, rgba(28, 49, 72, 0.98), rgba(16, 32, 51, 0.98)) !important;
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.2) !important;
}

body.dark-command-app:not(.dark-command-pos) .box-header,
body.dark-command-app:not(.dark-command-pos) .panel-heading,
body.dark-command-app:not(.dark-command-pos) .modal-header {
  min-height: 48px;
  border-bottom: 1px solid var(--dc-finish-border-soft) !important;
  background: linear-gradient(180deg, rgba(24, 45, 68, 0.86), rgba(18, 35, 54, 0.74)) !important;
  border-radius: 16px 16px 0 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .box-title,
body.dark-command-app:not(.dark-command-pos) .panel-title,
body.dark-command-app:not(.dark-command-pos) .modal-title {
  color: var(--dc-finish-text) !important;
  font-weight: 800 !important;
}

body.dark-command-app:not(.dark-command-pos) .box-footer,
body.dark-command-app:not(.dark-command-pos) .modal-footer,
body.dark-command-app:not(.dark-command-pos) .panel-footer {
  border-top: 1px solid var(--dc-finish-border-soft) !important;
  background: rgba(13, 25, 40, 0.52) !important;
  border-radius: 0 0 16px 16px !important;
}

body.dark-command-app:not(.dark-command-pos) .form-group {
  margin-bottom: 17px !important;
}

body.dark-command-app:not(.dark-command-pos) label,
body.dark-command-app:not(.dark-command-pos) .control-label {
  color: #bfd2e6 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

body.dark-command-app:not(.dark-command-pos) .form-control,
body.dark-command-app:not(.dark-command-pos) input.form-control,
body.dark-command-app:not(.dark-command-pos) select.form-control,
body.dark-command-app:not(.dark-command-pos) textarea.form-control,
body.dark-command-app:not(.dark-command-pos) .input-group-addon {
  min-height: 38px;
  border-radius: 11px !important;
  background: rgba(9, 19, 32, 0.86) !important;
  border-color: rgba(148, 213, 242, 0.23) !important;
  color: var(--dc-finish-text) !important;
}

body.dark-command-app:not(.dark-command-pos) textarea.form-control {
  min-height: 84px;
}

body.dark-command-app:not(.dark-command-pos) .input-group-addon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(45, 212, 191, 0.12)) !important;
  color: #bff4ff !important;
}

body.dark-command-app:not(.dark-command-pos) .help-block,
body.dark-command-app:not(.dark-command-pos) .help-text,
body.dark-command-app:not(.dark-command-pos) small {
  color: #9fb5cc !important;
}

body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper {
  border-radius: 15px !important;
}

body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dataTables_length,
body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dataTables_filter,
body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dt-buttons {
  margin: 8px 0 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dataTables_length select,
body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dataTables_filter input {
  height: 36px !important;
  border-radius: 999px !important;
}

body.dark-command-app:not(.dark-command-pos) .dt-buttons .btn,
body.dark-command-app:not(.dark-command-pos) .dataTables_wrapper .dt-button {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(21, 38, 58, 0.92) !important;
  border-color: rgba(148, 213, 242, 0.25) !important;
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .dataTables_info,
body.dark-command-app:not(.dark-command-pos) .dataTables_length,
body.dark-command-app:not(.dark-command-pos) .dataTables_filter label {
  color: #adc2d8 !important;
}

body.dark-command-app:not(.dark-command-pos) table.dataTable,
body.dark-command-app:not(.dark-command-pos) .table {
  border-radius: 14px !important;
  overflow: hidden;
}

body.dark-command-app:not(.dark-command-pos) table.dataTable thead th,
body.dark-command-app:not(.dark-command-pos) .table > thead > tr > th {
  position: relative;
  height: 42px !important;
  font-size: 11px !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase;
  vertical-align: middle !important;
}

body.dark-command-app:not(.dark-command-pos) table.dataTable tbody td,
body.dark-command-app:not(.dark-command-pos) .table > tbody > tr > td {
  vertical-align: middle !important;
  line-height: 1.45 !important;
}

body.dark-command-app:not(.dark-command-pos) table.dataTable tbody tr,
body.dark-command-app:not(.dark-command-pos) .table > tbody > tr {
  transition: background 0.08s ease, box-shadow 0.08s ease !important;
}

body.dark-command-app:not(.dark-command-pos) table.dataTable tbody tr:hover td,
body.dark-command-app:not(.dark-command-pos) .table-hover > tbody > tr:hover > td {
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .pagination > li > a,
body.dark-command-app:not(.dark-command-pos) .pagination > li > span {
  min-width: 34px;
  border-radius: 10px !important;
  margin: 0 3px !important;
  background: rgba(21, 38, 58, 0.92) !important;
  border-color: rgba(148, 213, 242, 0.22) !important;
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .pagination > .active > a,
body.dark-command-app:not(.dark-command-pos) .pagination > .active > span {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6) !important;
  border-color: rgba(125, 211, 252, 0.5) !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .label,
body.dark-command-app:not(.dark-command-pos) .badge {
  border-radius: 999px !important;
  padding: 4px 8px !important;
  font-weight: 800 !important;
}

body.dark-command-app:not(.dark-command-pos) .alert {
  border-radius: 14px !important;
  border: 1px solid var(--dc-finish-border-soft) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) .alert-success {
  background: rgba(20, 184, 166, 0.18) !important;
  border-color: rgba(94, 234, 212, 0.32) !important;
}

body.dark-command-app:not(.dark-command-pos) .alert-warning {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
}

body.dark-command-app:not(.dark-command-pos) .alert-danger {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(253, 164, 175, 0.34) !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs,
body.dark-command-app:not(.dark-command-pos) .nav-tabs {
  gap: 6px;
  padding: 8px 8px 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li > a,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li > a {
  border-radius: 999px !important;
  padding: 8px 13px !important;
  border: 1px solid transparent !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(45, 212, 191, 0.12)) !important;
  border-color: rgba(125, 211, 252, 0.36) !important;
}

body.dark-command-app:not(.dark-command-pos) .dropdown-menu,
body.dark-command-app:not(.dark-command-pos) .select2-dropdown {
  border-radius: 14px !important;
}

body.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a {
  border-radius: 10px !important;
  margin: 2px 6px !important;
}

body.dark-command-app:not(.dark-command-pos) .modal-backdrop {
  background: #020617 !important;
}

body.dark-command-app:not(.dark-command-pos) .modal-backdrop.in {
  opacity: 0.72 !important;
}

body.dark-command-app:not(.dark-command-pos) .toast,
body.dark-command-app:not(.dark-command-pos) .toast-message {
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .tooltip-inner {
  background: #0b1420 !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 10px !important;
  color: #eaf6ff !important;
}

body.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-track {
  background: rgba(9, 19, 32, 0.64);
}

body.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.55), rgba(45, 212, 191, 0.42));
  border: 2px solid rgba(9, 19, 32, 0.64);
  border-radius: 999px;
}

body.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.75), rgba(45, 212, 191, 0.62));
}

/* Product list: keep the cloned DataTables header and scroll body on one width map. */
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper .dataTables_scrollHeadInner,
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper .dataTables_scrollHeadInner table,
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper .dataTables_scrollBody table {
  width: 100% !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table {
  min-width: 1976px !important;
  table-layout: fixed !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th,
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(1),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(1),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(1) {
  width: 48px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(2),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(2),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(2) {
  width: 96px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(3),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(3),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(3) {
  width: 120px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(3),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td.dc-product-action-col {
  position: relative !important;
  z-index: 6;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(3) .btn-group,
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td.dc-product-action-col .btn-group {
  display: inline-flex !important;
  max-width: none !important;
  white-space: nowrap !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-product-action-menu {
  min-width: 220px !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  overflow: visible !important;
  z-index: 12250 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-product-action-menu > li > a {
  white-space: nowrap !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(4),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(4),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(4) {
  width: 260px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(5),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(5),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(5) {
  width: 300px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(6),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(6),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(6) {
  width: 180px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(7),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(7),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(7) {
  width: 165px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(8),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(8),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(8) {
  width: 170px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(9),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(9),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(9) {
  width: 160px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(10),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(10),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(10) {
  width: 150px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(11),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(11),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(11) {
  width: 140px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(12),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(12),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(12) {
  width: 86px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table col:nth-child(13),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table th:nth-child(13),
body.dark-command-app:not(.dark-command-pos) #product_table_wrapper table#product_table td:nth-child(13) {
  width: 100px !important;
}

body.dark-command-app:not(.dark-command-pos) #product_table .product-thumbnail,
body.dark-command-app:not(.dark-command-pos) #product_table .product_list_product_img,
body.dark-command-app:not(.dark-command-pos) #product_table td:nth-child(2) img {
  width: 44px !important;
  height: 44px !important;
  object-fit: cover !important;
  display: inline-block !important;
}

/* Clean product/report tab pills */
body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li {
  border-top: 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li > a,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li > a {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 14px !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li > a::before,
body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li > a::after,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li > a::before,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li > a::after {
  display: none !important;
  content: none !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a,
body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a:hover,
body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs > li.active > a:focus,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a:hover,
body.dark-command-app:not(.dark-command-pos) .nav-tabs > li.active > a:focus {
  margin-top: 0 !important;
  border-top: 1px solid rgba(125, 211, 252, 0.34) !important;
  border-bottom-color: rgba(125, 211, 252, 0.34) !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.23), rgba(45, 212, 191, 0.13)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 22px rgba(2, 6, 23, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom > .nav-tabs {
  border-bottom: 1px solid rgba(125, 211, 252, 0.18) !important;
}

/* TinyMCE rich text editor */
body.dark-command-app:not(.dark-command-pos) .tox.tox-tinymce,
body.dark-command-app:not(.dark-command-pos) .mce-tinymce {
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #0e1b2b !important;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-menubar,
body.dark-command-app:not(.dark-command-pos) .tox .tox-toolbar,
body.dark-command-app:not(.dark-command-pos) .tox .tox-toolbar__primary,
body.dark-command-app:not(.dark-command-pos) .tox .tox-toolbar__overflow,
body.dark-command-app:not(.dark-command-pos) .tox .tox-statusbar,
body.dark-command-app:not(.dark-command-pos) .mce-panel,
body.dark-command-app:not(.dark-command-pos) .mce-toolbar-grp,
body.dark-command-app:not(.dark-command-pos) .mce-statusbar {
  background: linear-gradient(180deg, #17283c, #101f30) !important;
  border-color: rgba(125, 211, 252, 0.18) !important;
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-edit-area,
body.dark-command-app:not(.dark-command-pos) .tox .tox-edit-area__iframe,
body.dark-command-app:not(.dark-command-pos) .mce-edit-area,
body.dark-command-app:not(.dark-command-pos) .mce-edit-area iframe {
  background: #0e1b2b !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-tbtn,
body.dark-command-app:not(.dark-command-pos) .tox .tox-mbtn,
body.dark-command-app:not(.dark-command-pos) .tox .tox-statusbar__path-item,
body.dark-command-app:not(.dark-command-pos) .tox .tox-statusbar__wordcount,
body.dark-command-app:not(.dark-command-pos) .tox .tox-statusbar__branding,
body.dark-command-app:not(.dark-command-pos) .mce-btn button,
body.dark-command-app:not(.dark-command-pos) .mce-menubtn button {
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-tbtn svg,
body.dark-command-app:not(.dark-command-pos) .tox .tox-mbtn svg {
  fill: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-tbtn:hover,
body.dark-command-app:not(.dark-command-pos) .tox .tox-tbtn--enabled,
body.dark-command-app:not(.dark-command-pos) .tox .tox-mbtn:hover,
body.dark-command-app:not(.dark-command-pos) .mce-btn:hover,
body.dark-command-app:not(.dark-command-pos) .mce-btn.mce-active {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-tbtn:hover svg,
body.dark-command-app:not(.dark-command-pos) .tox .tox-tbtn--enabled svg {
  fill: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-collection,
body.dark-command-app:not(.dark-command-pos) .tox .tox-menu,
body.dark-command-app:not(.dark-command-pos) .mce-menu {
  background: #142337 !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #edf6ff !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-collection__item,
body.dark-command-app:not(.dark-command-pos) .mce-menu-item {
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .tox .tox-collection__item--active,
body.dark-command-app:not(.dark-command-pos) .tox .tox-collection__item:hover,
body.dark-command-app:not(.dark-command-pos) .mce-menu-item:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #ffffff !important;
}

/* Business settings workspace */
body.dark-command-app:not(.dark-command-pos) .dc-business-settings {
  padding-top: 4px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .box,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .box-body,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container {
  background:
    linear-gradient(180deg, rgba(28, 49, 72, 0.96), rgba(16, 32, 51, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.24) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .box-body {
  padding: 18px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-height: 620px;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu {
  background:
    linear-gradient(180deg, rgba(27, 50, 73, 0.96), rgba(17, 34, 53, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.2) !important;
  border-radius: 16px !important;
  padding: 10px !important;
  align-self: start;
  position: sticky;
  top: 78px;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group {
  margin: 0 !important;
  display: grid;
  gap: 6px;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group-item {
  min-height: 38px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 12px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: rgba(9, 19, 32, 0.34) !important;
  color: #d3e4f6 !important;
  text-align: left !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group-item:hover {
  background: rgba(56, 189, 248, 0.13) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group-item.active,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group-item.active:hover,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group-item.active:focus {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(45, 212, 191, 0.16)) !important;
  border-color: rgba(125, 211, 252, 0.46) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #67e8f9, 0 10px 22px rgba(8, 47, 73, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group > a.active::after {
  display: none !important;
  content: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab {
  min-width: 0;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content {
  display: none;
  min-height: 520px;
  padding: 18px 20px 10px !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(20, 39, 60, 0.96), rgba(14, 28, 45, 0.98)) !important;
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content.active {
  display: block;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content > .row {
  margin-left: -10px !important;
  margin-right: -10px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content [class*="col-"] {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .form-group {
  margin-bottom: 18px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings label {
  color: #bdd3e9 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .form-control,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .select2-container--default .select2-selection--single,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .select2-container--default .select2-selection--multiple {
  background: rgba(7, 18, 31, 0.92) !important;
  border-color: rgba(125, 211, 252, 0.26) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings input[type="file"] {
  color: #d8e7f7 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  padding: 7px 12px;
  font-weight: 800;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .text-center .tw-dw-btn-error,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings button[type="submit"] {
  min-width: 190px;
  min-height: 48px;
  margin: 24px auto 6px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6) !important;
  border-color: rgba(125, 211, 252, 0.52) !important;
  color: #ffffff !important;
}

@media (max-width: 991px) {
  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container {
    grid-template-columns: 1fr;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu {
    position: static;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Command Center */
body.dark-command-app:not(.dark-command-pos).dc-command-open {
  overflow: hidden;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1035;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(20, 184, 166, 0.9)),
    #0f1d2c;
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.32);
  font-weight: 800;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-trigger:hover {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-1px);
}

body.dark-command-app:not(.dark-command-pos) .dc-command-trigger kbd {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.24);
  color: #ffffff;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-center {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 18px 24px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-center.is-open {
  display: flex;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(56, 189, 248, 0.22), transparent 28%),
    rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

body.dark-command-app:not(.dark-command-pos) .dc-command-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(720px, 84vh);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(28, 49, 72, 0.98), rgba(12, 25, 40, 0.99));
  box-shadow: 0 34px 100px rgba(2, 6, 23, 0.56);
}

body.dark-command-app:not(.dark-command-pos) .dc-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}

body.dark-command-app:not(.dark-command-pos) .dc-command-head p {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-head span {
  display: block;
  margin-top: 4px;
  color: #a9bfd5;
  font-size: 13px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 11px;
  background: rgba(9, 19, 32, 0.78);
  color: #d8e7f7;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-close:hover {
  background: rgba(251, 113, 133, 0.18);
  color: #ffffff;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 16px 20px;
  padding: 8px 10px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 16px;
  background: rgba(7, 18, 31, 0.9);
}

body.dark-command-app:not(.dark-command-pos) .dc-command-search > i {
  color: #67e8f9;
  text-align: center;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-search input {
  width: 100%;
  height: 40px;
  border: 0 !important;
  background: transparent !important;
  color: #eef7ff !important;
  font-size: 15px;
  outline: 0 !important;
  box-shadow: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-search input::placeholder {
  color: #7f96ad;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-search kbd,
body.dark-command-app:not(.dark-command-pos) .dc-command-foot kbd {
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 8px;
  background: rgba(20, 35, 55, 0.9);
  color: #d8e7f7;
  padding: 3px 7px;
  font-size: 11px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-results {
  display: grid;
  gap: 6px;
  max-height: min(440px, 48vh);
  overflow-y: auto;
  padding: 0 14px 14px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(15, 31, 49, 0.72);
  color: #d8e7f7;
  text-align: left;
  padding: 8px 10px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-item.is-active,
body.dark-command-app:not(.dark-command-pos) .dc-command-item:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(45, 212, 191, 0.1));
  color: #ffffff;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.14);
  color: #67e8f9;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-copy {
  min-width: 0;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-copy strong,
body.dark-command-app:not(.dark-command-pos) .dc-command-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-copy strong {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-copy small {
  margin-top: 2px;
  color: #9fb5cc;
  font-size: 12px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-go {
  color: #7dd3fc;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-item.is-active .dc-command-go,
body.dark-command-app:not(.dark-command-pos) .dc-command-item:hover .dc-command-go {
  opacity: 1;
  transform: translateX(0);
}

body.dark-command-app:not(.dark-command-pos) .dc-command-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 20px;
  color: #a9bfd5;
  text-align: center;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-empty i {
  color: #67e8f9;
  font-size: 24px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-empty strong {
  color: #ffffff;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(125, 211, 252, 0.16);
  color: #9fb5cc;
  font-size: 12px;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 640px) {
  body.dark-command-app:not(.dark-command-pos) .dc-command-trigger {
    right: 14px;
    bottom: 14px;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-command-trigger span,
  body.dark-command-app:not(.dark-command-pos) .dc-command-trigger kbd {
    display: none;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-command-center {
    padding-top: 6vh;
  }
}

/* Final layout corrections for wrapped Blade widgets */
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-2,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-3 {
  width: 100% !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-2 > .tw-flow-root,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-3 > .tw-flow-root {
  width: 100% !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-2 > .tw-flow-root > div > .tw-py-2,
body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-3 > .tw-flow-root > div > .tw-py-2 {
  display: grid !important;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100% !important;
  padding: 14px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu {
  grid-column: 1;
  width: 100% !important;
  max-width: 260px;
  float: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab {
  grid-column: 2;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content.active {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-content [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  min-width: 0;
}

body.dark-command-app:not(.dark-command-pos) .dc-command-item {
  text-decoration: none !important;
}

@media (max-width: 991px) {
  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-2 > .tw-flow-root > div > .tw-py-2,
  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-container > .tw-p-3 > .tw-flow-root > div > .tw-py-2 {
    grid-template-columns: 1fr;
    padding: 10px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu {
    max-width: none;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-business-settings .pos-tab-menu .list-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }
}

/* Keep product/detail popups crisp and above table/dropdown layers. */
body.dark-command-app:not(.dark-command-pos).modal-open .modal {
  z-index: 12100 !important;
}

body.dark-command-app:not(.dark-command-pos).modal-open .modal-backdrop {
  z-index: 12090 !important;
}

body.dark-command-app:not(.dark-command-pos).modal-open .select2-dropdown,
body.dark-command-app:not(.dark-command-pos).modal-open .daterangepicker,
body.dark-command-app:not(.dark-command-pos).modal-open .datepicker,
body.dark-command-app:not(.dark-command-pos).modal-open .bootstrap-datetimepicker-widget,
body.dark-command-app:not(.dark-command-pos).modal-open .modal .dropdown-menu {
  z-index: 12120 !important;
}

body.dark-command-app:not(.dark-command-pos) .swal-overlay,
body.dark-command-app:not(.dark-command-pos).modal-open .swal-overlay,
body.dark-command-app:not(.dark-command-pos) .swal2-container,
body.dark-command-app:not(.dark-command-pos).modal-open .swal2-container {
  z-index: 13050 !important;
}

body.dark-command-app:not(.dark-command-pos) .swal-modal,
body.dark-command-app:not(.dark-command-pos) .swal2-popup {
  z-index: 13060 !important;
}

body.dark-command-app:not(.dark-command-pos) #view_product_modal.in,
body.dark-command-app:not(.dark-command-pos) .product_modal.in {
  display: block !important;
  opacity: 1 !important;
}

body.dark-command-app:not(.dark-command-pos) #view_product_modal .modal-dialog,
body.dark-command-app:not(.dark-command-pos) .product_modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 42px));
  opacity: 1 !important;
  filter: none !important;
}

body.dark-command-app:not(.dark-command-pos) #view_product_modal .modal-content,
body.dark-command-app:not(.dark-command-pos) .product_modal .modal-content {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* Light operations refresh: tighter spacing, mobile-first dashboard, less black UI. */
body.dark-command-app:not(.dark-command-pos) {
  --op-bg: #f4f7fb;
  --op-shell: #eef4fb;
  --op-surface: #ffffff;
  --op-surface-soft: #f8fbff;
  --op-line: #dbe6f1;
  --op-line-strong: #c4d5e6;
  --op-text: #182334;
  --op-muted: #657589;
  --op-blue: #2563eb;
  --op-cyan: #0891b2;
  --op-teal: #0f766e;
  --op-green: #16a34a;
  --op-amber: #d97706;
  --op-red: #dc2626;
  --op-shadow: 0 12px 32px rgba(38, 70, 105, 0.1);
  background: var(--op-bg) !important;
  color: var(--op-text) !important;
}

html.tw-bg-white,
body.dark-command-app:not(.dark-command-pos) main,
body.dark-command-app:not(.dark-command-pos) main.tw-bg-gray-100,
body.dark-command-app:not(.dark-command-pos) #scrollable-container,
body.dark-command-app:not(.dark-command-pos) .tw-bg-gray-100,
body.dark-command-app:not(.dark-command-pos) .tw-bg-gray-50 {
  background: var(--op-bg) !important;
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) main > .no-print {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--op-line) !important;
  box-shadow: 0 8px 24px rgba(38, 70, 105, 0.08) !important;
  backdrop-filter: blur(10px);
}

body.dark-command-app:not(.dark-command-pos) .content-header {
  padding: 12px 16px 8px !important;
  border-bottom: 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .content-header h1,
body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6:not(.dc-dashboard-hero) > h1 {
  color: var(--op-text) !important;
  font-size: 24px !important;
  margin-bottom: 8px !important;
}

body.dark-command-app:not(.dark-command-pos) .content-header h1 small,
body.dark-command-app:not(.dark-command-pos) small,
body.dark-command-app:not(.dark-command-pos) .help-block,
body.dark-command-app:not(.dark-command-pos) .text-muted {
  color: var(--op-muted) !important;
}

body.dark-command-app:not(.dark-command-pos) .content {
  padding: 10px 16px 22px !important;
}

body.dark-command-app:not(.dark-command-pos) .content > .row,
body.dark-command-app:not(.dark-command-pos) .content .row {
  margin-left: -6px !important;
  margin-right: -6px !important;
}

body.dark-command-app:not(.dark-command-pos) .content [class*="col-"] {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body.dark-command-app:not(.dark-command-pos) .box,
body.dark-command-app:not(.dark-command-pos) .panel,
body.dark-command-app:not(.dark-command-pos) .well,
body.dark-command-app:not(.dark-command-pos) .modal-content,
body.dark-command-app:not(.dark-command-pos) .nav-tabs-custom,
body.dark-command-app:not(.dark-command-pos) .tab-content,
body.dark-command-app:not(.dark-command-pos) .tab-pane {
  background: var(--op-surface) !important;
  border: 1px solid var(--op-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--op-shadow) !important;
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .box {
  margin-bottom: 14px !important;
}

body.dark-command-app:not(.dark-command-pos) .box-header,
body.dark-command-app:not(.dark-command-pos) .panel-heading,
body.dark-command-app:not(.dark-command-pos) .modal-header {
  min-height: 42px !important;
  background: var(--op-surface-soft) !important;
  border-bottom: 1px solid var(--op-line) !important;
  border-radius: 12px 12px 0 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .box-title,
body.dark-command-app:not(.dark-command-pos) .panel-title,
body.dark-command-app:not(.dark-command-pos) .modal-title,
body.dark-command-app:not(.dark-command-pos) label,
body.dark-command-app:not(.dark-command-pos) .control-label {
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .form-control,
body.dark-command-app:not(.dark-command-pos) input.form-control,
body.dark-command-app:not(.dark-command-pos) select.form-control,
body.dark-command-app:not(.dark-command-pos) textarea.form-control,
body.dark-command-app:not(.dark-command-pos) .input-group-addon,
body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single,
body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple {
  min-height: 38px !important;
  background: #ffffff !important;
  border-color: var(--op-line-strong) !important;
  border-radius: 9px !important;
  color: var(--op-text) !important;
  box-shadow: none !important;
}

body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .dropdown-menu,
body.dark-command-app:not(.dark-command-pos) .select2-dropdown,
body.dark-command-app:not(.dark-command-pos) .popover {
  background: #ffffff !important;
  border-color: var(--op-line) !important;
  color: var(--op-text) !important;
  box-shadow: 0 18px 42px rgba(38, 70, 105, 0.16) !important;
}

body.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a,
body.dark-command-app:not(.dark-command-pos) .table .dropdown-menu > li > a {
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a:hover,
body.dark-command-app:not(.dark-command-pos) .select2-results__option--highlighted {
  background: #eaf5ff !important;
  color: #075985 !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-primary,
body.dark-command-app:not(.dark-command-pos) .btn-success,
body.dark-command-app:not(.dark-command-pos) .btn-info,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-primary {
  background: linear-gradient(135deg, var(--op-blue), var(--op-cyan)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .btn-default,
body.dark-command-app:not(.dark-command-pos) .tw-dw-btn-neutral {
  background: #ffffff !important;
  border-color: var(--op-line-strong) !important;
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .table,
body.dark-command-app:not(.dark-command-pos) table.dataTable,
body.dark-command-app:not(.dark-command-pos) table.table-bordered,
body.dark-command-app:not(.dark-command-pos) .DTFC_LeftWrapper,
body.dark-command-app:not(.dark-command-pos) .DTFC_RightWrapper,
body.dark-command-app:not(.dark-command-pos) .DTFC_LeftHeadWrapper,
body.dark-command-app:not(.dark-command-pos) .DTFC_RightHeadWrapper,
body.dark-command-app:not(.dark-command-pos) .DTFC_LeftBodyWrapper,
body.dark-command-app:not(.dark-command-pos) .DTFC_RightBodyWrapper,
body.dark-command-app:not(.dark-command-pos) .DTFC_LeftWrapper table,
body.dark-command-app:not(.dark-command-pos) .DTFC_RightWrapper table {
  background: #ffffff !important;
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .table > thead > tr > th,
body.dark-command-app:not(.dark-command-pos) table.dataTable thead th,
body.dark-command-app:not(.dark-command-pos) table.table-bordered thead > tr > th,
body.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting,
body.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting_asc,
body.dark-command-app:not(.dark-command-pos) table.dataTable thead .sorting_desc {
  background: #f1f6fb !important;
  border-color: var(--op-line) !important;
  color: #334155 !important;
}

body.dark-command-app:not(.dark-command-pos) .table > tbody > tr,
body.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr,
body.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr,
body.dark-command-app:not(.dark-command-pos) .table > tbody > tr:nth-child(even),
body.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr:nth-child(even),
body.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr:nth-child(even) {
  background: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .table > tbody > tr > td,
body.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr > td,
body.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr > td,
body.dark-command-app:not(.dark-command-pos) .table > tbody > tr > th,
body.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr > th {
  border-color: #edf2f7 !important;
  color: #334155 !important;
}

body.dark-command-app:not(.dark-command-pos) .table > tbody > tr:hover,
body.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr:hover,
body.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr:hover {
  background: #f4faff !important;
}

body.dark-command-app:not(.dark-command-pos) .table > tbody > tr:hover > td,
body.dark-command-app:not(.dark-command-pos) table.dataTable tbody > tr:hover > td,
body.dark-command-app:not(.dark-command-pos) table.table-bordered tbody > tr:hover > td {
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .dataTables_info,
body.dark-command-app:not(.dark-command-pos) .dataTables_paginate,
body.dark-command-app:not(.dark-command-pos) .dataTables_length,
body.dark-command-app:not(.dark-command-pos) .dataTables_filter {
  color: var(--op-muted) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero {
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--op-line) !important;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.86), rgba(240, 253, 250, 0.86)),
    #f8fbff !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero::before,
body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .sm\:tw-flex::before {
  display: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 {
  padding: 14px 16px 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .sm\:tw-flex {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--op-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--op-shadow) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1 {
  max-width: none !important;
  color: var(--op-text) !important;
  font-size: clamp(22px, 2.2vw, 34px) !important;
  line-height: 1.12 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1::after {
  content: "Daily command dashboard";
  margin-top: 6px;
  color: var(--op-muted) !important;
  font-size: 12px !important;
  letter-spacing: 0.03em !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero #dashboard_location + .select2-container .select2-selection,
body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .select2-container--default .select2-selection--single,
body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero #dashboard_date_filter {
  min-height: 40px !important;
  background: #ffffff !important;
  border-color: var(--op-line-strong) !important;
  border-radius: 10px !important;
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-px-5 {
  padding: 0 16px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all {
  min-height: 96px !important;
  border: 1px solid var(--op-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: var(--op-shadow) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all::before {
  width: 5px;
  background: linear-gradient(180deg, var(--op-blue), var(--op-cyan)) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all::after,
body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6 .tw-grid > .tw-transition-all::after {
  display: none !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all > div {
  padding: 14px 15px 14px 18px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-rounded-full {
  width: 42px !important;
  height: 42px !important;
  background: #eff6ff !important;
  border-color: #dbeafe !important;
  color: var(--op-blue) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid p:first-of-type {
  color: var(--op-muted) !important;
  font-size: 12px !important;
  letter-spacing: 0.03em !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-font-mono,
body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .total_expense,
body.dark-command-app:not(.dark-command-pos) .total_sell,
body.dark-command-app:not(.dark-command-pos) .net,
body.dark-command-app:not(.dark-command-pos) .invoice_due,
body.dark-command-app:not(.dark-command-pos) .total_sell_return,
body.dark-command-app:not(.dark-command-pos) .total_purchase,
body.dark-command-app:not(.dark-command-pos) .purchase_due,
body.dark-command-app:not(.dark-command-pos) .total_purchase_return,
body.dark-command-app:not(.dark-command-pos) .expense,
body.dark-command-app:not(.dark-command-pos) .total_expense,
body.dark-command-app:not(.dark-command-pos) .total_sell_return_paid,
body.dark-command-app:not(.dark-command-pos) .total_purchase_return_paid {
  color: var(--op-text) !important;
  font-size: 20px !important;
  line-height: 1.18 !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main {
  padding: 16px !important;
  background: var(--op-bg) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid {
  gap: 14px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid > .tw-transition-all {
  border: 1px solid var(--op-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: var(--op-shadow) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid > .tw-transition-all::before {
  height: 4px;
  background: linear-gradient(90deg, var(--op-blue), var(--op-cyan), var(--op-green)) !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main h3 {
  color: var(--op-text) !important;
  font-size: 17px !important;
}

body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .tw-h-100 {
  min-height: 300px !important;
  padding: 8px !important;
  border: 1px solid var(--op-line) !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
}

body.dark-command-app:not(.dark-command-pos) .highcharts-container,
body.dark-command-app:not(.dark-command-pos) .highcharts-container > svg,
body.dark-command-app:not(.dark-command-pos) .highcharts-root {
  background: #f8fbff !important;
  color: var(--op-text) !important;
}

body.dark-command-app:not(.dark-command-pos) .highcharts-background,
body.dark-command-app:not(.dark-command-pos) .highcharts-plot-background,
body.dark-command-app:not(.dark-command-pos) .highcharts-root rect.highcharts-background {
  fill: #f8fbff !important;
  stroke: #e2e8f0 !important;
}

body.dark-command-app:not(.dark-command-pos) .highcharts-title,
body.dark-command-app:not(.dark-command-pos) .highcharts-subtitle,
body.dark-command-app:not(.dark-command-pos) .highcharts-axis-title,
body.dark-command-app:not(.dark-command-pos) .highcharts-axis-labels text,
body.dark-command-app:not(.dark-command-pos) .highcharts-legend-item text,
body.dark-command-app:not(.dark-command-pos) .highcharts-data-label text,
body.dark-command-app:not(.dark-command-pos) .highcharts-label text {
  fill: #334155 !important;
}

body.dark-command-app:not(.dark-command-pos) .side-bar {
  background: linear-gradient(180deg, #15304a, #10263c) !important;
  border-right: 1px solid #cbd8e6 !important;
  box-shadow: 8px 0 24px rgba(38, 70, 105, 0.12) !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar a,
body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down {
  min-height: 38px !important;
  border-radius: 10px !important;
  color: #e8f2ff !important;
}

body.dark-command-app:not(.dark-command-pos) #side-bar a:hover,
body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down:hover,
body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-active,
body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-open > .drop_down,
body.dark-command-app:not(.dark-command-pos) #side-bar .tw-bg-gray-200 {
  background: rgba(14, 165, 233, 0.18) !important;
  border-color: rgba(186, 230, 253, 0.32) !important;
  color: #ffffff !important;
}

body.dark-command-auth {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.12), transparent 28rem),
    linear-gradient(135deg, #edf4fb 0%, #f8fbff 52%, #eef7f6 100%) !important;
}

.dark-command-auth .container-fluid,
.dark-command-auth .eq-height-row,
.dark-command-auth .right-col {
  min-height: 100vh !important;
}

.dark-command-auth .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dark-command-auth .right-col {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 16px !important;
  background: transparent !important;
}

.dark-command-auth .right-col > .row:first-child {
  width: min(1100px, 100%);
  margin: 0 auto !important;
}

.dark-command-auth .right-col > .row:first-child > .tw-absolute {
  top: 14px !important;
}

.dark-command-auth .right-col > .row:first-child a,
.dark-command-auth .right-col > .row:first-child .change_lang {
  color: #1e3a5f !important;
}

.dark-command-auth .right-col > .row:first-child .tw-rounded-full {
  background: #ffffff !important;
  border-color: #dbe6f1 !important;
  box-shadow: 0 10px 24px rgba(38, 70, 105, 0.1) !important;
}

.dc-login-shell {
  width: min(1040px, calc(100vw - 28px)) !important;
  min-height: auto !important;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 440px) !important;
  gap: 24px !important;
  padding: 36px 0 22px !important;
  color: #182334 !important;
}

.dc-login-brand h1 {
  color: #172033 !important;
  font-size: clamp(32px, 5vw, 62px) !important;
  line-height: 1 !important;
}

.dc-login-copy {
  max-width: 520px;
  margin-top: 14px !important;
  color: #526276 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.dc-overline {
  margin: 14px 0 8px !important;
  color: #0e7490 !important;
}

.dc-brand-mark {
  width: 60px !important;
  height: 60px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border-color: #dbe6f1 !important;
  box-shadow: 0 14px 30px rgba(38, 70, 105, 0.12) !important;
}

.dc-login-card,
.dc-demo-panel {
  border: 1px solid #dbe6f1 !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 20px 52px rgba(38, 70, 105, 0.14) !important;
  color: #182334 !important;
  backdrop-filter: blur(12px);
}

.dc-login-card {
  padding: 26px !important;
}

.dc-login-telemetry {
  gap: 10px !important;
  margin-top: 20px !important;
}

.dc-login-telemetry div {
  background: #ffffff !important;
  border-color: #dbe6f1 !important;
  color: #182334 !important;
}

.dc-login-telemetry span,
.dc-card-heading span,
.dc-check-row,
.dc-register-link {
  color: #657589 !important;
}

.dc-login-telemetry strong,
.dc-card-heading h2 {
  color: #182334 !important;
}

.dc-field {
  background: #ffffff !important;
  border-color: #dbe6f1 !important;
  color: #182334 !important;
}

.dc-field span,
.dc-field input,
.dc-field input::placeholder {
  color: #182334 !important;
}

.dc-submit-btn {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
}

@media (max-width: 1199px) {
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  body.dark-command-app:not(.dark-command-pos) .content-header {
    padding: 10px 12px 6px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .content,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main {
    padding: 10px 12px 18px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 {
    padding: 10px 12px 0 !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .sm\:tw-flex {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .dc-login-shell {
    grid-template-columns: 1fr !important;
    padding-top: 74px !important;
  }

  .dc-login-brand {
    max-width: none !important;
  }
}

@media (max-width: 640px) {
  body.dark-command-app:not(.dark-command-pos) .content-header h1,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1 {
    font-size: 21px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all {
    min-height: 76px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all > div {
    padding: 11px 12px 11px 16px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-rounded-full {
    width: 36px !important;
    height: 36px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-font-mono,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .total_expense,
  body.dark-command-app:not(.dark-command-pos) .total_sell,
  body.dark-command-app:not(.dark-command-pos) .net,
  body.dark-command-app:not(.dark-command-pos) .invoice_due,
  body.dark-command-app:not(.dark-command-pos) .total_sell_return,
  body.dark-command-app:not(.dark-command-pos) .total_purchase,
  body.dark-command-app:not(.dark-command-pos) .purchase_due,
  body.dark-command-app:not(.dark-command-pos) .total_purchase_return,
  body.dark-command-app:not(.dark-command-pos) .expense,
  body.dark-command-app:not(.dark-command-pos) .total_expense {
    font-size: 18px !important;
  }

  .dark-command-auth .right-col {
    justify-content: flex-start;
    padding: 10px !important;
  }

  .dark-command-auth .right-col > .row:first-child > .tw-absolute {
    position: static !important;
    justify-content: center;
    margin: 8px 0 !important;
  }

  .dc-login-shell {
    width: min(100vw - 20px, 1040px) !important;
    padding: 14px 0 18px !important;
  }

  .dc-login-brand {
    display: none !important;
  }

  .dc-login-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }
}

/* Customer/contact detail view: keep the header, tabs, and ledger controls on one light surface. */
body.dark-command-app:not(.dark-command-pos) .contact-view-page {
  padding-top: 10px !important;
  background: #f4f7fb !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page > br {
  display: none !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page > .row:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page > .row:first-child h3 {
  margin: 0 !important;
  color: #1f2a3d !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page > .row:first-child .pull-right {
  margin-left: auto;
  margin-top: 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .box.box-solid {
  margin-bottom: 12px !important;
  border: 1px solid #dbe6f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(38, 70, 105, 0.1) !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .box.box-solid .box-body {
  padding: 16px 16px 12px !important;
  background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
  border-radius: 14px !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .profile-username {
  margin-top: 0 !important;
  color: #1f2a3d !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .profile-username small {
  color: #64748b !important;
  font-size: 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page strong,
body.dark-command-app:not(.dark-command-pos) .contact-view-page .text-muted,
body.dark-command-app:not(.dark-command-pos) .contact-view-page p {
  color: #334155 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .text-muted {
  color: #64748b !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom {
  overflow: hidden;
  border: 1px solid #dbe6f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(38, 70, 105, 0.1) !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px !important;
  background: #eef4fb !important;
  border-bottom: 1px solid #dbe6f1 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs > li,
body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs.nav-justified > li {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs > li > a {
  min-height: 40px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 800 !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs > li.active > a,
body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs > li.active > a:hover,
body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs > li.active > a:focus {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .tab-content,
body.dark-command-app:not(.dark-command-pos) .contact-view-page .tab-pane {
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page .tab-content {
  padding: 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab > .row {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab .form-group {
  margin-bottom: 12px !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab label {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab .btn-group {
  gap: 7px;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab .btn-group > .btn,
body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab .btn-sm {
  border-radius: 999px !important;
  border-color: #cbd8e6 !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: 0 8px 18px rgba(38, 70, 105, 0.08) !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab .btn-group > .btn.active,
body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab .btn-group > .btn-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body.dark-command-app:not(.dark-command-pos) .contact-view-page #contact_ledger_div {
  padding-top: 10px !important;
}

@media (max-width: 767px) {
  body.dark-command-app:not(.dark-command-pos) .contact-view-page > .row:first-child {
    display: block;
  }

  body.dark-command-app:not(.dark-command-pos) .contact-view-page > .row:first-child .pull-right {
    margin: 10px 0 0 !important;
    width: 100%;
  }

  body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body.dark-command-app:not(.dark-command-pos) .contact-view-page .nav-tabs-custom > .nav-tabs > li {
    min-width: 148px;
  }

  body.dark-command-app:not(.dark-command-pos) .contact-view-page .tab-content {
    padding: 8px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .contact-view-page #ledger_tab > .row {
    padding: 8px !important;
  }
}

/* Soft dark operations override: restore the previous lighter dark feel without pure black panels. */
@media screen {
  body.dark-command-app:not(.dark-command-pos) {
    --sd-bg: #0f1d2c;
    --sd-bg-soft: #13243a;
    --sd-panel: #172a40;
    --sd-panel-2: #1d334c;
    --sd-panel-3: #243c58;
    --sd-line: rgba(139, 210, 245, 0.22);
    --sd-line-strong: rgba(139, 210, 245, 0.34);
    --sd-text: #edf6ff;
    --sd-text-soft: #d8e8f7;
    --sd-muted: #9fb8cf;
    --sd-cyan: #38bdf8;
    --sd-teal: #2dd4bf;
    --sd-blue: #60a5fa;
    --sd-green: #86efac;
    --sd-red: #fca5a5;
    --sd-amber: #fcd34d;
    background: linear-gradient(135deg, #0f1d2c 0%, #14263c 48%, #102133 100%) !important;
    color: var(--sd-text-soft) !important;
  }

  html.tw-bg-white,
  body.dark-command-app:not(.dark-command-pos) main,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container,
  body.dark-command-app:not(.dark-command-pos) .content-wrapper,
  body.dark-command-app:not(.dark-command-pos) .right-side,
  body.dark-command-app:not(.dark-command-pos) .content,
  body.dark-command-app:not(.dark-command-pos) .tw-bg-white,
  body.dark-command-app:not(.dark-command-pos) .\!tw-bg-white,
  body.dark-command-app:not(.dark-command-pos) .tw-dw-bg-base-100,
  body.dark-command-app:not(.dark-command-pos) .tw-bg-gray-50,
  body.dark-command-app:not(.dark-command-pos) .tw-bg-gray-100,
  body.dark-command-app:not(.dark-command-pos) .\!tw-bg-gray-50,
  body.dark-command-app:not(.dark-command-pos) .\!tw-bg-gray-100,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-bg-white,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-bg-gray-50,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-bg-gray-100,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-flow-root {
    background: var(--sd-bg) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container {
    background:
      radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 34%),
      linear-gradient(135deg, var(--sd-bg) 0%, #13243a 100%) !important;
  }

  body.dark-command-app:not(.dark-command-pos) main > .no-print,
  body.dark-command-app:not(.dark-command-pos) .main-header,
  body.dark-command-app:not(.dark-command-pos) .main-header .navbar,
  body.dark-command-app:not(.dark-command-pos) .fixed.main-header {
    background: rgba(19, 36, 58, 0.96) !important;
    border-bottom: 1px solid var(--sd-line) !important;
    box-shadow: 0 10px 28px rgba(5, 15, 28, 0.28) !important;
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .content-header,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6:not(.dc-dashboard-hero) {
    margin: 12px 14px 10px !important;
    padding: 0 !important;
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .content-header h1,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container h1,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container h2,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container h3,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container h4,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container h5,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container h6 {
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .content-header small,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container small,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .text-muted,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .help-block,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-gray-500,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-gray-600,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-gray-700,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-slate-500,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-slate-600,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-slate-700 {
    color: var(--sd-muted) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .tw-text-gray-900,
  body.dark-command-app:not(.dark-command-pos) .tw-text-gray-800,
  body.dark-command-app:not(.dark-command-pos) .tw-text-slate-900,
  body.dark-command-app:not(.dark-command-pos) .tw-text-slate-800,
  body.dark-command-app:not(.dark-command-pos) .\!tw-text-gray-900,
  body.dark-command-app:not(.dark-command-pos) .\!tw-text-gray-800 {
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .side-bar,
  body.dark-command-app:not(.dark-command-pos) .main-sidebar,
  body.dark-command-app:not(.dark-command-pos) .left-side {
    background: linear-gradient(180deg, #17324a 0%, #11253a 46%, #0f1d2c 100%) !important;
    border-right: 1px solid var(--sd-line) !important;
    box-shadow: 10px 0 28px rgba(5, 15, 28, 0.22) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .side-bar a,
  body.dark-command-app:not(.dark-command-pos) #side-bar,
  body.dark-command-app:not(.dark-command-pos) #side-bar *,
  body.dark-command-app:not(.dark-command-pos) #side-bar a,
  body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down,
  body.dark-command-app:not(.dark-command-pos) .side-bar,
  body.dark-command-app:not(.dark-command-pos) .side-bar *,
  body.dark-command-app:not(.dark-command-pos) .sidebar-menu > li > a,
  body.dark-command-app:not(.dark-command-pos) .sidebar-menu .treeview-menu > li > a {
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #side-bar .chiled,
  body.dark-command-app:not(.dark-command-pos) #side-bar .treeview-menu,
  body.dark-command-app:not(.dark-command-pos) .side-bar .treeview-menu {
    background: rgba(16, 33, 54, 0.76) !important;
    border-color: var(--sd-line) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #side-bar svg,
  body.dark-command-app:not(.dark-command-pos) #side-bar i,
  body.dark-command-app:not(.dark-command-pos) .side-bar svg,
  body.dark-command-app:not(.dark-command-pos) .side-bar i {
    color: var(--sd-cyan) !important;
    stroke: var(--sd-cyan) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .sidebar-menu > li.active > a,
  body.dark-command-app:not(.dark-command-pos) .sidebar-menu > li.menu-open > a,
  body.dark-command-app:not(.dark-command-pos) .side-bar .active > a,
  body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-active,
  body.dark-command-app:not(.dark-command-pos) #side-bar .dc-sidebar-open > .drop_down,
  body.dark-command-app:not(.dark-command-pos) #side-bar a:hover,
  body.dark-command-app:not(.dark-command-pos) #side-bar .drop_down:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.34) !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .box,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .box.box-solid,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .box.box-primary,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .panel,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .panel-default,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .well,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs-custom,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tab-content,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tab-pane,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-rounded-xl,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-rounded-lg,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-shadow-sm {
    background: linear-gradient(180deg, var(--sd-panel) 0%, #14263b 100%) !important;
    border: 1px solid var(--sd-line) !important;
    box-shadow: 0 16px 34px rgba(4, 13, 25, 0.22) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .box-header,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .box.box-solid > .box-header,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .panel-heading,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs-custom > .nav-tabs {
    background: var(--sd-panel-3) !important;
    border-color: var(--sd-line) !important;
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .box-body,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .panel-body,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tab-content,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tab-pane {
    background: var(--sd-panel) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs > li > a,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs-custom > .nav-tabs > li > a {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: transparent !important;
    color: var(--sd-muted) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs > li.active > a,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs > li.active > a:hover,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs > li.active > a:focus,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs-custom > .nav-tabs > li.active > a {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(45, 212, 191, 0.2)) !important;
    border-color: rgba(56, 189, 248, 0.42) !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .form-control,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container input,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container textarea,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container select,
  body.dark-command-app:not(.dark-command-pos) .modal .form-control,
  body.dark-command-app:not(.dark-command-pos) .modal input,
  body.dark-command-app:not(.dark-command-pos) .modal textarea,
  body.dark-command-app:not(.dark-command-pos) .modal select,
  body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single,
  body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple {
    background: #102136 !important;
    border: 1px solid var(--sd-line-strong) !important;
    color: var(--sd-text) !important;
    box-shadow: none !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .form-control:focus,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container input:focus,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container textarea:focus,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container select:focus {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container label,
  body.dark-command-app:not(.dark-command-pos) .modal label,
  body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--single .select2-selection__rendered,
  body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dropdown-menu,
  body.dark-command-app:not(.dark-command-pos) .select2-dropdown,
  body.dark-command-app:not(.dark-command-pos) .daterangepicker,
  body.dark-command-app:not(.dark-command-pos) .popover {
    background: var(--sd-panel-2) !important;
    border: 1px solid var(--sd-line-strong) !important;
    box-shadow: 0 20px 44px rgba(4, 13, 25, 0.42) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu a,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu button,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu span,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu i,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu *,
  body.dark-command-app:not(.dark-command-pos) .table .dropdown-menu > li > a,
  body.dark-command-app:not(.dark-command-pos) .table .dropdown-menu *,
  body.dark-command-app:not(.dark-command-pos) .select2-results__option,
  body.dark-command-app:not(.dark-command-pos) .daterangepicker td,
  body.dark-command-app:not(.dark-command-pos) .daterangepicker th {
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dropdown-menu .divider {
    background-color: var(--sd-line) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dropdown-menu > .disabled > a,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu > .disabled > a:hover,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu > .disabled > a:focus,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu .disabled,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu .disabled * {
    color: #7893aa !important;
    opacity: 1 !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a:hover,
  body.dark-command-app:not(.dark-command-pos) .dropdown-menu > li > a:focus,
  body.dark-command-app:not(.dark-command-pos) .select2-container--default .select2-results__option--highlighted[aria-selected],
  body.dark-command-app:not(.dark-command-pos) .daterangepicker td.active,
  body.dark-command-app:not(.dark-command-pos) .daterangepicker td.active:hover {
    background: rgba(56, 189, 248, 0.2) !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal-content,
  body.dark-command-app:not(.dark-command-pos) .modal-header,
  body.dark-command-app:not(.dark-command-pos) .modal-body,
  body.dark-command-app:not(.dark-command-pos) .modal-footer {
    background: var(--sd-panel) !important;
    border-color: var(--sd-line) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal-content {
    border: 1px solid var(--sd-line-strong) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 70px rgba(4, 13, 25, 0.52) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal-title,
  body.dark-command-app:not(.dark-command-pos) .modal h1,
  body.dark-command-app:not(.dark-command-pos) .modal h2,
  body.dark-command-app:not(.dark-command-pos) .modal h3,
  body.dark-command-app:not(.dark-command-pos) .modal h4 {
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal .table-responsive {
    overflow: hidden;
    border: 1px solid rgba(139, 210, 245, 0.24) !important;
    border-radius: 14px !important;
    background: #203650 !important;
    box-shadow: none !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal table,
  body.dark-command-app:not(.dark-command-pos) .modal .table,
  body.dark-command-app:not(.dark-command-pos) .modal table.bg-gray,
  body.dark-command-app:not(.dark-command-pos) .modal .table.bg-gray,
  body.dark-command-app:not(.dark-command-pos) .view_modal table,
  body.dark-command-app:not(.dark-command-pos) .view_modal .table {
    margin-bottom: 0 !important;
    background: #203650 !important;
    background-color: #203650 !important;
    border-color: rgba(139, 210, 245, 0.24) !important;
    color: #e7f1fb !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal table > thead > tr > th,
  body.dark-command-app:not(.dark-command-pos) .modal .table > thead > tr > th,
  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr:first-child > th,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr:first-child > th,
  body.dark-command-app:not(.dark-command-pos) .modal table tr.bg-green > th,
  body.dark-command-app:not(.dark-command-pos) .modal table tr.bg-gray > th,
  body.dark-command-app:not(.dark-command-pos) .view_modal table > thead > tr > th,
  body.dark-command-app:not(.dark-command-pos) .view_modal .table > thead > tr > th,
  body.dark-command-app:not(.dark-command-pos) .view_modal table > tbody > tr:first-child > th {
    background: #2a4663 !important;
    background-color: #2a4663 !important;
    border-color: rgba(139, 210, 245, 0.28) !important;
    color: #f8fbff !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr > th,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr > th,
  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr > td,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr > td,
  body.dark-command-app:not(.dark-command-pos) .modal table > tfoot > tr > th,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tfoot > tr > th,
  body.dark-command-app:not(.dark-command-pos) .modal table > tfoot > tr > td,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tfoot > tr > td,
  body.dark-command-app:not(.dark-command-pos) .view_modal table > tbody > tr > th,
  body.dark-command-app:not(.dark-command-pos) .view_modal .table > tbody > tr > th,
  body.dark-command-app:not(.dark-command-pos) .view_modal table > tbody > tr > td,
  body.dark-command-app:not(.dark-command-pos) .view_modal .table > tbody > tr > td {
    background: #203650 !important;
    background-color: #203650 !important;
    border-color: rgba(139, 210, 245, 0.18) !important;
    color: #e7f1fb !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr:nth-child(even) > td,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr:nth-child(even) > td,
  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr:nth-child(even) > th,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr:nth-child(even) > th,
  body.dark-command-app:not(.dark-command-pos) .view_modal table > tbody > tr:nth-child(even) > td,
  body.dark-command-app:not(.dark-command-pos) .view_modal .table > tbody > tr:nth-child(even) > td {
    background: #243b55 !important;
    background-color: #243b55 !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr:hover > td,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr:hover > td,
  body.dark-command-app:not(.dark-command-pos) .modal table > tbody > tr:hover > th,
  body.dark-command-app:not(.dark-command-pos) .modal .table > tbody > tr:hover > th {
    background: #2c4865 !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal .bg-gray,
  body.dark-command-app:not(.dark-command-pos) .modal .well,
  body.dark-command-app:not(.dark-command-pos) .modal .well-sm,
  body.dark-command-app:not(.dark-command-pos) .modal p.well,
  body.dark-command-app:not(.dark-command-pos) .view_modal .bg-gray,
  body.dark-command-app:not(.dark-command-pos) .view_modal .well,
  body.dark-command-app:not(.dark-command-pos) .view_modal p.well {
    background: #243b55 !important;
    background-color: #243b55 !important;
    border: 1px solid rgba(139, 210, 245, 0.24) !important;
    color: #e7f1fb !important;
    box-shadow: none !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal .label.bg-gray,
  body.dark-command-app:not(.dark-command-pos) .modal .badge.bg-gray,
  body.dark-command-app:not(.dark-command-pos) .view_modal .label.bg-gray,
  body.dark-command-app:not(.dark-command-pos) .view_modal .badge.bg-gray {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #bae6fd !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .btn,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .btn,
  body.dark-command-app:not(.dark-command-pos) .modal .btn {
    border-radius: 10px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .btn-default,
  body.dark-command-app:not(.dark-command-pos) .btn-secondary,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .btn-default,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .btn-secondary {
    background: var(--sd-panel-2) !important;
    border-color: var(--sd-line-strong) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .btn-primary,
  body.dark-command-app:not(.dark-command-pos) .btn-info,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .btn-primary,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .btn-info,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-bg-primary-600,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-bg-blue-600 {
    background: linear-gradient(135deg, #2563eb, #0891b2) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .table-responsive,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_wrapper,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_scroll,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_scrollBody,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .DTFC_LeftWrapper,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .DTFC_RightWrapper,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .DTFC_LeftBodyWrapper,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .DTFC_RightBodyWrapper {
    background: var(--sd-panel) !important;
    border-color: var(--sd-line) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container table,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .table,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.table-bordered {
    background: var(--sd-panel) !important;
    border-color: var(--sd-line) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container table > thead > tr > th,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .table > thead > tr > th,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable thead th,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .DTFC_Cloned thead th {
    background: #203850 !important;
    border-color: var(--sd-line-strong) !important;
    color: #f8fbff !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container table > tbody > tr > td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .table > tbody > tr > td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable tbody td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .DTFC_Cloned tbody td {
    background: #14263b !important;
    border-color: rgba(139, 210, 245, 0.14) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container table > tbody > tr:nth-child(even) > td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .table-striped > tbody > tr:nth-of-type(odd) > td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable.display tbody tr.even > .sorting_1,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
    background: #172c43 !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container table > tbody > tr:hover > td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable.hover tbody tr:hover > td,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container table.dataTable.display tbody tr:hover > td {
    background: #213d59 !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_length,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_filter,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_info,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_paginate {
    color: var(--sd-muted) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_length select,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .dataTables_filter input {
    background: #102136 !important;
    border-color: var(--sd-line-strong) !important;
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .paginate_button,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .pagination > li > a,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .pagination > li > span {
    background: var(--sd-panel-2) !important;
    border-color: var(--sd-line) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .paginate_button.current,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .pagination > .active > a,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .pagination > .active > span {
    background: linear-gradient(135deg, #2563eb, #0891b2) !important;
    border-color: transparent !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .text-success,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-green-600 {
    color: var(--sd-green) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .text-danger,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .tw-text-red-600 {
    color: var(--sd-red) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .label,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .badge {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero {
    background:
      radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 36%),
      linear-gradient(135deg, #13243a 0%, #172a40 52%, #102136 100%) !important;
    padding: 12px 14px 18px !important;
    color: var(--sd-text) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-px-5,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .sm\:tw-flex {
    margin-bottom: 10px !important;
    padding: 14px !important;
    background: rgba(23, 42, 64, 0.94) !important;
    border: 1px solid var(--sd-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(4, 13, 25, 0.22) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1 {
    color: #ffffff !important;
    font-size: clamp(24px, 2.2vw, 36px) !important;
    line-height: 1.15 !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero h1::after {
    color: var(--sd-muted) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative > .tw-absolute,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative > .tw-absolute *,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative > .tw-absolute > div {
    display: none !important;
    visibility: hidden !important;
    background: transparent !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all {
    min-height: 92px !important;
    padding: 15px !important;
    background: linear-gradient(180deg, #1b3048 0%, #162a40 100%) !important;
    border: 1px solid var(--sd-line) !important;
    border-left: 4px solid rgba(56, 189, 248, 0.72) !important;
    border-radius: 14px !important;
    color: var(--sd-text) !important;
    box-shadow: 0 14px 30px rgba(4, 13, 25, 0.24) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all > div {
    gap: 12px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-rounded-full {
    background: rgba(56, 189, 248, 0.16) !important;
    border: 1px solid rgba(56, 189, 248, 0.26) !important;
    color: var(--sd-cyan) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid p:first-of-type {
    color: var(--sd-muted) !important;
    font-size: 12px !important;
    letter-spacing: 0.02em !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .tw-font-mono,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid .total_expense {
    color: #ffffff !important;
    font-size: 17px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main {
    background: transparent !important;
    padding-top: 14px !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main > .tw-grid > .tw-transition-all {
    background: linear-gradient(180deg, #172a40 0%, #13243a 100%) !important;
    border: 1px solid var(--sd-line) !important;
    border-radius: 14px !important;
    color: var(--sd-text-soft) !important;
    box-shadow: 0 16px 34px rgba(4, 13, 25, 0.22) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main h3 {
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .tw-h-100,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-container,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-root,
  body.dark-command-app:not(.dark-command-pos) .dc-dashboard-main .highcharts-plot-background {
    background: #13243a !important;
    border-color: rgba(139, 210, 245, 0.16) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .highcharts-background,
  body.dark-command-app:not(.dark-command-pos) .highcharts-plot-background,
  body.dark-command-app:not(.dark-command-pos) .highcharts-root rect.highcharts-background {
    fill: #13243a !important;
    background: #13243a !important;
  }

  body.dark-command-app:not(.dark-command-pos) .highcharts-grid-line {
    stroke: rgba(139, 210, 245, 0.16) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .highcharts-axis-line,
  body.dark-command-app:not(.dark-command-pos) .highcharts-tick {
    stroke: rgba(139, 210, 245, 0.3) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .highcharts-title,
  body.dark-command-app:not(.dark-command-pos) .highcharts-subtitle,
  body.dark-command-app:not(.dark-command-pos) .highcharts-axis-title,
  body.dark-command-app:not(.dark-command-pos) .highcharts-axis-labels text,
  body.dark-command-app:not(.dark-command-pos) .highcharts-legend-item text,
  body.dark-command-app:not(.dark-command-pos) .highcharts-data-label text,
  body.dark-command-app:not(.dark-command-pos) .highcharts-label text {
    color: var(--sd-text-soft) !important;
    fill: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) .contact-view-page {
    background: transparent !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .box.box-solid,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .nav-tabs-custom,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page #ledger_tab > .row {
    background: var(--sd-panel) !important;
    border-color: var(--sd-line) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .box.box-solid .box-body,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .tab-content,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .tab-pane {
    background: var(--sd-panel) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .profile-username,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page strong {
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .profile-username small,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page .text-muted,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page p {
    color: var(--sd-muted) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page #ledger_tab .btn-group > .btn,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page #ledger_tab .btn-sm {
    background: var(--sd-panel-2) !important;
    border-color: var(--sd-line-strong) !important;
    color: var(--sd-text-soft) !important;
  }

  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page #ledger_tab .btn-group > .btn.active,
  body.dark-command-app:not(.dark-command-pos) #scrollable-container .contact-view-page #ledger_tab .btn-group > .btn-primary {
    background: linear-gradient(135deg, #2563eb, #0891b2) !important;
    border-color: transparent !important;
    color: #ffffff !important;
  }

  body.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-track {
    background: #0f1d2c !important;
  }

  body.dark-command-app:not(.dark-command-pos) ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #0891b2) !important;
    border: 2px solid #0f1d2c !important;
  }

  body.dark-command-auth {
    background:
      radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.16), transparent 30%),
      linear-gradient(135deg, #102136 0%, #172a40 54%, #0f1d2c 100%) !important;
    color: #edf6ff !important;
  }

  body.dark-command-auth .dc-login-shell {
    min-height: 100vh !important;
    padding: clamp(18px, 4vw, 36px) !important;
    gap: clamp(18px, 4vw, 44px) !important;
  }

  body.dark-command-auth .dc-login-brand,
  body.dark-command-auth .dc-login-card,
  body.dark-command-auth .login-box,
  body.dark-command-auth .register-box {
    background: rgba(23, 42, 64, 0.92) !important;
    border: 1px solid rgba(139, 210, 245, 0.22) !important;
    color: #d8e8f7 !important;
    box-shadow: 0 22px 56px rgba(4, 13, 25, 0.34) !important;
  }

  body.dark-command-auth .dc-login-brand h1,
  body.dark-command-auth .dc-login-card h2,
  body.dark-command-auth .login-box-msg {
    color: #ffffff !important;
  }

  body.dark-command-auth .dc-login-copy,
  body.dark-command-auth .dc-login-card p {
    color: #9fb8cf !important;
  }

  body.dark-command-auth .tw-bg-white:not(.tw-rounded-full),
  body.dark-command-auth .tw-dw-bg-base-100,
  body.dark-command-auth .tw-shadow-sm,
  body.dark-command-auth .tw-rounded-xl:not(.tw-rounded-full),
  body.dark-command-auth .wizard > .content,
  body.dark-command-auth .wizard > .actions,
  body.dark-command-auth .wizard > .steps {
    background: rgba(23, 42, 64, 0.92) !important;
    border-color: rgba(139, 210, 245, 0.22) !important;
    color: #d8e8f7 !important;
    box-shadow: 0 22px 56px rgba(4, 13, 25, 0.28) !important;
  }

  body.dark-command-auth .tw-text-black,
  body.dark-command-auth .tw-text-gray-900,
  body.dark-command-auth .tw-text-gray-800,
  body.dark-command-auth h1,
  body.dark-command-auth h2,
  body.dark-command-auth h3,
  body.dark-command-auth label,
  body.dark-command-auth label span {
    color: #edf6ff !important;
  }

  body.dark-command-auth .tw-text-gray-500,
  body.dark-command-auth .tw-text-gray-600,
  body.dark-command-auth .help-block,
  body.dark-command-auth small {
    color: #9fb8cf !important;
  }

  body.dark-command-auth .dc-login-form .form-control,
  body.dark-command-auth .form-control,
  body.dark-command-auth input,
  body.dark-command-auth select {
    background: #102136 !important;
    border: 1px solid rgba(139, 210, 245, 0.34) !important;
    color: #edf6ff !important;
  }

  body.dark-command-auth .btn-primary,
  body.dark-command-auth .dc-login-form .btn {
    background: linear-gradient(135deg, #2563eb, #0891b2) !important;
    border-color: transparent !important;
    color: #ffffff !important;
  }

  @media (max-width: 1199px) {
    body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
    body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 767px) {
    body.dark-command-app:not(.dark-command-pos) .content-header,
    body.dark-command-app:not(.dark-command-pos) #scrollable-container > .tw-pb-6:not(.dc-dashboard-hero),
    body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero {
      margin: 0 !important;
      padding: 10px !important;
    }

    body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-px-5 > .tw-grid,
    body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero > .tw-relative .tw-grid {
      grid-template-columns: 1fr !important;
      gap: 10px !important;
    }

    body.dark-command-app:not(.dark-command-pos) .dc-dashboard-hero .tw-grid > .tw-transition-all {
      min-height: 82px !important;
      padding: 12px !important;
    }

    body.dark-command-app:not(.dark-command-pos) #scrollable-container .box,
    body.dark-command-app:not(.dark-command-pos) #scrollable-container .panel,
    body.dark-command-app:not(.dark-command-pos) #scrollable-container .nav-tabs-custom {
      border-radius: 12px !important;
    }

    body.dark-command-auth .dc-login-shell {
      padding: 16px !important;
    }
  }
}

/* Print must never inherit the dark shell, overlays, or muted receipt colors. */
@media print {
  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.dark-command-app:not(.dark-command-pos),
  body.dark-command-app:not(.dark-command-pos) #receipt_section,
  body.dark-command-app:not(.dark-command-pos) .print_section,
  body.dark-command-app:not(.dark-command-pos) .invoice-info,
  body.dark-command-app:not(.dark-command-pos) .invoice-info *,
  body.dark-command-app:not(.dark-command-pos) #receipt_section *,
  body.dark-command-app:not(.dark-command-pos) .print_section *,
  body.dark-command-app:not(.dark-command-pos) .table,
  body.dark-command-app:not(.dark-command-pos) .table *,
  body.dark-command-app:not(.dark-command-pos) .color-555,
  body.dark-command-app:not(.dark-command-pos) .color-555 *,
  body.dark-command-app:not(.dark-command-pos) .text-muted,
  body.dark-command-app:not(.dark-command-pos) .text-muted *,
  body.dark-command-app:not(.dark-command-pos) .text-muted-imp,
  body.dark-command-app:not(.dark-command-pos) .text-muted-imp *,
  body.dark-command-app:not(.dark-command-pos) .text-gray,
  body.dark-command-app:not(.dark-command-pos) .text-gray * {
    color: #000000 !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
  }

  body.dark-command-app:not(.dark-command-pos) img,
  body.dark-command-app:not(.dark-command-pos) #receipt_section img,
  body.dark-command-app:not(.dark-command-pos) .print_section img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  body.dark-command-app:not(.dark-command-pos) .modal-backdrop,
  body.dark-command-app:not(.dark-command-pos) .overlay,
  body.dark-command-app:not(.dark-command-pos) .dc-command-trigger,
  body.dark-command-app:not(.dark-command-pos) .dc-command-center,
  body.dark-command-app:not(.dark-command-pos) main > .no-print {
    display: none !important;
    opacity: 0 !important;
  }

  body.dark-command-app:not(.dark-command-pos) #receipt_section,
  body.dark-command-app:not(.dark-command-pos) .print_section {
    background: #ffffff !important;
    box-shadow: none !important;
  }
}
