/**
 * Dentixa Premium Theme Pack ? visual layer for Phase 1 scopes only.
 * Source: Dentixa_All_Designs_Complete (design-system.html + workspace.html).
 * Activated via html[data-app-theme="dentixa-premium"] / .theme-pack-premium.
 * Does not alter Classic appearance or business logic.
 */

html[data-app-theme='dentixa-premium'], 
html.theme-pack-premium {
  --dx-theme-pack: dentixa-premium;

  /* Flagship marketing light DNA (dentixa-system.css [data-theme=light]) */
  --dx-bg: #f5f5f7;
  --dx-panel: #ffffff;
  --dx-soft: #eef0f3;
  --dx-panel-2: #f7f8fa;
  --dx-line: rgba(139, 147, 158, 0.42);
  --dx-line-subtle: rgba(139, 147, 158, 0.28);
  --dx-text: #1d1d1f;
  --dx-muted: #8b939e;
  --dx-lime: #9fca3a;
  --dx-lime-deep: #5f8a0e;
  --dx-lime-bright: #c8f04a;
  --dx-lime-soft: rgba(159, 202, 58, 0.12);
  --dx-lime-glow: rgba(159, 202, 58, 0.12);
  --dx-success: #34c759;
  --dx-info: #64d2ff;
  --dx-warning: #ff9f0a;
  --dx-danger: #ff453a;
  --dx-metal: #8b939e;

  /* Marketing aliases ? same names as flagship HTML */
  --ink: #f5f5f7;
  --bg: var(--dx-bg);
  --surface: var(--dx-panel);
  --surface-2: var(--dx-soft);
  --text: var(--dx-text);
  --text-secondary: var(--dx-muted);
  --muted: var(--dx-muted);
  --line: var(--dx-line);
  --lime: var(--dx-lime);
  --lime-soft: var(--dx-lime-soft);
  --lime-glow: var(--dx-lime-glow);
  --metal: var(--dx-metal);
  --panel: var(--dx-panel);
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);

  --dx-font-ui: var(--font-num), var(--font-cairo), -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  --dx-font-display: var(--font-num), var(--font-cairo), -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --dx-font-mono: var(--font-num), var(--font-dm-mono), ui-monospace, SFMono-Regular, Menlo, monospace;

  --dx-radius-sm: 8px;
  --dx-radius-md: 12px;
  --dx-radius-lg: 16px;
  --dx-shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.08);
  --dx-shadow-lift: 0 18px 50px rgba(0, 0, 0, 0.08);

  /* Polish Pass ? Apple/Stripe density scale */
  --dx-space-1: 0.25rem;
  --dx-space-2: 0.5rem;
  --dx-space-3: 0.75rem;
  --dx-space-4: 1rem;
  --dx-space-5: 1.25rem;
  --dx-space-6: 1.5rem;
  --dx-space-7: 2rem;
  --dx-space-8: 2.5rem;
  /* Calm Command baseline — readable on phone; dashboard/FCC may raise further */
  --dx-type-eyebrow: 0.75rem;
  --dx-type-caption: 0.8125rem;
  --dx-type-body: 0.9375rem;
  --dx-type-body-lg: 1rem;
  --dx-type-metric: clamp(1.375rem, 2.2vw, 1.75rem);
  --dx-type-section: clamp(1rem, 1.4vw, 1.125rem);
  --dx-type-hero: clamp(1.875rem, 4vw, 2.25rem);
  --dx-row-h: 2.375rem;
  --dx-icon-sm: 0.875rem;
  --dx-icon-md: 1rem;
  --dx-icon-lg: 1.125rem;
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: var(--dx-lime-soft);
  --dx-room-grid-opacity: 0.045;

  --dx-crystal: color-mix(in srgb, #ffffff 82%, transparent);
  --dx-crystal-border: rgba(139, 147, 158, 0.42);

  --brand-lime: #7aab12;
  --brand-lime-deep: #5f8a0e;
  --apple-primary: #7aab12;
  --apple-primary-hover: #c8f04a;
  --apple-accent: #7aab12;
  --color-primary: #7aab12;
  --color-accent: #c8f04a;
  --color-surface: var(--dx-bg);
  --apple-surface: var(--dx-bg);
  --color-card-bg: var(--dx-crystal);
  --color-card-border: var(--dx-crystal-border);
  --apple-glass: color-mix(in srgb, #ffffff 82%, transparent);
  --apple-shadow: rgba(0, 0, 0, 0.08);
  --color-text: var(--dx-text);
  --color-text-muted: var(--dx-muted);
}

html.dark[data-app-theme='dentixa-premium'], 
html.dark.theme-pack-premium {
  /* Canonical DNA — Graphite + Silver + Lime (Wave A) */
  --dx-bg: #050505;
  --dx-panel: #111314;
  --dx-soft: #181b1c;
  --dx-panel-2: #1c1f26;
  --dx-line: #3a4047;
  --dx-line-subtle: #424245;
  --dx-text: #f5f5f7;
  --dx-muted: #8b939e;
  --dx-lime: #9fca3a;
  --dx-lime-deep: #7aab12;
  --dx-lime-bright: #e8ff9a;
  --dx-lime-soft: rgba(159, 202, 58, 0.12);
  --dx-lime-glow: rgba(159, 202, 58, 0.12);
  --dx-metal: #8b939e;

  --ink: #000000;
  --bg: var(--dx-bg);
  --surface: var(--dx-panel);
  --surface-2: var(--dx-soft);
  --text: var(--dx-text);
  --text-secondary: var(--dx-muted);
  --muted: var(--dx-muted);
  --line: var(--dx-line);
  --lime: var(--dx-lime);
  --lime-soft: var(--dx-lime-soft);
  --lime-glow: var(--dx-lime-glow);
  --metal: var(--dx-metal);
  --panel: var(--dx-panel);

  --dx-crystal: color-mix(in srgb, #111314 88%, transparent);
  --dx-crystal-border: #3a4047;
  --color-surface: var(--dx-bg);
  --apple-surface: var(--dx-bg);
  --brand-lime: #c8f04a;
  --brand-lime-deep: #7aab12;
  --apple-primary: #c8f04a;
  --apple-primary-hover: #e8ff9a;
  --apple-glass: color-mix(in srgb, #111314 82%, transparent);
  --apple-shadow: rgba(0, 0, 0, 0.55);
  --dx-shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.55);
  --dx-shadow-lift: 0 18px 50px rgba(0, 0, 0, 0.45);
  --color-text: var(--dx-text);
  --color-text-muted: var(--dx-muted);
  --color-primary: #c8f04a;
  --color-accent: #c8f04a;
}
html[data-app-theme='dentixa-premium'] /* ?? App Shell / Nav ?? */
body, 
{
  font-family: var(--dx-font-ui) !important;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  background-color: var(--dx-bg);
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell{
  background-color: var(--dx-bg) !important;
  background-image:
    radial-gradient(ellipse 70% 45% at 78% -10%, var(--dx-lime-soft), transparent 55%),
    radial-gradient(ellipse 50% 35% at 8% 100%, color-mix(in srgb, var(--dx-lime) 8%, transparent), transparent 50%);
  color: var(--dx-text);
  transition:
    background-color 0.85s var(--ease-apple),
    color 0.85s var(--ease-apple);
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav.app-top-navigation, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav{
  min-height: var(--dx-shell-header-mobile);
  border-color: var(--dx-crystal-border) !important;
  border-bottom-width: 1px !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 -1px 0 color-mix(in srgb, var(--dx-lime) 45%, transparent) !important;
  background-color: var(--dx-crystal) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transition:
    background-color 0.85s var(--ease-apple),
    border-color 0.45s var(--ease-apple),
    box-shadow 0.45s var(--ease-apple);
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav.app-top-navigation,
  .dx-scope-app-shell-nav {
    min-height: var(--dx-shell-header-desktop);
  }
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell .dx-shell-surface{
  border: 1px solid var(--dx-crystal-border) !important;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--dx-panel) 92%, var(--dx-lime) 8%),
      var(--dx-panel)
    ) !important;
  box-shadow:
    var(--dx-shadow-soft),
    0 0 0 1px color-mix(in srgb, var(--dx-lime) 10%, transparent),
    0 0 40px var(--dx-lime-soft) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  isolation: isolate;
}
html[data-app-theme='dentixa-premium'] /* Marketing-style lime identity strip */
.dx-scope-app-shell .dx-shell-surface::before{
  content: '';
  display: block;
  height: 2px;
  margin: -0.75rem -0.75rem 0.85rem;
  border-radius: var(--dx-radius-lg) var(--dx-radius-lg) 0 0;
  background: linear-gradient(
    90deg,
    var(--dx-lime) 0%,
    color-mix(in srgb, var(--dx-lime-bright) 70%, transparent) 42%,
    transparent 100%
  );
  box-shadow: 0 0 14px var(--dx-lime-glow);
}

@media (min-width: 640px) {
  html[data-app-theme='dentixa-premium'] .dx-scope-app-shell .dx-shell-surface::before {
    margin: -1rem -1rem 1rem;
  }
}
html[data-app-theme='dentixa-premium'] .bottom-nav{
  background: var(--dx-crystal) !important;
  border-top-color: var(--dx-crystal-border) !important;
  box-shadow: 0 -8px 28px rgba(10, 13, 20, 0.08);
}
html[data-app-theme='dentixa-premium'] .bottom-nav-item.active{
  color: var(--dx-lime-text) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .bg-primary-50, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .bg-primary-900\/20{
  background-color: color-mix(in srgb, var(--dx-lime) 12%, transparent) !important;
  color: var(--dx-lime-text) !important;
  border-color: color-mix(in srgb, var(--dx-lime) 35%, transparent) !important;
}
html[data-app-theme='dentixa-premium'] /* Wave B — shared Button */
[data-dx-ui='button'][data-dx-variant='primary']{
  background-color: var(--dx-lime) !important;
  border: 1px solid var(--dx-lime) !important;
  color: var(--brand-kohl, #0a0d14) !important;
  box-shadow: none !important;
  border-radius: var(--dx-radius-sm);
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']:hover{
  background-color: var(--dx-lime-bright) !important;
  border-color: var(--dx-lime-bright) !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button']:focus-visible{
  outline: none;
  box-shadow: 0 0 0 1px var(--dx-focus-ring) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='danger']{
  background-color: var(--dx-panel) !important;
  border: 1px solid var(--dx-danger) !important;
  color: var(--dx-danger) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='success']{
  background-color: var(--dx-panel) !important;
  border: 1px solid var(--dx-success) !important;
  color: var(--dx-success) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='warning']{
  background-color: var(--dx-panel) !important;
  border: 1px solid var(--dx-warning) !important;
  color: var(--dx-warning) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='outline'], html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='ghost']{
  border-radius: var(--dx-radius-sm);
  border-color: var(--dx-line);
  background: transparent !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='secondary']{
  background: var(--dx-soft) !important;
  color: var(--dx-text) !important;
  border: 1px solid var(--dx-line);
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='badge']{
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  background: var(--dx-panel) !important;
  border: 1px solid var(--dx-line) !important;
  color: var(--dx-muted) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='badge'][data-dx-variant='primary']{
  background: var(--dx-panel) !important;
  color: var(--dx-lime-text) !important;
  border-color: var(--dx-lime) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='badge'][data-dx-variant='success']{
  background: var(--dx-panel) !important;
  color: var(--dx-success) !important;
  border-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='badge'][data-dx-variant='warning']{
  background: var(--dx-panel) !important;
  color: var(--dx-warning) !important;
  border-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='badge'][data-dx-variant='danger']{
  background: var(--dx-panel) !important;
  color: var(--dx-danger) !important;
  border-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='badge'][data-dx-variant='info']{
  background: var(--dx-panel) !important;
  color: var(--dx-info) !important;
  border-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'].btn-3d{
  transform: none;
  box-shadow: none;
}
html[data-app-theme='dentixa-premium'] /* ?? Dashboard (calm productivity, html[data-app-theme='dentixa-premium'] not marketing heroes) ?? */
.dx-scope-dashboard{
  font-family: var(--dx-font-ui);
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard > header{
  border-radius: var(--dx-radius-lg);
  border: 1px solid var(--dx-crystal-border) !important;
  border-bottom-width: 1px !important;
  background: linear-gradient(135deg, var(--dx-panel), var(--dx-soft)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard > header h1{
  letter-spacing: -0.03em;
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard a.group, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .rounded-xl.border-2, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .rounded-2xl.border-2{
  border-width: 1px !important;
  border-color: var(--dx-line) !important;
  background: linear-gradient(135deg, var(--dx-panel), var(--dx-soft)) !important;
  box-shadow: none;
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard a.group:hover, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .rounded-xl.border-2:hover, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .rounded-2xl.border-2:hover{
  border-color: color-mix(in srgb, var(--dx-lime) 40%, var(--dx-line)) !important;
  box-shadow: var(--dx-shadow-lift);
  transform: translateY(-2px);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .tabular-nums{
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-primary-50, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-primary-100{
  background-color: color-mix(in srgb, var(--dx-lime) 14%, transparent) !important;
  border-color: color-mix(in srgb, var(--dx-lime) 28%, transparent) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-white\/80, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-white\/90, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-white\/95{
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard .bg-dark-900 {
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard table{
  border-color: var(--dx-line);
  border-radius: var(--dx-radius-md);
  overflow: hidden;
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard th{
  color: var(--dx-muted);
  font-weight: 500;
  background: color-mix(in srgb, var(--dx-soft) 80%, transparent);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard td{
  border-color: var(--dx-line);
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] /* ?? Orders ?? */
.dx-scope-orders{
  background-color: transparent;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders > div:first-child{
  border-radius: 0;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders h1{
  background: none !important;
  -webkit-text-fill-color: unset !important;
  color: var(--dx-text) !important;
  letter-spacing: -0.03em;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table){
  border-color: var(--dx-line);
  border-radius: var(--dx-radius-md);
  overflow: hidden;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) th{
  color: var(--dx-muted);
  font-weight: 500;
  background: color-mix(in srgb, var(--dx-soft) 80%, transparent);
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) td{
  border-color: var(--dx-line);
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] /* ?? Accounting Workspace ?? */
.dx-scope-accounting-workspace, html[data-app-theme='dentixa-premium'] .accounting-workspace{
  color: var(--dx-text);
  /* Quiet stage ? align with #f5f5f7 DNA; avoid chartreuse wash */
  background-image: linear-gradient(
    165deg,
    #f5f5f7 0%,
    #f3f5f0 42%,
    #f5f5f7 72%,
    #eef1f4 100%
  );
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace, 
html.dark[data-app-theme='dentixa-premium'] .accounting-workspace {
  background-image: linear-gradient(
    165deg,
    #0a0d0e 0%,
    #10180c 40%,
    #0c1209 70%,
    #0a0d14 100%
  );
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-white\/80, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-white\/90, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-white\/95{
  background-color: color-mix(in srgb, var(--dx-panel) 92%, transparent) !important;
  border-color: var(--dx-crystal-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-dark-900 {
  background-color: color-mix(in srgb, var(--dx-panel) 88%, transparent) !important;
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table th{
  color: var(--dx-muted);
  font-weight: 500;
  background: color-mix(in srgb, var(--dx-soft) 70%, transparent);
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .tabular-nums, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace td{
  font-variant-numeric: tabular-nums;
}

/* ?? Access / Login (access.html reference) ?? */
/* .dx-access-premium (globe gate) is locked to ink in dentixa-access-login.css */
.dx-scope-access:not(.dx-access-premium) {
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--dx-lime) 14%, transparent), transparent 30%),
    var(--dx-bg) !important;
  color: var(--dx-text);
}

.dx-scope-access .backdrop-blur-2xl {
  background: color-mix(in srgb, var(--dx-panel) 88%, transparent) !important;
  border-color: var(--dx-crystal-border) !important;
  border-radius: var(--dx-radius-lg) !important;
  box-shadow: var(--dx-shadow-soft);
}

.dx-scope-access input:not([type='checkbox']):not([type='radio']) {
  border-radius: var(--dx-radius-sm);
  border-color: var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 70%, transparent);
}

.dx-scope-access input:focus {
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-lime) 22%, transparent);
  outline: none;
}

.dx-scope-access button[type='submit'] {
  background-color: var(--dx-lime) !important;
  color: #10150d !important;
  border-radius: var(--dx-radius-sm);
  font-weight: 800;
}
html[data-app-theme='dentixa-premium'] /* Shared radius / shadow remaps */
.dx-scope-app-shell .rounded-lg, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .rounded-lg, html[data-app-theme='dentixa-premium'] .dx-scope-orders .rounded-lg, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .rounded-lg{
  border-radius: var(--dx-radius-md);
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-orders .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .rounded-xl{
  border-radius: var(--dx-radius-lg);
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell .shadow-sm, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .shadow-sm, html[data-app-theme='dentixa-premium'] .dx-scope-orders .shadow-sm, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .shadow-sm{
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] /* Quiet premium fields */
.dx-scope-dashboard input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-orders input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-dashboard select, html[data-app-theme='dentixa-premium'] .dx-scope-orders select, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace select, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav input:not([type='checkbox']):not([type='radio']){
  border-radius: var(--dx-radius-sm);
  border-color: var(--dx-line);
  transition:
    border-color var(--dx-motion-fast) var(--dx-ease-standard),
    box-shadow var(--dx-motion-fast) var(--dx-ease-standard);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-orders input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard select:focus, html[data-app-theme='dentixa-premium'] .dx-scope-orders select:focus, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace select:focus, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav input:focus{
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-lime) 22%, transparent);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-scope {
    transition: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-scope-dashboard a.group:hover {
    transform: none;
  }
}
html[data-app-theme='dentixa-premium'] /* ?? Design-system chrome (Batch 01) ?? */
.dx-eyebrow{
  color: var(--dx-lime-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[data-app-theme='dentixa-premium'] .dx-page-head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 0.25rem 0 0.35rem;
  border-bottom: 1px solid var(--dx-line);
  margin-bottom: 0.25rem;
}
html[data-app-theme='dentixa-premium'] .dx-page-title{
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dx-text);
  line-height: 1.15;
}
html[data-app-theme='dentixa-premium'] .dx-page-desc{
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: var(--dx-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
html[data-app-theme='dentixa-premium'] .dx-page-head__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
html[data-app-theme='dentixa-premium'] .dx-panel{
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-lg);
  background: linear-gradient(160deg, var(--dx-panel), color-mix(in srgb, var(--dx-soft) 35%, var(--dx-panel)));
  box-shadow: var(--dx-shadow-soft);
  padding: 1.15rem 1.2rem 1.25rem;
}
html[data-app-theme='dentixa-premium'] .dx-panel__title{
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--dx-line);
  background: var(--dx-panel);
  color: var(--dx-muted);
}
html[data-app-theme='dentixa-premium'] .dx-badge--lime{
  background: var(--dx-panel);
  color: var(--dx-lime-text);
  border-color: var(--dx-lime);
}
html[data-app-theme='dentixa-premium'] .dx-badge--success{
  background: var(--dx-panel);
  color: var(--dx-success);
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-badge--info{
  background: var(--dx-panel);
  color: var(--dx-info);
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-badge--warning{
  background: var(--dx-panel);
  color: var(--dx-warning);
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-badge--danger{
  background: var(--dx-panel);
  color: var(--dx-danger);
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-badge--muted{
  background: var(--dx-panel);
  color: var(--dx-muted);
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] /* Dashboard work queue */
.dx-premium-dashboard .dx-dash-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 0.9rem;
}

@media (max-width: 960px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-grid {
    grid-template-columns: 1fr;
  }
}
html[data-app-theme='dentixa-premium'] .dx-queue-row{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--dx-line);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dx-motion-fast, 140ms) ease;
}
html[data-app-theme='dentixa-premium'] .dx-queue-row:last-child{
  border-bottom: 0;
}
html[data-app-theme='dentixa-premium'] .dx-queue-row:hover{
  background: color-mix(in srgb, var(--dx-lime) 6%, transparent);
  border-radius: var(--dx-radius-sm);
}
html[data-app-theme='dentixa-premium'] .dx-queue-avatar{
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: color-mix(in srgb, var(--dx-lime) 14%, var(--dx-soft));
  color: color-mix(in srgb, var(--dx-lime-text) 55%, var(--dx-text));
  border: 1px solid color-mix(in srgb, var(--dx-lime) 28%, transparent);
}
html[data-app-theme='dentixa-premium'] .dx-queue-title{
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-queue-detail{
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--dx-muted);
}
html[data-app-theme='dentixa-premium'] .dx-kpis{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
html[data-app-theme='dentixa-premium'] .dx-kpi{
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-md);
  background: color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel));
  padding: 0.7rem 0.75rem;
}
html[data-app-theme='dentixa-premium'] .dx-kpi span{
  display: block;
  font-size: 0.68rem;
  color: var(--dx-muted);
}
html[data-app-theme='dentixa-premium'] .dx-kpi b{
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-pulse-chart{
  margin-top: 0.9rem;
  height: 4.5rem;
  border-radius: var(--dx-radius-md);
  border: 1px solid var(--dx-line);
  background:
    linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--dx-lime) 12%, transparent)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      color-mix(in srgb, var(--dx-line) 80%, transparent) 18px,
      color-mix(in srgb, var(--dx-line) 80%, transparent) 19px
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--dx-lime) 22%, transparent),
      transparent 55%
    );
}
html[data-app-theme='dentixa-premium'] /* Orders Data Grid */
.dx-data-grid-shell, html[data-app-theme='dentixa-premium'] .dx-data-grid{
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell > .space-y-6, html[data-app-theme='dentixa-premium'] .dx-data-grid.space-y-6{
  gap: 0.85rem;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) thead th, html[data-app-theme='dentixa-premium'] .dx-data-grid table thead th{
  background: var(--dx-panel) !important;
  color: var(--dx-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-bottom: 1px solid var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) tbody td, html[data-app-theme='dentixa-premium'] .dx-data-grid table tbody td{
  font-variant-numeric: tabular-nums;
  border-bottom-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders .bg-gradient-to-r.from-primary-600{
  background-image: none !important;
  background-color: var(--dx-lime) !important;
  color: #10150d !important;
  box-shadow: none !important;
  transform: none !important;
}
html[data-app-theme='dentixa-premium'] /* Accounting denser matte panels */
.dx-premium-accounting{
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--dx-lime) 10%, transparent), transparent 42%),
    var(--dx-bg) !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .sticky.top-0{
  border-bottom-color: color-mix(in srgb, var(--dx-lime) 28%, transparent) !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table th{
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)){
  color: var(--dx-muted) !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .tabular-nums, html[data-app-theme='dentixa-premium'] .dx-premium-accounting td.font-mono{
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [class*='rounded-2xl'], html[data-app-theme='dentixa-premium'] .dx-premium-accounting [class*='rounded-xl']{
  border-radius: var(--dx-radius-md) !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .shadow-lg, html[data-app-theme='dentixa-premium'] .dx-premium-accounting .shadow-xl{
  box-shadow: var(--dx-shadow-soft) !important;
}

html[data-app-theme='dentixa-premium'] /* ?? Full-app Premium surfaces (Batch 02+) ?? */
.dx-premium-surface{
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface > .dx-page-head{
  margin-bottom: 1rem;
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail, html[data-app-theme='dentixa-premium'] .dx-scope-production, html[data-app-theme='dentixa-premium'] .dx-scope-inventory, html[data-app-theme='dentixa-premium'] .dx-scope-reports, html[data-app-theme='dentixa-premium'] .dx-scope-advisor, html[data-app-theme='dentixa-premium'] .dx-scope-crm, html[data-app-theme='dentixa-premium'] .dx-scope-appointments, html[data-app-theme='dentixa-premium'] .dx-scope-delivery, html[data-app-theme='dentixa-premium'] .dx-scope-portal, html[data-app-theme='dentixa-premium'] .dx-scope-settings, html[data-app-theme='dentixa-premium'] .dx-scope-super-admin, html[data-app-theme='dentixa-premium'] .dx-scope-notifications, html[data-app-theme='dentixa-premium'] .dx-scope-profile{
  --tw-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-order-detail .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-scope-production .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-inventory .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-reports .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-reports .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-scope-advisor .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-crm .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-appointments .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-delivery .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-portal .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-settings .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .rounded-xl{
  border-radius: var(--dx-radius-md) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-production .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-inventory .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-reports .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-advisor .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-crm .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-appointments .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-delivery .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-portal .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-settings .bg-white{
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line) !important;
  box-shadow: var(--dx-shadow-soft);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-order-detail .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-production .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-inventory .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-reports .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-advisor .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-settings .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-portal .bg-dark-800 {
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail table, html[data-app-theme='dentixa-premium'] .dx-scope-production table, html[data-app-theme='dentixa-premium'] .dx-scope-inventory table, html[data-app-theme='dentixa-premium'] .dx-scope-reports table, html[data-app-theme='dentixa-premium'] .dx-scope-crm table, html[data-app-theme='dentixa-premium'] .dx-scope-delivery table, html[data-app-theme='dentixa-premium'] .dx-scope-portal table, html[data-app-theme='dentixa-premium'] .dx-scope-settings table, html[data-app-theme='dentixa-premium'] .dx-scope-super-admin table{
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
/* Soft mix for order-detail / portal only — Wave H reports use Graphite below */
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail th,
html[data-app-theme='dentixa-premium'] .dx-scope-portal th,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin th {
  background: color-mix(in srgb, var(--dx-soft) 70%, var(--dx-panel)) !important;
  color: var(--dx-muted) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--dx-line) !important;
}
/* Inventory th handled in Wave F D.2 block below (no olive/lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-order-detail select, html[data-app-theme='dentixa-premium'] .dx-scope-order-detail textarea, html[data-app-theme='dentixa-premium'] .dx-scope-production input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-production select, html[data-app-theme='dentixa-premium'] .dx-scope-inventory input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-inventory select, html[data-app-theme='dentixa-premium'] .dx-scope-reports input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-reports select, html[data-app-theme='dentixa-premium'] .dx-scope-advisor input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-crm input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-crm select, html[data-app-theme='dentixa-premium'] .dx-scope-settings input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-settings select, html[data-app-theme='dentixa-premium'] .dx-scope-portal input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-super-admin input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-super-admin select{
  border-radius: var(--dx-radius-sm);
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-order-detail select:focus, html[data-app-theme='dentixa-premium'] .dx-scope-production input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-inventory input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-reports input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-crm input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-settings input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-portal input:focus, html[data-app-theme='dentixa-premium'] .dx-scope-super-admin input:focus{
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-lime) 22%, transparent);
  outline: none;
}
html[data-app-theme='dentixa-premium'] /* Portal panels (access.html portal direction) */
.dx-scope-portal{
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--dx-lime) 10%, transparent), transparent 34%),
    var(--dx-bg);
  min-height: 100%;
}
html[data-app-theme='dentixa-premium'] .dx-scope-portal .dx-portal-panel, html[data-app-theme='dentixa-premium'] .dx-scope-portal article, html[data-app-theme='dentixa-premium'] .dx-scope-portal .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-scope-portal .rounded-xl{
  border: 1px solid var(--dx-line) !important;
  background: linear-gradient(160deg, var(--dx-panel), color-mix(in srgb, var(--dx-soft) 40%, var(--dx-panel))) !important;
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin{
  background: var(--dx-bg) !important;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin aside.sa-sidebar{
  background: #0a0d14 !important;
  border-color: rgba(139, 147, 158, 0.35) !important;
  color: #f5f5f7 !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .dx-sa-header, html[data-app-theme='dentixa-premium'] .dx-scope-super-admin > div > div > header,
html[data-app-theme='dentixa-premium'] .sa-shell > div > header{
  border-color: var(--dx-line) !important;
  background: var(--dx-panel) !important;
  backdrop-filter: none;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] /* Advisor side-panel feel */
.dx-scope-advisor{
  background:
    radial-gradient(ellipse at top left, color-mix(in srgb, var(--dx-lime) 8%, transparent), transparent 40%),
    var(--dx-bg);
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports .dx-page-title, html[data-app-theme='dentixa-premium'] .dx-scope-advisor .dx-page-title{
  letter-spacing: -0.045em;
}
html[data-app-theme='dentixa-premium'] /* Quiet gradient heroes on migrated ops pages */
.dx-scope-production .bg-gradient-to-r, html[data-app-theme='dentixa-premium'] .dx-scope-inventory .bg-gradient-to-r.from-primary-600, html[data-app-theme='dentixa-premium'] .dx-scope-crm .bg-gradient-to-r.from-primary-600{
  background-image: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-production [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-inventory [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-reports [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-crm [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-portal [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-settings [data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [data-dx-ui='button'][data-dx-variant='primary']{
  background: var(--dx-lime) !important;
  color: #10150d !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] /* ?? Design-system: Drawer / Timeline / Command palette ?? */
.dx-drawer{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dx-panel);
  border-inline-start: 1px solid var(--dx-line);
  box-shadow: var(--dx-shadow-lift);
}
html[data-app-theme='dentixa-premium'] .dx-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-drawer__title{
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-drawer__close{
  width: 2rem;
  height: 2rem;
  border-radius: var(--dx-radius-sm);
  border: 1px solid var(--dx-line);
  background: var(--dx-soft);
  color: var(--dx-muted);
  font-size: 1.1rem;
  line-height: 1;
}
html[data-app-theme='dentixa-premium'] .dx-drawer__body{
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
}
html[data-app-theme='dentixa-premium'] .dx-drawer__footer{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel));
}
html[data-app-theme='dentixa-premium'] .dx-timeline-item{
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-timeline-item:last-child{
  border-bottom: 0;
}
html[data-app-theme='dentixa-premium'] .dx-timeline-dot{
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--dx-muted);
  flex-shrink: 0;
}
html[data-app-theme='dentixa-premium'] .dx-timeline-dot--lime{ background: var(--dx-lime); }
html[data-app-theme='dentixa-premium'] .dx-timeline-dot--success{ background: var(--dx-success); }
html[data-app-theme='dentixa-premium'] .dx-timeline-dot--warning{ background: var(--dx-warning); }
html[data-app-theme='dentixa-premium'] .dx-timeline-dot--danger{ background: var(--dx-danger); }
html[data-app-theme='dentixa-premium'] .dx-timeline-dot--info{ background: var(--dx-info); }
html[data-app-theme='dentixa-premium'] .dx-timeline-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
html[data-app-theme='dentixa-premium'] .dx-timeline-title{
  font-size: 0.8rem;
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-timeline-detail{
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--dx-muted);
}
html[data-app-theme='dentixa-premium'] .dx-cmd-palette, html[data-app-theme='dentixa-premium'] [data-dx-scope='cmd-palette']{
  --dx-cmd-bg: color-mix(in srgb, var(--dx-panel) 92%, transparent);
}
html[data-app-theme='dentixa-premium'] .dx-cmd-palette input, html[data-app-theme='dentixa-premium'] [data-dx-scope='cmd-palette'] input{
  border-color: var(--dx-line) !important;
  border-radius: var(--dx-radius-sm) !important;
}
html[data-app-theme='dentixa-premium'] .dx-cmd-palette input:focus, html[data-app-theme='dentixa-premium'] [data-dx-scope='cmd-palette'] input:focus{
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-lime) 20%, transparent) !important;
}
html[data-app-theme='dentixa-premium'] /* Order detail denser layout */
.dx-scope-order-detail .dx-order-detail-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: 0.55rem;
  align-items: start;
}

@media (max-width: 1024px) {
  html[data-app-theme='dentixa-premium'] .dx-scope-order-detail .dx-order-detail-grid {
    grid-template-columns: 1fr;
  }
}
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail .dx-panel{
  margin-bottom: 0;
}
html[data-app-theme='dentixa-premium'] /* Shell crystal denser strip */
.dx-scope-app-shell-nav.app-top-navigation{
  border-bottom-color: color-mix(in srgb, var(--dx-lime) 22%, var(--dx-line)) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .text-primary-700, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .text-primary-400{
  color: color-mix(in srgb, var(--dx-lime-text) 55%, var(--dx-text)) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell .dx-shell-surface{
  border-color: var(--dx-crystal-border) !important;
}
html[data-app-theme='dentixa-premium'] /* Portal queue rows closer to access.html */
.dx-scope-portal .dx-queue-row, html[data-app-theme='dentixa-premium'] .dx-scope-delivery .dx-queue-row{
  border-bottom: 1px solid var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-scope-notifications, html[data-app-theme='dentixa-premium'] .dx-scope-profile{
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-scope-notifications .bg-white, html[data-app-theme='dentixa-premium'] .dx-scope-profile .bg-white{
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line) !important;
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] /* ?? Complete Handoff v2: auth-states / system-states / SA / print ?? */
.dx-auth-states{
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--dx-lime) 14%, transparent), transparent 30%),
    #090c0d !important;
}
html[data-app-theme='dentixa-premium'] .dx-auth-card{
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, #161d1f, #101415);
  box-shadow: 0 35px 85px #000;
  color: #f2f6f1;
  padding: 2rem;
}
html[data-app-theme='dentixa-premium'] .dx-auth-success{
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--dx-lime) 28%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--dx-lime) 6%, transparent);
  color: #dce8d8;
}
html[data-app-theme='dentixa-premium'] .dx-auth-notice{
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--dx-warning) 28%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--dx-warning) 8%, transparent);
  color: #f1d494;
}
html[data-app-theme='dentixa-premium'] .dx-sa-kpi{
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-md) !important;
  background: linear-gradient(135deg, #161d1f, #101415) !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .dx-sa-kpi b, html[data-app-theme='dentixa-premium'] .dx-sa-kpi .text-\[var\(--dx-lime\)\]{
  color: var(--dx-lime);
}
html[data-app-theme='dentixa-premium'] /* System states (shared empty/loading/error) */
[data-dx-state='loading'] .border-primary-600, html[data-app-theme='dentixa-premium'] [data-dx-state='loading'] .border-b-2{
  border-color: var(--dx-lime) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-state='empty'], html[data-app-theme='dentixa-premium'] [data-dx-state='error'], html[data-app-theme='dentixa-premium'] [data-dx-state='permission']{
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-lg);
  background: color-mix(in srgb, var(--dx-panel) 92%, transparent);
  padding: 1.5rem;
}
/* Print surfaces: brand tokens only. (A stray selector used to precede this at-rule, which made the whole print block invalid CSS.) */
@media print{
  /* Paper is always white with dark ink, whatever the app mode (named colours: no new hex/rgb literals) */
  html.dark[data-app-theme='dentixa-premium'],
  html.dark[data-app-theme='dentixa-premium'] body,
  html.dark[data-app-theme='dentixa-premium'] .dx-print-sheet {
    background: white;
    color: black;
    color-scheme: light;
    --dx-bg: white;
    --dx-panel: white;
    --dx-soft: whitesmoke;
    --dx-panel-2: whitesmoke;
    --dx-line: lightgray;
    --dx-text: black;
    --dx-muted: dimgray;
  }
  html.dark[data-app-theme='dentixa-premium'] .dx-print-sheet .bg-white {
    background-color: white;
  }
  html[data-app-theme='dentixa-premium'] .dx-print-sheet {
    color: #111612;
  }

  html[data-app-theme='dentixa-premium'] .dx-print-sheet .dx-print-accent {
    color: #4f7309;
  }
}
html[data-app-theme='dentixa-premium'] .dx-print-sheet{
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-md);
  background: var(--dx-panel);
  padding: 1.25rem;
}
html[data-app-theme='dentixa-premium'] .dx-print-sheet .dx-eyebrow{
  margin-bottom: 0.35rem;
}
html[data-app-theme='dentixa-premium'] /* Settings IA denser panels from index.html reference */
.dx-scope-settings .dx-page-head{
  margin-bottom: 1.1rem;
}
html[data-app-theme='dentixa-premium'] .dx-scope-settings nav button, html[data-app-theme='dentixa-premium'] .dx-scope-settings [role='tab']{
  border-radius: var(--dx-radius-sm);
}
html[data-app-theme='dentixa-premium'] /* Finance pages share accounting densification */
.dx-scope-accounting-workspace.dx-premium-surface{
  gap: 0.75rem;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace.dx-premium-surface table{
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] /* Print templates (invoice / work-order) */
[data-dx-scope='reports'][data-dx-print], html[data-app-theme='dentixa-premium'] .dx-scope-reports .dx-print-sheet, html[data-app-theme='dentixa-premium'] .dx-premium-surface .print-container, html[data-app-theme='dentixa-premium'] .dx-premium-surface [class*='print']{
  --dx-print-ink: #111612;
  --dx-print-accent: #8fbc2e;
}
html[data-app-theme='dentixa-premium'] [data-dx-state='suspended'] .dx-auth-card{
  border-color: color-mix(in srgb, #ef4444 35%, var(--dx-line));
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='onboarding-card']{
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-lg);
  box-shadow: var(--dx-shadow-lg, 0 18px 40px rgba(15, 23, 42, 0.18));
}
html[data-app-theme='dentixa-premium'] /* ?? Phase-1 fidelity: Shell / Shared / Dashboard / Orders / Accounting ?? */
.dx-scope-app-shell, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard, html[data-app-theme='dentixa-premium'] .dx-scope-orders, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace{
  font-family: var(--dx-font-ui);
  letter-spacing: -0.01em;
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .dx-nav-link-active, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav [aria-current='page']{
  color: var(--dx-lime-deep-text) !important;
  box-shadow: inset 0 -2px 0 var(--dx-lime);
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button']{
  border-radius: var(--dx-radius-md);
  transition:
    background-color var(--dx-motion-fast) var(--dx-ease-standard),
    border-color var(--dx-motion-fast) var(--dx-ease-standard),
    box-shadow var(--dx-motion-fast) var(--dx-ease-standard),
    transform var(--dx-motion-fast) var(--dx-ease-standard);
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']{
  background: linear-gradient(180deg, var(--dx-lime-bright), var(--dx-lime-deep));
  color: #111612;
  border: 1px solid color-mix(in srgb, var(--dx-lime-deep) 55%, #111612);
  box-shadow: var(--dx-shadow-lift);
}
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .dx-premium-queue, html[data-app-theme='dentixa-premium'] .dx-scope-dashboard [data-dx-ui='work-queue'], html[data-app-theme='dentixa-premium'] .dx-scope-dashboard .dx-premium-surface{
  border: 1px solid var(--dx-crystal-border);
  border-radius: var(--dx-radius-lg);
  background: var(--dx-crystal);
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) thead th, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th{
  background: color-mix(in srgb, var(--dx-soft) 88%, var(--dx-lime) 12%);
  color: var(--dx-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) tbody tr:hover, html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr:hover{
  background: color-mix(in srgb, var(--dx-lime) 8%, var(--dx-panel));
}
html[data-app-theme='dentixa-premium'] /* Soften urgency / dental-chart yellow wash so the board stays Premium-neutral */
.dx-scope-orders thead th.bg-yellow-100, html[data-app-theme='dentixa-premium'] .dx-scope-orders thead th.bg-yellow-100\/80{
  background: color-mix(in srgb, var(--dx-soft) 78%, #ca8a04 22%) !important;
  color: var(--dx-text) !important;
  border-color: var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr.bg-yellow-50, html[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr.bg-amber-50{
  background-color: color-mix(in srgb, var(--dx-panel) 90%, #ca8a04 10%) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr.bg-yellow-50, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr.bg-amber-50, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr.bg-yellow-900\/20, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr.bg-amber-900\/20 {
  background-color: color-mix(in srgb, var(--dx-panel) 88%, #ca8a04 12%) !important;
}
html[data-app-theme='dentixa-premium'] .dx-page-head{
  border-bottom: 1px solid var(--dx-line);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}
html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow{
  color: var(--dx-lime-deep-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
html[data-app-theme='dentixa-premium'] /* ?? Phase-2 deepen: Finance / Reports / SA / Auth / Print ?? */
.dx-scope-accounting-workspace.dx-premium-surface > *{
  border-radius: var(--dx-radius-md);
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports.dx-premium-surface section, html[data-app-theme='dentixa-premium'] .dx-scope-reports.dx-premium-surface .rounded-2xl{
  border-color: var(--dx-line);
  background: var(--dx-panel);
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .dx-premium-surface, html[data-app-theme='dentixa-premium'] .dx-scope-super-admin main{
  background: var(--dx-bg);
}

.dx-scope-access .dx-auth-card, html[data-app-theme='dentixa-premium'] [data-dx-ui='subscription-checkout'], html[data-app-theme='dentixa-premium'] [data-dx-ui='tenant-upgrade']{
  border: 1px solid var(--dx-crystal-border);
  box-shadow: var(--dx-shadow-lift);
}
html[data-app-theme='dentixa-premium'] [data-dx-print]{
  color: var(--dx-print-ink, #111612);
}
html[data-app-theme='dentixa-premium'] [data-dx-print] .dx-print-accent, html[data-app-theme='dentixa-premium'] [data-dx-print] h1, html[data-app-theme='dentixa-premium'] [data-dx-print] .brand{
  color: var(--dx-print-accent, #8fbc2e);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-ledger-scroll'] {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-ledger-scroll'] table td.sticky,
html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-ledger-scroll'] table th.sticky {
  background-clip: padding-box;
}
html[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] {
  --dx-text: #111827 !important;
  --dx-muted: #4b5563 !important;
  --dx-panel: #ffffff !important;
  --dx-panel-2: #f9fafb !important;
  --dx-soft: #f3f4f6 !important;
  --dx-bg: #ffffff !important;
  --dx-line: #d1d5db !important;
  --dx-print-ink: #111827 !important;
  color-scheme: light !important;
  background: #ffffff !important;
  color: #111827 !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table thead th,
html.dark[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table thead th {
  background: #eff6ff !important;
  color: #1e40af !important;
  border-color: #d1d5db !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: inherit !important;
  font-family: inherit !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table tbody td,
html.dark[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table tbody td,
html[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table tbody td,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table tbody td {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table tbody tr:nth-child(even) td,
html.dark[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table tbody tr:nth-child(even) td,
html[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table tbody tr:nth-child(even) td,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table tbody tr:nth-child(even) td {
  background: #f3f4f6 !important;
  color: #111827 !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table tbody tr:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-print-paper='true'] table tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table tbody tr:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-print-paper='true'] table tbody tr:hover {
  background: transparent !important;
}

@media print {
  html[data-app-theme='dentixa-premium'] .dx-page-head,
  .dx-premium-surface > .dx-page-head {
    display: none !important;
  }
}
html[data-app-theme='dentixa-premium'] /* Marketing subpages aligned with flagship DNA (not app chrome) */
.luxury-portal[data-dx-marketing='flagship-aligned']{
  --lux-accent: var(--dx-lime);
  --lux-accent-soft: var(--dx-lime-soft);
  --lux-bg: var(--dx-bg);
  --lux-bg-deep: var(--dx-soft);
  --lux-surface: var(--dx-panel);
  --lux-surface-strong: color-mix(in srgb, var(--dx-panel) 88%, transparent);
  --lux-text: var(--dx-text);
  --lux-muted: var(--dx-muted);
  --lux-border: var(--dx-line);
  --lux-gold: var(--dx-lime);
  background:
    radial-gradient(circle at 82% 8%, var(--dx-lime-soft), transparent 28%),
    var(--lux-bg);
}
html.dark[data-app-theme='dentixa-premium'] .luxury-portal[data-dx-marketing='flagship-aligned']{
  --lux-accent: var(--dx-lime);
  --lux-accent-soft: var(--dx-lime-soft);
  --lux-bg: var(--dx-bg);
  --lux-bg-deep: var(--dx-panel);
  --lux-surface: var(--dx-panel);
  --lux-surface-strong: color-mix(in srgb, var(--dx-panel) 88%, transparent);
  --lux-text: var(--dx-text);
  --lux-muted: var(--dx-muted);
  --lux-border: var(--dx-line);
  --lux-gold: var(--dx-lime);
  background:
    radial-gradient(circle at 82% 8%, var(--dx-lime-soft), transparent 28%),
    var(--lux-bg);
}
html[data-app-theme='dentixa-premium'] .luxury-portal[data-dx-marketing='flagship-aligned'] .dx-marketing-cta{
  background: linear-gradient(180deg, #c8f04a, #7aab12);
  color: #11140d;
  border: 1px solid color-mix(in srgb, #7aab12 50%, #11140d);
  box-shadow: 0 0 18px rgba(200, 240, 74, 0.25);
}
html[data-app-theme='dentixa-premium'] /* ?? Full-surface deepen: inventory / CRM detail / AI / academy ?? */
.dx-scope-inventory.dx-premium-surface, html[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface, html[data-app-theme='dentixa-premium'] .dx-scope-appointments.dx-premium-surface, html[data-app-theme='dentixa-premium'] .dx-scope-advisor.dx-premium-surface, html[data-app-theme='dentixa-premium'] .dx-scope-portal.dx-premium-surface{
  background: transparent;
}
/* Wave F D.2 — inventory thead: Graphite/Silver only (no olive / lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-inventory table thead,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory table thead tr,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory table thead th,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel table thead,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* Wave G — CRM / Appointments / Production / Delivery thead Graphite only
   Beat html.dark .dx-premium-surface lime mix; use background-color not shorthand. */
html[data-app-theme='dentixa-premium'] .dx-scope-crm table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-appointments table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-production table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-delivery table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-appointments.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-production.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-delivery.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])) {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* Wave H — Reports thead Graphite only (no olive/lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-reports table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-reports.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] thead th {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
/* Wave I — Settings / Super-Admin thead Graphite only */
html[data-app-theme='dentixa-premium'] .dx-scope-settings table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-settings.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-super-admin.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] thead th {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-scope-crm .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-scope-appointments .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-scope-advisor .rounded-2xl{
  border-color: var(--dx-line);
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-scope-inventory input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-crm input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-inventory select, html[data-app-theme='dentixa-premium'] .dx-scope-crm select{
  border-radius: var(--dx-radius-sm);
  border-color: var(--dx-line);
  background: var(--dx-panel);
}
html[data-app-theme='dentixa-premium'] .dx-scope-orders.dx-premium-surface [data-dx-ui], html[data-app-theme='dentixa-premium'] .dx-scope-orders .modal, html[data-app-theme='dentixa-premium'] .dx-scope-orders [role='dialog']{
  border-radius: var(--dx-radius-lg);
}
html[data-app-theme='dentixa-premium'] /* ?? Universal Premium surface (covers every PremiumPageFrame / PremiumRouteFrame) ?? */
.dx-premium-surface{
  color: var(--dx-text);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white, html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white\/80, html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white\/90, html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white\/95, html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-gray-50, html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-slate-50{
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line);
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-dark-900, 
html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-slate-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-slate-900 {
  background-color: var(--dx-panel) !important;
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface .rounded-lg, html[data-app-theme='dentixa-premium'] .dx-premium-surface .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-premium-surface .rounded-2xl{
  border-radius: var(--dx-radius-md) !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface table{
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface th{
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dx-text-muted, var(--dx-text));
  border-color: var(--dx-line);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface td{
  border-color: var(--dx-line);
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-premium-surface select, html[data-app-theme='dentixa-premium'] .dx-premium-surface textarea{
  border-radius: var(--dx-radius-sm);
  border-color: var(--dx-line);
  background: var(--dx-panel);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface input:focus, html[data-app-theme='dentixa-premium'] .dx-premium-surface select:focus, html[data-app-theme='dentixa-premium'] .dx-premium-surface textarea:focus{
  outline: none;
  border-color: var(--dx-lime, var(--lime));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-lime, var(--lime)) 25%, transparent);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface .shadow-sm, html[data-app-theme='dentixa-premium'] .dx-premium-surface .shadow-md{
  box-shadow: var(--dx-shadow-soft);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface .tabular-nums{
  font-variant-numeric: tabular-nums;
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface h1, html[data-app-theme='dentixa-premium'] .dx-premium-surface h2{
  letter-spacing: -0.02em;
}

/* ?? Marketing DNA bridge: make the app feel like flagship site ?? */

/* Remap legacy dark slate panels ? cinematic ink surfaces */
html.dark[data-app-theme='dentixa-premium'] .bg-dark-900, 
html.dark[data-app-theme='dentixa-premium'] .dark\:bg-dark-900 {
  background-color: #050505 !important;
}
html.dark[data-app-theme='dentixa-premium'] .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dark\:bg-dark-800 {
  background-color: #111314 !important;
}
html.dark[data-app-theme='dentixa-premium'] .bg-dark-700, 
html.dark[data-app-theme='dentixa-premium'] .dark\:bg-dark-700 {
  background-color: #181b1c !important;
}
html.dark[data-app-theme='dentixa-premium'] .border-dark-700, 
html.dark[data-app-theme='dentixa-premium'] .dark\:border-dark-700, 
html.dark[data-app-theme='dentixa-premium'] .border-dark-600 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .bg-slate-50, 
html:not(.dark)[data-app-theme='dentixa-premium'] .bg-gray-50 {
  background-color: #f5f5f7 !important;
}
html[data-app-theme='dentixa-premium'] /* Lime CTAs with marketing glow (ink text on lime, html[data-app-theme='dentixa-premium'] not white) */
[data-dx-ui='button'][data-dx-variant='primary'], html[data-app-theme='dentixa-premium'] .bg-primary-600, html[data-app-theme='dentixa-premium'] .bg-primary-500, html[data-app-theme='dentixa-premium'] button.bg-primary-600, html[data-app-theme='dentixa-premium'] a.bg-primary-600{
  background-color: var(--dx-lime) !important;
  border-color: var(--dx-lime) !important;
  color: #11140d !important;
  box-shadow:
    0 0 16px var(--dx-lime-soft),
    0 0 4px color-mix(in srgb, var(--dx-lime-glow) 55%, transparent) !important;
  transition:
    transform 0.2s var(--ease-apple),
    box-shadow 0.2s var(--ease-apple),
    background-color 0.2s var(--ease-apple);
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']:hover, html[data-app-theme='dentixa-premium'] .bg-primary-600:hover, html[data-app-theme='dentixa-premium'] .hover\:bg-primary-700:hover, html[data-app-theme='dentixa-premium'] .bg-primary-700{
  background-color: var(--dx-lime-bright) !important;
  color: #11140d !important;
  box-shadow:
    0 0 28px var(--dx-lime-glow),
    0 12px 32px color-mix(in srgb, var(--dx-lime) 22%, transparent) !important;
}
html[data-app-theme='dentixa-premium'] .text-primary-600, html[data-app-theme='dentixa-premium'] .text-primary-500, html[data-app-theme='dentixa-premium'] .text-primary-700, html[data-app-theme='dentixa-premium'] .dark\:text-primary-400{
  color: var(--dx-lime-text) !important;
}
html[data-app-theme='dentixa-premium'] .from-primary-600, html[data-app-theme='dentixa-premium'] .from-primary-500{
  --tw-gradient-from: var(--dx-lime) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: color-mix(in srgb, var(--dx-lime) 0%, transparent) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
html[data-app-theme='dentixa-premium'] .to-primary-800, html[data-app-theme='dentixa-premium'] .to-primary-600{
  --tw-gradient-to: var(--dx-lime-deep) var(--tw-gradient-to-position) !important;
}
html[data-app-theme='dentixa-premium'] .bg-primary-50, html[data-app-theme='dentixa-premium'] .bg-primary-100{
  background-color: var(--dx-lime-soft) !important;
  color: color-mix(in srgb, var(--dx-lime-text) 75%, var(--dx-text)) !important;
}
html[data-app-theme='dentixa-premium'] .border-primary-200, html[data-app-theme='dentixa-premium'] .border-primary-500, html[data-app-theme='dentixa-premium'] .border-primary-600, html[data-app-theme='dentixa-premium'] .ring-primary-500{
  border-color: color-mix(in srgb, var(--dx-lime) 45%, transparent) !important;
  --tw-ring-color: color-mix(in srgb, var(--dx-lime) 45%, transparent) !important;
}
html[data-app-theme='dentixa-premium'] /* Page chrome ? marketing eyebrow / title rhythm */
.dx-eyebrow, html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow{
  color: var(--dx-lime-text) !important;
  font-family: var(--dx-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
html[data-app-theme='dentixa-premium'] .dx-page-title{
  font-family: var(--dx-font-display);
  letter-spacing: -0.045em;
}
html[data-app-theme='dentixa-premium'] .dx-panel{
  border: 1px solid color-mix(in srgb, var(--dx-lime) 22%, var(--dx-line)) !important;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--dx-panel) 94%, var(--dx-lime) 6%),
      var(--dx-panel)
    ) !important;
  box-shadow:
    var(--dx-shadow-soft),
    0 0 0 1px color-mix(in srgb, var(--dx-lime) 8%, transparent),
    0 0 32px var(--dx-lime-soft) !important;
}
html[data-app-theme='dentixa-premium'] .dx-badge--lime{
  background: var(--dx-panel) !important;
  color: var(--dx-lime-text) !important;
  border-color: var(--dx-lime) !important;
  box-shadow: none !important;
}

/* Super Admin shell ? same ink stage */
html.dark[data-app-theme='dentixa-premium'] .sa-shell, 
html.dark[data-app-theme='dentixa-premium'] .dx-scope-super-admin {
  background-color: #050505 !important;
  background-image: radial-gradient(
    ellipse 60% 40% at 90% 0%,
    var(--dx-lime-soft),
    transparent 55%
  );
}
html[data-app-theme='dentixa-premium'] /* Active nav / selection chips */
.bottom-nav-item.active, html[data-app-theme='dentixa-premium'] [aria-current='page']{
  color: var(--dx-lime-text) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a:hover, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav button:hover{
  color: var(--dx-lime-text);
}
html[data-app-theme='dentixa-premium'] /* Focus rings ? lime */
:focus-visible{
  outline-color: var(--dx-focus-ring);
}
html[data-app-theme='dentixa-premium'] /* Luxury marketing pages — alias Canonical DNA */
.luxury-portal[data-dx-marketing='flagship-aligned']{
  --lux-accent: var(--dx-lime);
  --lux-accent-soft: var(--dx-lime-soft);
  --lux-bg: var(--dx-bg);
  --lux-bg-deep: var(--dx-soft);
  --lux-surface: var(--dx-panel);
  --lux-surface-strong: color-mix(in srgb, var(--dx-panel) 88%, transparent);
  --lux-text: var(--dx-text);
  --lux-muted: var(--dx-muted);
  --lux-border: var(--dx-line);
  --lux-gold: var(--dx-lime);
  background:
    radial-gradient(circle at 82% 8%, var(--dx-lime-soft), transparent 28%),
    var(--lux-bg);
}
html.dark[data-app-theme='dentixa-premium'] .luxury-portal[data-dx-marketing='flagship-aligned']{
  --lux-accent: var(--dx-lime);
  --lux-accent-soft: var(--dx-lime-soft);
  --lux-bg: var(--dx-bg);
  --lux-bg-deep: var(--dx-panel);
  --lux-surface: var(--dx-panel);
  --lux-surface-strong: color-mix(in srgb, var(--dx-panel) 88%, transparent);
  --lux-text: var(--dx-text);
  --lux-muted: var(--dx-muted);
  --lux-border: var(--dx-line);
  --lux-gold: var(--dx-lime);
  background:
    radial-gradient(circle at 82% 8%, var(--dx-lime-soft), transparent 28%),
    var(--lux-bg);
}
html[data-app-theme='dentixa-premium'] /* =====================================================================
   CINEMATIC FLAGSHIP SHELL ? app should feel like /marketing/site
   ===================================================================== */

.dx-cinematic-shell{
  background-color: var(--dx-bg) !important;
  background-image:
    radial-gradient(ellipse 75% 50% at 70% -5%, var(--dx-lime-soft), transparent 58%),
    radial-gradient(ellipse 45% 30% at 10% 95%, color-mix(in srgb, var(--dx-lime) 10%, transparent), transparent 55%) !important;
  color: var(--dx-text) !important;
  font-family: var(--dx-font-ui) !important;
}
html[data-app-theme='dentixa-premium'] .dx-cinematic-shell::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.36'/%3E%3C/svg%3E");
}

html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-shell::before {
  opacity: 0.11;
}
html[data-app-theme='dentixa-premium'] .dx-cinematic-main, html[data-app-theme='dentixa-premium'] .dx-cinematic-surface{
  position: relative;
  z-index: 1;
}
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface{
  border-radius: 22px !important;
  padding: 1.15rem 1.2rem 1.35rem !important;
  border: 1px solid color-mix(in srgb, var(--dx-lime) 22%, var(--dx-line)) !important;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, #ffffff 14%, transparent),
      color-mix(in srgb, #ffffff 3%, transparent) 40%,
      color-mix(in srgb, var(--dx-lime) 7%, transparent)
    ),
    var(--dx-panel) !important;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 28%, transparent),
    inset 0 -1px 0 color-mix(in srgb, #ffffff 5%, transparent),
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 0 40px var(--dx-lime-soft) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-surface {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02) 38%,
      rgba(200, 240, 74, 0.06)
    ),
    #111314 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(200, 240, 74, 0.12) !important;
}
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface::before, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell .dx-cinematic-surface::before{
  display: none !important;
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .dx-cinematic-surface {
    padding: 1.5rem 1.65rem 1.75rem !important;
    border-radius: 26px !important;
  }
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav.app-top-navigation, html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav{
  background: color-mix(in srgb, var(--dx-bg) 88%, transparent) !important;
  border-bottom: 1px solid color-mix(in srgb, #ffffff 6%, var(--dx-line)) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav.app-top-navigation {
  background: linear-gradient(#080a0bdd, transparent) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a[aria-current='page'], html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .bg-primary-50{
  color: var(--dx-lime-text) !important;
  background: color-mix(in srgb, var(--dx-lime) 12%, transparent) !important;
  border-color: color-mix(in srgb, var(--dx-lime) 35%, transparent) !important;
  box-shadow: 0 0 18px var(--dx-lime-soft);
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel, html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi{
  border: 1px solid color-mix(in srgb, var(--dx-lime) 18%, var(--dx-line)) !important;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--dx-panel) 88%, var(--dx-lime) 12%),
      var(--dx-panel)
    ) !important;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.12) !important;
  border-radius: 16px !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel, 
html.dark[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi {
  background: linear-gradient(145deg, #151a1b, #0d1010) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 48px #0008 !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title{
  font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
  letter-spacing: -0.06em !important;
  line-height: 0.95 !important;
  font-weight: 800 !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row{
  border: 1px solid var(--dx-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.45rem;
  background: color-mix(in srgb, var(--dx-soft) 55%, transparent);
  transition: border-color 0.25s var(--ease-apple), transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row:hover{
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 20px var(--dx-lime-soft);
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-avatar{
  background: color-mix(in srgb, var(--dx-lime) 16%, transparent);
  color: var(--dx-lime);
  border: 1px solid color-mix(in srgb, var(--dx-lime) 40%, transparent);
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface .rounded-xl, html[data-app-theme='dentixa-premium'] .dx-premium-surface .rounded-2xl, html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white, html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-white{
  border-color: color-mix(in srgb, var(--dx-lime) 16%, var(--dx-line)) !important;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--dx-panel) 92%, var(--dx-lime) 8%),
      var(--dx-panel)
    ) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white, 
html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-dark-800, 
html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-dark-800 {
  background: linear-gradient(145deg, #151a1b, #0d1010) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 48px #0008 !important;
}
html[data-app-theme='dentixa-premium'] .bottom-nav{
  background: color-mix(in srgb, var(--dx-bg) 92%, transparent) !important;
  border-top: 1px solid var(--dx-line) !important;
  backdrop-filter: blur(16px);
}

/**
 * Login / access — quiet brand gate.
 * Night: ink field + bright lime wireframe.
 * Day: light Premium bg + deeper lime wireframe (canvas adapts via theme).
 * Marketing explains the product; login only authenticates.
 *
 * Colours live once as --mkt-* tokens. Alphas use color-mix against those
 * tokens so a theme pack cannot retint the gate through --dx-*.
 */

:root {
  --mkt-ink: #080a0b;
  --mkt-surface: #111516;
  --mkt-lime-bright: #c8f04a;
  --mkt-lime-top: #d6fa72;
  --mkt-lime-bottom: #b6df38;
  --mkt-lime-deep: #7aab12;
  --mkt-lime: var(--mkt-lime-bright);
  --mkt-muted: #8e9898;
  --mkt-muted-day: #56565b;
  --mkt-paper: #f5f5f7;
  --mkt-on-lime: #10140d;
  --mkt-input: #0c1012;
  --mkt-input-text: #fff;
  --mkt-chip: #f0f5ef;
  --mkt-lang: #7a8480;
  --mkt-lang-top: #d4f86a;
  --mkt-link-hover: #e6ff91;
  --mkt-day: #f5f5f7;
  --mkt-day-ink: #1d1d1f;
  --mkt-day-chip: #1d1d1f;
  --mkt-day-lang-top: #8bc41a;
  --mkt-fog: #f5f5f7;
  --mkt-glass: #0a0e0e;
  --mkt-chip-bg: #080c0c;
  --mkt-cta: linear-gradient(180deg, var(--mkt-lime-top) 0%, var(--mkt-lime-bright) 48%, var(--mkt-lime-bottom) 100%);
  --mkt-home: linear-gradient(180deg, var(--mkt-lime-top), var(--mkt-lime-bright));
  --mkt-lang-active: linear-gradient(180deg, var(--mkt-lang-top), var(--mkt-lime-bright));
  --mkt-day-lang-active: linear-gradient(180deg, var(--mkt-day-lang-top), var(--mkt-lime-deep));
}

/* Same zero-specificity ink as AuthGateFrame, with the exact gate colours. */
:where(html),
:where(body) {
  background: var(--mkt-ink);
  color: var(--mkt-paper);
}

.dx-scope-access.dx-access-premium,
html[data-app-theme='dentixa-premium'] .dx-scope-access.dx-access-premium,
html[data-public-theme] .dentixa-public .dx-scope-access.dx-access-premium,
html[data-app-theme] .dx-scope-access.dx-access-premium {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0 !important;
  overflow: hidden;
  background: var(--mkt-ink) !important;
  color: var(--mkt-paper);
  color-scheme: dark;
  font-family: var(--font-num), var(--font-cairo), system-ui, sans-serif;
}

/* Explicit light only. A missing dark class used to match every document,
   including the dark public gate, and then painted --dx-bg which other packs
   can force to ink while text goes dark. */
html.light .dx-scope-access.dx-access-premium,
html[data-public-theme='light'] .dx-scope-access.dx-access-premium,
html[data-public-theme='light'] .dentixa-public .dx-scope-access.dx-access-premium {
  --mkt-lime: var(--mkt-lime-deep);
  background-color: var(--mkt-day) !important;
  background-image: radial-gradient(
    ellipse 70% 52% at 50% -8%,
    color-mix(in srgb, var(--mkt-lime-deep) 16%, transparent),
    transparent 58%
  ) !important;
  background-repeat: no-repeat !important;
  color: var(--mkt-day-ink);
  color-scheme: light;
}

.dx-access-noise {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.36'/%3E%3C/svg%3E");
}

/* Out of flow and viewport-bounded. A canvas in normal flow that copies
   clientHeight onto its CSS height grows without limit and hides the form.
   Inline canvas width/height lose to these declarations. */
.dx-access-globe,
.dx-access-globe-canvas,
.dx-access-globe-vignette,
.dx-scope-access .dx-access-globe,
.dx-scope-access .dx-access-globe-canvas,
.dx-scope-access .dx-access-globe-vignette {
  position: fixed !important;
  inset: 0;
  z-index: 0 !important;
  width: 100% !important;
  height: 100vh;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh;
  max-height: 100dvh !important;
  overflow: hidden;
  pointer-events: none !important;
}

.dx-access-globe-canvas {
  display: block;
}

.dx-access-globe-vignette {
  background:
    radial-gradient(ellipse at 50% 48%, transparent 42%, color-mix(in srgb, var(--mkt-ink) 28%, transparent) 72%, color-mix(in srgb, var(--mkt-ink) 78%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--mkt-ink) 22%, transparent), transparent 16%, transparent 84%, color-mix(in srgb, var(--mkt-ink) 40%, transparent));
}

html.light .dx-access-globe-vignette,
html[data-public-theme='light'] .dx-access-globe-vignette {
  background:
    radial-gradient(
      ellipse at 50% 48%,
      transparent 40%,
      color-mix(in srgb, var(--mkt-fog) 35%, transparent) 70%,
      color-mix(in srgb, var(--mkt-fog) 88%, transparent) 100%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--mkt-fog) 55%, transparent),
      transparent 18%,
      transparent 82%,
      color-mix(in srgb, var(--mkt-fog) 70%, transparent)
    );
}

html.light .dx-access-noise,
html[data-public-theme='light'] .dx-access-noise {
  opacity: 0.025;
}

html.light .dx-access-globe-chip,
html[data-public-theme='light'] .dx-access-globe-chip {
  border-color: color-mix(in srgb, var(--mkt-lime-deep) 40%, transparent);
  background: color-mix(in srgb, white 88%, transparent);
  color: var(--mkt-day-chip);
  box-shadow:
    0 10px 28px color-mix(in srgb, black 10%, transparent),
    0 0 0 1px color-mix(in srgb, var(--mkt-lime-deep) 8%, transparent);
}

html.light .dx-access-globe-chip i,
html[data-public-theme='light'] .dx-access-globe-chip i {
  background: color-mix(in srgb, var(--mkt-lime-deep) 14%, transparent);
  border-color: color-mix(in srgb, var(--mkt-lime-deep) 40%, transparent);
}

html.light .dx-access-globe-chip i::before,
html[data-public-theme='light'] .dx-access-globe-chip i::before {
  background: var(--mkt-lime-deep);
}

html.light .dx-access-status,
html[data-public-theme='light'] .dx-access-status {
  border-color: color-mix(in srgb, black 8%, transparent);
  background: color-mix(in srgb, white 82%, transparent);
  color: var(--mkt-muted-day);
  box-shadow: 0 8px 24px color-mix(in srgb, black 6%, transparent);
}

html.light .dx-access-status-dot,
html[data-public-theme='light'] .dx-access-status-dot {
  background: var(--mkt-lime-deep);
  box-shadow: 0 0 8px color-mix(in srgb, var(--mkt-lime-deep) 55%, transparent);
}

html.light .dx-mkt-lang,
html[data-public-theme='light'] .dx-mkt-lang {
  border-color: color-mix(in srgb, black 10%, transparent);
  background: color-mix(in srgb, white 88%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 70%, transparent),
    0 8px 24px color-mix(in srgb, black 8%, transparent);
}

html.light .dx-mkt-lang button,
html[data-public-theme='light'] .dx-mkt-lang button {
  color: var(--mkt-muted-day);
}

html.light .dx-mkt-lang button.active,
html[data-public-theme='light'] .dx-mkt-lang button.active {
  background: var(--mkt-day-lang-active);
  color: var(--mkt-on-lime);
  box-shadow:
    0 1px 0 color-mix(in srgb, white 35%, transparent) inset,
    0 6px 16px color-mix(in srgb, var(--mkt-lime-deep) 28%, transparent);
}

html.light .dx-mkt-lang button:hover:not(.active),
html[data-public-theme='light'] .dx-mkt-lang button:hover:not(.active) {
  color: var(--mkt-day-chip);
  background: color-mix(in srgb, black 4%, transparent);
}

/* Dark glass card stays on day — high-contrast gate over light field.
   The later theme-attribute rule wins back the night glass when a pack is set. */
html.light .dx-access-form,
html[data-public-theme='light'] .dx-access-form {
  border-color: color-mix(in srgb, black 10%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, white 6%, transparent), transparent 40%),
    color-mix(in srgb, var(--mkt-surface) 92%, transparent);
  box-shadow:
    0 28px 70px color-mix(in srgb, black 18%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
  color: var(--mkt-paper);
}

html.light .dx-access-form:hover,
html[data-public-theme='light'] .dx-access-form:hover {
  border-color: color-mix(in srgb, var(--mkt-lime-deep) 35%, transparent);
  box-shadow:
    0 32px 80px color-mix(in srgb, black 20%, transparent),
    0 0 40px color-mix(in srgb, var(--mkt-lime-deep) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 7%, transparent);
}

html.light .dx-scope-access.dx-access-premium .dx-eyebrow,
html[data-public-theme='light'] .dx-scope-access.dx-access-premium .dx-eyebrow {
  color: var(--mkt-lime-bright) !important;
}

html.light .dx-access-link,
html[data-public-theme='light'] .dx-access-link {
  color: var(--mkt-lime-bright);
}

html.light .dx-access-link:hover,
html[data-public-theme='light'] .dx-access-link:hover {
  color: var(--mkt-link-hover);
}

.dx-access-globe-chip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--mkt-lime-bright) 32%, transparent);
  background: color-mix(in srgb, var(--mkt-chip-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--mkt-chip);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow:
    0 12px 32px color-mix(in srgb, black 40%, transparent),
    0 0 20px color-mix(in srgb, var(--mkt-lime-bright) 8%, transparent);
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.dx-access-globe-chip i {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--mkt-lime-bright) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--mkt-lime-bright) 35%, transparent);
  flex-shrink: 0;
  position: relative;
}

.dx-access-globe-chip i::before {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 2px;
  background: var(--mkt-lime-bright);
  opacity: 0.9;
}

.dx-access-globe-chip i[data-kind='newCase']::before {
  clip-path: polygon(20% 20%, 80% 20%, 80% 80%, 20% 80%);
}

.dx-access-globe-chip i[data-kind='statement']::before {
  clip-path: polygon(25% 15%, 75% 15%, 75% 85%, 25% 85%);
}

.dx-access-globe-chip i[data-kind='delivery']::before {
  clip-path: polygon(15% 40%, 50% 15%, 85% 40%, 85% 85%, 15% 85%);
}

.dx-access-globe-chip i[data-kind='payment']::before {
  border-radius: 50%;
}

.dx-access-chrome {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  direction: ltr;
  padding-block: max(0.75rem, env(safe-area-inset-top, 0px)) 0.55rem;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px), 4.5vw)
    max(1rem, env(safe-area-inset-right, 0px), 4.5vw);
  pointer-events: none;
}

.dx-access-chrome > * {
  pointer-events: auto;
}

.dx-access-home {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: var(--mkt-home);
  color: var(--mkt-on-lime);
  text-decoration: none;
  box-shadow:
    0 1px 0 color-mix(in srgb, white 40%, transparent) inset,
    0 12px 28px color-mix(in srgb, var(--mkt-lime-bright) 35%, transparent);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.dx-access-home:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 color-mix(in srgb, white 45%, transparent) inset,
    0 16px 36px color-mix(in srgb, var(--mkt-lime-bright) 45%, transparent);
}

.dx-access-chrome-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dx-access-status {
  position: absolute;
  z-index: 40;
  inset-inline: 0;
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.45rem 0.85rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, white 8%, transparent);
  background: color-mix(in srgb, var(--mkt-glass) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--mkt-muted);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.dx-access-status span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dx-access-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mkt-lime-bright);
  box-shadow: 0 0 8px color-mix(in srgb, var(--mkt-lime-bright) 70%, transparent);
}

.dx-mkt-lang {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, white 12%, transparent);
  background: color-mix(in srgb, var(--mkt-glass) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 5%, transparent),
    0 8px 24px color-mix(in srgb, black 28%, transparent);
  flex-shrink: 0;
}

.dx-mkt-lang button {
  border: 0;
  background: transparent;
  color: var(--mkt-lang);
  font: 650 0.65rem/1 var(--font-num), var(--font-dm-mono), ui-monospace, sans-serif;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  min-width: 2.35rem;
}

.dx-mkt-lang button.active {
  background: var(--mkt-lang-active);
  color: var(--mkt-on-lime);
  box-shadow:
    0 1px 0 color-mix(in srgb, white 35%, transparent) inset,
    0 6px 16px color-mix(in srgb, var(--mkt-lime-bright) 28%, transparent);
}

.dx-mkt-lang button:hover:not(.active) {
  color: var(--mkt-paper);
  background: color-mix(in srgb, white 4%, transparent);
}

.dx-access-gate {
  position: relative;
  z-index: 4;
  width: min(28.5rem, calc(100% - 2rem));
  padding: clamp(4.5rem, 8vw, 5.5rem) 0 2rem;
}

.dx-access-form,
html[data-public-theme] .dentixa-public .dx-scope-access .dx-access-form,
html[data-app-theme] .dx-scope-access .dx-access-form {
  width: 100%;
  position: relative;
  z-index: 5;
  border: 1px solid color-mix(in srgb, white 11%, transparent);
  border-radius: 1.35rem;
  background:
    linear-gradient(165deg, color-mix(in srgb, white 5.5%, transparent), transparent 40%),
    color-mix(in srgb, var(--mkt-surface) 88%, transparent);
  padding: 2.1rem 1.75rem 1.7rem;
  box-shadow:
    0 28px 70px color-mix(in srgb, black 50%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
  color: var(--mkt-paper);
}

.dx-access-form:hover {
  border-color: color-mix(in srgb, var(--mkt-lime-bright) 20%, transparent);
  box-shadow:
    0 32px 80px color-mix(in srgb, black 50%, transparent),
    0 0 40px color-mix(in srgb, var(--mkt-lime-bright) 6%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 7%, transparent);
}

.dx-access-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.dx-access-brand-mark {
  filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--mkt-lime-bright) 16%, transparent));
}

.dx-access-brand-wordmark {
  max-width: min(86vw, 20rem);
}

.dx-access-brand-product {
  margin: 0.1rem 0 0;
  color: var(--mkt-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.dx-access-form .dx-eyebrow,
.dx-scope-access.dx-access-premium .dx-eyebrow {
  margin-bottom: 0.45rem;
  color: var(--mkt-lime-bright) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.dx-access-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.4;
  color: var(--mkt-paper);
  text-align: center;
}

.dx-access-form .dx-access-sub {
  color: var(--mkt-muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  text-align: center;
  line-height: 1.5;
}

.dx-access-form label {
  display: block;
  margin-top: 1.05rem;
  color: var(--mkt-muted);
  font-size: 11px;
}

.dx-access-form input:not([type='checkbox']):not([type='radio']),
html[data-public-theme] .dentixa-public .dx-scope-access .dx-access-form input:not([type='checkbox']):not([type='radio']),
html[data-app-theme] .dx-scope-access .dx-access-form input:not([type='checkbox']):not([type='radio']) {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid color-mix(in srgb, white 12%, transparent) !important;
  border-radius: 10px;
  background: var(--mkt-input) !important;
  color: var(--mkt-input-text) !important;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dx-access-form input:focus,
html[data-public-theme] .dentixa-public .dx-access-form input:focus,
html[data-app-theme] .dx-scope-access .dx-access-form input:focus {
  border-color: color-mix(in srgb, var(--mkt-lime-bright) 55%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mkt-lime-bright) 20%, transparent) !important;
  outline: none;
}

.dx-access-form button[type='submit'] {
  font-weight: 800;
}

.dx-access-form button[type='submit'],
html[data-public-theme] .dentixa-public .dx-scope-access .dx-access-form button[type='submit'],
html[data-app-theme] .dx-scope-access .dx-access-form button[type='submit'] {
  margin-top: 1.45rem;
  width: 100%;
  padding: 0.92rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--mkt-cta) !important;
  background-image: var(--mkt-cta) !important;
  color: var(--mkt-on-lime) !important;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 color-mix(in srgb, white 45%, transparent) inset,
    0 -1px 0 color-mix(in srgb, black 12%, transparent) inset,
    0 10px 28px color-mix(in srgb, var(--mkt-lime-bright) 28%, transparent);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.dx-access-form button[type='submit']:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 color-mix(in srgb, white 50%, transparent) inset,
    0 -1px 0 color-mix(in srgb, black 12%, transparent) inset,
    0 14px 36px color-mix(in srgb, var(--mkt-lime-bright) 40%, transparent);
}

.dx-access-form button[type='submit']:active:not(:disabled) {
  transform: translateY(0);
}

.dx-access-link {
  color: var(--mkt-lime-bright);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.dx-access-link:hover {
  opacity: 1;
  color: var(--mkt-link-hover);
}

.dx-access-link-muted {
  color: var(--mkt-muted);
  font-size: 0.75rem;
}

.dx-access-link-muted:hover {
  color: var(--mkt-lime-bright);
}

.dx-access-reveal {
  animation: dxAccessReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@media (prefers-reduced-motion: reduce) {
  .dx-access-reveal {
    animation: none;
  }
}

@media (max-width: 420px) {
  .dx-access-form {
    padding: 1.55rem 1.2rem 1.35rem;
    border-radius: 1.1rem;
  }

  .dx-mkt-lang button {
    min-width: 2rem;
    padding: 0.48rem 0.55rem;
    font-size: 0.6rem;
  }
}

/**
 * Dentixa Premium � full-scene cinematic unification.
 * Applies marketing flagship DNA across every scoped surface.
 * Classic is untouched (all selectors gated by data-app-theme).
 */

/* �� Shared recipe tokens (local to this layer) �� */
html[data-app-theme='dentixa-premium'] {
  --dx-card-bg: linear-gradient(
    145deg,
    color-mix(in srgb, var(--dx-panel) 90%, var(--dx-lime) 10%),
    var(--dx-panel)
  );
  --dx-card-border: color-mix(in srgb, var(--dx-lime) 18%, var(--dx-line));
  --dx-card-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.12);
  --dx-ease: var(--ease-apple, cubic-bezier(0.22, 1, 0.36, 1));
}

html.dark[data-app-theme='dentixa-premium'] {
  --dx-card-bg: linear-gradient(145deg, #151a1b, #0d1010);
  --dx-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 22px 50px #0009;
}

/* �� Global chrome �� */
html[data-app-theme='dentixa-premium'] ::selection {
  background: color-mix(in srgb, var(--dx-lime) 35%, transparent);
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] * {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--dx-lime) 45%, transparent) transparent;
}

html[data-app-theme='dentixa-premium'] *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html[data-app-theme='dentixa-premium'] *::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--dx-lime) 40%, var(--dx-line));
  border-radius: 99px;
}
html[data-app-theme='dentixa-premium'] *::-webkit-scrollbar-track {
  background: transparent;
}

/* �� Every premium scope: one stage language �� */
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard,
html[data-app-theme='dentixa-premium'] .dx-scope-orders,
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory,
html[data-app-theme='dentixa-premium'] .dx-scope-reports,
html[data-app-theme='dentixa-premium'] .dx-scope-advisor,
html[data-app-theme='dentixa-premium'] .dx-scope-crm,
html[data-app-theme='dentixa-premium'] .dx-scope-appointments,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery,
html[data-app-theme='dentixa-premium'] .dx-scope-portal,
html[data-app-theme='dentixa-premium'] .dx-scope-settings,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin,
html[data-app-theme='dentixa-premium'] .dx-scope-notifications,
html[data-app-theme='dentixa-premium'] .dx-scope-profile,
html[data-app-theme='dentixa-premium'] .dx-scope-production,
html[data-app-theme='dentixa-premium'] .dx-scope-access,
html[data-app-theme='dentixa-premium'] .dx-premium-surface {
  color: var(--dx-text);
  font-family: var(--dx-font-ui);
}

/* Unified card surfaces inside any scope */
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white\/80,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white\/90,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-white\/95,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-gray-50,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-slate-50,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-white,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-gray-50,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-slate-50,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-crm .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-reports .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-settings .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-advisor .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-portal .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-appointments .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-production .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-notifications .bg-white,
html[data-app-theme='dentixa-premium'] .dx-scope-profile .bg-white {
  background: var(--dx-card-bg) !important;
  border-color: var(--dx-card-border) !important;
  box-shadow: var(--dx-card-shadow) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .bg-dark-900,
html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-surface .bg-dark-900,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-inventory .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-reports .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-settings .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-super-admin .bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .sa-shell .bg-dark-800 {
  background: var(--dx-card-bg) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: var(--dx-card-shadow) !important;
}

/* �� Tables / data grids (all scopes) �� */
html[data-app-theme='dentixa-premium'] .dx-premium-surface table,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface table,
html[data-app-theme='dentixa-premium'] .dx-data-grid-shell table,
html[data-app-theme='dentixa-premium'] .dx-scope-orders table,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory table,
html[data-app-theme='dentixa-premium'] .dx-scope-crm table,
html[data-app-theme='dentixa-premium'] .dx-scope-reports table,
html[data-app-theme='dentixa-premium'] .dx-scope-settings table,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin table {
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface thead th,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface thead th,
html[data-app-theme='dentixa-premium'] .dx-data-grid-shell thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace thead th {
  font-family: var(--dx-font-mono);
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface thead th:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface thead th:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)), html[data-app-theme='dentixa-premium'] .dx-data-grid-shell thead th:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)), html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace thead th:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  border-bottom: 1px solid var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])),
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])),
html[data-app-theme='dentixa-premium'] .dx-data-grid-shell thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])) {
  background: color-mix(in srgb, var(--dx-soft) 82%, var(--dx-lime) 18%) !important;
  color: var(--dx-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Wave I — Settings / Super-Admin thead Graphite/Silver (no olive/lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-settings thead,
html[data-app-theme='dentixa-premium'] .dx-scope-settings thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-settings.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-settings.dx-premium-surface table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin thead,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-super-admin.dx-premium-surface table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] thead th {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-family: inherit;
  box-shadow: none !important;
}

/* Wave H — Reports thead Graphite/Silver (no olive/lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-reports thead,
html[data-app-theme='dentixa-premium'] .dx-scope-reports thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-reports.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-reports.dx-premium-surface table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] thead th {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-family: inherit;
  box-shadow: none !important;
}

/* Wave G — CRM thead Graphite/Silver (Doctors/Patients); no olive/lime wash
   Specificity must beat html.dark .dx-premium-surface thead (lime mix). */
html[data-app-theme='dentixa-premium'] .dx-scope-crm thead,
html[data-app-theme='dentixa-premium'] .dx-scope-crm thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-appointments.dx-premium-surface table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-production.dx-premium-surface table thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] thead th {
  font-family: inherit;
}
html[data-app-theme='dentixa-premium'] .dx-scope-crm thead:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-crm thead th:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-appointments.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-production.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-delivery.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])) {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  box-shadow: none !important;
}

/* Wave F D.2 — inventory thead: Graphite/Silver only (no olive / lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-inventory thead,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory thead tr,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory thead th,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-line)) !important;
  font-family: inherit;
  box-shadow: none !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-inventory thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-wave-f-panel thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-surface thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])):where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])) {
  background: color-mix(in srgb, #151a1b 88%, var(--dx-lime) 12%) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-crm tbody tr:hover {
  background: color-mix(in srgb, var(--dx-lime) 9%, var(--dx-panel)) !important;
}

/* Wave I — Settings / Admin hover = Silver lift (no lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-settings tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin tbody tr:hover,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr:hover {
  background: var(--dx-panel-2, #181b1c) !important;
}

/* Wave H — Reports hover = Silver lift (no lime wash) */
html[data-app-theme='dentixa-premium'] .dx-scope-reports tbody tr:hover,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr:hover {
  background: var(--dx-panel-2, #181b1c) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface td,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface td {
  border-color: var(--dx-line) !important;
  font-variant-numeric: tabular-nums;
}

/* Data grid shell � marketing product frame */
html[data-app-theme='dentixa-premium'] .dx-data-grid-shell {
  border: 1px solid var(--dx-card-border);
  border-radius: 18px;
  background: var(--dx-card-bg);
  box-shadow: var(--dx-card-shadow);
  padding: 0.65rem;
  overflow: hidden;
}

/* �� Forms (all scopes) �� */
html[data-app-theme='dentixa-premium'] .dx-premium-surface input:not([type='checkbox']):not([type='radio']),
html[data-app-theme='dentixa-premium'] .dx-premium-surface select,
html[data-app-theme='dentixa-premium'] .dx-premium-surface textarea,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface input:not([type='checkbox']):not([type='radio']),
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface select,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface textarea,
html[data-app-theme='dentixa-premium'] .dx-scope-access input:not([type='checkbox']):not([type='radio']),
html[data-app-theme='dentixa-premium'] .dx-scope-access select,
html[data-app-theme='dentixa-premium'] .dx-scope-access textarea {
  border-radius: 10px !important;
  transition: border-color 0.2s var(--dx-ease), box-shadow 0.2s var(--dx-ease);
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-premium-surface select:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-premium-surface textarea:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface select:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface textarea:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-scope-access input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-access select:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-scope-access textarea:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)) {
  border: 1px solid var(--dx-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-premium-surface input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-premium-surface select:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html[data-app-theme="dentixa-premium"] .dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-premium-surface textarea:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html[data-app-theme="dentixa-premium"] .dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface select:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html[data-app-theme="dentixa-premium"] .dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-cinematic-surface textarea:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html[data-app-theme="dentixa-premium"] .dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-scope-access input:not([type='checkbox']):not([type='radio']), html[data-app-theme='dentixa-premium'] .dx-scope-access select:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html[data-app-theme="dentixa-premium"] .dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)), html[data-app-theme='dentixa-premium'] .dx-scope-access textarea:where(:not(.dx-scope-access:not(.dx-access-premium) .dx-auth-input, html[data-app-theme="dentixa-premium"] .dx-scope-access:not(.dx-access-premium) .dx-auth-input, html.dark .dx-scope-access:not(.dx-access-premium) .dx-auth-input)) {
  background: color-mix(in srgb, var(--dx-panel) 92%, transparent) !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface input:focus,
html[data-app-theme='dentixa-premium'] .dx-premium-surface select:focus,
html[data-app-theme='dentixa-premium'] .dx-premium-surface textarea:focus,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface input:focus,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface select:focus,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface textarea:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-access input:focus {
  border-color: var(--dx-lime) !important;
  box-shadow: 0 0 0 3px var(--dx-lime-soft), 0 0 18px var(--dx-lime-soft) !important;
  outline: none !important;
}

/* �� Buttons �� */
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='outline'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='ghost'] {
  border-color: var(--dx-line) !important;
  color: var(--dx-text) !important;
  background: color-mix(in srgb, var(--dx-panel) 70%, transparent) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='outline']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='ghost']:hover {
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line)) !important;
  color: var(--dx-lime-text) !important;
  box-shadow: 0 0 16px var(--dx-lime-soft);
}

/* �� Modals / dialogs / drawers �� */
html[data-app-theme='dentixa-premium'] [role='dialog'],
html[data-app-theme='dentixa-premium'] [data-headlessui-state],
html[data-app-theme='dentixa-premium'] .dx-drawer,
html[data-app-theme='dentixa-premium'] .fixed.inset-0 > .relative.bg-white,
html[data-app-theme='dentixa-premium'] .fixed.inset-0 > div > .bg-white,
html[data-app-theme='dentixa-premium'] .fixed.inset-0 > div > .bg-dark-800 {
  border-radius: 18px;
}

html[data-app-theme='dentixa-premium'] [role='dialog'].bg-white,
html[data-app-theme='dentixa-premium'] [role='dialog'] .bg-white,
html[data-app-theme='dentixa-premium'] .dx-drawer:where(:not(.ov2m .ov2m-ono > :not(bdi))) {
  background: var(--dx-card-bg) !important;
}
html[data-app-theme='dentixa-premium'] [role='dialog'].bg-white,
html[data-app-theme='dentixa-premium'] [role='dialog'] .bg-white,
html[data-app-theme='dentixa-premium'] .dx-drawer:where(:not(.ov2m .ov2m-ono > :not(bdi))) {
  border: 1px solid var(--dx-card-border) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35), 0 0 40px var(--dx-lime-soft) !important;
}

html.dark[data-app-theme='dentixa-premium'] [role='dialog']:where(:not(.jv1-pop)),
html.dark[data-app-theme='dentixa-premium'] .dx-drawer {
  color: var(--dx-text);
}

html.dark[data-app-theme='dentixa-premium'] [role='dialog']:where(:not(.jv1-pop)),
html.dark[data-app-theme='dentixa-premium'] .dx-drawer {
  background: linear-gradient(145deg, #151a1b, #0d1010) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* �� Top navigation � marketing header language �� */
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a.group {
  position: relative;
  letter-spacing: -0.01em;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a.group.bg-primary-100\/80,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a.group.bg-primary-50,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a.group[class*='bg-primary'] {
  background: color-mix(in srgb, var(--dx-lime) 14%, transparent) !important;
  color: var(--dx-lime-text) !important;
  box-shadow: 0 0 20px var(--dx-lime-soft);
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .fixed.w-56,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav [class*='shadow-2xl'] {
  background: color-mix(in srgb, var(--dx-panel) 92%, transparent) !important;
  border: 1px solid var(--dx-card-border) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 30px var(--dx-lime-soft) !important;
  backdrop-filter: blur(18px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .fixed.w-56 {
  background: linear-gradient(145deg, #151a1bed, #0d1010f2) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .text-gray-900,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .dark\:text-white {
  color: var(--dx-text) !important;
}

/* Mobile drawer menu */
html[data-app-theme='dentixa-premium'] [data-mobile-menu-trigger] {
  color: var(--dx-text);
}

/* �� Accounting workspace �� */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace,
html[data-app-theme='dentixa-premium'] .accounting-workspace {
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-gradient-to-r,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .bg-gradient-to-r.from-primary-600 {
  background-image: linear-gradient(90deg, var(--dx-lime), color-mix(in srgb, var(--dx-lime) 20%, transparent)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace h1,
html[data-app-theme='dentixa-premium'] .dx-scope-orders h1,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory h1,
html[data-app-theme='dentixa-premium'] .dx-scope-crm h1,
html[data-app-theme='dentixa-premium'] .dx-scope-reports h1,
html[data-app-theme='dentixa-premium'] .dx-scope-settings h1 {
  letter-spacing: -0.045em;
  font-weight: 800;
}

/* �� Page heads everywhere �� */
html[data-app-theme='dentixa-premium'] .dx-page-head {
  border-bottom: 1px solid var(--dx-line);
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}

html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow,
html[data-app-theme='dentixa-premium'] .dx-eyebrow {
  color: var(--dx-lime-text) !important;
  font-family: var(--dx-font-mono);
  letter-spacing: 0.16em;
}

html[data-app-theme='dentixa-premium'] .dx-page-title {
  font-family: var(--dx-font-display);
  letter-spacing: -0.05em;
  font-weight: 800;
}

/* �� Super Admin �� */
html[data-app-theme='dentixa-premium'] .sa-shell,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin {
  background-color: var(--dx-bg) !important;
  background-image: radial-gradient(
    ellipse 55% 40% at 88% 0%,
    var(--dx-lime-soft),
    transparent 55%
  ) !important;
}

html[data-app-theme='dentixa-premium'] .sa-shell main,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin main {
  background: transparent !important;
}

/* Nav chrome only — never paint content asides (tools rails, previews). */
html[data-app-theme='dentixa-premium'] .sa-shell aside.sa-sidebar,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin aside.sa-sidebar {
  background: #0a0d14 !important;
  border-color: rgba(139, 147, 158, 0.35) !important;
  backdrop-filter: none;
  color: #f5f5f7 !important;
}

/* �� Auth / access �� */
/* Globe login (.dx-access-premium) keeps fixed ink � do not apply day-mode --dx-bg. */
html[data-app-theme='dentixa-premium'] .dx-scope-access:not(.dx-access-premium) {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--dx-lime-soft), transparent 55%),
    var(--dx-bg) !important;
  min-height: 100vh;
}

html[data-app-theme='dentixa-premium'] .dx-scope-access .dx-auth-card,
html[data-app-theme='dentixa-premium'] .dx-scope-access [data-dx-ui='subscription-checkout'],
html[data-app-theme='dentixa-premium'] .dx-scope-access [data-dx-ui='tenant-upgrade'] {
  border: 1px solid var(--dx-card-border) !important;
  background: var(--dx-card-bg) !important;
  box-shadow: var(--dx-card-shadow), 0 0 48px var(--dx-lime-soft) !important;
  border-radius: 20px !important;
}

/* �� Reports / advisor / portal �� */
html[data-app-theme='dentixa-premium'] .dx-scope-reports .dx-panel,
html[data-app-theme='dentixa-premium'] .dx-scope-advisor .dx-panel,
html[data-app-theme='dentixa-premium'] .dx-scope-portal .dx-panel {
  border: 1px solid var(--dx-card-border);
  background: var(--dx-card-bg);
  box-shadow: var(--dx-card-shadow);
  border-radius: 16px;
}

/* �� Tabs / pills / chips �� */
html[data-app-theme='dentixa-premium'] .dx-premium-surface [role='tab'][aria-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-premium-surface .rounded-full.bg-primary-600,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .rounded-full.bg-primary-50 {
  background: color-mix(in srgb, var(--dx-lime) 18%, transparent) !important;
  color: var(--dx-lime-text) !important;
  border-color: color-mix(in srgb, var(--dx-lime) 40%, transparent) !important;
}

/* �� Floating panels / command palette �� */
html[data-app-theme='dentixa-premium'] [data-dx-scope='cmd-palette'],
html[data-app-theme='dentixa-premium'] .dx-scope-cmd-palette {
  background: var(--dx-card-bg) !important;
  border: 1px solid var(--dx-card-border) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), 0 0 40px var(--dx-lime-soft) !important;
}

/* �� Links & accents �� */
html[data-app-theme='dentixa-premium'] .dx-premium-surface a.text-primary-600,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface a.text-primary-600,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .text-primary-600 {
  color: var(--dx-lime-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-surface .border-slate-200,
html[data-app-theme='dentixa-premium'] .dx-premium-surface .border-gray-200,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .border-slate-200,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .border-gray-200 {
  border-color: var(--dx-line) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-surface .border-dark-700,
html.dark[data-app-theme='dentixa-premium'] .dx-cinematic-surface .border-dark-700 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* �� Reduced motion �� */
@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row,
  html[data-app-theme='dentixa-premium'] [data-dx-ui='button'] {
    transition: none !important;
  }
}

/* �� Top nav link / dropdown helpers (from TopNavigationBar) �� */
html[data-app-theme='dentixa-premium'] .dx-nav-link {
  color: var(--dx-muted) !important;
}
html[data-app-theme='dentixa-premium'] .dx-nav-link:hover {
  color: var(--dx-text) !important;
  background: var(--dx-soft) !important;
}
html[data-app-theme='dentixa-premium'] .dx-nav-link-active {
  color: var(--dx-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid var(--dx-lime) !important;
}
html[data-app-theme='dentixa-premium'] .dx-nav-dropdown {
  border-color: var(--dx-crystal-border) !important;
  background: color-mix(in srgb, var(--dx-panel) 94%, transparent) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 28px var(--dx-lime-soft) !important;
}
html.dark[data-app-theme='dentixa-premium'] .dx-nav-dropdown {
  background: linear-gradient(145deg, #151a1bed, #0d1010f2) !important;
}

/* Orders workspace — open, not a giant first-child card */
html[data-app-theme='dentixa-premium'] .dx-scope-orders > div:first-child,
html[data-app-theme='dentixa-premium'] .dx-premium-orders > div:first-child {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* �� Ensure PremiumPageHead actions buttons match �� */
html[data-app-theme='dentixa-premium'] .dx-page-head__actions [data-dx-ui='button'][data-dx-variant='primary'] {
  border-radius: var(--dx-radius-sm, 8px) !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}

/**
 * Dentixa Premium ? Atelier layer
 * Creative craft above the marketing DNA: motion, crystal light, typographic drama.
 * Gated by html[data-app-theme='dentixa-premium'] ? Classic untouched.
 */

/* ?? Scroll progress (marketing .scroll-line) ?? */
html[data-app-theme='dentixa-premium'] .dx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-scroll-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--dx-lime);
  box-shadow: 0 0 14px var(--dx-lime-glow, var(--dx-lime-soft));
  transition: width 80ms linear;
}

/* ?? Ambient orbit glow behind content ?? */
html[data-app-theme='dentixa-premium'] .dx-cinematic-shell::after {
  content: '';
  position: fixed;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  right: -8vw;
  top: 12vh;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--dx-lime) 22%, transparent), transparent 68%);
  filter: blur(8px);
  opacity: 0.55;
  animation: dxOrbitFloat 9s ease-in-out infinite;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .dx-cinematic-shell::after {
  opacity: 0.28;
}

@keyframes dxOrbitFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3vw, -2vh, 0) scale(1.08);
  }
}

/* ?? Crystal frame language on cinematic surface ?? */
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, #ffffff 22%, transparent),
    transparent 28%,
    transparent 72%,
    color-mix(in srgb, var(--dx-lime) 12%, transparent)
  );
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface > * {
  position: relative;
  z-index: 1;
}

/* ?? Page head: cinematic type ?? */
html[data-app-theme='dentixa-premium'] .dx-page-head {
  position: relative;
  gap: 1.25rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(
    90deg,
    var(--dx-lime) 0%,
    color-mix(in srgb, var(--dx-lime) 25%, transparent) 42%,
    transparent 100%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: bottom left;
}

html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dx-lime);
  box-shadow: 0 0 12px var(--dx-lime-glow, var(--dx-lime-soft));
  animation: dxLivePulse 2.4s ease-in-out infinite;
}

@keyframes dxLivePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

html[data-app-theme='dentixa-premium'] .dx-page-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  letter-spacing: -0.06em !important;
  line-height: 0.96 !important;
  font-weight: 800 !important;
  /* Never use text-wrap:balance for Arabic — it stacks short RTL phrases vertically. */
  text-wrap: unset;
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-page-title {
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-wrap: unset !important;
}

html[data-app-theme='dentixa-premium'] .dx-page-title .dx-accent {
  color: var(--dx-lime-text);
}

html[data-app-theme='dentixa-premium'] .dx-page-desc {
  max-width: 38rem;
  color: var(--dx-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ?? Panels: hover lift + light ?? */
html[data-app-theme='dentixa-premium'] .dx-panel {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-apple, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

html[data-app-theme='dentixa-premium'] .dx-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, #ffffff 14%, transparent), transparent 36%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

html[data-app-theme='dentixa-premium'] .dx-panel:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--dx-lime) 45%, var(--dx-line)) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16), 0 0 28px var(--dx-lime-soft) !important;
}

html[data-app-theme='dentixa-premium'] .dx-panel:hover::before {
  opacity: 1;
}

html[data-app-theme='dentixa-premium'] .dx-panel__title {
  font-size: 0.72rem !important;
  font-family: var(--dx-font-mono);
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--dx-lime-text) !important;
  font-weight: 700 !important;
}

/* ?? Dashboard atelier ?? */
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-grid {
  gap: 1rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-apple, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.3s ease;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--dx-lime) 50%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi b {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.05em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi span {
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

/* Pulse chart ? abstract signal bars */
html[data-app-theme='dentixa-premium'] .dx-pulse-chart {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  align-items: end;
  gap: 3px;
  height: 72px;
  margin-top: 1rem;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--dx-line);
  background:
    radial-gradient(ellipse at 30% 80%, color-mix(in srgb, var(--dx-lime) 16%, transparent), transparent 55%),
    color-mix(in srgb, var(--dx-soft) 55%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-pulse-chart > i {
  display: block;
  border-radius: 99px 99px 2px 2px;
  background: linear-gradient(180deg, var(--dx-lime-bright, var(--dx-lime)), var(--dx-lime));
  box-shadow: 0 0 10px var(--dx-lime-soft);
  opacity: 0.55;
  animation: dxPulseBar 2.8s ease-in-out infinite;
}

html[data-app-theme='dentixa-premium'] .dx-pulse-chart > i:nth-child(odd) {
  opacity: 0.85;
  animation-duration: 2.2s;
}
html[data-app-theme='dentixa-premium'] .dx-pulse-chart > i:nth-child(3n) {
  animation-delay: -0.4s;
}
html[data-app-theme='dentixa-premium'] .dx-pulse-chart > i:nth-child(4n) {
  animation-delay: -1.1s;
}

@keyframes dxPulseBar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Queue rows ? numbered ops strip */
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-title {
  font-weight: 700;
  letter-spacing: 0;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-detail {
  color: var(--dx-muted);
  font-size: 0.8rem;
}

html[data-app-theme='dentixa-premium'] .dx-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #3a4047;
  background: var(--dx-panel);
  color: var(--dx-lime);
  font: 700 10px/1 var(--dx-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-app-theme='dentixa-premium'] .dx-live-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dx-lime);
  box-shadow: none;
  animation: none;
}

/* ?? Primary CTA magnetic glow ?? */
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary'] {
  position: relative;
  isolation: isolate;
  border-radius: 999px !important;
  font-weight: 800 !important;
  overflow: hidden;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']::before {
  content: none;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']:hover::before {
  opacity: 0;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']:hover {
  transform: none;
  filter: brightness(1.06);
}

/* ?? Tables: first column emphasis ?? */
html[data-app-theme='dentixa-premium'] .dx-data-grid-shell tbody td:first-child,
html[data-app-theme='dentixa-premium'] .dx-scope-orders tbody td:first-child,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tbody td:first-child {
  font-weight: 650;
  letter-spacing: -0.01em;
}

html[data-app-theme='dentixa-premium'] .dx-data-grid-shell tbody tr,
html[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr {
  transition: background 0.2s ease, transform 0.2s ease;
}

/* ?? Reveal on enter (subtle) ?? */
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-panel,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-page-head,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi {
  animation: dxRevealUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi:nth-child(2) {
  animation-delay: 0.06s;
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi:nth-child(3) {
  animation-delay: 0.12s;
}
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi:nth-child(4) {
  animation-delay: 0.18s;
}
html[data-app-theme='dentixa-premium'] .dx-dash-queue {
  animation-delay: 0.08s;
}
html[data-app-theme='dentixa-premium'] .dx-dash-pulse {
  animation-delay: 0.14s;
}

@keyframes dxRevealUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ?? Nav brand wordmark lime accent ?? */
html[data-app-theme='dentixa-premium'] .dx-cinematic-nav .font-bold {
  letter-spacing: 0.04em;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-nav a[href*='dashboard'] .font-bold {
  letter-spacing: 0.06em;
}

/* ?? Focus rings with glow ?? */
html[data-app-theme='dentixa-premium'] :focus-visible {
  outline: 2px solid var(--dx-focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--dx-lime-soft);
}

/* Wave C — Dashboard metrics: graphite + silver, lime as accent only */
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
  padding: 0.7rem 0.8rem;
  border-radius: var(--dx-radius-sm, 8px);
  border: 1px solid var(--dx-line);
  background: var(--dx-panel);
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric:hover {
  transform: none;
  border-color: rgba(139, 147, 158, 0.85);
  background: var(--dx-panel-2);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--danger {
  background: var(--dx-panel);
  border-color: color-mix(in srgb, var(--dx-danger) 45%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--warn {
  background: var(--dx-panel);
  border-color: color-mix(in srgb, var(--dx-warning) 45%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__label {
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dx-muted);
  line-height: 1.35;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__value {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text);
  line-height: 1.3;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__value--accent,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--lime .dx-metric__value {
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__hint {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--dx-muted);
  line-height: 1.45;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-grid--ops {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-grid--ops {
    grid-template-columns: 1fr;
  }
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel-lead {
  margin: -0.25rem 0 1rem;
  font-size: 0.78rem;
  color: var(--dx-muted);
  line-height: 1.45;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-row + .dx-progress-row,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-sales-row + .dx-sales-row {
  margin-top: 0.85rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-row__meta,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-sales-row__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-row__meta b,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-sales-amount {
  color: var(--dx-text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-row__meta em {
  margin-inline-start: 0.45rem;
  font-style: normal;
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dx-lime-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-track {
  height: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dx-line) 80%, transparent);
  overflow: hidden;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s var(--ease-apple, cubic-bezier(0.22, 1, 0.36, 1));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-fill--lime {
  background: var(--dx-lime);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-fill--success {
  background: var(--dx-success);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-fill--warn {
  background: var(--dx-warning);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-progress-fill--danger {
  background: var(--dx-danger);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-finance-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-finance-mini > div {
  padding: 0.55rem 0.65rem;
  border-radius: var(--dx-radius-sm);
  border: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 50%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-finance-mini span {
  display: block;
  font-family: var(--dx-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-finance-mini strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 900px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--dx-radius-md);
  border: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell:hover {
  transform: none;
  border-color: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell span {
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell b {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell--alert b {
  color: var(--dx-lime-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-sales-rank {
  flex-shrink: 0;
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dx-lime-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-sales-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dx-text);
  font-weight: 600;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 60%, transparent);
  color: var(--dx-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-link:hover {
  border-color: color-mix(in srgb, var(--dx-lime) 50%, var(--dx-line));
  background: color-mix(in srgb, var(--dx-lime) 12%, transparent);
  color: color-mix(in srgb, var(--dx-lime-text) 55%, var(--dx-text));
}

/* ?? Reduced motion ?? */
@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-cinematic-shell::after,
  html[data-app-theme='dentixa-premium'] .dx-pulse-chart > i,
  html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow::before,
  html[data-app-theme='dentixa-premium'] .dx-live-chip::before,
  html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-panel,
  html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-page-head,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi {
    animation: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-panel:hover,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric:hover,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell:hover,
  html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][data-dx-variant='primary']:hover {
    transform: none !important;
  }
}

/* ?? Premium Experience Pass: Workspace Console ?? */
html[data-app-theme='dentixa-premium'] .dx-workspace-console {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-console-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-md);
  background: color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel));
}

html[data-app-theme='dentixa-premium'] .dx-console-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-console-body {
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-drawer__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--dx-muted);
  line-height: 1.4;
}

html[data-app-theme='dentixa-premium'] .dx-chart {
  width: 100%;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-md);
  background: color-mix(in srgb, var(--dx-soft) 40%, var(--dx-panel));
  padding: 0.35rem 0.25rem 0.15rem;
}

html[data-app-theme='dentixa-premium'] .dx-chart-tooltip {
  padding: 0.45rem 0.55rem;
  border-radius: var(--dx-radius-sm);
  border: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-panel) 94%, transparent);
  color: var(--dx-text);
  font-size: 0.72rem;
}

html[data-app-theme='dentixa-premium'] .dx-chart-tooltip__label {
  font-family: var(--dx-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dx-muted);
  margin-bottom: 0.25rem;
}

html[data-app-theme='dentixa-premium'] .dx-chart-tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='input'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='search'] input {
  border-color: var(--dx-line) !important;
  background: color-mix(in srgb, var(--dx-soft) 50%, var(--dx-panel)) !important;
  color: var(--dx-text) !important;
  border-radius: var(--dx-radius-sm) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='input']:focus,
html[data-app-theme='dentixa-premium'] [data-dx-ui='search'] input:focus {
  border-color: color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-lime) 18%, transparent) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='field'] label {
  font-family: var(--dx-font-mono);
  font-size: 10px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dx-muted) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='metric'] {
  border-color: var(--dx-line) !important;
  background: color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel)) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .dx-nav-link,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a.dx-nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--dx-radius-sm);
  padding: 0.4rem 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .dx-nav-link-active {
  box-shadow: inset 0 -2px 0 var(--dx-lime);
}

html[data-app-theme='dentixa-premium'] .dx-cmd-palette {
  border: 1px solid color-mix(in srgb, var(--dx-lime) 28%, var(--dx-line)) !important;
  box-shadow: 0 24px 60px color-mix(in srgb, #000 45%, transparent) !important;
}

html[data-app-theme='dentixa-premium'] .dx-console--accounting .sticky.top-0 {
  border-bottom-color: var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting.dx-workspace-console > .sticky.top-0 {
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--dx-bg) 88%, #111314),
    color-mix(in srgb, var(--dx-panel) 70%, #0a0d0e)
  ) !important;
}

/* ?? Identity & Emotion: dense console surfaces ?? */
html[data-app-theme='dentixa-premium'] .dx-workspace-console .dx-panel {
  padding: 0.7rem 0.8rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-workspace-console .dx-panel__title {
  margin-bottom: 0.55rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-metric-strip {
  gap: 0.45rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-metric,
html[data-app-theme='dentixa-premium'] [data-dx-ui='metric'] {
  min-height: 4.75rem !important;
  padding: 0.65rem 0.75rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-metric__value,
html[data-app-theme='dentixa-premium'] [data-dx-ui='metric'] .dx-metric__value {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] .dx-data-grid-shell {
  padding: 0.45rem 0.55rem 0.65rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-data-grid-shell table thead th,
html[data-app-theme='dentixa-premium'] [data-dx-ui='table'] thead th {
  font-family: var(--dx-font-mono) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.08em !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-data-grid-shell table tbody td,
html[data-app-theme='dentixa-premium'] [data-dx-ui='table'] tbody td {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  font-size: 0.8125rem !important;
  font-variant-numeric: tabular-nums;
}

/* Financial Command Center ? three rails */
html[data-app-theme='dentixa-premium'] .dx-fcc {
  display: grid;
  grid-template-columns: minmax(12.5rem, 15rem) minmax(0, 1fr) minmax(13rem, 16.5rem);
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 1100px) {
  html[data-app-theme='dentixa-premium'] .dx-fcc {
    grid-template-columns: 1fr;
  }
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding: 0.15rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__card {
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm);
  background: color-mix(in srgb, var(--dx-soft) 45%, var(--dx-panel));
  padding: 0.65rem 0.7rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--dx-font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dx-muted);
  margin-bottom: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text);
  line-height: 1.15;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__hint {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--dx-muted);
  line-height: 1.35;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--dx-muted);
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__row b {
  color: var(--dx-text);
  font-weight: 600;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center {
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 720px) {
  html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics > div {
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm);
  background: color-mix(in srgb, var(--dx-soft) 40%, var(--dx-panel));
  padding: 0.5rem 0.6rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics .text-xs {
  font-family: var(--dx-font-mono);
  font-size: 9px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics .text-lg {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* Accounting Premium visual polish (no logic) */
html[data-app-theme='dentixa-premium'] .dx-console--accounting [data-dx-icon],
html[data-app-theme='dentixa-premium'] .dx-fcc [data-dx-icon] {
  color: color-mix(in srgb, var(--dx-lime-text) 55%, var(--dx-text));
}

html[data-app-theme='dentixa-premium'] .dx-console--accounting .dx-console-toolbar button,
html[data-app-theme='dentixa-premium'] .dx-console--accounting [role='toolbar'] button {
  border-radius: 0.65rem;
  gap: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-console--accounting table th {
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics .text-lg {
  font-size: 1rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ?? Identity & Emotion: executive charts ?? */
html[data-app-theme='dentixa-premium'] .dx-chart--executive {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--dx-line) 80%, transparent);
  border-radius: var(--dx-radius-sm);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--dx-soft) 55%, transparent),
      color-mix(in srgb, var(--dx-panel) 88%, transparent)
    );
  overflow: hidden;
}

html[data-app-theme='dentixa-premium'] .dx-chart--executive::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--dx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dx-line) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

html[data-app-theme='dentixa-premium'] .dx-chart-tooltip {
  border: 1px solid var(--dx-line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--dx-panel) 92%, #000);
  color: var(--dx-text);
  padding: 0.45rem 0.55rem;
  font-family: var(--dx-font-mono);
  font-size: 10px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.55);
}

html[data-app-theme='dentixa-premium'] .dx-chart-tooltip__label {
  color: var(--dx-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

html[data-app-theme='dentixa-premium'] .dx-chart-tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* ?? Lab CAD/CAM motifs by console personality ?? */
html[data-app-theme='dentixa-premium'] [data-dx-console] {
  position: relative;
}

html[data-app-theme='dentixa-premium'] [data-dx-console]::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(var(--dx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dx-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

html[data-app-theme='dentixa-premium'] [data-dx-console] > * {
  position: relative;
  z-index: 1;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='accounting'] [role='toolbar'] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dx-lime) 22%, transparent);
}

html[data-app-theme='dentixa-premium'] [data-dx-console='production'] .dx-panel,
html[data-app-theme='dentixa-premium'] [data-dx-console='production'] .rounded-2xl {
  border-inline-start: 3px solid color-mix(in srgb, var(--dx-lime) 55%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] [data-dx-console='inventory'] .dx-metric,
html[data-app-theme='dentixa-premium'] [data-dx-console='inventory'] [data-dx-ui='metric'] {
  border-color: color-mix(in srgb, var(--dx-warn, #f0b429) 35%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tbody tr {
  border-inline-start: 2px solid transparent;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tbody tr:hover {
  border-inline-start-color: color-mix(in srgb, var(--dx-lime) 70%, transparent);
}

/* ?? Calm motion (atelier only) ?? */
@keyframes dx-console-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-app-theme='dentixa-premium'] [data-dx-console],
html[data-app-theme='dentixa-premium'] .dx-fcc,
html[data-app-theme='dentixa-premium'] .dx-panel,
html[data-app-theme='dentixa-premium'] [data-dx-ui='card'] {
  animation: dx-console-reveal 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__card {
  transition: border-color 160ms ease, background-color 160ms ease;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__card:hover {
  border-color: color-mix(in srgb, var(--dx-lime) 40%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] button,
html[data-app-theme='dentixa-premium'] a,
html[data-app-theme='dentixa-premium'] [data-dx-ui='button'] {
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] [data-dx-console],
  html[data-app-theme='dentixa-premium'] .dx-fcc,
  html[data-app-theme='dentixa-premium'] .dx-panel,
  html[data-app-theme='dentixa-premium'] [data-dx-ui='card'],
  html[data-app-theme='dentixa-premium'] .dx-fcc-rail__card {
    animation: none !important;
    transition: none !important;
  }
}

/* ?? Access ? marketing continuity ?? */
html[data-app-theme='dentixa-premium'] .dx-scope-access.dx-access-premium {
  --dx-access-ink: #080a0b;
  --dx-access-panel: #111314;
  --dx-access-lime: #c8f04a;
  /* Background locked in dentixa-access-login.css (always ink, day or night). */
}

html[data-app-theme='dentixa-premium'] .dx-access-visual {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--dx-access-lime, #c8f04a) 18%, transparent), transparent 55%),
    linear-gradient(160deg, #050505 0%, #0c1012 55%, #111314 100%);
}

html[data-app-theme='dentixa-premium'] .dx-access-visual::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(200, 240, 74, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 240, 74, 0.35) 1px, transparent 1px);
  background-size: 32px 32px;
}

html[data-app-theme='dentixa-premium'] .dx-access-form button[type='submit'],
html[data-app-theme='dentixa-premium'] .dx-scope-access button[type='submit'] {
  background: var(--dx-access-lime, var(--dx-lime)) !important;
  color: #0a0d10 !important;
  border: none !important;
  font-weight: 650;
}

html[data-app-theme='dentixa-premium'] .dx-access-form .dx-eyebrow,
html[data-app-theme='dentixa-premium'] .dx-access-visual .dx-eyebrow {
  color: var(--dx-access-lime, var(--dx-lime));
  letter-spacing: 0.16em;
}

/* Signature Moments ? calm toast + brand splash after login */
html[data-app-theme='dentixa-premium'] .dx-signature-moment,
.dx-signature-moment {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1.25rem;
  /* Above top nav (100) and floating hubs (140+) so Continue is always tappable */
  z-index: 10050;
  pointer-events: none;
  animation: dx-signature-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment--brand,
.dx-signature-moment--brand {
  inset: 0;
  inset-inline-end: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: transparent;
  backdrop-filter: none;
  animation: dx-signature-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
  touch-action: manipulation;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__brand,
.dx-signature-moment__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  max-width: min(92vw, 40rem);
  width: 100%;
}

@media (max-width: 640px) {
  html[data-app-theme='dentixa-premium'] .dx-signature-moment__brand,
  .dx-signature-moment__brand {
    min-height: min(100%, 100dvh);
    justify-content: center;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  html[data-app-theme='dentixa-premium'] .dx-signature-moment__dismiss,
  .dx-signature-moment__dismiss {
    position: sticky;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    margin-top: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__copy--brand,
.dx-signature-moment__copy--brand {
  text-align: center;
  align-items: center;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__copy--brand b,
.dx-signature-moment__copy--brand b {
  font-size: 1rem;
  color: #f5f5f7;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__copy--brand span,
.dx-signature-moment__copy--brand span {
  color: rgba(245, 245, 247, 0.65);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__lock-badge,
.dx-signature-moment__lock-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 24rem);
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(200, 240, 74, 0.32);
  background: linear-gradient(135deg, rgba(200, 240, 74, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px rgba(200, 240, 74, 0.06), 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__lock-icon,
.dx-signature-moment__lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  color: #c8f04a;
  background: transparent;
  border: 1px solid rgba(200, 240, 74, 0.45);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__lock-copy,
.dx-signature-moment__lock-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: start;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__lock-copy strong,
.dx-signature-moment__lock-copy strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f5f5f7;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__lock-copy span,
.dx-signature-moment__lock-copy span {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(245, 245, 247, 0.62);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__profile,
.dx-signature-moment__profile {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  max-width: min(92vw, 24rem);
  margin: 0.35rem 0 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: start;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__profile > div,
.dx-signature-moment__profile > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__profile dt,
.dx-signature-moment__profile dt {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.45);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__profile dd,
.dx-signature-moment__profile dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f5f7;
  word-break: break-word;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__tip,
.dx-signature-moment__tip {
  width: 100%;
  max-width: min(92vw, 24rem);
  margin-top: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 240, 74, 0.18);
  background: rgba(200, 240, 74, 0.06);
  text-align: start;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__tip-label,
.dx-signature-moment__tip-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 240, 74, 0.9);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__tip p,
.dx-signature-moment__tip p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(245, 245, 247, 0.78);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__password,
.dx-signature-moment__password {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: min(92vw, 24rem);
  margin-top: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__password p,
.dx-signature-moment__password p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(245, 245, 247, 0.55);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__recover,
.dx-signature-moment__recover {
  font-size: 0.8125rem;
  font-weight: 650;
  color: #c8f04a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__recover:hover,
.dx-signature-moment__recover:hover {
  color: #dff57a;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__warn,
.dx-signature-moment__warn {
  color: #f87171 !important;
  font-weight: 600;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__ips,
.dx-signature-moment__ips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__ip,
.dx-signature-moment__ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__secure,
.dx-signature-moment__secure {
  margin-top: 0.35rem;
  max-width: 22rem;
  text-align: center;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__secure--quiet p,
.dx-signature-moment__secure--quiet p {
  color: rgba(245, 245, 247, 0.55);
  font-weight: 500;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__secure p,
.dx-signature-moment__secure p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(200, 240, 74, 0.92);
  font-weight: 600;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__crypto,
.dx-signature-moment__crypto {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.55rem;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__crypto span,
.dx-signature-moment__crypto span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
  border: 1px solid rgba(200, 240, 74, 0.28);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  background: rgba(200, 240, 74, 0.08);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__crypto--quiet span,
.dx-signature-moment__crypto--quiet span {
  opacity: 0.7;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__dismiss,
.dx-signature-moment__dismiss {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
  min-height: 48px;
  min-width: min(16rem, 86vw);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 240, 74, 0.35);
  background: #c8f04a;
  color: #050505;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__dismiss:disabled,
.dx-signature-moment__dismiss:disabled {
  opacity: 0.7;
  cursor: default;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment--brand,
.dx-signature-moment--brand {
  cursor: default;
  pointer-events: auto;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment--tv-off,
.dx-signature-moment--tv-off {
  animation: dx-signature-tv-off 480ms cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
  pointer-events: none;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment--tv-off .dx-signature-moment__brand,
.dx-signature-moment--tv-off .dx-signature-moment__brand {
  animation: dx-signature-tv-off-inner 480ms cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

html[data-app-theme='dentixa-premium'] .dx-access-mobile-brand {
  display: none;
}

@media (max-width: 900px) {
  html[data-app-theme='dentixa-premium'] .dx-access-mobile-brand {
    display: block;
  }
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 14rem;
  max-width: 20rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--dx-lime) 35%, var(--dx-line));
  border-radius: var(--dx-radius-sm);
  background: color-mix(in srgb, var(--dx-panel) 92%, #000);
  box-shadow: var(--dx-shadow-soft);
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: var(--dx-lime);
  background: color-mix(in srgb, var(--dx-lime) 14%, transparent);
  animation: dx-signature-pulse 320ms ease-out both;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__copy b {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

html[data-app-theme='dentixa-premium'] .dx-signature-moment__copy span {
  font-size: 0.6875rem;
  color: var(--dx-muted);
  line-height: 1.35;
}

html[data-app-theme='dentixa-premium'] .dx-signature-pulse {
  animation: dx-signature-pulse 320ms ease-out both;
}

@keyframes dx-signature-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dx-signature-tv-off {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  18% {
    filter: brightness(1.55);
  }
  42% {
    opacity: 1;
    filter: brightness(1.1);
    transform: scaleY(0.08) scaleX(1.02);
  }
  70% {
    opacity: 0.85;
    filter: brightness(2.2);
    transform: scaleY(0.012) scaleX(1.08);
  }
  100% {
    opacity: 0;
    filter: brightness(0);
    transform: scaleY(0) scaleX(1.2);
  }
}

@keyframes dx-signature-tv-off-inner {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.02, 0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.08, 0.02);
  }
}

@keyframes dx-signature-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  60% {
    transform: scale(1.04);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-signature-moment,
  html[data-app-theme='dentixa-premium'] .dx-signature-moment__icon,
  html[data-app-theme='dentixa-premium'] .dx-signature-pulse,
  html[data-app-theme='dentixa-premium'] .dx-signature-moment--tv-off,
  html[data-app-theme='dentixa-premium'] .dx-signature-moment--tv-off .dx-signature-moment__brand,
  .dx-signature-moment--tv-off,
  .dx-signature-moment--tv-off .dx-signature-moment__brand {
    animation: none !important;
  }
}

/* ???????????????????????????????????????????????????????????????????????????
   Premium Polish Pass ? room accents, density, micro-states
   ??????????????????????????????????????????????????????????????????????????? */

html[data-app-theme='dentixa-premium'] .dx-workspace-console {
  gap: var(--dx-space-4);
}

html[data-app-theme='dentixa-premium'] .dx-console-toolbar {
  margin-bottom: var(--dx-space-3);
  padding: var(--dx-space-2) var(--dx-space-3);
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm);
  background: color-mix(in srgb, var(--dx-room-tint) 55%, var(--dx-panel));
}

html[data-app-theme='dentixa-premium'] .dx-console-insights {
  margin-bottom: var(--dx-space-4);
}

html[data-app-theme='dentixa-premium'] .dx-console-body {
  display: flex;
  flex-direction: column;
  gap: var(--dx-space-3);
}

html[data-app-theme='dentixa-premium'] .dx-room-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--dx-space-2);
}

html[data-app-theme='dentixa-premium'] .dx-room-insights .dx-metric {
  min-height: 3.25rem !important;
  padding: var(--dx-space-2) var(--dx-space-3) !important;
  border-color: color-mix(in srgb, var(--dx-room-accent) 28%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-room-insights .dx-metric__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-stage-row {
  display: flex;
  flex-direction: column;
  gap: var(--dx-space-2);
  padding: var(--dx-space-3) var(--dx-space-4);
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm);
  border-inline-start: 3px solid var(--dx-room-accent);
  background: color-mix(in srgb, var(--dx-soft) 40%, var(--dx-panel));
}

html[data-app-theme='dentixa-premium'] .dx-stage-row:hover {
  border-color: color-mix(in srgb, var(--dx-room-accent) 45%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] .dx-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: var(--dx-space-2);
}

html[data-app-theme='dentixa-premium'] .dx-kpi-strip > * {
  padding: var(--dx-space-2) var(--dx-space-3) !important;
  border-radius: var(--dx-radius-sm) !important;
  box-shadow: none !important;
  min-height: 4rem;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-strip .text-3xl {
  font-size: var(--dx-type-metric) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

html[data-app-theme='dentixa-premium'] [data-dx-console]::before {
  opacity: var(--dx-room-grid-opacity);
  background-image:
    linear-gradient(var(--dx-room-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--dx-room-accent) 1px, transparent 1px);
}

html[data-app-theme='dentixa-premium'] [data-dx-console='dashboard'] {
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: color-mix(in srgb, var(--dx-lime) 10%, transparent);
  --dx-room-grid-opacity: 0.035;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] {
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: color-mix(in srgb, var(--dx-lime) 8%, transparent);
  --dx-room-grid-opacity: 0.03;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='production'] {
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: color-mix(in srgb, var(--dx-lime) 8%, transparent);
  --dx-room-grid-opacity: 0.03;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='accounting'] {
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: var(--dx-lime-soft);
  --dx-room-grid-opacity: 0.04;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='inventory'] {
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: color-mix(in srgb, var(--dx-lime) 8%, transparent);
  --dx-room-grid-opacity: 0.03;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='reports'],
html[data-app-theme='dentixa-premium'] [data-dx-console='advisor'],
html[data-app-theme='dentixa-premium'] [data-dx-console='crm'],
html[data-app-theme='dentixa-premium'] [data-dx-console='settings'],
html[data-app-theme='dentixa-premium'] [data-dx-console='superAdmin'] {
  --dx-room-accent: var(--dx-lime);
  --dx-room-tint: var(--dx-lime-soft);
}

html[data-app-theme='dentixa-premium'] [data-dx-console='accounting'] [role='toolbar'] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dx-room-accent) 28%, transparent);
}

html[data-app-theme='dentixa-premium'] [data-dx-console='production'] .dx-panel,
html[data-app-theme='dentixa-premium'] [data-dx-console='production'] .dx-stage-row {
  border-inline-start-color: var(--dx-room-accent);
}

html[data-app-theme='dentixa-premium'] [data-dx-console='inventory'] .dx-metric,
html[data-app-theme='dentixa-premium'] [data-dx-console='inventory'] [data-dx-ui='metric'],
html[data-app-theme='dentixa-premium'] [data-dx-console='inventory'] .dx-kpi-strip > * {
  border-color: color-mix(in srgb, var(--dx-room-accent) 40%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tbody tr:hover {
  border-inline-start-color: var(--dx-room-accent);
}

html[data-app-theme='dentixa-premium'] .dx-premium-page-head .dx-eyebrow,
html[data-app-theme='dentixa-premium'] [data-dx-console] .dx-eyebrow {
  color: var(--dx-room-accent);
}

/* Micro-states */
html[data-app-theme='dentixa-premium'] [data-dx-ui='button']:focus-visible,
html[data-app-theme='dentixa-premium'] button:focus-visible,
html[data-app-theme='dentixa-premium'] a:focus-visible,
html[data-app-theme='dentixa-premium'] input:focus-visible,
html[data-app-theme='dentixa-premium'] select:focus-visible,
html[data-app-theme='dentixa-premium'] textarea:focus-visible {
  outline: 2px solid var(--dx-focus-ring);
  outline-offset: 2px;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='button'][disabled],
html[data-app-theme='dentixa-premium'] button:disabled {
  opacity: 0.48;
  filter: grayscale(0.15);
  cursor: not-allowed;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='button']:active:not(:disabled) {
  transform: translateY(0.5px);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='empty'],
html[data-app-theme='dentixa-premium'] [data-dx-state='empty'] {
  padding: var(--dx-space-7) var(--dx-space-4);
  border: 1px dashed color-mix(in srgb, var(--dx-room-accent, var(--dx-lime)) 35%, var(--dx-line));
  border-radius: var(--dx-radius-sm);
  background: color-mix(in srgb, var(--dx-soft) 50%, var(--dx-panel));
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='empty'] .dx-empty-icon,
html[data-app-theme='dentixa-premium'] [data-dx-state='empty'] .dx-empty-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--dx-radius-sm);
  background: color-mix(in srgb, var(--dx-room-accent, var(--dx-lime)) 14%, transparent);
  color: var(--dx-room-accent, var(--dx-lime));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--dx-space-3);
}

html[data-app-theme='dentixa-premium'] [data-dx-state='loading'] {
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] [data-dx-state='loading'] .dx-loading-ring {
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--dx-line);
  border-top-color: var(--dx-lime);
  border-radius: 999px;
  animation: dx-spin 0.7s linear infinite;
}

@keyframes dx-spin {
  to {
    transform: rotate(360deg);
  }
}

html[data-app-theme='dentixa-premium'] [data-dx-state='error'] {
  color: var(--dx-danger);
}

html[data-app-theme='dentixa-premium'] [data-dx-toast],
html[data-app-theme='dentixa-premium'] .dx-toast {
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-sm) !important;
  background: color-mix(in srgb, var(--dx-panel) 94%, #000) !important;
  color: var(--dx-text) !important;
  box-shadow: var(--dx-shadow-soft) !important;
  font-size: var(--dx-type-body);
  backdrop-filter: blur(10px);
}

html[data-app-theme='dentixa-premium'] .dx-toast--success {
  border-color: color-mix(in srgb, var(--dx-success) 45%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-toast--error {
  border-color: color-mix(in srgb, var(--dx-danger) 45%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-toast--warning {
  border-color: color-mix(in srgb, var(--dx-warning) 45%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-toast--info {
  border-color: color-mix(in srgb, var(--dx-info) 45%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='dialog'],
html[data-app-theme='dentixa-premium'] .dx-dialog-panel {
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-md) !important;
  background: var(--dx-panel) !important;
  box-shadow: var(--dx-shadow-soft) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='tooltip'],
html[data-app-theme='dentixa-premium'] .dx-tooltip {
  border: 1px solid var(--dx-line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--dx-panel) 96%, #000);
  color: var(--dx-text);
  font-family: var(--dx-font-mono);
  font-size: 10px;
  padding: 0.35rem 0.5rem;
}

html[data-app-theme='dentixa-premium'] [role='menu'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='menu'] {
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-sm) !important;
  background: var(--dx-panel) !important;
  box-shadow: var(--dx-shadow-soft) !important;
  padding: var(--dx-space-1) !important;
}

html[data-app-theme='dentixa-premium'] .dx-chart--executive {
  stroke-width: 1.35;
}

html[data-app-theme='dentixa-premium'] .dx-chart--executive .recharts-cartesian-axis-tick-value {
  font-size: 9px !important;
  fill: var(--dx-muted) !important;
}

/* Access continuity ? signup/forgot/activate share login DNA */
html[data-app-theme='dentixa-premium'] .dx-scope-access {
  --dx-access-ink: #050505;
  --dx-access-panel: #111314;
  --dx-access-lime: #c8f04a;
}

html[data-app-theme='dentixa-premium'] .dx-scope-access:not(.dx-access-premium) {
  background: var(--dx-bg);
}

html[data-app-theme='dentixa-premium'] .dx-scope-access .rounded-2xl,
html[data-app-theme='dentixa-premium'] .dx-scope-access .rounded-xl {
  border-color: var(--dx-line);
  background: var(--dx-panel);
}

html[data-app-theme='dentixa-premium'] .dx-scope-access a {
  color: var(--dx-lime);
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__card {
  padding: var(--dx-space-2) var(--dx-space-3);
}

html[data-app-theme='dentixa-premium'] .dx-fcc-center .dx-fcc-metrics {
  gap: var(--dx-space-2);
  margin-bottom: var(--dx-space-3);
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] [data-dx-state='loading'] .dx-loading-ring {
    animation: none !important;
    border-top-color: var(--dx-muted);
  }
}

/* ?? Command deck: flagship dashboard luxury ?? */
html[data-app-theme='dentixa-premium'] [data-dx-console='dashboard'] {
  --dx-room-grid-opacity: 0.055;
  --dx-room-tint: color-mix(in srgb, var(--dx-lime) 14%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-head {
  position: relative;
  padding-block: 1.15rem 1.35rem;
  isolation: isolate;
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-head::before {
  content: '';
  position: absolute;
  inset: -0.35rem -0.5rem auto;
  height: min(12rem, 42vw);
  z-index: -1;
  pointer-events: none;
  border-radius: var(--dx-radius-lg, 1.25rem);
  background:
    radial-gradient(ellipse 70% 80% at 12% 20%, color-mix(in srgb, var(--dx-lime) 22%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 70% at 88% 10%, color-mix(in srgb, var(--dx-lime) 10%, transparent), transparent 55%);
  opacity: 0.9;
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-title {
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  letter-spacing: -0.07em !important;
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-desc {
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--dx-muted) 70%, var(--dx-text));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel__title-icon {
  display: inline-flex;
  color: var(--dx-lime-text);
  opacity: 0.92;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--dx-lime) 35%, var(--dx-line));
  background: color-mix(in srgb, var(--dx-lime) 12%, transparent);
  color: var(--dx-lime-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--hero {
  grid-column: auto;
  min-height: 0;
  border-color: var(--dx-line);
  background: var(--dx-panel);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-command-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-bottom: 0.35rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--dx-radius-md);
  border: 1px solid color-mix(in srgb, var(--dx-lime) 38%, var(--dx-line));
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--dx-lime) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-command-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  color: var(--dx-lime-text);
  background: color-mix(in srgb, var(--dx-lime) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--dx-lime) 40%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-command-alert__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 12rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-command-alert__copy strong {
  font-size: 0.92rem;
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-command-alert__copy span {
  font-size: 0.75rem;
  color: var(--dx-muted);
  line-height: 1.4;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-command-alert__action {
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--dx-lime-text) 70%, var(--dx-text));
  border-bottom: 1px solid color-mix(in srgb, var(--dx-lime) 45%, transparent);
  padding-block: 0.15rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row--warning {
  border-inline-start: 3px solid #f0b429;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row--lime {
  border-inline-start: 3px solid var(--dx-lime);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row--success {
  border-inline-start: 3px solid #34d399;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row--danger {
  border-inline-start: 3px solid #fb7185;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-kpi__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--dx-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-link {
  gap: 0.4rem;
  border-radius: 0.75rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-link [data-dx-icon] {
  color: var(--dx-lime-text);
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-head::before {
    opacity: 0.45;
  }
}

/* ?? App chrome: marketing-grade shell (v1 unification) ?? */
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav.app-top-navigation {
  min-height: 3.75rem;
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid color-mix(in srgb, var(--dx-lime) 14%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .dx-nav-link-active,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a[aria-current='page'] {
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dx-lime) 32%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-workspace-console .dx-console-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--dx-radius-md, 0.85rem);
  border: 1px solid color-mix(in srgb, var(--dx-room-accent, var(--dx-lime)) 22%, var(--dx-line));
  background: color-mix(in srgb, var(--dx-soft) 55%, var(--dx-panel));
}

html[data-app-theme='dentixa-premium'] .dx-workspace-console .dx-page-head {
  margin-bottom: 0.85rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc {
  gap: 0.85rem;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail {
  border-radius: var(--dx-radius-md, 0.85rem);
  border-color: color-mix(in srgb, var(--dx-lime) 20%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] aside.border-r,
html[data-app-theme='dentixa-premium'] aside.border-l {
  border-color: color-mix(in srgb, var(--dx-lime) 12%, var(--dx-line)) !important;
  background: color-mix(in srgb, var(--dx-panel) 92%, transparent) !important;
}

/* Mission Control rails */
html[data-app-theme='dentixa-premium'] .dx-mc-rails {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

html[data-app-theme='dentixa-premium'] .dx-mc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1100px) {
  html[data-app-theme='dentixa-premium'] .dx-mc-grid {
    grid-template-columns: 1fr;
  }
}

html[data-app-theme='dentixa-premium'] .dx-mc-stage-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.5rem;
}

html[data-app-theme='dentixa-premium'] .dx-mc-stage {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 50%, var(--dx-panel));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

html[data-app-theme='dentixa-premium'] .dx-mc-stage:hover {
  border-color: color-mix(in srgb, var(--dx-lime) 45%, var(--dx-line));
  transform: translateY(-1px);
}

html[data-app-theme='dentixa-premium'] .dx-mc-stage span {
  font-family: var(--dx-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-mc-stage b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.03em;
}

html[data-app-theme='dentixa-premium'] .dx-mc-insight {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--dx-line);
  background: color-mix(in srgb, var(--dx-soft) 45%, transparent);
  margin-bottom: 0.45rem;
}

html[data-app-theme='dentixa-premium'] .dx-mc-insight:last-child {
  margin-bottom: 0;
}

html[data-app-theme='dentixa-premium'] .dx-mc-insight strong {
  display: block;
  font-size: 0.82rem;
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-mc-insight span {
  font-size: 0.72rem;
  color: var(--dx-muted);
  line-height: 1.4;
}

html[data-app-theme='dentixa-premium'] .dx-mc-empty {
  font-size: 0.78rem;
  color: var(--dx-muted);
  padding: 0.5rem 0;
}

html[data-app-theme='dentixa-premium'] .dx-mc-empty a {
  color: color-mix(in srgb, var(--dx-lime-text) 65%, var(--dx-text));
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--dx-lime) 40%, transparent);
}

/* ═══ Premium Command Calm v1 — dashboard + FCC rhythm ═══ */
html[data-app-theme='dentixa-premium'] .dx-command-deck.dx-premium-dashboard,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting.dx-workspace-console {
  --dx-space-3: 1rem;
  --dx-space-4: 1.25rem;
  --dx-space-5: 1.5rem;
  --dx-space-6: 2rem;
  --dx-space-7: 2.5rem;
  --dx-space-8: 3rem;
  --dx-type-eyebrow: 0.75rem;
  --dx-type-caption: 0.875rem;
  --dx-type-body: 0.9375rem;
  --dx-type-body-lg: 1rem;
  --dx-type-metric: clamp(1.375rem, 2.4vw, 1.75rem);
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-title {
  font-size: clamp(1.875rem, 4.5vw, 2.25rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-desc {
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-eyebrow {
  font-size: var(--dx-type-eyebrow) !important;
  letter-spacing: 0.12em !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-console-insights {
  margin-block: var(--dx-space-5) var(--dx-space-6);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dx-space-4);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--primary {
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: var(--dx-space-4);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--primary .dx-metric {
  padding: var(--dx-space-5) var(--dx-space-4) !important;
  border: 1px solid color-mix(in srgb, var(--dx-lime) 22%, var(--dx-line));
  background: color-mix(in srgb, var(--dx-lime) 6%, var(--dx-soft));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--primary .dx-metric__value {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--secondary {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--dx-space-3);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--secondary .dx-metric {
  padding: var(--dx-space-3) !important;
  border: 1px solid var(--dx-line);
  background: transparent;
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--secondary .dx-metric__label {
  font-size: 0.8125rem !important;
  font-weight: 550 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--secondary .dx-metric__value {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  font-weight: 700 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--secondary .dx-metric__hint {
  font-size: 0.75rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-mc-band {
  display: flex;
  flex-direction: column;
  gap: var(--dx-space-3);
  margin-bottom: var(--dx-space-2);
}

html[data-app-theme='dentixa-premium'] .dx-mc-band__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel--weight-lg {
  padding: var(--dx-space-5) !important;
  border-color: color-mix(in srgb, var(--dx-lime) 18%, var(--dx-line));
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel--weight-md {
  padding: var(--dx-space-4) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel--weight-sm {
  padding: var(--dx-space-3) var(--dx-space-4) !important;
  background: color-mix(in srgb, var(--dx-soft) 40%, transparent);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric {
  padding: var(--dx-space-5) var(--dx-space-4) !important;
  border-radius: 1.15rem;
  gap: 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__label {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__value {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__hint {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__icon {
  display: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--attention .dx-metric__icon {
  display: inline-flex;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-mc-rails {
  display: flex;
  flex-direction: column;
  gap: var(--dx-space-6);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-mc-grid {
  gap: var(--dx-space-5);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel__title,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard [data-dx-ui='panel'] .dx-panel__title {
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-title {
  font-size: 0.9375rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-detail {
  font-size: 0.875rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-avatar {
  display: inline-flex;
}

html[data-app-theme='dentixa-premium'] .dx-mc-details {
  /* deprecated: keep for safety if any remnant; content must stay visible */
  display: contents;
}

html[data-app-theme='dentixa-premium'] .dx-mc-details > summary {
  display: none;
}

html[data-app-theme='dentixa-premium'] .dx-attention-list {
  display: flex;
  flex-direction: column;
  gap: var(--dx-space-2);
  margin-bottom: var(--dx-space-4);
}

@media (max-width: 720px) {
  /* Mobile-native denser command: stack bands, primary hero full-width, secondary 2-up */
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard.dx-command-dense .dx-console-insights {
    margin-block: var(--dx-space-3) var(--dx-space-4);
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--primary {
    grid-template-columns: 1fr;
    gap: var(--dx-space-3);
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--primary .dx-metric--hero {
    padding: var(--dx-space-6) var(--dx-space-4) !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--primary .dx-metric:not(.dx-metric--hero) {
    /* pair remaining primary KPIs as compact rows via 2-col when 2+ */
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--dx-space-2);
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-mc-grid,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-mc-grid--primary,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-mc-grid--secondary {
    grid-template-columns: 1fr !important;
    gap: var(--dx-space-3);
  }

  html[data-app-theme='dentixa-premium'] .dx-mc-band {
    gap: var(--dx-space-2);
    padding-block: var(--dx-space-2);
    border-top: 1px solid var(--dx-line);
  }

  html[data-app-theme='dentixa-premium'] .dx-mc-band:first-of-type {
    border-top: 0;
  }

  html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-title {
    font-size: clamp(1.35rem, 4.2vw + 0.7rem, 1.7rem) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
    text-wrap: unset !important;
    max-width: 100%;
  }

  html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-title {
    letter-spacing: 0 !important;
  }

  /* Title gets full content width — actions stack below, never squeeze the heading */
  html[data-app-theme='dentixa-premium'] .dx-page-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-page-head__copy,
  html[data-app-theme='dentixa-premium'] .dx-page-head__actions {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-desc {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel--weight-sm .dx-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FCC calm */
html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm {
  gap: var(--dx-space-5);
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail {
  gap: var(--dx-space-4);
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail__card {
  padding: var(--dx-space-4);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail__label {
  font-size: 0.875rem !important;
  letter-spacing: 0.02em;
  text-transform: none;
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail__value {
  font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail__hint {
  font-size: 0.875rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__section-label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__card--alert {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--dx-line));
  background: color-mix(in srgb, #f59e0b 8%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-fcc-rail__link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--dx-lime-text) 70%, var(--dx-text));
  text-decoration: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-section {
  margin-top: var(--dx-space-6);
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-section__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--dx-space-3);
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-acc-section='overview'] h1 {
  font-size: clamp(1.875rem, 3vw, 2.25rem) !important;
}

@media (max-width: 1100px) {
  html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm {
    grid-template-columns: 1fr !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail--insight {
    order: 1;
  }

  html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-center {
    order: 3;
  }

  html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--calm .dx-fcc-rail--context {
    order: 4;
  }
}

/**
 * Dentixa NEW Design DNA — Step 1.5 visual refinement.
 * Pack: dentixa-premium ONLY. Classic untouched.
 *
 * Direction: Silver + Charcoal + White + restrained Dentixa Green.
 * Green = accent/status/action only — never page fill / ambient burn.
 *
 * @see docs/theme-packs/NEW_DESIGN_DNA.md
 * @see src/lib/theme/tokens/newDesignDna.ts
 */

/* -------------------------------------------------------------------------- */
/* Token remap                                                                */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'],
html.theme-pack-premium {
  --dx-dna-version: 1.7.0-canonical-dna;

  --dx-dna-bg: #f5f5f7;
  --dx-dna-workspace: #eceef2;
  --dx-dna-panel: #ffffff;
  --dx-dna-soft: #eef0f3;
  --dx-dna-silver: #8b939e;
  --dx-dna-line: rgba(139, 147, 158, 0.42);
  --dx-dna-line-strong: rgba(90, 98, 107, 0.55);
  --dx-dna-text: #12141a;
  --dx-dna-text-secondary: #5c6570;
  --dx-dna-text-muted: rgb(var(--ui-text-muted));
  --dx-dna-primary: #7aab12;
  --dx-dna-primary-deep: #5f8a0e;
  --dx-dna-primary-bright: var(--tok-brand-lime-on-dark);
  --dx-dna-primary-soft: rgba(122, 171, 18, 0.08);
  --dx-dna-success: rgb(var(--ui-premium-success-text));
  --dx-dna-info: rgb(var(--ui-info));
  --dx-dna-warning: rgb(var(--ui-premium-warning-text));
  --dx-dna-danger: rgb(var(--ui-danger));
  --dx-dna-control-line: rgb(var(--ui-premium-control-border));
  --dx-dna-kohl: #0a0d14;
  --dx-dna-charcoal: #0a0d14;

  /* Shared --dx-* aligned to silver-first DNA */
  --dx-bg: var(--dx-dna-bg);
  --dx-panel: var(--dx-dna-panel);
  --dx-soft: var(--dx-dna-soft);
  --dx-panel-2: #f7f8fa;
  --dx-elevated: #e8eaee;
  --dx-silver-border: rgba(90, 98, 107, 0.45);
  --dx-line: var(--dx-dna-line);
  --dx-line-subtle: rgba(139, 147, 158, 0.28);
  --dx-text: var(--dx-dna-text);
  --dx-muted: var(--dx-dna-silver);
  --dx-lime: var(--dx-dna-primary);
  --dx-lime-deep: var(--dx-dna-primary-deep);
  --dx-lime-bright: var(--dx-dna-primary-bright);
  --dx-lime-soft: var(--dx-dna-primary-soft);
  --dx-lime-glow: rgba(122, 171, 18, 0.12);
  --lime-glow: var(--dx-lime-glow);

  --dx-font-ui: var(--font-num), var(--font-cairo), 'Noto Sans Arabic', system-ui, sans-serif;
  --dx-font-display: var(--font-num), var(--font-cairo), 'Noto Sans Arabic', system-ui, sans-serif;

  --dx-dna-display: 28px;
  --dx-dna-h1: 22px;
  --dx-dna-h2: 18px;
  --dx-dna-h3: 16px;
  --dx-dna-body: 15px;
  --dx-dna-small: 13px;
  --dx-dna-caption: 12px;
  --dx-dna-numeric: 20px;
  --dx-dna-text-display: var(--dx-dna-display);
  --dx-dna-text-title-lg: var(--dx-dna-h1);
  --dx-dna-text-title: var(--dx-dna-h2);
  --dx-dna-text-body: var(--dx-dna-body);
  --dx-dna-text-body-sm: var(--dx-dna-small);
  --dx-dna-text-caption: var(--dx-dna-caption);

  --dx-radius-sm: 8px;
  --dx-radius-md: 12px;
  --dx-radius-lg: 16px;
  --dx-radius-xl: 20px;
  --dx-dna-space-1: 4px;
  --dx-dna-space-2: 8px;
  --dx-dna-space-3: 12px;
  --dx-dna-space-4: 16px;
  --dx-dna-space-5: 20px;
  --dx-dna-space-6: 24px;
  --dx-dna-space-8: 32px;

  --dx-dna-elev-1: 0 1px 2px rgba(10, 13, 20, 0.03), 0 0 0 1px rgba(139, 147, 158, 0.22);
  --dx-dna-elev-2: 0 4px 14px rgba(10, 13, 20, 0.05), 0 0 0 1px rgba(139, 147, 158, 0.28);
  --dx-dna-elev-3: 0 10px 28px rgba(10, 13, 20, 0.08), 0 0 0 1px rgba(139, 147, 158, 0.3);
  --dx-dna-elev-float: 0 6px 20px rgba(10, 13, 20, 0.06), 0 0 0 1px rgba(139, 147, 158, 0.32);
  --dx-shadow-soft: var(--dx-dna-elev-1);
  --dx-shadow-lift: var(--dx-dna-elev-float);

  --dx-dna-border-w: 1px;
  --dx-dna-glow-silver-idle: 0 0 0 1px rgb(var(--ui-premium-control-border));
  --dx-dna-glow-silver-hover: 0 0 0 1px rgba(168, 177, 187, 0.62);
  --dx-dna-glow-accent-active: 0 0 0 1px rgba(200, 240, 74, 0.55);
  --dx-dna-glow-primary-idle: var(--dx-dna-glow-silver-idle);
  --dx-dna-glow-primary-hover: var(--dx-dna-glow-silver-hover);
  --dx-dna-glow-primary-active: var(--dx-dna-glow-accent-active);
  --dx-dna-glow-neutral-idle: var(--dx-dna-glow-silver-idle);
  --dx-dna-glow-neutral-hover: var(--dx-dna-glow-silver-hover);

  --dx-dna-panel-desktop: 400px;
  --dx-dna-panel-tablet: 360px;
  --dx-dna-sheet-max: 92vh;
  --dx-dna-workspace-max: 1360px;
  --dx-dna-touch-min: 44px;
  --dx-dna-fab: 52px;
  --dx-dna-fab-mobile: 48px;

  --dx-dna-motion-fast: 120ms;
  --dx-dna-motion-normal: 160ms;
  --dx-dna-motion-panel: 180ms;
  --dx-dna-ease: cubic-bezier(0.2, 0, 0, 1);
  --dx-dna-ease-enter: cubic-bezier(0, 0, 0, 1);
  --dx-dna-ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --dx-dna-overlay-blur: 6px;

  --dx-dna-icon-stroke: 1.5;
  --dx-dna-icon-stroke-emphasis: 1.75;
  --dx-dna-icon-xs: 16px;
  --dx-dna-icon-sm: 18px;
  --dx-dna-icon-md: 20px;
  --dx-dna-icon-lg: 24px;
  --dx-dna-icon-xl: 28px;

  /* Crystal → quiet panel (no green glass) */
  --dx-crystal: var(--dx-dna-panel);
  --dx-crystal-border: var(--dx-dna-line);
  --dx-room-grid-opacity: 0.018;
  --dx-room-accent: var(--dx-dna-silver);
  --dx-room-tint: transparent;
}

html.dark[data-app-theme='dentixa-premium'],
html.dark.theme-pack-premium {
  --dx-dna-bg: #050505;
  --dx-dna-workspace: #050505;
  --dx-dna-panel: #111314;
  --dx-dna-soft: #181b1c;
  --dx-dna-line: #3a4047;
  --dx-dna-line-strong: #3a4047;
  --dx-dna-control-line: rgb(var(--ui-premium-control-border));
  --dx-dna-text: #f5f5f7;
  --dx-dna-text-secondary: #8b939e;
  --dx-dna-text-muted: #8b939e;
  --dx-dna-primary: var(--tok-brand-lime-on-dark);
  --dx-dna-primary-deep: #7aab12;
  --dx-dna-primary-bright: #e8ff9a;
  --dx-dna-primary-soft: rgba(200, 240, 74, 0.12);
  --dx-dna-glow-silver-idle: 0 0 0 1px rgb(var(--ui-premium-control-border));
  --dx-dna-glow-silver-hover: 0 0 0 1px rgba(139, 147, 158, 0.55);
  --dx-dna-glow-accent-active: 0 0 0 1px rgba(200, 240, 74, 0.55);
  --dx-dna-elev-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px #3a4047;
  --dx-dna-elev-2: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px #3a4047;
  --dx-dna-elev-3: 0 12px 32px rgba(0, 0, 0, 0.48), 0 0 0 1px #3a4047;
  --dx-dna-elev-float: 0 8px 24px rgba(0, 0, 0, 0.42), 0 0 0 1px #3a4047;
  --dx-lime-glow: rgba(200, 240, 74, 0.12);
  --dx-room-grid-opacity: 0.03;
  --dx-crystal: var(--dx-dna-panel);
  --dx-crystal-border: var(--dx-dna-line);

  --dx-bg: var(--dx-dna-bg);
  --dx-panel: var(--dx-dna-panel);
  --dx-soft: var(--dx-dna-soft);
  --dx-panel-2: #1c1f26;
  --dx-elevated: #1c1f26;
  --dx-silver-border: #3a4047;
  --dx-line: var(--dx-dna-line);
  --dx-line-subtle: #424245;
  --dx-text: var(--dx-dna-text);
  --dx-muted: var(--dx-dna-silver);
  --dx-lime: var(--dx-dna-primary);
  --dx-lime-deep: var(--dx-dna-primary-deep);
  --dx-lime-bright: var(--dx-dna-primary-bright);
  --dx-lime-soft: var(--dx-dna-primary-soft);
  --color-surface: var(--dx-dna-bg);
  --color-card-bg: var(--dx-dna-panel);
  --color-card-border: var(--dx-dna-line);
  --color-border: var(--dx-dna-line);
  --color-input-bg: #1c1f26;
  --color-input-border: rgb(var(--ui-premium-control-border));
}

/* -------------------------------------------------------------------------- */
/* Kill neon ambient / cinematic burn (atelier overrides)                     */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-cinematic-shell::after {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--dx-dna-silver) 10%, transparent),
    transparent 70%
  );
  filter: blur(12px);
  opacity: 0.05;
  animation: none;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .dx-cinematic-shell::after {
  opacity: 0.04;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface::after {
  background: linear-gradient(
    125deg,
    color-mix(in srgb, #ffffff 10%, transparent),
    transparent 40%,
    transparent 100%
  );
  mix-blend-mode: normal;
  opacity: 0.35;
}

html[data-app-theme='dentixa-premium'] .dx-scroll-progress > i {
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow::before {
  box-shadow: none;
  animation: none;
  background: var(--dx-dna-silver);
  width: 5px;
  height: 5px;
}

html[data-app-theme='dentixa-premium'] .dx-page-head {
  background-image: linear-gradient(
    90deg,
    var(--dx-dna-silver) 0%,
    color-mix(in srgb, var(--dx-dna-silver) 25%, transparent) 36%,
    transparent 100%
  );
  background-size: 100% 1px;
}

html[data-app-theme='dentixa-premium'] .dx-page-head .dx-eyebrow,
html[data-app-theme='dentixa-premium'] .dx-eyebrow {
  color: var(--dx-dna-text-muted) !important;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 500;
}

html[data-app-theme='dentixa-premium'] .dx-page-title {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: var(--dx-dna-h1);
}

/* Unify: stop painting lime gradients on Orders/Accounting headers */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-gradient-to-r,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .bg-gradient-to-r.from-primary-600,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .bg-gradient-to-r {
  background-image: none !important;
  background-color: var(--dx-dna-panel) !important;
  color: var(--dx-dna-text) !important;
  border: var(--dx-dna-border-w) solid var(--dx-dna-line) !important;
  box-shadow: var(--dx-dna-glow-silver-idle) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-super-admin,
html[data-app-theme='dentixa-premium'] .sa-shell {
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace h1,
html[data-app-theme='dentixa-premium'] .dx-scope-orders h1 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Soften nested panel stacks */
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-panel .dx-panel,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-panel .rounded-xl.border,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface .dx-panel .rounded-2xl.border {
  box-shadow: none;
  border-color: var(--dx-dna-line);
}

/* -------------------------------------------------------------------------- */
/* Layer primitives                                                           */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-dna-bg,
html.theme-pack-premium .dx-dna-bg {
  background: var(--dx-dna-bg);
  color: var(--dx-dna-text);
  font-family: var(--dx-font-ui);
}

html[data-app-theme='dentixa-premium'] .dx-dna-workspace,
html.theme-pack-premium .dx-dna-workspace {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--dx-dna-workspace-max);
  margin-inline: auto;
  padding: var(--dx-dna-space-4);
  background: var(--dx-dna-workspace);
  border-radius: var(--dx-radius-lg);
  border: var(--dx-dna-border-w) solid var(--dx-dna-line);
  box-shadow: none;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  html[data-app-theme='dentixa-premium'] .dx-dna-workspace,
  html.theme-pack-premium .dx-dna-workspace {
    padding: var(--dx-dna-space-6);
  }
}

html[data-app-theme='dentixa-premium'] .dx-dna-float,
html.theme-pack-premium .dx-dna-float {
  position: relative;
  z-index: 20;
  background: var(--dx-dna-panel);
  border: var(--dx-dna-border-w) solid var(--dx-dna-line);
  border-radius: var(--dx-radius-lg);
  box-shadow: var(--dx-dna-elev-float);
  padding: var(--dx-dna-space-4);
  box-sizing: border-box;
  transition:
    box-shadow var(--dx-dna-motion-normal) var(--dx-dna-ease),
    border-color var(--dx-dna-motion-fast) var(--dx-dna-ease);
}

html[data-app-theme='dentixa-premium'] .dx-dna-float--lg,
html.theme-pack-premium .dx-dna-float--lg {
  padding: var(--dx-dna-space-6);
  border-radius: var(--dx-radius-xl);
}

html[data-app-theme='dentixa-premium'] .dx-dna-workspace-split,
html.theme-pack-premium .dx-dna-workspace-split {
  display: flex;
  flex-direction: column;
  gap: var(--dx-dna-space-4);
  width: 100%;
}

@media (min-width: 1024px) {
  html[data-app-theme='dentixa-premium'] .dx-dna-workspace-split,
  html.theme-pack-premium .dx-dna-workspace-split {
    flex-direction: row;
    align-items: flex-start;
  }

  html[data-app-theme='dentixa-premium'] .dx-dna-workspace-split > .dx-dna-workspace,
  html.theme-pack-premium .dx-dna-workspace-split > .dx-dna-workspace {
    flex: 1 1 auto;
    min-width: 0;
  }

  html[data-app-theme='dentixa-premium'] .dx-dna-workspace-split > .dx-dna-float-panel,
  html.theme-pack-premium .dx-dna-workspace-split > .dx-dna-float-panel {
    flex: 0 0 var(--dx-dna-panel-desktop);
    width: var(--dx-dna-panel-desktop);
    max-height: calc(100vh - 6rem);
    overflow: auto;
    position: sticky;
    top: var(--dx-dna-space-4);
  }
}

@keyframes dx-dna-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-app-theme='dentixa-premium'] .dx-dna-float-enter,
html.theme-pack-premium .dx-dna-float-enter {
  animation: dx-dna-panel-in var(--dx-dna-motion-panel) var(--dx-dna-ease-enter);
}

/* -------------------------------------------------------------------------- */
/* Thin illuminated borders — silver first                                    */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate,
html.theme-pack-premium .dx-dna-illuminate {
  background: transparent;
  border: var(--dx-dna-border-w) solid transparent;
  box-shadow: var(--dx-dna-glow-silver-idle);
  border-radius: var(--dx-radius-md);
  transition:
    box-shadow var(--dx-dna-motion-fast) var(--dx-dna-ease),
    background-color var(--dx-dna-motion-fast) var(--dx-dna-ease);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate:hover,
html.theme-pack-premium .dx-dna-illuminate:hover {
  box-shadow: var(--dx-dna-glow-silver-hover);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate[data-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-dna-illuminate[aria-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-dna-illuminate[aria-pressed='true'],
html.theme-pack-premium .dx-dna-illuminate[data-selected='true'],
html.theme-pack-premium .dx-dna-illuminate[aria-selected='true'],
html.theme-pack-premium .dx-dna-illuminate[aria-pressed='true'] {
  background: transparent;
  box-shadow: var(--dx-dna-glow-accent-active);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn,
html.theme-pack-premium .dx-dna-illuminate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dx-dna-space-2);
  min-height: var(--dx-dna-touch-min);
  padding: 0 var(--dx-dna-space-4);
  font-family: var(--dx-font-ui);
  font-size: var(--dx-dna-small);
  font-weight: 500;
  line-height: 1.2;
  color: var(--dx-dna-text);
  background: transparent;
  border: var(--dx-dna-border-w) solid transparent;
  border-radius: var(--dx-radius-md);
  box-shadow: var(--dx-dna-glow-silver-idle);
  cursor: pointer;
  transition:
    box-shadow var(--dx-dna-motion-fast) var(--dx-dna-ease),
    color var(--dx-dna-motion-fast) var(--dx-dna-ease),
    opacity var(--dx-dna-motion-fast) var(--dx-dna-ease);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn:hover,
html.theme-pack-premium .dx-dna-illuminate-btn:hover {
  box-shadow: var(--dx-dna-glow-silver-hover);
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn:active,
html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn[aria-pressed='true'],
html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn[data-active='true'],
html.theme-pack-premium .dx-dna-illuminate-btn:active,
html.theme-pack-premium .dx-dna-illuminate-btn[aria-pressed='true'],
html.theme-pack-premium .dx-dna-illuminate-btn[data-active='true'] {
  box-shadow: var(--dx-dna-glow-accent-active);
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn:disabled,
html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn[aria-disabled='true'],
html.theme-pack-premium .dx-dna-illuminate-btn:disabled,
html.theme-pack-premium .dx-dna-illuminate-btn[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn:focus-visible,
html.theme-pack-premium .dx-dna-illuminate-btn:focus-visible {
  outline: 2px solid rgb(var(--ui-focus-ring));
  outline-offset: 2px;
  box-shadow: none;
}

/** Primary CTA — restrained accent border, not neon fill brick */
html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn--cta,
html.theme-pack-premium .dx-dna-illuminate-btn--cta {
  color: var(--dx-dna-text);
  background: color-mix(in srgb, var(--dx-dna-primary) 10%, transparent);
  box-shadow: var(--dx-dna-glow-accent-active);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn--cta:hover,
html.theme-pack-premium .dx-dna-illuminate-btn--cta:hover {
  background: color-mix(in srgb, var(--dx-dna-primary) 14%, transparent);
  color: var(--dx-dna-text);
  box-shadow: var(--dx-dna-glow-accent-active);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate--success,
html.theme-pack-premium .dx-dna-illuminate--success {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dx-dna-success) 50%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate--danger,
html.theme-pack-premium .dx-dna-illuminate--danger {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dx-dna-danger) 50%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-dna-illuminate--warning,
html.theme-pack-premium .dx-dna-illuminate--warning {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dx-dna-warning) 50%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Floating hub DNA — UI glyphs, silver ring, no PNG stickers / halo          */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action] {
  width: var(--dx-dna-fab) !important;
  height: var(--dx-dna-fab) !important;
  border-radius: 9999px !important;
  background: var(--dx-dna-panel) !important;
  box-shadow: var(--dx-dna-glow-silver-idle) !important;
  border: 1px solid var(--dx-line) !important;
  transform: none !important;
  overflow: visible;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action]:hover {
  box-shadow: var(--dx-dna-glow-silver-hover) !important;
  transform: none !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action]:active,
html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action][data-active='true'] {
  box-shadow: var(--dx-dna-glow-accent-active) !important;
  border-color: color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 55%, var(--dx-line)) !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-glyph] {
  width: 64% !important;
  height: 64% !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-glyph] [data-dx-icon],
html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-glyph] svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-art],
html[data-app-theme='dentixa-premium'] .unified-floating-hub .advisor-brand-icon,
html[data-app-theme='dentixa-premium'] .unified-floating-hub .live-chat-brand-icon,
html[data-app-theme='dentixa-premium'] .unified-floating-hub img {
  display: none !important;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action] {
    width: var(--dx-dna-fab-mobile) !important;
    height: var(--dx-dna-fab-mobile) !important;
  }
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action] {
  animation: none !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action] .animate-ping,
html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action] .animate-pulse {
  animation: none !important;
}

/* -------------------------------------------------------------------------- */
/* Overlay                                                                    */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-dna-overlay,
html.theme-pack-premium .dx-dna-overlay {
  background: color-mix(in srgb, var(--dx-dna-kohl) 48%, transparent);
  backdrop-filter: blur(var(--dx-dna-overlay-blur));
  -webkit-backdrop-filter: blur(var(--dx-dna-overlay-blur));
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] {
    --dx-dna-body: 16px;
    --dx-dna-text-body: 16px;
  }
}

/* ========================================================================== */
/* Step 1.5.1 — Density / Spacing / Information Hierarchy                     */
/* Compact operational SaaS — NOT a page rewrite. Premium pack only.          */
/* ========================================================================== */

html[data-app-theme='dentixa-premium'],
html.theme-pack-premium {
  --dx-dna-section-gap: 16px;
  --dx-dna-card-gap: 10px;
  --dx-dna-card-pad: 14px;
  --dx-dna-content-gap: 6px;
  --dx-dna-shell-pad-y: 12px;
  --dx-dna-shell-pad-x: 16px;
  --dx-dna-metric-min-h: 4.25rem;
  --dx-dna-table-cell-py: 8px;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'],
  html.theme-pack-premium {
    --dx-dna-section-gap: 12px;
    --dx-dna-card-gap: 8px;
    --dx-dna-card-pad: 12px;
    --dx-dna-content-gap: 6px;
    --dx-dna-shell-pad-y: 8px;
    --dx-dna-shell-pad-x: 12px;
    --dx-dna-metric-min-h: 3.75rem;
    --dx-dna-h1: 20px;
    --dx-dna-display: 24px;
    --dx-dna-h2: 16px;
  }
}

/* Shell — less empty chrome around every workspace */
html[data-app-theme='dentixa-premium'] main.dx-cinematic-main {
  padding-top: var(--dx-dna-shell-pad-y) !important;
  padding-bottom: max(4.5rem, calc(var(--dx-dna-shell-pad-y) + env(safe-area-inset-bottom, 0px))) !important;
  padding-inline: var(--dx-dna-shell-pad-x) !important;
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] main.dx-cinematic-main {
    padding-bottom: var(--dx-dna-shell-pad-y) !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface {
  padding: 0;
}

/* Workspace console rhythm */
html[data-app-theme='dentixa-premium'] .dx-workspace-console {
  gap: var(--dx-dna-section-gap) !important;
}

html[data-app-theme='dentixa-premium'] .dx-console-toolbar {
  padding: 0.45rem 0.65rem !important;
  gap: 0.4rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-console-insights {
  gap: var(--dx-dna-card-gap) !important;
}

html[data-app-theme='dentixa-premium'] .dx-console-body {
  margin-top: 0;
}

/* Page head / hero — keep title, cut vertical footprint */
html[data-app-theme='dentixa-premium'] .dx-page-head {
  gap: 0.5rem 0.75rem !important;
  padding-top: 0 !important;
  padding-bottom: 0.45rem !important;
  margin-bottom: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-page-title {
  margin-top: 0.15rem !important;
  font-size: var(--dx-dna-h1) !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  text-wrap: unset !important;
  max-width: 100%;
}

/* Arabic / RTL: horizontal phrase titles — never English-style balanced stacks */
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-page-title,
html[dir='rtl'].theme-pack-premium .dx-page-title {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  line-height: 1.28 !important;
  text-wrap: unset !important;
  white-space: normal;
}

html[data-app-theme='dentixa-premium'] .dx-page-title .dx-accent {
  display: inline !important;
  white-space: nowrap;
}

html[data-app-theme='dentixa-premium'] .dx-page-desc {
  margin-top: 0.2rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  max-width: 42rem;
}

html[data-app-theme='dentixa-premium'] .dx-page-head__actions {
  gap: 0.35rem !important;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-page-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    padding-bottom: 0.35rem !important;
    margin-bottom: 0.4rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-page-head__copy {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-page-head__actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-title,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title {
    font-size: clamp(1.3125rem, 3.8vw + 0.75rem, 1.625rem) !important;
    line-height: 1.28 !important;
    font-weight: 650 !important;
    max-width: 100% !important;
    text-wrap: unset !important;
  }

  html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-title,
  html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title {
    letter-spacing: 0 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-command-deck .dx-page-desc,
  html[data-app-theme='dentixa-premium'] .dx-page-desc {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* Panels — one frame, less padding */
html[data-app-theme='dentixa-premium'] .dx-panel {
  padding: var(--dx-dna-card-pad) !important;
}

html[data-app-theme='dentixa-premium'] .dx-panel__title {
  margin-bottom: 0.45rem !important;
  font-size: var(--dx-dna-h3) !important;
}

html[data-app-theme='dentixa-premium'] .dx-workspace-console .dx-panel + .dx-panel,
html[data-app-theme='dentixa-premium'] .dx-console-body > * + * {
  margin-top: 0;
}

html[data-app-theme='dentixa-premium'] .dx-console-body {
  display: flex;
  flex-direction: column;
  gap: var(--dx-dna-section-gap);
}

/* KPI / metric cards — shorter, denser */
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip {
  gap: var(--dx-dna-card-gap) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric,
html[data-app-theme='dentixa-premium'] [data-dx-ui='metric'].dx-metric {
  min-height: var(--dx-dna-metric-min-h) !important;
  padding: 0.65rem 0.75rem !important;
  gap: 0.15rem !important;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--dx-dna-silver) 6%, transparent), transparent 60%),
    var(--dx-dna-panel) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__value,
html[data-app-theme='dentixa-premium'] [data-dx-ui='metric'] .dx-metric__value {
  margin-top: 0.1rem !important;
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__label,
html[data-app-theme='dentixa-premium'] [data-dx-ui='metric'] .dx-metric__label {
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__hint {
  font-size: 0.65rem !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric__icon {
  width: 1.1rem !important;
  height: 1.1rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-kpis {
  gap: var(--dx-dna-card-gap) !important;
}

html[data-app-theme='dentixa-premium'] .dx-kpi {
  padding: 0.5rem 0.6rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-kpi b {
  margin-top: 0.15rem !important;
  font-size: 1.05rem !important;
}

/* Dashboard: tighten common Tailwind vertical rhythm inside premium dashboard */
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .mt-4 {
  margin-top: 0.75rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .mt-3 {
  margin-top: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .mb-3 {
  margin-bottom: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-panel-lead {
  margin-bottom: 0.45rem !important;
  font-size: 0.8125rem !important;
}

/* Orders grid shell — tighter */
html[data-app-theme='dentixa-premium'] .dx-data-grid-shell,
html[data-app-theme='dentixa-premium'] .dx-data-grid {
  padding: 0.55rem 0.65rem 0.7rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders table thead th,
html[data-app-theme='dentixa-premium'] .dx-data-grid table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] thead th {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  color: var(--dx-text) !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: var(--dx-read, 0.8125rem) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders table tbody td,
html[data-app-theme='dentixa-premium'] .dx-data-grid table tbody td {
  padding-top: var(--dx-dna-table-cell-py) !important;
  padding-bottom: var(--dx-dna-table-cell-py) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .space-y-6 {
  row-gap: var(--dx-dna-section-gap);
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--dx-dna-section-gap) !important;
}

/* Currency wallet — compact operational cards */
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] {
  margin-bottom: var(--dx-dna-section-gap) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] > .space-y-3 > :not([hidden]) ~ :not([hidden]),
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'].space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] h2 {
  font-size: var(--dx-dna-h2) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .grid {
  gap: var(--dx-dna-card-gap) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [data-vault-selected],
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .rounded-2xl.border.bg-gradient-to-br {
  border-radius: var(--dx-radius-md) !important;
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.04) !important;
  background-image: none !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  transform: none !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [data-vault-selected],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .rounded-2xl.border.bg-gradient-to-br {
  background-color: rgba(37, 41, 50, 0.85) !important;
  border-color: rgba(113, 113, 122, 0.55) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [data-vault-selected='true'] {
  box-shadow: var(--dx-dna-glow-accent-active) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] button.relative.w-full .mb-2 {
  margin-bottom: 0.25rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .border-t {
  padding-inline: 0.75rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .bg-\[rgba\(143\,188\,46\,0\.08\)\],
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [class*='bg-[rgba(143,188,46'] {
  background-color: transparent !important;
}

/* Accounting workspace: reduce large green washes inside cards */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .bg-\[rgba\(143\,188\,46\,0\.08\)\],
html[data-app-theme='dentixa-premium'] .dx-console--accounting [class*='bg-[rgba(143,188,46'],
html[data-app-theme='dentixa-premium'] .dx-console--accounting [class*='bg-[rgba(164,208,55'] {
  background-color: color-mix(in srgb, var(--dx-dna-primary) 6%, transparent) !important;
}

/* Mobile high-density mode */
@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--hero {
    grid-column: span 2;
    min-height: 3.5rem !important;
    padding: 0.55rem 0.7rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-workspace-console {
    gap: 0.65rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-page-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .grid {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 1.5.2 — Header chrome density + deeper currency compression                */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions [data-topbar-action],
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12,
html[data-app-theme='dentixa-premium'] .dx-topbar-action {
  height: 3rem !important;
  width: 3rem !important;
  min-height: 3rem !important;
  min-width: 3rem !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions [data-topbar-action]:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]),
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]),
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) {
  box-shadow: none !important;
  transform: none !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):hover,
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):hover {
  transform: none !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-active='true'],
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-theme-toggle='true'][data-active='true'],
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-active='true'] {
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12 svg,
html[data-app-theme='dentixa-premium'] .dx-topbar-action svg {
  width: 2.5rem !important;
  height: 2.5rem !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .mx-auto.flex.h-14,
html[data-app-theme='dentixa-premium'] .app-top-navigation .mx-auto.flex.sm\:h-16 {
  height: 3.25rem !important;
}

@media (min-width: 640px) {
  html[data-app-theme='dentixa-premium'] .app-top-navigation .mx-auto.flex.h-14,
  html[data-app-theme='dentixa-premium'] .app-top-navigation .mx-auto.flex.sm\:h-16 {
    height: 3.5rem !important;
  }
}

/* Currency cards — further vertical compression */
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] button.relative.w-full {
  padding: 0.5rem 0.7rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] button.relative.w-full .text-2xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] button.relative.w-full .text-xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] button.relative.w-full [class*='text-2xl'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] button.relative.w-full [class*='text-xl'] {
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .border-t {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .border-t p,
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .border-t .text-xs,
html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .border-t .text-sm {
  font-size: 0.7rem !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.25rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .absolute.end-3.top-3 {
  top: 0.4rem !important;
  inset-inline-end: 0.4rem !important;
  padding: 0.15rem 0.4rem !important;
  font-size: 0.55rem !important;
}

/* Dashboard: one more density step */
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric {
  min-height: 3.6rem !important;
  padding: 0.5rem 0.65rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-workspace-console {
  gap: 0.65rem !important;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric {
    min-height: 3.25rem !important;
  }

  html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions [data-topbar-action],
  html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12,
  html[data-app-theme='dentixa-premium'] .dx-topbar-action {
    height: 2.75rem !important;
    width: 2.75rem !important;
    min-height: 2.75rem !important;
    min-width: 2.75rem !important;
  }

  html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12 svg,
  html[data-app-theme='dentixa-premium'] .dx-topbar-action svg {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 1.5.3 — Mobile clarity + visual hierarchy + color discipline               */
/* Less UI, more information. Reorder priority — do not shrink everything.    */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions {
  gap: 0.375rem !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions [data-topbar-action]:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]),
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]),
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) {
  color: var(--dx-dna-silver, #8b939e) !important;
  border: 1px solid var(--dx-line) !important;
  background: var(--dx-panel) !important;
}

/* Elegant thin silver strokes — logo identity (idle silver, lime only on event) */
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action svg,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action [data-dx-icon] svg,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action svg path,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action svg circle,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action svg line {
  stroke-width: 1.1 !important;
}


/* Elegant thin silver strokes — logo identity (idle silver, lime only on event) */
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) [data-dx-icon] svg,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg path,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg circle,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg line {
  color: var(--dx-dna-silver, #8b939e) !important;
  stroke: currentColor !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):hover svg,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):hover svg path,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):hover svg circle,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-active='true'] svg,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-active='true'] svg path,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-active='true'] svg circle {
  color: #c5ccd4 !important;
  stroke: currentColor !important;
}

/* Profile photo must fill the disc completely */
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='profile'] {
  overflow: hidden !important;
  padding: 0 !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='profile'] img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 9999px !important;
}

/* Language: lime locale letter inside disc, physical bottom-right of globe */
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='language'] {
  overflow: hidden !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='language'] [data-dx-icon],
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='language'] svg {
  opacity: 1 !important;
  color: var(--dx-dna-silver, #8b939e) !important;
}

html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='language'] .dx-topbar-locale-code,
html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='language'] .dx-topbar-badge {
  position: absolute !important;
  right: 5px !important;
  bottom: 4px !important;
  left: auto !important;
  top: auto !important;
  inset-inline: auto !important;
  z-index: 20 !important;
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--dx-lime-text) !important;
  -webkit-text-fill-color: var(--dx-lime-text) !important;
  font-size: 0.6875rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  overflow: visible !important;
}

html[dir='ltr'][data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions .dx-topbar-action[data-topbar-action='language'] .dx-topbar-locale-code {
  font-size: 0.5625rem !important;
  letter-spacing: 0.02em !important;
}

/* Quiet large lime surfaces → hairline accent only */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-acc-primary,
html[data-app-theme='dentixa-premium'] .dx-console--accounting .dx-acc-primary {
  background-color: transparent !important;
  color: var(--dx-dna-text) !important;
  border: 1px solid var(--dx-dna-line) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'] {
  border-color: var(--dx-dna-line) !important;
  background: color-mix(in srgb, var(--dx-dna-panel) 88%, transparent) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-header-actions'] button:not([data-dx-primary='true']) {
  background: transparent !important;
}

/* Semantic status: keep green/amber as status chips, not card fills */
html[data-app-theme='dentixa-premium'] [data-cashbox-sync='synced'] {
  border-color: color-mix(in srgb, var(--dx-dna-success) 40%, transparent) !important;
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] [data-cashbox-sync='diverged'] {
  border-color: color-mix(in srgb, var(--dx-dna-warning) 45%, transparent) !important;
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'][data-dx-wallet-density='financial-compact'] {
  margin-bottom: 0.75rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [data-cashbox-sync] {
  padding: 0.35rem 0.5rem !important;
  border-radius: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [data-cashbox-sync] .text-base {
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
}

/* FAB hub: secondary, non-blocking */
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-hub'],
html[data-app-theme='dentixa-premium'] .dx-floating-hub,
html[data-app-theme='dentixa-premium'] [data-floating-hub='true'] {
  opacity: 0.92;
  transform: scale(0.92);
  transform-origin: bottom end;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .sticky.top-0 {
    position: relative !important;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-acc-section='overview'] {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'] {
    padding: 0.35rem !important;
  }

  /* Bring operational table closer: quieter pre-ledger chrome */
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace main,
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace > .relative.mx-auto {
    padding-top: 0.75rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-acc-section='cash'] .dx-acc-section__title {
    margin-bottom: 0.35rem !important;
    font-size: 0.95rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 1.5.5 — Accounting Visual Alignment                                        */
/* 1.5.6 — Dentixa Signature Motion & Color (correction)                      */
/* Same DNA as Dashboard + denser financial language. One Lime. Edge = event. */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] {
  /* Canonical Dentixa Lime — brand only (no olive / pale cousins) */
  --dx-lime: var(--dx-dna-primary);
  --dx-lime-deep: var(--dx-dna-primary-deep);
  --dx-lime-bright: var(--dx-dna-primary-bright);
  --dx-lime-soft: var(--dx-dna-primary-soft);
}

/* Button hierarchy — Primary Lime / Secondary Graphite / Utility silver */
html[data-app-theme='dentixa-premium'] .dx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

html[data-app-theme='dentixa-premium'] .dx-btn--primary {
  border: 1px solid color-mix(in srgb, var(--dx-dna-primary) 55%, transparent);
  background: color-mix(in srgb, var(--dx-dna-primary) 18%, var(--dx-dna-panel));
  color: var(--dx-dna-text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dx-dna-primary) 12%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-btn--primary:hover {
  background: color-mix(in srgb, var(--dx-dna-primary) 28%, var(--dx-dna-panel));
  border-color: color-mix(in srgb, var(--dx-dna-primary) 70%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-btn--secondary {
  border: 1px solid var(--dx-dna-control-line, var(--dx-dna-line));
  background: var(--dx-dna-soft);
  color: var(--dx-dna-text);
}

html[data-app-theme='dentixa-premium'] .dx-btn--secondary:hover {
  border-color: color-mix(in srgb, var(--dx-dna-primary) 35%, var(--dx-dna-line));
}

html[data-app-theme='dentixa-premium'] .dx-btn--utility {
  border: 1px solid var(--dx-dna-control-line, var(--dx-dna-line));
  background: transparent;
  color: var(--dx-dna-text-secondary);
  font-weight: 500;
}

html[data-app-theme='dentixa-premium'] .dx-btn--utility:hover {
  border-color: var(--dx-dna-line-strong, var(--dx-dna-line));
  color: var(--dx-dna-text);
}

/* Ledger shell: full width, no three-rail grid */
html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--ledger,
html[data-app-theme='dentixa-premium'] .dx-fcc[data-dx-fcc='ledger'] {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  grid-template-columns: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--ledger .dx-fcc-rail,
html[data-app-theme='dentixa-premium'] .dx-fcc[data-dx-fcc='ledger'] .dx-fcc-rail {
  display: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-fcc.dx-fcc--ledger .dx-fcc-center--full {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Accounting shares Dashboard page-head — not charcoal sticky island */
html[data-app-theme='dentixa-premium'] .dx-console--accounting > [data-dx-acc-section='overview'] .dx-page-head,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='page-head'] {
  margin-bottom: 0.65rem !important;
}

/* ---------- Semantic Interactive Edge (Signature Motion) ---------- */
@property --dx-edge-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

html[data-app-theme='dentixa-premium'] .dx-edge-frame {
  position: relative;
  isolation: isolate;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

html[data-app-theme='dentixa-premium'] .dx-edge-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: conic-gradient(
    from var(--dx-edge-angle),
    transparent 0%,
    transparent 72%,
    color-mix(in srgb, var(--dx-dna-primary) 15%, transparent) 78%,
    var(--dx-dna-primary) 88%,
    color-mix(in srgb, var(--dx-dna-primary) 20%, transparent) 94%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='event']::after,
html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='pulse']::after {
  animation: dx-edge-travel 0.7s ease-out 1;
}

html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='pulse'] {
  border-color: var(--dx-dna-primary) !important;
  box-shadow: none !important;
}

@keyframes dx-edge-travel {
  0% {
    --dx-edge-angle: 0deg;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    --dx-edge-angle: 360deg;
    opacity: 0;
  }
}

html[data-app-theme='dentixa-premium'] .dx-num-flash {
  animation: dx-num-flash 0.28s ease-out 1;
  color: var(--dx-dna-primary) !important;
}

@keyframes dx-num-flash {
  0% {
    filter: brightness(1.35);
    transform: translateY(0);
  }
  40% {
    filter: brightness(1.15);
  }
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

html[data-app-theme='dentixa-premium'] .dx-vault-card {
  background: rgba(255, 255, 255, 0.92) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-vault-card {
  background: rgba(37, 41, 50, 0.85) !important;
}

/* Accounting table — 1.5.12 Glass Hierarchy: pearl/slate glass, not charcoal */

/* Kill olive gradients from Classic ledger utilities (#151a14 / #1a2410) */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#151a14]'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='to-[#1a2410]'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#f4f7ef]'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='to-[#f7f8f5]'] {
  --tw-gradient-from: transparent !important;
  --tw-gradient-to: transparent !important;
  --tw-gradient-stops: transparent !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#151a14]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='to-[#1a2410]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#f4f7ef]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='to-[#f7f8f5]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.04) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border {
  background: rgba(37, 41, 50, 0.85) !important;
  border-color: rgba(113, 113, 122, 0.55) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border > [class*='bg-gradient-to-r'] {
  background: rgba(241, 245, 249, 0.9) !important;
  background-image: none !important;
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: none !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border > [class*='bg-gradient-to-r'] {
  background: rgba(37, 41, 50, 0.75) !important;
  border-bottom-color: rgba(113, 113, 122, 0.55) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  background: transparent !important;
  color: #334155 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  color: #e2e8f0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col {
  min-width: 0;
}

/* Shared track rhythm — identical padding on every th/td track */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='desc'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='accounts'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='type'] {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  white-space: nowrap !important;
}

/* Column headers — glass slate bar */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th,
html[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th {
  border-top-color: rgba(203, 213, 225, 0.9) !important;
  border-right-color: rgba(203, 213, 225, 0.9) !important;
  border-left-color: rgba(203, 213, 225, 0.9) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  border-bottom: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-bottom-color: rgba(203, 213, 225, 0.9) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  background: rgba(241, 245, 249, 0.92) !important;
  background-image: none !important;
  color: #334155 !important;
  padding-block: 0.55rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em !important;
  font-weight: 600 !important;
  text-transform: none !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table][data-dx-ui="ds-ledger"] > :is(thead, tbody) > tr > :is(th, td):is([data-dx-th="check"], [data-dx-col="check"], [data-dx-th="actions"], [data-dx-col="actions"]), html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table][data-dx-ui="ds-ledger"] > :is(thead, tbody) > tr > :is(th, td):is([data-dx-th="check"], [data-dx-col="check"], [data-dx-th="actions"], [data-dx-col="actions"]), html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table][data-dx-ui="ds-ledger"] > :is(thead, tbody) > tr > :is(th, td):is([data-dx-th="check"], [data-dx-col="check"], [data-dx-th="actions"], [data-dx-col="actions"]), html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)),
html[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table][data-dx-ui="ds-ledger"] > :is(thead, tbody) > tr > :is(th, td):is([data-dx-th="check"], [data-dx-col="check"], [data-dx-th="actions"], [data-dx-col="actions"]), html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)) {
  padding-inline: 0.5rem !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th {
  border-top-color: rgba(113, 113, 122, 0.7) !important;
  border-right-color: rgba(113, 113, 122, 0.7) !important;
  border-left-color: rgba(113, 113, 122, 0.7) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html.dark[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  border-bottom-color: rgba(113, 113, 122, 0.7) !important;
  border-bottom-color: rgba(113, 113, 122, 0.7) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html.dark[data-app-theme='dentixa-premium'] .dx-console--accounting table thead th:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  background: rgba(37, 41, 50, 0.85) !important;
  color: #e2e8f0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='entry'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='date'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='type'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='accounts'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='order'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='invoice'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='desc'] {
  text-align: start !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='debit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='credit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='debit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='credit'] {
  text-align: end !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='status'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='check'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='status'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  text-align: center !important;
}

/* Header label weight above data — icons stay muted metadata */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th svg,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th .dx-th-icon {
  width: 0.85em !important;
  height: 0.85em !important;
  opacity: 1;
  color: rgb(var(--ui-text-muted)) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html[data-app-theme='dentixa-premium'] .dx-console--accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)) {
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html[data-app-theme='dentixa-premium'] .dx-console--accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)) {
  padding-block: 0.42rem !important;
  vertical-align: middle !important;
  line-height: 1.35 !important;
  color: #475569 !important;
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)),
html[data-app-theme='dentixa-premium'] .dx-console--accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):first-child, html .ds-table-wrap table.ds-table[data-ds-table] > :is(thead, tbody) > tr > :is(th, td):last-child)) {
  padding-inline: 0.45rem !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html.dark[data-app-theme='dentixa-premium'] .dx-console--accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)) {
  border-bottom-color: rgba(113, 113, 122, 0.55) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)),
html.dark[data-app-theme='dentixa-premium'] .dx-console--accounting table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)) {
  color: #cbd5e1 !important;
}

/* Soft zebra */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.7) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr {
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:not(:nth-child(even)) {
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr:hover {
  background: rgba(16, 185, 129, 0.04) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-[rgba(143'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-violet'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-sky'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-rose'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-amber'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-orange'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-white'] {
  background: transparent !important;
}

/* Static structure edge (silver). Scanner light travels on event/pulse only.
   Edge sits on inline-start (right in RTL Arabic journal). */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'] {
  position: relative;
  box-shadow: inset 2px 0 0 0 rgba(168, 177, 187, 0.28) !important;
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'] {
  box-shadow: inset -2px 0 0 0 rgba(168, 177, 187, 0.28) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 28%,
    color-mix(in srgb, var(--dx-dna-primary) 25%, transparent) 40%,
    var(--dx-dna-primary) 50%,
    color-mix(in srgb, var(--dx-dna-primary) 25%, transparent) 60%,
    transparent 72%,
    transparent 100%
  );
  background-size: 100% 220%;
  background-position: 0 -60%;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-edge='event']::before {
  animation: dx-row-edge-scan 0.88s ease-out 1;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-edge='pulse']::before {
  animation: dx-row-edge-scan 0.5s ease-out 1;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-[rgba(143,188,46'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='shadow-[inset'] {
  background: transparent !important;
  box-shadow: inset 2px 0 0 0 var(--dx-dna-primary) !important;
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true'],
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='bg-[rgba(143,188,46'],
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr[class*='shadow-[inset'] {
  box-shadow: inset -2px 0 0 0 var(--dx-dna-primary) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true']:hover {
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: inset 2px 0 0 0 var(--dx-dna-primary) !important;
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true']:hover {
  box-shadow: inset -2px 0 0 0 var(--dx-dna-primary) !important;
}

@keyframes dx-row-edge-scan {
  0% {
    opacity: 0;
    background-position: 0 -80%;
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: 0 180%;
  }
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-entry {
  font-size: 0.86rem !important;
  letter-spacing: -0.01em;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-entry {
  color: #f8fafc !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='status'] {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc {
  font-size: 0.76rem !important;
  font-weight: 450 !important;
  color: #64748b !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  font-size: 1.02rem !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-ccy {
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  margin-inline-start: 0.2rem;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-type {
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  border-radius: 0.2rem !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  background: rgba(248, 250, 252, 0.9) !important;
  color: #475569 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  min-width: 0;
  line-height: 1.2 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code {
  font-size: 0.64rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  color: #f1f5f9 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip[data-dx-account-kind='sub'] .dx-account-chip__name {
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__kind {
  font-size: 0.58rem !important;
  font-weight: 500 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  opacity: 0.85;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions {
  min-height: 1.85rem !important;
  padding: 0.28rem 0.55rem !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions[data-dx-open='true'] {
  border-color: color-mix(in srgb, #10b981 45%, transparent) !important;
  color: #121417 !important;
  background: #f8fafc !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #10b981 22%, transparent) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions {
  background: rgba(37, 41, 50, 0.9) !important;
  border-color: rgba(100, 116, 139, 0.7) !important;
  color: #e2e8f0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td span.rounded-md:not(.dx-account-chip__kind):not(.dx-ledger-type),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td span.rounded-full {
  padding: 0.1rem 0.35rem !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  border-radius: 0.25rem !important;
  box-shadow: none !important;
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-tabs'] button {
  box-shadow: none !important;
}

/* Compact filters + journal chrome — glass */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] {
  background: rgba(37, 41, 50, 0.85) !important;
  border-color: rgba(113, 113, 122, 0.55) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child {
  padding-block: 0.45rem !important;
  padding-inline: 0.75rem !important;
  min-height: 0 !important;
  background: rgba(241, 245, 249, 0.9) !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child h3,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child p {
  color: #121417 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child h3,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child p {
  color: #f1f5f9 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child {
  background: rgba(37, 41, 50, 0.75) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:last-child {
  background: transparent !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] label {
  margin-bottom: 0.25rem !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] select {
  min-height: 2rem !important;
  padding-block: 0.35rem !important;
  font-size: 0.78rem !important;
  background: var(--dx-panel-2, #1c1f26) !important;
  border-color: var(--dx-dna-control-line, var(--dx-line)) !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] button:not(.dx-btn--primary) {
  min-height: 2rem !important;
  padding-block: 0.35rem !important;
  font-size: 0.78rem !important;
  background: transparent !important;
  border-color: var(--dx-dna-control-line, var(--dx-line)) !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] {
  background: rgba(37, 41, 50, 0.85) !important;
  border-color: rgba(113, 113, 122, 0.55) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head {
  padding-block: 0.55rem !important;
  padding-inline: 0.85rem !important;
  background: rgba(241, 245, 249, 0.9) !important;
  background-image: none !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head {
  background: rgba(37, 41, 50, 0.75) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head h3 {
  color: #121417 !important;
}

/* Vault interactive edge */
html[data-app-theme='dentixa-premium'] .dx-vault-card.dx-edge-frame {
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.04) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
}

html[data-app-theme='dentixa-premium'] .dx-vault-card.dx-edge-frame[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-vault-card.dx-edge-frame[data-dx-edge='pulse'] {
  border-color: color-mix(in srgb, var(--dx-dna-primary) 55%, transparent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dx-dna-primary) 35%, transparent) !important;
}

html[data-app-theme='dentixa-premium'] .dx-vault-card.dx-edge-frame[data-vault-selected='true'] {
  border-color: color-mix(in srgb, var(--dx-dna-primary) 48%, transparent) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='workspace-actions'] {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
}

/* Utility bricks that were olive/lime → silver outline only */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-acc-primary,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#f4f7ef]'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#eef3e8]'] {
  border-top: 1px solid var(--dx-dna-line) !important;
  border-right: 1px solid var(--dx-dna-line) !important;
  border-left: 1px solid var(--dx-dna-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-acc-primary:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#f4f7ef]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#eef3e8]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  border-bottom: 1px solid var(--dx-dna-line) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-acc-primary:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#f4f7ef]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)),
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='from-[#eef3e8]']:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > thead > tr > th)) {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--dx-dna-text) !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* 1.5.14 — Table track lock + Dashboard palette + Hero scale                 */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-erp-ledger-scroll {
  -webkit-overflow-scrolling: touch;
}

/* Identical padding on every header + cell track — no asymmetric ps/pe */

/* Dashboard-matched glass surfaces */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  backdrop-filter: blur(16px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  background: rgba(28, 31, 38, 0.72) !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
  backdrop-filter: blur(20px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child {
  border-bottom: 1px solid rgba(37, 41, 50, 0.9) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div {
  background: rgba(28, 31, 38, 0.8) !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
  backdrop-filter: blur(20px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-vault-card:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'] button:not(.dx-btn--primary):hover {
  border-color: rgba(132, 204, 22, 0.5) !important;
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.15) !important;
}

/* Hero banner scale — Accounting command center */

html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  width: 100% !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-head__copy {
  width: 100% !important;
  max-width: 48rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
  line-height: 1.2 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-desc {
  font-size: 0.875rem !important;
  color: #64748b !important;
  text-align: center !important;
  max-width: 40rem !important;
  margin-inline: auto !important;
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
    font-size: 2.25rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-desc {
    font-size: 1rem !important;
  }
}

@media (max-width: 639px) {
  html[data-app-theme='dentixa-premium'] .dx-acc-hero {
    min-height: 140px !important;
    padding: 1rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
    font-size: 1.25rem !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar {
  min-height: 2.5rem;
}

/* -------------------------------------------------------------------------- */
/* 1.5.13 — Dark ergonomics: high contrast + lime glow + actions column       */
/* -------------------------------------------------------------------------- */

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting {
  color: #f1f5f9 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .overflow-hidden.rounded-2xl.border {
  background: rgba(28, 31, 38, 0.88) !important;
  border-color: rgba(37, 41, 50, 0.9) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] > div:first-child {
  background: rgba(37, 41, 50, 0.95) !important;
  color: #f1f5f9 !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)) {
  border-bottom-color: rgba(37, 41, 50, 0.75) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody td:where(:not(html .ds-table-wrap table.ds-table[data-ds-table] > tbody > tr > td)) {
  color: #cbd5e1 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-entry,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  color: #f1f5f9 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='status'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-type,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code {
  color: #cbd5e1 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] [data-vault-selected],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] .rounded-2xl.border.bg-gradient-to-br {
  background: rgba(28, 31, 38, 0.88) !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
}

/* Unified lime hover glow */
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'] button {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-vault-card:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'] button:not(.dx-btn--primary):hover {
  border-color: rgba(163, 230, 53, 0.6) !important;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.2) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr:hover {
  background: rgba(163, 230, 53, 0.06) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='workspace-actions'] {
  background: rgba(28, 31, 38, 0.88) !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
}

/* Actions column — never clip; width comes from colgroup */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button {
  min-width: 6.5rem !important;
  background: #fff !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  color: #334155 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button {
  border-color: #334155 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] input,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] button {
  background: rgba(28, 31, 38, 0.95) !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
  color: #f1f5f9 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] label {
  color: #cbd5e1 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head h3 {
  color: #f1f5f9 !important;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
    font-size: 0.78rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
    font-size: 0.875rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
    font-size: 0.76rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='event']::after,
  html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='pulse']::after {
    animation: none !important;
    opacity: 0 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='event'],
  html[data-app-theme='dentixa-premium'] .dx-edge-frame[data-dx-edge='pulse'] {
    box-shadow: none !important;
    border-color: var(--dx-dna-primary) !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-num-flash {
    animation: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-edge='event']::before,
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-edge='pulse']::before {
    animation: none !important;
    opacity: 0 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-dna-float-enter,
  html.theme-pack-premium .dx-dna-float-enter {
    animation: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-dna-illuminate,
  html[data-app-theme='dentixa-premium'] .dx-dna-illuminate-btn,
  html[data-app-theme='dentixa-premium'] .dx-dna-float,
  html.theme-pack-premium .dx-dna-illuminate,
  html.theme-pack-premium .dx-dna-illuminate-btn,
  html.theme-pack-premium .dx-dna-float {
    transition: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-dna-overlay,
  html.theme-pack-premium .dx-dna-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html[data-app-theme='dentixa-premium'] .dx-cinematic-shell::after {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 1.5.14 LOCK (cascade end) — alignment + dashboard palette + hero + actions */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='check'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='check'] {
  width: 44px !important;
  min-width: 44px !important;
  text-align: center !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card {
  background: rgba(28, 31, 38, 0.8) !important;
  border-color: rgba(37, 41, 50, 0.95) !important;
  backdrop-filter: blur(20px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:hover {
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.12);
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero {
  width: 100% !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
    font-size: 2.25rem !important;
  }
}

@media (max-width: 639px) {
  html[data-app-theme='dentixa-premium'] .dx-acc-hero {
    min-height: 140px !important;
    padding: 1rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
    font-size: 1.25rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 1.5.15 — Show ALL ledger columns (no squeeze / no horizontal clip)         */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace.dx-premium-accounting {
  overflow-x: visible !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-erp-ledger-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Explicit pixel table — never compress columns into the viewport */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  border-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  position: sticky !important;
  inset-inline-end: 0 !important;
  z-index: 4 !important;
  max-width: 128px !important;
  text-overflow: unset !important;
  box-shadow: -6px 0 12px -8px rgba(28, 31, 38, 0.35);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'] {
  background: rgba(37, 41, 50, 0.98) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  background: rgba(28, 31, 38, 0.96) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='check'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='check'] {
  position: sticky !important;
  inset-inline-start: 0 !important;
  z-index: 4 !important;
  overflow: visible !important;
  background: rgba(241, 245, 249, 0.98) !important;
  box-shadow: 6px 0 12px -8px rgba(28, 31, 38, 0.25);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='check'] {
  background: rgba(37, 41, 50, 0.98) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='check'] {
  background: rgba(28, 31, 38, 0.96) !important;
}

/* -------------------------------------------------------------------------- */
/* 1.5.16 — Ledger priority: CSS Grid lock + thin interactive frames          */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody {
  display: block !important;
  width: max(100%, 1360px) !important;
  min-width: 1360px !important;
  max-width: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead tr,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr[data-dx-ui='ledger-row'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr {
  display: grid !important;
  grid-template-columns:
    40px
    118px
    96px
    108px
    150px
    92px
    96px
    minmax(200px, 1fr)
    112px
    112px
    88px
    128px !important;
  width: 100% !important;
  min-width: 1360px !important;
  align-items: stretch !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  align-items: center !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  text-overflow: ellipsis !important;
}

html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  background: rgba(241, 245, 249, 0.96) !important;
  color: #334155 !important;
  border-inline-end-color: rgba(203, 213, 225, 0.95) !important;
  border-bottom-color: rgba(203, 213, 225, 0.95) !important;
}

html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  border-inline-end-color: rgba(226, 232, 240, 0.95) !important;
  border-bottom-color: rgba(226, 232, 240, 0.95) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:hover {
  background: rgba(248, 250, 252, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(132, 204, 22, 0.45) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[colspan] {
  justify-content: center !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='desc'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='accounts'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='type'] {
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: unset !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.12rem !important;
  min-width: 0 !important;
  width: 100% !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__title {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace .dx-ledger-desc__title {
  color: #121417 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__meta {
  font-size: 0.68rem !important;
  font-weight: 450 !important;
  color: #94a3b8 !important;
  line-height: 1.25 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'] {
  overflow: visible !important;
  justify-content: center !important;
}

html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button,
html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace .dx-row-actions {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero {
  min-height: 112px !important;
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .dx-acc-hero {
    min-height: 140px !important;
  }
  html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
    font-size: 1.75rem !important;
  }
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div,
html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html[data-app-theme='dentixa-premium'] .dx-acc-hero,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'] {
  border-width: 1px !important;
  border-style: solid !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div:hover,
html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar:hover,
html[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal']:hover {
  border-color: rgba(163, 230, 53, 0.55) !important;
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.14) !important;
}

/* -------------------------------------------------------------------------- */
/* 1.5.17 — Materials palette (inventory chrome) on Accounting Premium        */
/* -------------------------------------------------------------------------- */

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace.dx-premium-accounting {
  background: var(--dx-bg, #111314) !important;
  color: #f3f4f6 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero,
html[data-app-theme='dentixa-premium'] .dx-vault-card,
html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'] {
  background: #ffffff !important;
  border: 1px solid #f3f4f6 !important;
  box-shadow: 0 1px 2px rgba(28, 31, 38, 0.05) !important;
  backdrop-filter: none !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'] {
  background: #1f2937 !important;
  border-color: #4b5563 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html[data-app-theme='dentixa-premium'] .dx-vault-card:hover,
html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal']:hover {
  border-color: #bbf7d0 !important;
  box-shadow: 0 1px 3px rgba(28, 31, 38, 0.08) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions']:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters']:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal']:hover {
  border-color: #3f6212 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-journal__head h3,
html[data-app-theme='dentixa-premium'] .dx-acc-filters__head h3 {
  color: #111827 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-journal__head h3,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-filters__head h3 {
  color: #f3f4f6 !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'] .grid {
  background: #1f2937 !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  border-inline-end-color: #e5e7eb !important;
  border-bottom-color: #e5e7eb !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  border-inline-end-color: #374151 !important;
  border-bottom-color: #374151 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  border-inline-end-color: #f3f4f6 !important;
  border-bottom-color: #f3f4f6 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  border-inline-end-color: #374151 !important;
  border-bottom-color: #374151 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:hover td {
  border-color: #4b5563 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__meta,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta {
  color: #6b7280 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__meta,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta {
  color: #9ca3af !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions {
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
  min-width: 5.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions:hover {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
  box-shadow: none !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions:hover {
  border-color: #3f6212 !important;
  background: rgba(20, 83, 45, 0.35) !important;
  color: #d9f99d !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title,
html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-desc {
  color: inherit !important;
}

/* -------------------------------------------------------------------------- */
/* 1.6.0 — Accounting freeze: Dashboard DNA + native table-fixed              */
/* Binding: Slate-Glass + Lime/Emerald glow. Discard Materials pastel.        */
/* Native <table> + table-layout:fixed. Actions overflow visible.             */
/* Accounting UI iterations FROZEN. Next gateway = Orders + Create Order.     */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace.dx-premium-accounting {
  background: var(--dx-bg, #121417) !important;
  color: #e2e8f0 !important;
}

html[data-app-theme='dentixa-premium']:not(.dark) .dx-scope-accounting-workspace.dx-premium-accounting {
  background: var(--dx-bg, #f1f5f9) !important;
  color: #121417 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero,
html[data-app-theme='dentixa-premium'] .dx-vault-card,
html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'] {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'] {
  background: rgba(28, 31, 38, 0.8) !important;
  border-color: #252932 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html[data-app-theme='dentixa-premium'] .dx-vault-card:hover,
html[data-app-theme='dentixa-premium'] .dx-wallet-context-bar:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters']:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal']:hover {
  border-color: rgba(163, 230, 53, 0.6) !important;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.2) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-journal__head,
html[data-app-theme='dentixa-premium'] .dx-acc-filters__head {
  background: rgba(248, 250, 252, 0.92) !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  color: #121417 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-journal__head,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-filters__head {
  background: rgba(28, 31, 38, 0.72) !important;
  border-bottom-color: #252932 !important;
  color: #f8fafc !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-journal__head h3,
html[data-app-theme='dentixa-premium'] .dx-acc-filters__head h3,
html[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
  color: #121417 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-journal__head h3,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-filters__head h3,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-title {
  color: #ffffff !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero .dx-page-desc {
  color: #cbd5e1 !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'] .grid {
  background: transparent !important;
  background-image: none !important;
}

/* Strict native table — kill 1.5.16 CSS Grid lock */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-erp-ledger-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead {
  width: auto !important;
  min-width: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody {
  width: auto !important;
  min-width: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  width: auto !important;
  max-width: none !important;
  overflow: hidden !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  border-inline-end-color: #252932 !important;
  border-bottom-color: #252932 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='check'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='check'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  position: static !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  white-space: nowrap !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  background: rgba(37, 41, 50, 0.92) !important;
  color: #e2e8f0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  color: #121417 !important;
  background: transparent !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  color: #e2e8f0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[colspan] {
  text-align: center !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:hover {
  background: rgba(248, 250, 252, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(132, 204, 22, 0.45) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:hover {
  background: rgba(37, 41, 50, 0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.45) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr:hover td {
  border-color: rgba(163, 230, 53, 0.35) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr[data-dx-row-selected='true'] {
  box-shadow: inset 3px 0 0 0 #84cc16, inset 0 0 0 1px rgba(163, 230, 53, 0.35) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__title {
  color: #121417 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__title {
  color: #ffffff !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  color: #121417 !important;
  font-weight: 700 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  text-align: center !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions {
  overflow: visible !important;
  min-width: 8rem !important;
  border-radius: 0.5rem !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions {
  background: #252932 !important;
  border-color: #52525b !important;
  color: #f8fafc !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button[data-dx-open='true'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions[data-dx-open='true'] {
  border-color: rgba(163, 230, 53, 0.7) !important;
  background: var(--tok-btn-primary-bg) !important;
  color: var(--tok-btn-primary-fg) !important;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.22) !important;
}

/* -------------------------------------------------------------------------- */
/* 1.6.0 — Orders + Create Order: same frozen Dashboard DNA                   */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-scope-orders.dx-premium-orders,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] {
  color: #121417;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders.dx-premium-orders,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] {
  color: #e2e8f0;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head, html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights, html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell, html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell, html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .bg-white, html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .dark\:bg-gray-800 {
  border-radius: 1rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell {
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell {
  background: rgba(28, 31, 38, 0.8) !important;
  border-color: #252932 !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head:hover,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights:hover,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell:hover {
  border-color: rgba(163, 230, 53, 0.6) !important;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.2) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders table,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] table,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell table {
  display: table !important;
  table-layout: auto !important;
  width: 100% !important;
  border-collapse: collapse !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders table[data-dx-ui='orders-ledger'],
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] table[data-dx-ui='orders-ledger'] {
  display: table !important;
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders thead,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] thead,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell thead {
  display: table-header-group !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders tbody,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] tbody,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tbody {
  display: table-row-group !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders tr,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] tr,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tr {
  display: table-row !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders th,
html[data-app-theme='dentixa-premium'] .dx-scope-orders td,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] th,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] td,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell th,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell td {
  display: table-cell !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) thead th,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] table:not(.owtp-table) thead th,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell thead th {
  background: rgba(37, 41, 50, 0.92) !important;
  color: #e2e8f0 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders table:not(.owtp-table) tbody td,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] table:not(.owtp-table) tbody td,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tbody td {
  color: #f8fafc !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders tbody tr:hover,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] tbody tr:hover,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell tbody tr:hover {
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.45) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] form > div,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .bg-gradient-to-br {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] form > div,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .bg-gradient-to-br {
  background: rgba(28, 31, 38, 0.85) !important;
  border-color: #252932 !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] h3:where(:not(html.dark:not(#_):not(#_) .ov2m :is([data-ov2-section="teeth"] h3, [data-ov2-section="teeth"] h3 *, [data-testid="smile-studio-entry"] h3))),
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-title:where(:not(html.dark:not(#_):not(#_) .ov2m :is([data-ov2-section="teeth"] h3, [data-ov2-section="teeth"] h3 *, [data-testid="smile-studio-entry"] h3))) {
  color: #ffffff !important;
}

/* 1.6.0 Orders list lock — native table-fixed + Actions + Create Order glass */

html[data-app-theme='dentixa-premium'] .dx-orders-ledger-scroll {
  max-width: 100% !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='orderNumber'] { width: 8% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='createdAt'] { width: 8% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='centerName'] { width: 7% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='doctorName'] { width: 9% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='patientName'] { width: 9% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='workType'] { width: 7% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='totalAmount'] { width: 8% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='estimatedCompletionDate'] { width: 12% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='teethDiagram'] { width: 12% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='status'] { width: 8% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='logisticStatus'] { width: 9% !important; }
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='actions'] { width: 10% !important; }

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] tbody td {
  display: table-cell !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  padding: 0.45rem 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-actions-cell],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] th:last-child {
  overflow: visible !important;
}

html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] thead th {
  background: rgba(37, 41, 50, 0.92) !important;
  color: #f1f5f9 !important;
}

html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] tbody td {
  color: #f8fafc !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel {
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 28px 72px -28px rgba(28, 31, 38, 0.45) !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel {
  background: rgba(255, 255, 255, 0.95) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-create-order-panel {
  border-color: #252932 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-create-order-panel {
  background: rgba(28, 31, 38, 0.92) !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel input:not([type='checkbox']):not([type='radio']),
html[data-app-theme='dentixa-premium'] .dx-create-order-panel select,
html[data-app-theme='dentixa-premium'] .dx-create-order-panel textarea,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] input:not([type='checkbox']):not([type='radio']),
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] select,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] textarea {
  min-height: 2.5rem !important;
  border-radius: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel input:focus,
html[data-app-theme='dentixa-premium'] .dx-create-order-panel select:focus,
html[data-app-theme='dentixa-premium'] .dx-create-order-panel textarea:focus,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] input:focus,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] select:focus,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] textarea:focus {
  border-color: rgb(var(--ui-focus-ring)) !important;
  box-shadow: none !important;
  outline: 2px solid rgb(var(--ui-focus-ring)) !important;
  outline-offset: 2px !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-title,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] h1,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] h2,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] h3 {
  color: #f1f5f9 !important;
}

html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-desc,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-metric__label {
  color: #d4d4d8 !important;
}

/* -------------------------------------------------------------------------- */
/* 1.6.2 — Hard purge Navy/Slate-Blue → Silver Metallic Glass                 */
/* -------------------------------------------------------------------------- */

html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='dashboard'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='accounting'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] {
  background-color: #121417 !important;
  color: #f4f4f5 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard [class*='bg-slate-900'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='bg-slate-900'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders [class*='bg-slate-900'],
html.dark[data-app-theme='dentixa-premium'] .dx-create-order-panel,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .bg-slate-900 {
  background-color: rgba(28, 31, 38, 0.9) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard [class*='bg-slate-800'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [class*='bg-slate-800'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-orders [class*='bg-slate-800'] {
  background-color: rgba(37, 41, 50, 0.88) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard .dx-premium-surface,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard [data-dx-ui='metric'],
html.dark[data-app-theme='dentixa-premium'] .dx-create-order-panel {
  border-color: rgba(113, 113, 122, 0.5) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal'],
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard .dx-premium-surface,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard [data-dx-ui='metric'],
html.dark[data-app-theme='dentixa-premium'] .dx-create-order-panel {
  background: rgba(28, 31, 38, 0.9) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-journal__head,
html.dark[data-app-theme='dentixa-premium'] .dx-acc-filters__head,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard thead th {
  background: rgba(37, 41, 50, 0.88) !important;
  color: #f4f4f5 !important;
  border-color: rgba(113, 113, 122, 0.45) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-acc-hero:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-vault-card:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-context-bar:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='workspace-actions']:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-filters']:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='acc-journal']:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-dashboard [data-dx-ui='metric']:hover {
  border-color: rgba(163, 230, 53, 0.8) !important;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.2) !important;
}

/* Native date/time: force YYYY-MM-DD LTR chrome — never Arabic-reversed segments */
html[data-app-theme='dentixa-premium'] input[type='date'],
html[data-app-theme='dentixa-premium'] input[type='time'] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}

/*
 * Full-hit prova/delivery pickers (mobile):
 * Near-invisible native input (opacity 0.01) sits above a visual facade.
 * opacity:0 is ignored by many mobile browsers / webviews.
 */
html[data-app-theme='dentixa-premium'] [data-dx-datetime-picker],
html[data-app-theme='dentixa-premium'] [data-dx-datetime-picker] > div {
  position: relative !important;
  z-index: 30 !important;
  pointer-events: auto !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-datetime-picker] input[type='date'],
html[data-app-theme='dentixa-premium'] [data-dx-datetime-picker] input[type='time'],
html[data-app-theme='dentixa-premium'] input[type='date'][data-prova-date],
html[data-app-theme='dentixa-premium'] input[type='date'][data-delivery-date] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 30 !important;
  opacity: 0.01 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-datetime-picker] input[type='date'], html[data-app-theme='dentixa-premium'] [data-dx-datetime-picker] input[type='time'], html[data-app-theme='dentixa-premium'] input[type='date'][data-prova-date], html[data-app-theme='dentixa-premium'] input[type='date'][data-delivery-date] {
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

html[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit,
html[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-fields-wrapper,
html[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-text,
html[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-month-field,
html[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-day-field,
html[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-year-field,
html[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit,
html[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-fields-wrapper,
html[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-text,
html[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-hour-field,
html[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-minute-field {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  color: #3f3f46 !important;
}

html.dark[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit,
html.dark[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-fields-wrapper,
html.dark[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-text,
html.dark[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-month-field,
html.dark[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-day-field,
html.dark[data-app-theme='dentixa-premium'] input[type='date']::-webkit-datetime-edit-year-field,
html.dark[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit,
html.dark[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-fields-wrapper,
html.dark[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-text,
html.dark[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-hour-field,
html.dark[data-app-theme='dentixa-premium'] input[type='time']::-webkit-datetime-edit-minute-field {
  color: #e4e4e7 !important;
}

/* Theme-agnostic near-invisible hit layer for prova/delivery pickers */
[data-dx-datetime-picker] input[type='date'],
[data-dx-datetime-picker] input[type='time'] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 30 !important;
  opacity: 0.01 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}
[data-dx-datetime-picker] input[type='date']:where(:not(.dark .ov2m :is(input, select, textarea))),
[data-dx-datetime-picker] input[type='time']:where(:not(.dark .ov2m :is(input, select, textarea))) {
  border: 0 !important;
  background: transparent !important;
}

[data-dx-datetime-picker] input[type='date']::-webkit-calendar-picker-indicator,
[data-dx-datetime-picker] input[type='time']::-webkit-calendar-picker-indicator {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* -------------------------------------------------------------------------- */
/* Wave B — shared TopBar + StatCard chrome (Premium only)                    */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):hover {
  border-color: rgba(139, 147, 158, 0.85) !important;
  background: var(--dx-panel-2) !important;
  color: #c5ccd4 !important;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action:focus-visible {
  outline: none;
}


html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]):focus-visible {
  box-shadow: 0 0 0 1px var(--dx-focus-ring) !important;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-active='true'] {
  border-color: var(--dx-lime) !important;
  background: var(--dx-panel) !important;
  color: #c5ccd4 !important;
}

/* Delivery severity owns chrome — do not let open/active lime wash amber/red. */
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'],
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'][data-active='true'] {
  border-color: #f59e0b;
  color: #f59e0b;
  background: var(--dx-panel);
  overflow: visible !important;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.2),
    0 0 6px rgba(245, 158, 11, 0.2);
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'],
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'][data-active='true'] {
  border-color: #ef4444;
  color: #ef4444;
  background: var(--dx-panel);
  overflow: visible !important;
  box-shadow:
    0 0 0 1px rgba(220, 38, 38, 0.24),
    0 0 8px rgba(220, 38, 38, 0.22);
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-badge-placement='center'] {
  overflow: visible !important;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action [data-dx-icon],
html[data-app-theme='dentixa-premium'] .dx-topbar-action svg,
html[data-app-theme='dentixa-premium'] .dx-topbar-action svg path,
html[data-app-theme='dentixa-premium'] .dx-topbar-action svg circle,
html[data-app-theme='dentixa-premium'] .dx-topbar-action svg line {
  stroke-width: 1.1 !important;
}


html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) [data-dx-icon],
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg,
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg path,
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg circle,
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]) svg line {
  color: var(--dx-dna-silver, #8b939e) !important;
  stroke: currentColor !important;
}

/* Delivery severity keeps amber/red glyphs when active */
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'] [data-dx-icon],
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'] svg,
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'] svg path {
  color: #f59e0b;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'] [data-dx-icon],
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'] svg,
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'] svg path {
  color: #ef4444;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action [data-dx-icon] {
  width: 2.5rem !important;
  height: 2.5rem !important;
  --app-icon-size: 2.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-badge {
  display: grid !important;
  place-items: center !important;
  inset-inline-end: -2px !important;
  top: -2px !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  padding-inline: 0.2rem !important;
  background: var(--dx-lime) !important;
  background-image: none !important;
  color: var(--brand-kohl, #0a0d14) !important;
  box-shadow: 0 0 0 1px var(--dx-bg) !important;
  font-size: 0.6875rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

/* Center digit inside bell — never lime pill / never count-fill replacement */
html[data-app-theme='dentixa-premium'] .dx-topbar-badge-center {
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'] .dx-topbar-badge,
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'] .dx-topbar-badge-center {
  background: transparent;
  background-image: none !important;
  color: #f59e0b;
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'] .dx-topbar-badge,
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'] .dx-topbar-badge-center {
  background: transparent;
  background-image: none !important;
  color: #ef4444;
  box-shadow: none;
}
/* Corner delivery pills only when corner placement is used */
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning']:not([data-badge-placement='center']) .dx-topbar-badge {
  background: #f59e0b;
  color: #050505;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.45);
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical']:not([data-badge-placement='center']) .dx-topbar-badge {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.5);
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-topbar-action [data-dx-icon] {
    width: 2.25rem !important;
    height: 2.25rem !important;
    --app-icon-size: 2.25rem !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-metric-flash {
  animation: dx-metric-flash 220ms ease-out;
}

@keyframes dx-metric-flash {
  0% {
    color: var(--dx-lime);
  }
  100% {
    color: inherit;
  }
}

/* -------------------------------------------------------------------------- */
/* Wave C — Dashboard Signature (structure over boxes)                        */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard :focus-visible {
  outline: 1px solid var(--dx-lime);
  outline-offset: 1px;
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title {
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-desc {
  max-width: 36rem;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-console-insights {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-section {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-ops {
  display: contents;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-stat__label {
  display: block;
  font-size: 0.6875rem;
  color: var(--dx-muted);
  line-height: 1.4;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-stat__value {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text);
  line-height: 1.3;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-deep {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-link {
  border: 1px solid var(--dx-line);
  border-radius: 999px;
  background: transparent;
  color: var(--dx-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-quick-link:hover {
  border-color: rgba(139, 147, 158, 0.85);
  color: var(--dx-text);
  background: var(--dx-panel-2);
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more {
  margin-top: 0.75rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more__summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--dx-muted);
  padding: 0.5rem 0;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more__summary::-webkit-details-marker {
  display: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-attention-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--dx-line-subtle, var(--dx-line));
  text-decoration: none;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-queue-row:last-child {
  border-bottom: 0;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-ops,
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-deep {
    grid-template-columns: 1fr;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more:not([open]) .dx-dash-more__body {
    display: none;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-console-insights {
    padding: 0;
  }
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more {
    display: block;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more__summary {
    display: none;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-more__body {
    display: block;
  }
}

/* -------------------------------------------------------------------------- */
/* Wave C correction — Silver-first Dashboard Signature                       */
/* Silver = structure. Lime = signal. No idle glow. No card-in-card.          */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard {
  --dx-silver-border: #3a4047;
  --dx-silver-quiet: rgba(139, 147, 158, 0.35);
  --dx-silver-hover: rgba(139, 147, 158, 0.85);
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-dashboard,
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-dashboard :where(h1, h2, p, span, b, strong, a, label, em) {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title,
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title .dx-accent {
  color: inherit !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-desc {
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  max-width: 36rem;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--dx-silver-border);
  background: var(--dx-panel);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.55rem;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
  min-height: 0;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-inline-start: 1px solid var(--dx-silver-quiet);
  background: transparent;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell:first-child {
  border-inline-start: 0;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell:hover {
  background: var(--dx-panel-2) !important;
  box-shadow: inset 0 0 0 1px rgba(139, 147, 158, 0.85);
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-kpi-cell[data-dx-edge='pulse'] {
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dx-muted);
  line-height: 1.35;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell__value {
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text);
  line-height: 1.2;
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell--signal .dx-kpi-cell__value {
  color: var(--dx-lime-text);
}

html[data-app-theme='dentixa-premium'] .dx-kpi-cell__hint {
  flex-basis: 100%;
  font-size: 0.7rem;
  color: var(--dx-muted);
  line-height: 1.35;
}

html[data-app-theme='dentixa-premium'] .dx-dash-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-top: 0.7rem;
  border: 1px solid var(--dx-silver-border);
  border-radius: 8px;
  background: var(--dx-panel);
  overflow: hidden;
}

html[data-app-theme='dentixa-premium'] .dx-dash-workspace__pane {
  padding: 0.8rem 0.95rem 0.9rem;
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-dash-workspace__pane + .dx-dash-workspace__pane {
  border-inline-start: 1px solid var(--dx-silver-quiet);
}

html[data-app-theme='dentixa-premium'] .dx-dash-workspace__actions {
  margin-top: 0.7rem;
}

html[data-app-theme='dentixa-premium'] .dx-dash-section--plain {
  border: none !important;
  background: transparent !important;
  padding: 0.35rem 0.15rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-deep {
  border: 1px solid var(--dx-silver-border);
  border-radius: 8px;
  background: var(--dx-panel);
  padding: 0.7rem 0.85rem;
  gap: 0.85rem 1.1rem;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--danger,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--warn,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-metric--muted {
  background: var(--dx-panel) !important;
  border-color: #3a4047 !important;
  box-shadow: none !important;
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav,
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a {
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard [data-dx-ui='button'][data-dx-variant='primary'] {
  background: var(--tok-brand-lime-on-dark) !important;
  color: #0a0d14 !important;
  border: 1px solid var(--tok-brand-lime-on-dark) !important;
  box-shadow: none !important;
  filter: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard [data-dx-ui='button'][data-dx-variant='primary']::before {
  content: none !important;
  display: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard [data-dx-ui='button'][data-dx-variant='primary']:hover {
  filter: brightness(1.06);
  transform: none !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard [data-dx-ui='button'][data-dx-variant='outline'] {
  background: var(--dx-panel) !important;
  color: var(--dx-text) !important;
  border: 1px solid #3a4047 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard [data-dx-ui='button'][data-dx-variant='outline']:hover {
  border-color: rgba(139, 147, 158, 0.85) !important;
  background: var(--dx-panel-2) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav .dx-nav-link-active,
html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav a[aria-current='page'],
html[data-app-theme='dentixa-premium'] .dx-cinematic-nav .dx-nav-link-active,
html[data-app-theme='dentixa-premium'] .dx-nav-link-active {
  color: var(--dx-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid var(--dx-lime) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-app-shell-nav.app-top-navigation {
  border-bottom: 1px solid #3a4047 !important;
}

@media (min-width: 768px) {
  html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions [data-topbar-action],
  html[data-app-theme='dentixa-premium'] .app-top-navigation .top-nav-actions button.h-12,
  html[data-app-theme='dentixa-premium'] .dx-topbar-action {
    overflow: hidden !important;
    height: 48px !important;
    width: 48px !important;
    min-height: 48px !important;
    min-width: 48px !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'],
  html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'],
  html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-badge-placement='center'] {
    overflow: visible !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-topbar-action--count:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell]),
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-dx-count='true'] {
  color: var(--tok-brand-lime-on-dark) !important;
  border-color: #3a4047 !important;
  background: var(--dx-panel) !important;
}

/* Glyph + center count must never enter lime count-fill mode */
html[data-app-theme='dentixa-premium'] .dx-topbar-action:not([data-notification-frame]:not([data-notification-frame="muted"])):not([data-delivery-bell])[data-badge-placement='center'] {
  color: inherit;
  border-color: #3a4047 !important;
  background: var(--dx-panel) !important;
}

html[data-app-theme='dentixa-premium'] .dx-topbar-count {
  display: grid !important;
  place-items: center !important;
  width: 100%;
  height: 100%;
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  color: var(--tok-brand-lime-on-dark) !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-dashboard),
html[data-app-theme='dentixa-premium'] .dx-premium-surface:has(.dx-premium-dashboard),
html[data-app-theme='dentixa-premium'] .dx-scope-dashboard.dx-premium-surface {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-dashboard) {
  padding: 0.35rem 0 1rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-dashboard)::before,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-dashboard)::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard.dx-workspace-console,
html[data-app-theme='dentixa-premium'] [data-dx-console='dashboard'] {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  --dx-room-tint: transparent;
  --dx-room-grid-opacity: 0.018;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard.dx-command-deck .dx-page-head::before {
  content: none !important;
  display: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-head {
  background-image: linear-gradient(
    90deg,
    #3a4047 0%,
    rgba(139, 147, 158, 0.35) 42%,
    transparent 100%
  ) !important;
  background-size: 100% 1px !important;
  margin-bottom: 0.65rem !important;
  padding-bottom: 0.55rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-deep {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0.85rem 0 0 !important;
  margin-top: 0.85rem !important;
  border-top: 1px solid rgba(139, 147, 158, 0.35) !important;
  gap: 1.15rem 1.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-dash-deep > .dx-dash-section + .dx-dash-section {
  border-inline-start: 1px solid rgba(139, 147, 158, 0.28) !important;
  padding-inline-start: 1.15rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-grid {
  gap: 0.45rem 1.35rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0.25rem 0.15rem !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell:hover {
  transform: none !important;
  background: transparent !important;
  border: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell span,
html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-network-cell__label {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: inherit !important;
  font-size: 0.75rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-chart {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.1rem 0 !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-action='chat'] {
  overflow: hidden !important;
}

html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-badge] {
  position: absolute !important;
  inset-inline-end: 6px !important;
  top: 5px !important;
  inset-inline-start: auto !important;
  bottom: auto !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  -webkit-text-fill-color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  font-size: 0.6875rem !important;
  font-weight: 800 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  html[data-app-theme='dentixa-premium'] .dx-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-app-theme='dentixa-premium'] .dx-kpi-cell:nth-child(2n + 1) {
    border-inline-start: 0;
  }

  html[data-app-theme='dentixa-premium'] .dx-kpi-cell:nth-child(n + 3) {
    border-top: 1px solid var(--dx-silver-quiet);
  }
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title,
  html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-page-title {
    white-space: nowrap;
    font-size: clamp(1rem, 5vw, 1.25rem) !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.4rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-kpi-cell {
    padding: 0.4rem 0.65rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-kpi-cell__value {
    font-size: 1.05rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-kpi-cell__hint {
    display: none;
  }

  html[data-app-theme='dentixa-premium'] .dx-dash-workspace {
    grid-template-columns: 1fr;
    margin-top: 0.55rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-dash-workspace__pane + .dx-dash-workspace__pane {
    border-inline-start: 0;
    border-top: 1px solid var(--dx-silver-quiet);
  }

  html[data-app-theme='dentixa-premium'] .dx-dash-workspace__pane {
    padding: 0.65rem 0.75rem 0.75rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-dashboard .dx-workspace-console {
    gap: 0.45rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Wave D — Accounting Silver-first (Dashboard DNA + ERP density)             */
/* Command head → wallet strip → actions → KPI strip → filters → journal      */
/* -------------------------------------------------------------------------- */

html[data-app-theme='dentixa-premium'] .dx-premium-accounting {
  --dx-silver-border: #3a4047;
  --dx-silver-quiet: rgba(139, 147, 158, 0.35);
  --dx-silver-hover: rgba(139, 147, 158, 0.85);
}

html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-accounting,
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-accounting :where(h1, h2, h3, p, span, b, strong, a, label, em) {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-accounting),
html[data-app-theme='dentixa-premium'] .dx-premium-surface:has(.dx-premium-accounting),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting.dx-workspace-console,
html[data-app-theme='dentixa-premium'] [data-dx-console='accounting'] {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-accounting)::before,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-accounting)::after {
  content: none !important;
  display: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-head {
  background-image: linear-gradient(
    90deg,
    #3a4047 0%,
    rgba(139, 147, 158, 0.35) 42%,
    transparent 100%
  ) !important;
  background-size: 100% 1px !important;
  margin-bottom: 0.45rem !important;
  padding-bottom: 0.5rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-title {
  font-size: clamp(1.05rem, 2vw, 1.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-title .dx-accent {
  color: inherit !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-meta {
  margin: 0 0 0.55rem;
  color: #8b939e !important;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.75rem;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0.55rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'heat meta';
  align-items: stretch;
  gap: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  border-image: none;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dx-panel, #fff) 96%, #fff) 0%,
      var(--dx-panel, #fff) 52%,
      color-mix(in srgb, var(--dx-soft, #eef0f3) 70%, var(--dx-panel, #fff)) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(10, 13, 20, 0.04),
    0 0 0 1px color-mix(in srgb, var(--dx-muted, #8b939e) 42%, transparent),
    0 0 0 2px color-mix(in srgb, var(--dx-line, #3a4047) 28%, transparent),
    0 10px 24px -16px rgba(10, 13, 20, 0.18) !important;
  outline: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 22%, transparent);
  outline-offset: -1px;
  color: var(--dx-text, #12141a);
  text-align: start;
  cursor: pointer;
  min-height: 10rem;
  direction: ltr;
  overflow: visible;
  position: relative;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 28%,
    transparent 48%,
    color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 8%, transparent) 72%,
    rgba(255, 255, 255, 0.18) 100%
  );
  opacity: 0.9;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell:first-child {
  border-inline-start: 1px solid transparent;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell:hover {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dx-panel-2, #f7f8fa) 88%, #fff) 0%,
      var(--dx-panel, #fff) 55%,
      var(--dx-soft, #eef0f3) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(10, 13, 20, 0.05),
    0 0 0 1px color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 42%, transparent),
    0 0 0 2px color-mix(in srgb, var(--dx-muted, #8b939e) 35%, transparent),
    0 14px 28px -16px rgba(10, 13, 20, 0.2) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-cell {
  background:
    linear-gradient(165deg, rgba(28, 31, 38, 0.98) 0%, rgba(17, 19, 20, 0.98) 55%, rgba(12, 14, 16, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(139, 147, 158, 0.35),
    0 0 0 2px rgba(58, 64, 71, 0.55),
    0 10px 28px -18px rgba(0, 0, 0, 0.7) !important;
  outline-color: rgba(200, 205, 212, 0.18);
  color: var(--dx-text, #f5f5f7);
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-cell::before {
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 28%,
    transparent 48%,
    rgba(200, 240, 74, 0.04) 72%,
    rgba(255, 255, 255, 0.06) 100%
  );
  opacity: 0.85;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-cell:hover {
  background:
    linear-gradient(165deg, rgba(32, 36, 44, 0.99) 0%, rgba(20, 22, 26, 0.99) 55%, rgba(14, 16, 18, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(200, 240, 74, 0.28),
    0 0 0 2px rgba(139, 147, 158, 0.4),
    0 14px 32px -16px rgba(0, 0, 0, 0.75) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell--selected,
html[data-app-theme='dentixa-premium'] .dx-wallet-cell[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-wallet-cell[data-dx-edge='pulse'] {
  outline: 1px solid var(--dx-lime, var(--tok-brand-lime-on-dark));
  outline-offset: -1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 45%, transparent),
    0 0 18px -8px color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 35%, transparent),
    0 12px 28px -16px rgba(10, 13, 20, 0.22) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-cell--selected,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-cell[data-dx-edge='event'],
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-cell[data-dx-edge='pulse'] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(200, 240, 74, 0.45),
    0 0 18px -8px rgba(200, 240, 74, 0.35),
    0 12px 28px -16px rgba(0, 0, 0, 0.7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__heat {
  grid-area: heat;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 0;
  min-width: 0;
  height: 100%;
  overflow: visible;
  position: relative;
  z-index: 1;
  padding-inline-end: 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 0;
  height: 100%;
  text-align: end;
  position: relative;
  z-index: 1;
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 34%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__meta-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__code {
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  color: var(--dx-lime-text);
  letter-spacing: 0 !important;
  text-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__hint {
  font-size: 0.65rem;
  color: var(--dx-muted, #8b939e);
  margin-top: auto;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 30%, transparent);
  width: 100%;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-label {
  font-size: 0.62rem;
  color: var(--dx-muted, #8b939e);
  line-height: 1.2;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-value {
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dx-text, #12141a);
  letter-spacing: 0 !important;
  line-height: 1.2;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__reconcile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 42%, transparent);
  background: color-mix(in srgb, var(--dx-panel-2, #f7f8fa) 88%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__reconcile-light {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__reconcile--ok .dx-wallet-cell__reconcile-light {
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.18);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-cell__reconcile--warn .dx-wallet-cell__reconcile-light {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Heatmap days = rings (not solid fills) · idle = faint */
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.32rem;
  min-height: 0;
  overflow: visible;
  padding: 0.2rem 0.1rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__months {
  display: grid;
  grid-template-columns: 0.85rem minmax(0, 1fr);
  gap: 3px;
  align-items: end;
  min-height: 0.7rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__months-track {
  display: flex;
  flex-direction: row;
  gap: 3px;
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__month {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.5rem;
  line-height: 1;
  color: var(--dx-muted, #8b939e);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__body {
  display: grid;
  grid-template-columns: 0.85rem minmax(0, 1fr);
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  overflow: visible;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__weekdays {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: space-between;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__weekday {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.5rem;
  line-height: 1;
  color: var(--dx-muted, #8b939e);
  padding-inline-end: 0.05rem;
  min-height: 13px;
  overflow: hidden;
  white-space: nowrap;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__grid {
  display: flex;
  flex-direction: row;
  gap: 3px;
  width: 100%;
  justify-content: flex-start;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  overflow: visible;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__week {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0;
  min-height: 13px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--dx-muted, #8b939e) 28%, transparent);
  background: color-mix(in srgb, var(--dx-muted, #8b939e) 8%, transparent);
  box-sizing: border-box;
  z-index: 1;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--pad {
  visibility: hidden;
  pointer-events: none;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--idle {
  background: color-mix(in srgb, var(--dx-muted, #8b939e) 8%, transparent);
  border-color: color-mix(in srgb, var(--dx-muted, #8b939e) 28%, transparent);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__daynum {
  font-size: 0.48rem;
  font-weight: 650;
  line-height: 1;
  color: var(--dx-text, #12141a);
  text-shadow: none;
  pointer-events: none;
  opacity: 0.78;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--idle .dx-wallet-heatmap__daynum {
  color: var(--dx-muted, #8b939e);
  opacity: 0.9;
}

/* Active = colored ring only (no solid fill) */
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-1,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-2,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-3,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-4,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-1,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-2,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-3,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-4 {
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-1 {
  border-color: rgba(74, 222, 128, 0.42);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08);
}
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-2 {
  border-color: rgba(74, 222, 128, 0.62);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12);
}
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-3 {
  border-color: rgba(74, 222, 128, 0.82);
  box-shadow: 0 0 0 1.5px rgba(74, 222, 128, 0.16);
}
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-4 {
  border-color: var(--tok-brand-lime-on-dark);
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(200, 240, 74, 0.18);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-1 {
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.08);
}
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-2 {
  border-color: rgba(248, 113, 113, 0.62);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12);
}
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-3 {
  border-color: rgba(248, 113, 113, 0.82);
  box-shadow: 0 0 0 1.5px rgba(248, 113, 113, 0.16);
}
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-4 {
  border-color: #ef4444;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-1 .dx-wallet-heatmap__daynum,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-2 .dx-wallet-heatmap__daynum,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-3 .dx-wallet-heatmap__daynum,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-4 .dx-wallet-heatmap__daynum {
  color: color-mix(in srgb, #22c55e 55%, var(--dx-text, #12141a));
  opacity: 1;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-1 .dx-wallet-heatmap__daynum,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-2 .dx-wallet-heatmap__daynum,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-3 .dx-wallet-heatmap__daynum,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-4 .dx-wallet-heatmap__daynum {
  color: color-mix(in srgb, #ef4444 55%, var(--dx-text, #12141a));
  opacity: 1;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--idle {
  background: color-mix(in srgb, #8b939e 10%, transparent);
  border-color: rgba(139, 147, 158, 0.32);
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__daynum {
  color: #e8eaed;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--idle .dx-wallet-heatmap__daynum {
  color: #8b939e;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-1 .dx-wallet-heatmap__daynum,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-2 .dx-wallet-heatmap__daynum,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-3 .dx-wallet-heatmap__daynum,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--in-4 .dx-wallet-heatmap__daynum {
  color: var(--tok-brand-lime-on-dark);
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-1 .dx-wallet-heatmap__daynum,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-2 .dx-wallet-heatmap__daynum,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-3 .dx-wallet-heatmap__daynum,
html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell--out-4 .dx-wallet-heatmap__daynum {
  color: #fca5a5;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 7.1rem;
  min-width: 7.1rem;
  max-width: 7.75rem;
  padding: 0.24rem 0.3rem;
  border: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 38%, transparent);
  border-radius: 6px;
  background: var(--dx-panel, #fff);
  color: var(--dx-text, #12141a);
  box-shadow: 0 8px 16px -12px rgba(10, 13, 20, 0.35);
  text-align: start;
  pointer-events: none;
  z-index: 30;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup {
  background: #181b1c;
  color: #f5f5f7;
  box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.75);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell:hover,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell:focus-within {
  transform: scale(1.18);
  z-index: 20;
  border-color: color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 22%, transparent);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell:hover .dx-wallet-heatmap__popup,
html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell:focus-within .dx-wallet-heatmap__popup {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-date {
  font-size: 0.46rem;
  color: var(--dx-muted, #8b939e);
  line-height: 1.2;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-net {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--dx-lime, var(--tok-brand-lime-on-dark));
  line-height: 1.2;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-row {
  display: flex;
  flex-direction: column;
  gap: 0.03rem;
  padding: 0.12rem 0.16rem;
  border: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 24%, transparent);
  border-radius: 4px;
  font-size: 0.44rem;
  line-height: 1.2;
  color: var(--dx-muted, #8b939e);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-row b {
  color: var(--dx-text, #12141a);
  font-size: 0.5rem;
  font-variant-numeric: tabular-nums;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-row b {
  color: #f5f5f7;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-flow {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-flow span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-flow i {
  color: var(--dx-lime, var(--tok-brand-lime-on-dark));
  font-style: normal;
  flex: 0 0 auto;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-row--in {
  border-color: rgba(74, 222, 128, 0.3);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-row--out {
  border-color: rgba(248, 113, 113, 0.3);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup-empty {
  font-size: 0.44rem;
  color: var(--dx-muted, #8b939e);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__legend {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-inline-start: 0.85rem;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__legend .dx-wallet-heatmap__cell {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  min-height: 7px;
  aspect-ratio: 1 / 1;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-boxes {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 0.65rem;
  border-top: 1px solid rgba(139, 147, 158, 0.35);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.4rem 0.15rem;
  border: 0;
  border-bottom: 1px solid rgba(139, 147, 158, 0.22);
  background: transparent;
  color: inherit;
  text-align: start;
  font-size: 0.8125rem;
  cursor: pointer;
}

html[data-app-theme='dentixa-premium'] .dx-wallet-box:hover {
  color: var(--dx-text, #f5f5f7);
}

html[data-app-theme='dentixa-premium'] .dx-wallet-box--selected {
  color: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] .dx-acc-actions {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-acc-filters,
html[data-app-theme='dentixa-premium'] .dx-acc-journal,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-filters__head,
html[data-app-theme='dentixa-premium'] .dx-acc-journal__head,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-journal'] .dx-acc-journal__head,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] .dx-acc-filters__head {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(139, 147, 158, 0.35) !important;
  padding: 0.35rem 0 0.5rem !important;
  margin-bottom: 0.35rem;
  color: var(--dx-text, #f5f5f7) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  color: #f5f5f7 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-ccy {
  color: #8b939e !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-filters__grid {
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.7rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-fcc,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-fcc-center {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  border: 1px solid #3a4047 !important;
  border-radius: 0 !important;
  background: #111314 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  background: #111314 !important;
  color: #8b939e !important;
  border-bottom: 1px solid #3a4047 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] tbody td,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] tbody td {
  color: #f5f5f7 !important;
  background: transparent !important;
  border-bottom-color: rgba(139, 147, 158, 0.22) !important;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-title,
  html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-title {
    white-space: nowrap;
    font-size: clamp(1rem, 5vw, 1.2rem) !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-strip,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell:nth-child(2n + 1) {
    border-inline-start: 0;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell:nth-child(n + 3) {
    border-top: 1px solid rgba(139, 147, 158, 0.35);
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'meta'
      'heat';
    min-height: 0;
    gap: 0.35rem;
    padding: 0.4rem 0.4rem 0.35rem !important;
    align-content: start;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__meta {
    align-items: stretch;
    text-align: start;
    gap: 0.2rem;
    height: auto;
    padding: 0;
    border-inline-start: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 28%, transparent);
    padding-bottom: 0.3rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__meta-top {
    justify-content: space-between;
    width: 100%;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__code,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__code {
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-block {
    align-items: flex-start;
    margin-top: 0;
    padding-top: 0.15rem;
    border-top: 0;
    gap: 0.05rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-label {
    font-size: 0.55rem;
    line-height: 1.1;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__value,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-value,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__balance-value {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    word-break: break-word;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__hint {
    margin-top: 0.1rem;
    font-size: 0.55rem;
    line-height: 1.1;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__reconcile {
    width: 0.7rem;
    height: 0.7rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__reconcile-light {
    width: 0.28rem;
    height: 0.28rem;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__heat {
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Compact quiet stats: rings only, no month/weekday chrome */
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap {
    gap: 0;
    padding: 0.1rem 0 0;
    flex: 0 0 auto;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__months,
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__weekdays {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__body {
    display: block;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__grid {
    gap: 2px;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__week {
    gap: 2px;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__cell {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    border-width: 1px;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__daynum {
    font-size: 0.42rem;
    line-height: 1;
    opacity: 0.55;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] {
    margin-bottom: 0.4rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-filters__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-desc {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-meta {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-filters__head {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell__value {
    font-size: 0.95rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell__hint {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] > div:first-child h2,
  html[data-app-theme='dentixa-premium'] [data-dx-ui='currency-wallet'] > div:first-child p {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.4rem;
    margin-bottom: 0.3rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-cell:nth-child(n + 3) {
    border-top: 0 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-wallet-boxes {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] .dx-acc-filters__grid > div:nth-child(-n + 3) {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] .dx-acc-filters__grid {
    grid-template-columns: 1fr auto !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-strip,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='ledger-kpi'] {
    margin-bottom: 0.35rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] label {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] input,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] button {
    height: 2rem !important;
    min-height: 2rem !important;
    font-size: 0.75rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell {
    padding: 0.28rem 0.45rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-journal__head {
    padding-top: 0.15rem !important;
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.15rem !important;
  }

  /* D.1 — selected-row actions leave the document flow (do not push ledger) */
  html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-row-actions'],
  html[data-app-theme='dentixa-premium'] .dx-acc-row-actions,
  html[data-app-theme='dentixa-premium'] .dx-acc-row-actions--dock {
    position: fixed !important;
    inset-inline: 0;
    bottom: 0;
    z-index: 45;
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0.4rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-top: 1px solid #3a4047 !important;
    border-radius: 0 !important;
    background: #111314 !important;
    box-shadow: none !important;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-row-actions'] > div,
  html[data-app-theme='dentixa-premium'] .dx-acc-row-actions > div {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.4rem !important;
    width: 100%;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-row-actions'] .dx-acc-row-actions__count,
  html[data-app-theme='dentixa-premium'] .dx-acc-row-actions .dx-acc-row-actions__count {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='acc-row-actions'] button,
  html[data-app-theme='dentixa-premium'] .dx-acc-row-actions button {
    height: 2rem !important;
    min-height: 2rem !important;
    padding: 0 0.7rem !important;
    font-size: 0.72rem !important;
    border-radius: var(--dx-radius-sm, 8px) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
}

/* Wave D — native ledger: kill 1.5.16 grid lock, 1px lime select, amount hierarchy */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  display: table !important;
  margin: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead {
  display: table-header-group !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody {
  display: table-row-group !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead tr,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr[data-dx-ui='ledger-row'] {
  display: table-row !important;
  grid-template-columns: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  display: table-cell !important;
  height: 2.65rem;
  border: 0 !important;
  border-bottom: 1px solid #3a4047 !important;
  border-inline-end: 0 !important;
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 2.4rem;
  background: #111314 !important;
  color: #8b939e !important;
  text-transform: none !important;
  border-bottom: 1px solid #3a4047 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[colspan] {
  display: table-cell !important;
  grid-column: auto !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'],
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'] {
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td {
  background: #1c1f26 !important;
  border-color: #3a4047 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr[data-dx-row-selected='true'],
html[dir='rtl'][data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true'] {
  background: transparent !important;
  box-shadow: none !important;
  outline: 1px solid var(--tok-brand-lime-on-dark);
  outline-offset: -1px;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true']:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true']:hover td {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'] .dx-account-chip__name {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #f5f5f7 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc__title,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='order'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='invoice'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta {
  font-size: 0.72rem !important;
  font-weight: 450 !important;
  color: #8b939e !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-ccy {
  color: #8b939e !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell__value {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='workspace-actions'],
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='ledger-kpi'] > div,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='ledger-kpi'] > div,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell {
  background: transparent !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* Wave D.2 — Ledger precision & interaction polish (Accounting Premium only) */
/* Sharp / restrained / precise. No glow. No double border. Colgroup owns width. */
/* -------------------------------------------------------------------------- */

/* ::before on <tr> becomes a fake table-cell (position:relative on tr is ignored) */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']::before,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-edge='event']::before,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-edge='pulse']::before {
  content: none !important;
  display: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  border-radius: 0 !important;
  border-collapse: collapse !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td {
  box-sizing: border-box !important;
  min-width: 0 !important;
  padding: 0.4rem 0.5rem !important;
  margin: 0 !important;
  vertical-align: middle !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='debit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='credit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='accounts'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='date'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='status'] {
  overflow: visible !important;
  white-space: nowrap;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='desc'] .dx-ledger-desc__title,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='desc'] .dx-ledger-desc__meta,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='order'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='invoice'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='type'] .dx-ledger-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Hierarchy: amount > account > ref/date > description > status */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  color: var(--dx-text) !important;
  font-size: 0.98rem !important;
  font-weight: 750 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-ccy,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-ccy {
  color: var(--dx-muted) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'] .dx-account-chip__name,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'] .dx-account-chip__name,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  color: var(--dx-text) !important;
  font-weight: 650 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-entry {
  color: var(--dx-text) !important;
  font-weight: 600 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='order'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='invoice'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc__title,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc__meta,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='desc'] .dx-ledger-desc,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta {
  color: var(--dx-muted) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code {
  color: var(--dx-muted) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-type,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-type {
  border: 1px solid var(--dx-line) !important;
  background: transparent !important;
  color: var(--dx-muted) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-status {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--dx-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  border-radius: 0;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-status--draft {
  color: var(--dx-lime-text);
}

/* Hover: brighter silver + lift. Never lime. Never glow. Never a second frame. */
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td {
  background: var(--dx-panel-2) !important;
  border-bottom-color: var(--dx-line) !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row'][data-dx-row-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody tr[data-dx-row-selected='true'] {
  outline: 1px solid var(--dx-lime);
  outline-offset: -1px;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-strip {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-strip {
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell:hover,
html.dark[data-app-theme='dentixa-premium'] [data-dx-ui='ledger-kpi'] > div:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] button:not(.dx-btn--primary):hover {
  background: var(--dx-panel-2) !important;
  border-color: var(--dx-muted) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: translateY(-1px);
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn--primary,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn--primary {
  border: 1px solid var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  background: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  color: #050505 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn--primary:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn--primary:hover {
  background: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  border-color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: translateY(-1px);
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn--primary span,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn--primary kbd {
  color: inherit !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell[data-dx-edge='pulse'] {
  outline: 1px solid var(--dx-lime) !important;
  outline-offset: -1px;
  box-shadow: none !important;
  transform: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell[data-dx-edge='pulse'],
html[data-app-theme='dentixa-premium'] .dx-wallet-cell[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-wallet-cell[data-dx-edge='pulse'] {
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(200, 240, 74, 0.45),
    0 0 18px -8px rgba(200, 240, 74, 0.35),
    0 12px 28px -16px rgba(0, 0, 0, 0.7) !important;
  transform: none;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--primary,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] select,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] button,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button {
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--primary {
  border: 1px solid var(--dx-lime) !important;
  background: var(--dx-lime) !important;
  color: #050505 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--primary:hover {
  border-color: var(--dx-lime) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--secondary,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--utility {
  border: 1px solid var(--dx-line) !important;
  background: var(--dx-panel) !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--secondary:hover,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-btn--utility:hover {
  border-color: var(--dx-muted) !important;
  background: var(--dx-panel-2) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='actions'] [data-row-menu-root] > button {
  background: var(--dx-panel) !important;
  border: 1px solid var(--dx-line) !important;
  color: var(--dx-text) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions:hover,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-row-actions[data-dx-open='true'] {
  background: var(--dx-panel-2) !important;
  border-color: var(--dx-muted) !important;
  color: var(--dx-text) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-row-actions--dock button {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-erp-ledger-scroll {
  border: 1px solid var(--dx-line, #3a4047);
  border-radius: var(--dx-radius-sm, 8px);
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] select,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] button,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] select,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] button {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-pager button,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-pager'] button {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

/* -------------------------------------------------------------------------- */
/* Accounting reading scale — human default ~14px, fluid with viewport.       */
/* Same tokens on ledger + KPI + wallet + filters + pager + actions.          */
/* -------------------------------------------------------------------------- */
html[data-app-theme='dentixa-premium'] .dx-premium-accounting,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace {
  --dx-read: clamp(0.8125rem, 0.22vw + 0.76rem, 0.9375rem);
  --dx-read-loud: clamp(0.875rem, 0.28vw + 0.8rem, 1rem);
  --dx-read-quiet: clamp(0.75rem, 0.18vw + 0.7rem, 0.8125rem);
  --dx-read-head: clamp(0.75rem, 0.2vw + 0.7rem, 0.8125rem);
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  font-size: var(--dx-read, 0.875rem) !important;
  line-height: 1.4 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th {
  font-size: var(--dx-read-head, 0.8125rem) !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-entry,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount {
  font-size: var(--dx-read-loud, 0.9375rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'] .dx-account-chip__name {
  font-size: var(--dx-read, 0.875rem) !important;
  font-weight: 650 !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-meta,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='date'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='order'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='invoice'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='status'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-status,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__title,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__meta,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-ccy,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip-more,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-type {
  font-size: var(--dx-read-quiet, 0.75rem) !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-type {
  padding: 0.12rem 0.45rem !important;
  max-width: 100%;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='accounts'] {
  overflow: hidden !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip {
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code {
  flex-shrink: 0;
  opacity: 0.78;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__kind {
  display: none !important;
}

/* Page chrome — same reading scale as the ledger */
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-meta,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-page-desc,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-head__hint,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__hint,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell__label,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell__hint,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] label,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-filters__head,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-journal__head span,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-pager'] span,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] kbd,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-row-actions,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-col='actions'] [data-row-menu-root] > button {
  font-size: var(--dx-read-quiet, 0.75rem) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__code {
  font-size: clamp(1.7rem, 2.2vw, 2.15rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--dx-lime-text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__balance-value {
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  color: var(--dx-text, #12141a) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell:hover {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--dx-panel-2, #f7f8fa) 88%, #fff) 0%,
      var(--dx-panel, #fff) 55%,
      var(--dx-soft, #eef0f3) 100%
    ) !important;
  border-color: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(10, 13, 20, 0.05),
    0 0 0 1px color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 42%, transparent),
    0 0 0 2px color-mix(in srgb, var(--dx-muted, #8b939e) 35%, transparent),
    0 14px 28px -16px rgba(10, 13, 20, 0.2) !important;
  outline: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 22%, transparent) !important;
  outline-offset: -1px;
  transform: none;
}

html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell:hover {
  background:
    linear-gradient(165deg, rgba(32, 36, 44, 0.99) 0%, rgba(20, 22, 26, 0.99) 55%, rgba(14, 16, 18, 0.99) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(200, 240, 74, 0.28),
    0 0 0 2px rgba(139, 147, 158, 0.4),
    0 14px 32px -16px rgba(0, 0, 0, 0.75) !important;
  outline: 1px solid rgba(200, 205, 212, 0.22) !important;
}

/* Mobile vault: fund on top · quiet heatmap below (beats desktop !important sizes) */
@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: 'meta' 'heat' !important;
    min-height: 0 !important;
    gap: 0.35rem !important;
    padding: 0.4rem 0.4rem 0.35rem !important;
    align-content: start !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__meta,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__meta {
    align-items: stretch !important;
    text-align: start !important;
    gap: 0.2rem !important;
    height: auto !important;
    padding: 0 0 0.3rem !important;
    border-inline-start: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--dx-muted, #8b939e) 28%, transparent) !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__code,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__code {
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__balance-value,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__value,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__balance-value,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__value {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__heat,
  html[data-app-theme='dentixa-premium'] .dx-wallet-cell__heat {
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-heatmap__months,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-heatmap__weekdays,
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__months,
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__weekdays {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-heatmap__body,
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__body {
    display: block !important;
    grid-template-columns: none !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-heatmap__daynum,
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__daynum {
    font-size: 0.42rem !important;
    opacity: 0.55;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-heatmap__popup,
  html[data-app-theme='dentixa-premium'] .dx-wallet-heatmap__popup {
    display: none !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-kpi-cell__value,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__value,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='currency-wallet'] h2,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-journal__head h3,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-filters__head h3 {
  font-size: var(--dx-read-loud, 0.9375rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] select,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] button,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-pager'] button,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='workspace-actions'] .dx-btn,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='currency-wallet'] button:not(.dx-wallet-cell),
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-box {
  font-size: var(--dx-read, 0.875rem) !important;
  letter-spacing: 0 !important;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__balance-value,
  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__value {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-wallet-cell__code {
    font-size: 0.95rem !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] select,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] input,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] select {
  background: var(--dx-panel-2, #1c1f26) !important;
  border: 1px solid var(--dx-line, #3a4047) !important;
  color: var(--dx-text, #f5f5f7) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] input:focus,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] select:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] input:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] select:focus {
  border-color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] .dx-btn--primary,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] .dx-btn--primary {
  background: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  border: 1px solid var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  color: #050505 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] .dx-btn--primary:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-filters'] .dx-btn--primary:hover {
  background: color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 88%, #fff) !important;
}

/* Account statement (search/tree selection) — same DNA as erp-ledger */
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-statement'] {
  background: var(--dx-panel, #111314) !important;
  border-color: var(--dx-line, #3a4047) !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-statement-table'] {
  background: var(--dx-panel, #111314) !important;
  color: var(--dx-text, #f5f5f7) !important;
  border-collapse: collapse;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] thead,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] thead th,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-statement-table'] thead th {
  background: var(--dx-panel, #111314) !important;
  color: var(--dx-muted, #8b939e) !important;
  border-color: var(--dx-line, #3a4047) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] tbody tr,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-statement-table'] tbody tr {
  background: transparent !important;
  border-color: rgba(139, 147, 158, 0.22) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] tbody td,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-ui='acc-statement-table'] tbody td {
  background: transparent !important;
  color: var(--dx-text, #f5f5f7) !important;
  border-color: rgba(139, 147, 158, 0.22) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='text-red-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='text-violet-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='text-primary-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='text-amber-'] {
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='bg-primary-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='bg-slate-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='bg-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-statement-table'] [class*='bg-white'] {
  background: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='currency-wallet'] .dx-btn--primary {
  background: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  border-color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  color: #050505 !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='acc-filters'] label {
  color: var(--dx-muted, #8b939e) !important;
  margin-bottom: 0.3rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-journal__head span {
  border-radius: var(--dx-radius-sm, 8px) !important;
  border-color: var(--dx-line, #3a4047) !important;
  background: var(--dx-panel, #111314) !important;
  color: var(--dx-muted, #8b939e) !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-accounting [data-dx-ui='currency-wallet'] button {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

/* -------------------------------------------------------------------------- */
/* Large-screen ledger: fill width, readable type, Actions always visible.    */
/* Narrow screens scroll; Actions stay sticky. Colgroup still owns tracks.    */
/* -------------------------------------------------------------------------- */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-erp-ledger-scroll,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-erp-ledger-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='check'] { width: 3% !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='entry'] { width: 9% !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='date'] { width: 7% !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='order'] { width: 6% !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='invoice'] { width: 6% !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='status'] { width: 7% !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='actions'] { width: 10% !important; }

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  position: sticky;
  inset-inline-end: 0;
  z-index: 4;
  min-width: 7.75rem !important;
  width: auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
  box-shadow: -8px 0 12px -10px rgba(0, 0, 0, 0.55);
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'] {
  z-index: 5;
  background: var(--dx-panel, #111314) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td[data-dx-col='actions'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td[data-dx-col='actions'] {
  background: var(--dx-panel-2, #1c1f26) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='accounts'] {
  white-space: normal !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  white-space: normal !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 1279px) {
  html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
    min-width: 1180px !important;
    max-width: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Accounting drawers F2–F6 — same DNA as workspace (portaled overlay).       */
/* Silver structure · Lime primary · readable type · no blue/emerald/navy.    */
/* -------------------------------------------------------------------------- */
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay {
  --dx-read: clamp(0.8125rem, 0.22vw + 0.76rem, 0.9375rem);
  --dx-read-loud: clamp(0.875rem, 0.28vw + 0.8rem, 1rem);
  --dx-read-quiet: clamp(0.75rem, 0.18vw + 0.7rem, 0.8125rem);
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer-shell {
  background: var(--dx-panel, #111314) !important;
  border: 1px solid var(--dx-line, #3a4047) !important;
  border-radius: var(--dx-radius-md, 12px) !important;
  box-shadow: none !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__head,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__footer {
  border-color: var(--dx-line, #3a4047) !important;
  background: var(--dx-panel, #111314) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__title {
  color: var(--dx-text, #f5f5f7) !important;
  font-size: var(--dx-read-loud, 0.9375rem) !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__subtitle,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay label,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__close {
  color: var(--dx-muted, #8b939e) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay label {
  font-size: var(--dx-read-quiet, 0.75rem) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__body,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay form {
  background: transparent !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay input,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay select,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay textarea {
  background: var(--dx-panel-2, #1c1f26) !important;
  border: 1px solid var(--dx-line, #3a4047) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  color: var(--dx-text, #f5f5f7) !important;
  box-shadow: none !important;
  font-size: var(--dx-read, 0.875rem) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay input:focus,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay select:focus,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay textarea:focus {
  border-color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-drawer__close {
  border: 1px solid var(--dx-line, #3a4047) !important;
  background: transparent !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-btn--primary,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay button.bg-blue-600,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay button.bg-blue-500,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay button.bg-emerald-500,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay button.bg-emerald-600,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay button.dx-acc-primary {
  background: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  border: 1px solid var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  color: #050505 !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-btn--secondary,
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay .dx-btn--utility {
  background: transparent !important;
  border: 1px solid var(--dx-line, #3a4047) !important;
  color: var(--dx-text, #f5f5f7) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='bg-slate-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='bg-gray-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='from-white'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='to-[#f5f8f0]'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='from-[#f8faf6]'] {
  background: var(--dx-panel-2, #1c1f26) !important;
  border-color: var(--dx-line, #3a4047) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='text-green-'] {
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='border-slate-'],
html[data-app-theme='dentixa-premium'] .dx-acc-drawer-overlay [class*='border-gray-'] {
  border-color: var(--dx-line, #3a4047) !important;
}

/* -------------------------------------------------------------------------- */
/* Ledger light/dark honesty + accounts fit-frame.                            */
/* Wave D had hardcoded #111314 on the table — that leaked into light mode.   */
/* Surfaces follow tokens. Accounts sit in one quiet silver frame.            */
/* -------------------------------------------------------------------------- */
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'],
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  background: var(--dx-panel) !important;
  border-color: var(--dx-line) !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-erp-ledger-scroll,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-erp-ledger-scroll {
  background: var(--dx-panel) !important;
  border-color: var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] thead th {
  background: var(--dx-panel) !important;
  color: var(--dx-muted) !important;
  border-bottom-color: var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] tbody td,
html.dark[data-app-theme='dentixa-premium'] .dx-premium-accounting table[data-dx-ui='erp-ledger'] tbody td {
  background: transparent !important;
  color: var(--dx-text) !important;
  border-bottom-color: var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] thead th[data-dx-th='actions'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='actions'] {
  background: var(--dx-panel) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tr[data-dx-ui='ledger-row']:hover td[data-dx-col='actions'] {
  background: var(--dx-panel-2) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'] .dx-account-chip__name,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-ledger-desc__title,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='entry'] .dx-ledger-entry {
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace tbody td[data-dx-col='accounts'] {
  vertical-align: middle !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip-stack {
  display: inline-flex !important;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  gap: 0.15rem !important;
  padding: 0.28rem 0.42rem !important;
  border: 1px solid var(--dx-line-subtle, var(--dx-line)) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  background: color-mix(in srgb, var(--dx-panel-2) 48%, transparent) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__name {
  min-width: 0;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip__code,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace .dx-account-chip-more {
  color: var(--dx-muted) !important;
}

/* -------------------------------------------------------------------------- */
/* Accounting command head — centered titles, quiet side meta + dual calendar */
/* -------------------------------------------------------------------------- */
html[data-app-theme='dentixa-premium'] .dx-acc-command-head {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 2.4fr) minmax(8.5rem, 1fr);
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  width: 100%;
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--dx-line);
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-head,
html[data-app-theme='dentixa-premium'] .dx-premium-accounting .dx-acc-command-head .dx-page-head {
  margin: 0 !important;
  padding: 0 !important;
  background-image: none !important;
  border: 0 !important;
  text-align: center;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-head__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-head__copy > div:first-child {
  justify-content: center;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-title,
html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-desc,
html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-eyebrow {
  text-align: center;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-desc {
  display: block !important;
  max-width: 36rem;
  margin-inline: auto;
  color: var(--dx-muted) !important;
  font-size: var(--dx-read-quiet, 0.75rem) !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head__dates,
html[data-app-theme='dentixa-premium'] .dx-acc-command-head__meta {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head__dates {
  justify-self: start;
  align-items: flex-start;
}

html[data-app-theme='dentixa-premium'] .dx-acc-command-head__meta {
  justify-self: end;
  align-items: flex-end;
  text-align: end;
}

html[data-app-theme='dentixa-premium'] .dx-acc-date,
html[data-app-theme='dentixa-premium'] .dx-acc-stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

html[data-app-theme='dentixa-premium'] .dx-acc-date__mark,
html[data-app-theme='dentixa-premium'] .dx-acc-stat__label {
  flex-shrink: 0;
  color: var(--dx-muted) !important;
  font-size: 0.65rem !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-date__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border: 1px solid var(--dx-line-subtle, var(--dx-line));
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  line-height: 1;
}

html[data-app-theme='dentixa-premium'] .dx-acc-date__value,
html[data-app-theme='dentixa-premium'] .dx-acc-stat__value {
  min-width: 0;
  color: var(--dx-text) !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-acc-stat__value {
  font-weight: 700;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-acc-command-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-head {
    order: -1;
  }

  html[data-app-theme='dentixa-premium'] .dx-acc-command-head__dates,
  html[data-app-theme='dentixa-premium'] .dx-acc-command-head__meta {
    justify-self: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.85rem;
    text-align: center;
  }

  html[data-app-theme='dentixa-premium'] .dx-acc-command-head .dx-page-desc {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Wave E — Orders + Create Order. Accounting visual language, ops density.   */
/* Do not copy Accounting layout. Kill glow / pastel / card-in-card.          */
/* -------------------------------------------------------------------------- */
html[data-app-theme='dentixa-premium'] .dx-scope-orders.dx-premium-orders,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] {
  color: var(--dx-text);
  background: var(--dx-bg);
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-console-insights,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head {
  margin-bottom: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  border-bottom: 1px solid var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-page-head:hover,
html[data-app-theme='dentixa-premium'] [data-dx-console='orders'] .dx-data-grid-shell:hover,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-data-grid-shell:hover {
  border-color: var(--dx-line) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-kpi {
  margin-bottom: 0.55rem !important;
  border: 1px solid var(--dx-line) !important;
  border-radius: 8px !important;
  background: var(--dx-panel) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-filters label {
  color: var(--dx-muted) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-premium-orders,
html[data-app-theme='dentixa-premium'] .dx-scope-orders {
  --dx-read: clamp(0.75rem, 0.18vw + 0.7rem, 0.875rem);
  --dx-read-loud: clamp(0.8125rem, 0.22vw + 0.74rem, 0.9375rem);
  --dx-read-quiet: clamp(0.6875rem, 0.14vw + 0.66rem, 0.75rem);
  --dx-read-head: clamp(0.6875rem, 0.16vw + 0.66rem, 0.8125rem);
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] {
  display: table !important;
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--dx-text) !important;
  font-size: var(--dx-read, 0.8125rem) !important;
  line-height: 1.35 !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] thead th {
  background: var(--dx-panel) !important;
  color: var(--dx-text) !important;
  border-bottom: 1px solid var(--dx-line) !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: var(--dx-read, 0.8125rem) !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] tbody td {
  background: transparent !important;
  color: var(--dx-text) !important;
  border-bottom: 1px solid var(--dx-line) !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  overflow: hidden !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] tbody tr.dx-orders-row:hover td {
  background: var(--dx-panel-2) !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] tbody tr:hover {
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-orders-ledger-scroll {
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm, 8px);
  background: var(--dx-panel);
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100%;
}

html[data-app-theme='dentixa-premium'] .dx-orders-cell-meta {
  display: none;
  color: var(--dx-muted) !important;
  font-size: var(--dx-read-quiet, 0.7rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] .dx-orders-odontogram,
html[data-app-theme='dentixa-premium'] .dx-orders-odontogram {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  --dx-odo-idle-fill: #f4f5f6;
  --dx-odo-idle-stroke: #8b939e;
  --dx-odo-idle-text: #3a4047;
  --dx-odo-selected-fill: var(--tok-brand-lime-on-dark);
  --dx-odo-selected-stroke: #3a4047;
  --dx-odo-selected-text: #111314;
  --dx-odo-grid: #c5c9ce;
  --dx-odo-link: #3a4047;
  --dx-odo-dot: #8b939e;
}

html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] .dx-orders-odontogram,
html.dark[data-app-theme='dentixa-premium'] .dx-orders-odontogram {
  --dx-odo-idle-fill: #111314;
  --dx-odo-idle-stroke: #3a4047;
  --dx-odo-idle-text: #8b939e;
  --dx-odo-selected-fill: #1c1f26;
  --dx-odo-selected-stroke: var(--tok-brand-lime-on-dark);
  --dx-odo-selected-text: var(--tok-brand-lime-on-dark);
  --dx-odo-grid: #3a4047;
  --dx-odo-link: #8b939e;
  --dx-odo-dot: #3a4047;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='actions'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] th[data-dx-col='actions'] {
  overflow: visible !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] [data-dx-ui='row-actions'],
html[data-app-theme='dentixa-premium'] .dx-orders-action-btn {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-size: clamp(0.6rem, 0.35vw + 0.5rem, 0.75rem) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='doctorName'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='patientName'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='status'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='logisticStatus'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='estimatedCompletionDate'] {
  font-size: clamp(0.68rem, 0.22vw + 0.62rem, 0.8125rem) !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='doctorName'] > div,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='patientName'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='status'] .dx-orders-status__label,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='logisticStatus'] .dx-orders-status__label,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] td[data-dx-col='estimatedCompletionDate'] > div {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

html[data-app-theme='dentixa-premium'] .dx-orders-filters label,
html[data-app-theme='dentixa-premium'] .dx-orders-filters button span {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-size: clamp(0.68rem, 0.2vw + 0.62rem, 0.75rem) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] {
  background: var(--dx-panel, #1c1f26) !important;
  border: 1px solid var(--dx-line, #3a4047) !important;
  border-radius: var(--dx-radius-md, 12px) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: var(--dx-text, #f5f5f7) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-btn,
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-row {
  border: 1px solid var(--dx-line, #3a4047);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  color: var(--dx-text, #f5f5f7);
  letter-spacing: 0;
  transition: border-color 160ms ease, background-color 160ms ease;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-btn {
  display: flex;
  min-height: 3.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  font-size: clamp(0.68rem, 0.18vw + 0.62rem, 0.78rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  text-align: start;
  font-size: 0.8125rem;
  font-weight: 600;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-btn:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-row:hover {
  background: var(--dx-panel-2, #181b1c);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-btn .dx-orders-menu-ico,
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-row .dx-orders-menu-ico {
  color: var(--dx-muted, #8b939e);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] .dx-orders-menu-row span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='view'] {
  border-color: var(--tok-brand-lime-on-dark);
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='view'] .dx-orders-menu-ico {
  color: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='edit'] {
  border-color: #8b939e;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='printInvoice'] {
  border-color: #7f9aab;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='printInvoice'] .dx-orders-menu-ico {
  color: #7f9aab;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='printOrder'] {
  border-color: #a3a89a;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='printOrder'] .dx-orders-menu-ico {
  color: #a3a89a;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='downloadFiles'] {
  border-color: #8b939e;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='viewLog'] {
  border-color: #8a9cb8;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='viewLog'] .dx-orders-menu-ico {
  color: #8a9cb8;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='start_preparation'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='sent_to_proof'] {
  border-color: #9aa3ad;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='received_from_proof'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='final_delivery'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='resume'] {
  border-color: var(--tok-brand-lime-on-dark);
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='received_from_proof'] .dx-orders-menu-ico,
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='final_delivery'] .dx-orders-menu-ico,
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='resume'] .dx-orders-menu-ico {
  color: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='paused_for_note'] {
  border-color: #c4b49a;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='paused_for_note'] .dx-orders-menu-ico {
  color: #c4b49a;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='cancelled'] {
  border-color: #d4a8a8;
  color: #d7b4b4;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='cancelled'] .dx-orders-menu-ico {
  color: #d4a8a8;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='delete'] {
  border-color: #c48b8b;
  color: #d7b4b4;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='orders-action-menu'] [data-dx-action='delete'] .dx-orders-menu-ico {
  color: #c48b8b;
}

@media (max-width: 1399px) {
  html[data-app-theme='dentixa-premium'] .dx-orders-cell-meta {
    display: block;
  }

  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='createdAt'],
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] [data-dx-col='createdAt'],
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='centerName'],
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] [data-dx-col='centerName'],
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='workType'],
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] [data-dx-col='workType'] {
    display: none !important;
  }

  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='orderNumber'] { width: 10% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='doctorName'] { width: 11% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='patientName'] { width: 10% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='totalAmount'] { width: 9% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='estimatedCompletionDate'] { width: 13% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='teethDiagram'] { width: 14% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='status'] { width: 10% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='logisticStatus'] { width: 11% !important; }
  html[data-app-theme='dentixa-premium'] table[data-dx-ui='orders-ledger'] col[data-dx-coltrack='actions'] { width: 12% !important; }
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] {
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-md, 12px) !important;
  box-shadow: none !important;
  color: var(--dx-text) !important;
  backdrop-filter: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] {
  background: var(--dx-panel) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] form > div,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .bg-gradient-to-br,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='from-emerald'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='from-green'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='from-blue'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='from-indigo'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='bg-purple'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='bg-emerald'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='bg-indigo'] {
  background: var(--dx-panel-2) !important;
  background-image: none !important;
  border-color: var(--dx-line) !important;
  box-shadow: none !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] form > div:hover,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .bg-gradient-to-br:hover {
  border-color: var(--dx-muted) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='text-emerald'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='text-green'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='text-blue'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='text-indigo'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='text-purple'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='text-cyan'] {
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] h3 {
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] h3:where(:not(html.dark:not(#_):not(#_) .ov2m :is([data-ov2-section="teeth"] h3, [data-ov2-section="teeth"] h3 *, [data-testid="smile-studio-entry"] h3))) {
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .dx-btn--primary {
  background: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  border: 1px solid var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  color: #050505 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .dx-btn--secondary {
  background: transparent !important;
  border: 1px solid var(--dx-line) !important;
  color: var(--dx-text) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .dx-btn--cancel-lime,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .dx-btn--secondary.dx-btn--cancel-lime {
  border: 1px solid var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  background: transparent !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] .dx-btn--cancel-lime:hover {
  border-color: var(--dx-lime-bright, #e8ff9a) !important;
  background: color-mix(in srgb, var(--dx-lime, var(--tok-brand-lime-on-dark)) 10%, transparent) !important;
}

/* Wave E correction — open workspace, quiet status, create-order chrome */
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-orders),
html[data-app-theme='dentixa-premium'] .dx-premium-surface:has(.dx-premium-orders),
html[data-app-theme='dentixa-premium'] .dx-scope-orders.dx-premium-surface {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-orders)::before,
html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-orders)::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-cinematic-surface:has(.dx-premium-orders) {
  padding: 0.35rem 0 1rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-head,
html[data-app-theme='dentixa-premium'] .dx-premium-orders .dx-page-head {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dx-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
  margin-bottom: 0.65rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-filters {
  background: transparent !important;
  border: 0 !important;
  border-block: 1px solid var(--dx-line) !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
  margin-bottom: 0.55rem;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-filters input,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-filters select {
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-filters input:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-filters select:focus {
  border-color: var(--dx-lime, var(--tok-brand-lime-on-dark)) !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--dx-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: var(--dx-muted);
}

html[data-app-theme='dentixa-premium'] .dx-orders-status__label {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='delivered'] .dx-orders-status__dot,
html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='ready'] .dx-orders-status__dot {
  background: #34c759;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='paused_for_note'] .dx-orders-status__dot,
html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='pending'] .dx-orders-status__dot,
html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='preparing'] .dx-orders-status__dot {
  background: #ff9f0a;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='cancelled'] .dx-orders-status__dot {
  background: #ff453a;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='confirmed'] .dx-orders-status__dot,
html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='out_for_delivery'] .dx-orders-status__dot,
html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='quality_check'] .dx-orders-status__dot,
html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='in_transit'] .dx-orders-status__dot {
  background: #64d2ff;
}

html[data-app-theme='dentixa-premium'] .dx-orders-status[data-dx-status='in_production'] .dx-orders-status__dot {
  background: var(--dx-muted);
}

/*
 * Delivery alert traveling beam is an SVG overlay (outside table geometry).
 * Keep alert row surfaces calm — no row/cell outline/glow for the beam.
 */
html[data-app-theme='dentixa-premium'] .dx-scope-orders tr[data-delivery-phase='warning'],
html[data-app-theme='dentixa-premium'] .dx-scope-orders tr[data-delivery-phase='overdue'] {
  animation: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders tr[data-delivery-phase='warning'] td,
html[data-app-theme='dentixa-premium'] .dx-scope-orders tr[data-delivery-phase='overdue'] td {
  animation: none !important;
  background: transparent !important;
  outline: none !important;
  border-color: var(--dx-line) !important;
}

/* Allow SVG overlay spark/flash motion inside premium (not blocked by motion allowlists). */
html[data-app-theme='dentixa-premium'] .da-beam-flash {
  animation-name: da-strip-flash;
  animation-duration: var(--da-beam-duration, var(--beam-speed-warning, 2s));
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: var(--da-beam-delay, 0ms);
}

html[data-app-theme='dentixa-premium'] .da-beam-spark {
  animation-name: da-svg-orbit, da-spark-flare;
  animation-duration:
    var(--da-beam-duration, var(--beam-speed-warning, 2s)),
    var(--da-beam-duration, var(--beam-speed-warning, 2s));
  animation-timing-function: linear, ease-out;
  animation-iteration-count: infinite, infinite;
  animation-delay:
    calc(
      var(--da-beam-delay, 0ms) + var(--da-spark-phase, 0) *
        var(--da-beam-duration, var(--beam-speed-warning, 2s))
    ),
    calc(var(--da-beam-delay, 0ms) + var(--da-spark-i, 0) * var(--beam-spark-stagger, 80ms));
}

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .da-beam-flash,
  html[data-app-theme='dentixa-premium'] .da-beam-spark {
    animation: none !important;
  }
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders [data-dx-ui='card'],
html[data-app-theme='dentixa-premium'] .dx-orders-workspace [data-dx-ui='card'] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'].dx-create-order-panel {
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-md, 12px) !important;
  box-shadow: none !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'].dx-create-order-panel {
  background: var(--dx-bg) !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel > div,
html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] > div {
  background: var(--dx-bg) !important;
  background-image: none !important;
  border-color: var(--dx-line) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-panel > div:last-child {
  border-top: 1px solid var(--dx-line) !important;
  background: var(--dx-panel) !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-section {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-create-order-section > .absolute {
  display: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='create-order'] [class*='bg-gradient']:not(.dx-btn):not([data-dx-ui='button']),
html[data-app-theme='dentixa-premium'] .dx-create-order-panel [class*='bg-gradient']:not(.dx-btn):not([data-dx-ui='button']) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: var(--dx-line) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-btn--primary,
html[data-app-theme='dentixa-premium'] .dx-premium-orders .dx-btn--primary,
html[data-app-theme='dentixa-premium'] .dx-create-order-panel .dx-btn--primary {
  background: var(--tok-brand-lime-on-dark) !important;
  border: 1px solid var(--tok-brand-lime-on-dark) !important;
  color: #0a0d14 !important;
  box-shadow: none !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
}

/* Wave E — Order Details workspace + 3D viewing overlay */
html[data-app-theme='dentixa-premium'] [data-dx-ui='order-details'].dx-order-details-panel {
  width: min(96vw, 1440px) !important;
  max-width: min(96vw, 1440px) !important;
  height: calc(100dvh - 4.75rem) !important;
  max-height: calc(100dvh - 4.75rem) !important;
  margin: 0.35rem auto !important;
  background: var(--dx-bg) !important;
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-md, 12px) !important;
  box-shadow: none !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='order-details'] > div:first-child {
  background: var(--dx-bg) !important;
  border-bottom: 1px solid var(--dx-line) !important;
  padding: 0.5rem 0.85rem !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='order-details'] h3 {
  font-size: 1rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='order-details'] > div:nth-child(2) {
  background: var(--dx-bg) !important;
  padding: 0.45rem 0.75rem 0.7rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-head {
  border-bottom: 1px solid var(--dx-line);
  padding-bottom: 0.45rem;
  margin-bottom: 0.15rem;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-head__meta {
  min-width: 0;
  flex: 1 1 8rem;
  color: var(--dx-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-head__note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--dx-muted);
  letter-spacing: 0;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-head .order-barcode-surface,
html[data-app-theme='dentixa-premium'] .dx-order-details-head__barcode {
  min-width: 0 !important;
  margin-inline-start: auto;
  padding: 0.15rem 0.3rem !important;
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-head .order-barcode-surface canvas {
  max-height: 34px;
  width: auto;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  color: var(--dx-text);
  transition: border-color 0.15s ease;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-nav__btn:hover:not(:disabled) {
  border-color: #8b939e;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-nav__search {
  height: 32px;
  width: 11rem;
  max-width: 42vw;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  color: var(--dx-text);
  font-size: 0.75rem;
  padding-inline: 0.55rem 1.7rem;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-nav__search:focus {
  border-color: var(--tok-brand-lime-on-dark);
  outline: none;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-nav__search-go {
  height: 32px;
  padding: 0 0.7rem;
  border: 1px solid var(--tok-brand-lime-on-dark);
  border-radius: var(--dx-radius-sm, 8px);
  background: var(--tok-brand-lime-on-dark);
  color: #050505;
  font-size: 0.75rem;
  font-weight: 650;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-workspace [data-dx-ui='card'],
html[data-app-theme='dentixa-premium'] .dx-scope-order-detail [data-dx-ui='card'] {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dx-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-workspace .order-barcode-surface {
  min-width: 0 !important;
  padding: 0.3rem 0.4rem !important;
  border: 1px solid var(--dx-line) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-workspace input:not([type='checkbox']):not([type='radio']),
html[data-app-theme='dentixa-premium'] .dx-order-details-workspace select,
html[data-app-theme='dentixa-premium'] .dx-order-details-workspace textarea {
  border-color: var(--dx-line) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
  background: var(--dx-panel) !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-details-workspace input:focus,
html[data-app-theme='dentixa-premium'] .dx-order-details-workspace select:focus,
html[data-app-theme='dentixa-premium'] .dx-order-details-workspace textarea:focus {
  border-color: var(--tok-brand-lime-on-dark) !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-files__media {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

html[data-app-theme='dentixa-premium'] .dx-order-files__media > .dx-order-ref-grid {
  flex: 1 1 14rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-mini {
  flex: 0 0 14.9rem;
  width: 14.9rem;
  height: 7rem;
  min-height: 7rem;
  overflow: hidden;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm, 8px);
  background: #111314;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-mini > div,
html[data-app-theme='dentixa-premium'] .dx-order-3d-mini canvas {
  height: 100% !important;
  min-height: 7rem !important;
}

html[data-app-theme='dentixa-premium'] .dx-order-related {
  border-top: 1px solid var(--dx-line);
}

html[data-app-theme='dentixa-premium'] .dx-order-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

html[data-app-theme='dentixa-premium'] .dx-order-related__link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm, 8px);
  color: var(--dx-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
}

html[data-app-theme='dentixa-premium'] .dx-order-related__link:hover {
  border-color: #8b939e;
}

html[data-app-theme='dentixa-premium'] .dx-order-related__link:focus-visible {
  border-color: var(--tok-brand-lime-on-dark);
  outline: none;
}

html[data-app-theme='dentixa-premium'] .dx-order-file-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  width: 100%;
  padding: 0.4rem 0.55rem;
  text-align: start;
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-order-file-row:hover {
  border-color: #8b939e;
}

html[data-app-theme='dentixa-premium'] .dx-order-file-row.is-active {
  border-color: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] .dx-order-file-row__kind {
  flex: 0 0 auto;
  color: var(--dx-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

html[data-app-theme='dentixa-premium'] .dx-order-file-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 650;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  background: #050505;
  color: #f2f4f6;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-overlay__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #3a4047;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-overlay__title {
  margin: 0;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-overlay__close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 0.7rem;
  border: 1px solid #3a4047;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-overlay__close:hover {
  border-color: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] .dx-order-3d-overlay__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

@media (max-width: 767px) {
  html[data-app-theme='dentixa-premium'] .dx-premium-orders [data-dx-orders-section='overview'] {
    padding-top: 0.35rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-premium-orders .dx-orders-kpi {
    margin-bottom: 0.4rem !important;
  }

  html[data-app-theme='dentixa-premium'] .dx-scope-orders .dx-orders-mobile-card {
    border-radius: var(--dx-radius-sm, 8px) !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   Wave F � Inventory / Materials / Purchasing / Suppliers (Premium only)
   Silver = structure � Lime = signal � ERP density � no rainbow washes
   ========================================================================== */

html[data-app-theme='dentixa-premium'] .dx-inventory-kpi--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  html[data-app-theme='dentixa-premium'] .dx-inventory-kpi--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html[data-app-theme='dentixa-premium'] .dx-inventory-kpi,
  html[data-app-theme='dentixa-premium'] .dx-inventory-kpi--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hub nav � silver strip, quiet tabs */
html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav {
  border: 1px solid var(--dx-silver-border);
  background: var(--dx-panel);
  border-radius: var(--dx-radius-sm, 8px);
  padding: 0.55rem 0.65rem 0.65rem;
}

html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav__title {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dx-muted);
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--dx-silver-quiet);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  color: var(--dx-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav__tab:hover {
  border-color: rgba(139, 147, 158, 0.95);
  color: var(--dx-text);
  background: var(--dx-panel-2);
}

html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav__tab[data-active='true'] {
  border-color: var(--tok-brand-lime-on-dark);
  color: var(--dx-text);
  box-shadow: none;
  outline: none;
}

html[data-app-theme='dentixa-premium'] .dx-inv-hub-nav__icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.85;
}

/* Floating inventory panels (portaled outside page scope) */
html[data-app-theme='dentixa-premium'] [data-dx-ui='inventory-panel'],
html[data-app-theme='dentixa-premium'] .dx-inventory-panel {
  border: 1px solid var(--dx-silver-border) !important;
  border-width: 1px !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  background: var(--dx-panel) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='inventory-panel'] > div:first-child {
  background: var(--dx-panel) !important;
  border-bottom-color: var(--dx-silver-quiet) !important;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='inventory-panel'] h3 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-f-panel {
  padding: 0.75rem 0.85rem 1rem;
}

/* Sections / filters */
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .dx-inv-section,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .dx-inv-section {
  border: 1px solid var(--dx-silver-border);
  border-radius: var(--dx-radius-sm, 8px);
  background: var(--dx-panel);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory .dx-inv-filter-row,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .dx-inv-filter-row {
  border-color: var(--dx-silver-border);
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory .dx-inv-row--selected,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .dx-inv-row--selected {
  background: transparent !important;
  outline: 1px solid var(--tok-brand-lime-on-dark);
  outline-offset: -1px;
}

/* Status DNA � silver label + signal dots only */
html[data-app-theme='dentixa-premium'] .dx-inv-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dx-text);
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-inv-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--dx-silver-border);
  flex-shrink: 0;
}

html[data-app-theme='dentixa-premium'] .dx-inv-status__label {
  color: inherit;
}

html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='active'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='good'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='in'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='received'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='posted'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='paid'] .dx-inv-status__dot {
  background: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='low'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='pending'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='ordered'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='partial'] .dx-inv-status__dot {
  background: #8b939e;
}

html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='critical'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='out'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='inactive'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='cancelled'] .dx-inv-status__dot,
html[data-app-theme='dentixa-premium'] .dx-inv-status[data-dx-status='out'] .dx-inv-status__dot {
  background: #3a4047;
}

/* Rainbow neutralize under inventory scope + portaled panels */
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-orange-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='bg-red-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-orange-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='bg-red-'] {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-orange-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='border-red-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-rose-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-teal-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-orange-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='border-red-'] {
  border-color: var(--dx-silver-border) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-orange-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-scope-inventory [class*='text-red-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-rose-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-teal-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-orange-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel [class*='text-red-'] {
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .rounded-2xl,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .rounded-2xl {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .shadow-md,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .shadow-lg,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory .shadow-2xl,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .shadow,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .shadow-md,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .shadow-lg,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel .shadow-2xl {
  box-shadow: none !important;
}

/* Wave F D.2 — kill olive/lime thead wash; Graphite + Silver only */
html[data-app-theme='dentixa-premium'] .dx-scope-inventory table thead,
html[data-app-theme='dentixa-premium'] .dx-scope-inventory table thead tr,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel table thead,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel table thead tr,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead tr {
  background: var(--dx-panel) !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-inventory table thead th,
html[data-app-theme='dentixa-premium'] .dx-wave-f-panel table thead th,
html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  background-color: var(--dx-panel) !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, var(--dx-silver-quiet)) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='inventory-ledger'] tbody td {
  border-bottom: 1px solid var(--dx-silver-quiet);
}

/* ==========================================================================
   Wave G � Production / Delivery / Appointments / CRM (Patients+Doctors)
   Silver = structure � Graphite = calm � Lime = signal � page-native density
   NOT an Accounting layout clone. Premium only.
   ========================================================================== */

html[data-app-theme='dentixa-premium'] .dx-ops-kpi--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
html[data-app-theme='dentixa-premium'] .dx-ops-kpi--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
html[data-app-theme='dentixa-premium'] .dx-ops-kpi[style*='--dx-ops-cols'] {
  grid-template-columns: repeat(var(--dx-ops-cols, 4), minmax(0, 1fr));
}

/* Ops status DNA (shared Wave G) */
html[data-app-theme='dentixa-premium'] .dx-ops-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dx-text);
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-ops-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--dx-silver-border, #3a4047);
  flex-shrink: 0;
}
html[data-app-theme='dentixa-premium'] .dx-ops-status__label { color: inherit; }
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='active'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='ready'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='delivered'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='completed'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='good'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='in_progress'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='confirmed'] .dx-ops-status__dot {
  background: var(--tok-brand-lime-on-dark);
}
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='pending'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='paused'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='low'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='scheduled'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='in_transit'] .dx-ops-status__dot {
  background: #8b939e;
}
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='critical'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='cancelled'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='inactive'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='overdue'] .dx-ops-status__dot,
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='high'] .dx-ops-status__dot {
  background: #3a4047;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] {
  table-layout: fixed;
  width: 100%;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody td {
  border-bottom: 1px solid var(--dx-silver-quiet, rgba(139,147,158,0.35));
}

/* Wave G ops-ledger interactive edge — Silver structure · Lime signal only */
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody tr {
  outline: 1px solid transparent;
  outline-offset: -1px;
  background-color: transparent;
  transition: background-color 120ms ease, outline-color 120ms ease;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody tr:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline-color: var(--dx-silver-border, #3a4047);
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody tr[data-dx-row-selected='true'] {
  background-color: transparent !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody tr[data-dx-row-selected='true']:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody tr[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] tbody tr[data-dx-edge='pulse'] {
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
  box-shadow: none !important;
}

/* Rainbow neutralize under Wave G scopes */
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-orange-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-red-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-orange-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-red-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='bg-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='from-blue'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='from-emerald'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='from-amber'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='from-red'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='from-purple'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='via-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='to-teal'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='to-cyan'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='to-pink'] {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='border-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='border-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-red-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='border-teal-'] {
  border-color: var(--dx-silver-border, #3a4047) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-production [class*='text-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-delivery [class*='text-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-appointments [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-red-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-crm [class*='text-cyan-'] {
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-production .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-appointments .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-crm .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-production .rounded-2xl,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery .rounded-2xl,
html[data-app-theme='dentixa-premium'] .dx-scope-crm .rounded-2xl {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-production .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-production .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-production .shadow-md,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-delivery .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-appointments .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-crm .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-crm .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-crm .shadow-md {
  box-shadow: none !important;
}

/* CRM thead — Graphite only (no lime wash) — mirrors Wave F D.2 */
html[data-app-theme='dentixa-premium'] .dx-scope-crm table thead:where(:not(html[data-app-theme="dentixa-premium"] table[data-dx-table="spec"] thead th, html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-crm table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-production table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-delivery table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html[data-app-theme='dentixa-premium'] .dx-scope-appointments table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] .dx-scope-crm.dx-premium-surface table thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"])), html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='ops-ledger'] thead th:where(:not(html.dark[data-app-theme="dentixa-premium"] .dx-scope-crm.dx-premium-surface table[data-dx-table="spec"] thead th[scope="col"], html[data-app-theme="dentixa-premium"] .dx-scope-crm table[data-dx-table="spec"] thead th[scope="col"])) {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   Wave H — Reports (P&L · Balance Sheet · Cash Flow · Sales/Doctor · ReportShell)
   Silver = structure · Graphite = calm · Lime = signal · analytical density
   NOT an Accounting layout clone. Premium only. Stop before Wave I.
   ========================================================================== */

html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] {
  table-layout: fixed;
  width: 100%;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody td {
  border-bottom: 1px solid var(--dx-silver-quiet, rgba(139,147,158,0.35));
  font-variant-numeric: tabular-nums;
}

/* report-ledger interactive edge — Silver structure · Lime signal only */
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr {
  outline: 1px solid transparent;
  outline-offset: -1px;
  background-color: transparent;
  transition: background-color 120ms ease, outline-color 120ms ease;
  cursor: pointer;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline-color: var(--dx-silver-border, #3a4047);
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr[data-dx-row-selected='true'] {
  background-color: transparent !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr[data-dx-row-selected='true']:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] tbody tr[data-dx-edge='pulse'] {
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
  box-shadow: none !important;
}

/* Rainbow neutralize under Wave H reports */
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-orange-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-red-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='bg-indigo-'] {
  background-color: transparent !important;
  background-image: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='border-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='border-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='border-teal-'] {
  border-color: var(--dx-silver-border, #3a4047) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-teal-'],
html[data-app-theme='dentixa-premium'] .dx-scope-reports [class*='text-green-'] {
  color: var(--dx-text) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-reports .rounded-2xl {
  border-radius: var(--dx-radius-sm, 8px) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-reports .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-reports .shadow-md {
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-reports table thead th,
html.dark[data-app-theme='dentixa-premium'] .dx-scope-reports.dx-premium-surface table thead th,
html.dark[data-app-theme='dentixa-premium'] table[data-dx-ui='report-ledger'] thead th {
  background-color: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

/* Balanced / unbalanced status under reports uses ops-status DNA (dot only) */
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='balanced'] .dx-ops-status__dot {
  background: var(--tok-brand-lime-on-dark);
}
html[data-app-theme='dentixa-premium'] .dx-ops-status[data-dx-status='unbalanced'] .dx-ops-status__dot {
  background: #8b939e;
}

/* ==========================================================================
   Wave J — Live Chat / Advisor / Floating Notifications
   Silver = structure · Graphite = calm · Lime = signal · floating chrome
   NOT Accounting layout clones. Premium only. Stop before Wave K.
   ========================================================================== */

html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-incoming-call'] {
  background: var(--dx-panel, #111314) !important;
  background-image: none !important;
  border: 1px solid var(--dx-silver-border, #3a4047) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--dx-text, #f5f5f7);
}

html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] header,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] header,
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] header {
  background: var(--dx-panel, #111314) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  box-shadow: none !important;
}

/* Kill glass / SaaS radius utilities inside floating Wave J surfaces */
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] .rounded-2xl,
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] .rounded-3xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] .rounded-2xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] .rounded-3xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] .rounded-2xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] .rounded-3xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-incoming-call'] .rounded-2xl {
  border-radius: var(--dx-radius-sm, 8px) !important;
}
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] .shadow-2xl,
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] .shadow-xl,
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] .shadow-lg,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] .shadow-2xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] .shadow-xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] .shadow-2xl,
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] .shadow-xl,
html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-label],
html[data-app-theme='dentixa-premium'] .unified-floating-hub .backdrop-blur-xl {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Rainbow / decorative washes — neutralize inside floating Wave J */
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='bg-violet-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='bg-sky-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='from-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='bg-violet-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='bg-sky-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='bg-primary-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] [class*='bg-primary-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] [class*='from-amber'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] [class*='to-orange'] {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='text-teal-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='text-violet-'],
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='text-sky-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] [class*='text-violet-'] {
  color: var(--dx-text, #f5f5f7) !important;
}

/* Message bubbles — Graphite/Silver hierarchy, not rainbow fills */
html[data-app-theme='dentixa-premium'] [data-dx-ui='advisor-bubble'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='chat-bubble'] {
  border: 1px solid var(--dx-silver-border, #3a4047) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  background: var(--dx-panel-2, #181b1c) !important;
  box-shadow: none !important;
  color: var(--dx-text) !important;
}
html[data-app-theme='dentixa-premium'] [data-dx-ui='advisor-bubble'][data-dx-role='user'],
html[data-app-theme='dentixa-premium'] [data-dx-ui='chat-bubble'][data-dx-role='self'] {
  background: var(--dx-elevated, #1c1f26) !important;
  border-color: var(--dx-silver-border, #3a4047) !important;
}

/* Day mode: never keep dark-graphite bubble fallbacks (unreadable ink on charcoal). */
html:not(.dark)[data-app-theme='dentixa-premium'] [data-dx-ui='advisor-bubble'],
html:not(.dark)[data-app-theme='dentixa-premium'] [data-dx-ui='chat-bubble'] {
  background: var(--dx-soft, #eef0f3) !important;
  border-color: var(--dx-silver-border, rgba(90, 98, 107, 0.45)) !important;
  color: var(--dx-text, #12141a) !important;
}
html:not(.dark)[data-app-theme='dentixa-premium'] [data-dx-ui='advisor-bubble'][data-dx-role='user'],
html:not(.dark)[data-app-theme='dentixa-premium'] [data-dx-ui='chat-bubble'][data-dx-role='self'] {
  background: var(--dx-elevated, #e8eaee) !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] textarea,
html:not(.dark)[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] input {
  color: var(--dx-text, #12141a) !important;
  background: #ffffff !important;
  border-color: var(--dx-silver-border, rgba(90, 98, 107, 0.45)) !important;
}

/* Status dots only (notifications / chat) */
html[data-app-theme='dentixa-premium'] .dx-float-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--dx-muted, #8b939e);
  background: transparent !important;
  border: 0 !important;
}
html[data-app-theme='dentixa-premium'] .dx-float-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: #8b939e;
}
html[data-app-theme='dentixa-premium'] .dx-float-status[data-dx-status='success'] .dx-float-status__dot { background: #34c759; }
html[data-app-theme='dentixa-premium'] .dx-float-status[data-dx-status='warning'] .dx-float-status__dot { background: #ff9f0a; }
html[data-app-theme='dentixa-premium'] .dx-float-status[data-dx-status='danger'] .dx-float-status__dot { background: #ff453a; }
html[data-app-theme='dentixa-premium'] .dx-float-status[data-dx-status='info'] .dx-float-status__dot { background: #64d2ff; }
html[data-app-theme='dentixa-premium'] .dx-float-status[data-dx-status='unread'] .dx-float-status__dot { background: var(--tok-brand-lime-on-dark); }

/* Hub hover labels — Graphite strip, not glass */
html[data-app-theme='dentixa-premium'] .unified-floating-hub [data-floating-hub-label],
html[data-app-theme='dentixa-premium'] .unified-floating-hub .group-hover\:opacity-100 {
  background: var(--dx-panel, #111314) !important;
  border: 1px solid var(--dx-silver-border, #3a4047) !important;
  color: var(--dx-text, #f5f5f7) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Primary CTA inside floating panels — Lime fill is OK as single CTA; no glow */
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] button.dx-float-cta-primary,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] button.dx-float-cta-primary,
html[data-app-theme='dentixa-premium'] [data-dx-ui='notification-floating'] button.dx-float-cta-primary {
  background: var(--tok-brand-lime-on-dark) !important;
  color: #0a0d14 !important;
  border: 1px solid var(--tok-brand-lime-on-dark) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

/* Forms focus inside floating Wave J */
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] input:focus,
html[data-app-theme='dentixa-premium'] [data-advisor-floating-panel='true'] textarea:focus,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] input:focus,
html[data-app-theme='dentixa-premium'] [data-dx-ui='floating-chat-panel'] textarea:focus {
  border-color: var(--tok-brand-lime-on-dark) !important;
  box-shadow: none !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: 0;
}

/* Notifications dropdown Premium — already partial; force Silver radius */
html[data-app-theme='dentixa-premium'] [data-dx-ui='notifications-dropdown'] {
  border-radius: var(--dx-radius-sm, 8px) !important;
  border: 1px solid var(--dx-silver-border, #3a4047) !important;
  background: var(--dx-panel, #111314) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Wave I — Settings / Users / Integrations / Audit / Control (admin density)
   Silver = structure · Graphite = calm · Lime = signal · preferences/forms
   NOT an Accounting layout clone. Premium only. Stop before Wave J.
   ========================================================================== */

html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] {
  table-layout: fixed;
  width: 100%;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] thead th {
  background: var(--dx-panel) !important;
  background-image: none !important;
  color: var(--dx-muted) !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody td {
  border-bottom: 1px solid var(--dx-silver-quiet, rgba(139,147,158,0.35));
  font-variant-numeric: tabular-nums;
}

html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr {
  outline: 1px solid transparent;
  outline-offset: -1px;
  background-color: transparent;
  transition: background-color 120ms ease, outline-color 120ms ease;
  cursor: pointer;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline-color: var(--dx-silver-border, #3a4047);
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr[data-dx-row-selected='true'] {
  background-color: transparent !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr[data-dx-row-selected='true']:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
}
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] table[data-dx-ui='admin-ledger'] tbody tr[data-dx-edge='pulse'] {
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
  box-shadow: none !important;
}

/* Settings preferences sections — silver separators, quiet radius */
html[data-app-theme='dentixa-premium'] .dx-scope-settings .dx-admin-section,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .dx-admin-section {
  border: 1px solid var(--dx-silver-border, #3a4047);
  border-radius: var(--dx-radius-sm, 8px);
  background: var(--dx-panel);
  box-shadow: none;
}

/* Rainbow neutralize under Wave I scopes — panels only, never kill CTA fills */
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-blue-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-green-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-emerald-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-amber-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-yellow-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-orange-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-red-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-purple-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-teal-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-cyan-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-rose-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='bg-indigo-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-blue-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-emerald-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-purple-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-amber-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-green-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-rose-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-indigo-']:not(button):not(a):not([role='button']),
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='bg-teal-']:not(button):not(a):not([role='button']) {
  background-color: transparent !important;
  background-image: none !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='border-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='border-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='border-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='border-purple-'] {
  border-color: var(--dx-silver-border, #3a4047) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='text-green-'],
html[data-app-theme='dentixa-premium'] .dx-scope-settings [class*='text-rose-'],
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin [class*='text-purple-'] {
  color: var(--dx-text) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-settings .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-settings .rounded-2xl,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .rounded-2xl {
  border-radius: var(--dx-radius-sm, 8px) !important;
}
html[data-app-theme='dentixa-premium'] .dx-scope-settings .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-settings .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-scope-settings .shadow-md,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .shadow,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin .shadow-sm {
  box-shadow: none !important;
}

/* Forms: Focus = 1px Lime (signal only) — no glow wash */
html[data-app-theme='dentixa-premium'] .dx-scope-settings input:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-settings select:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-settings textarea:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin input:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin select:focus,
html[data-app-theme='dentixa-premium'] .dx-scope-super-admin textarea:focus {
  border-color: var(--tok-brand-lime-on-dark) !important;
  box-shadow: none !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: 0;
}

/* ==========================================================================
   Wave K � Accounting Satellites (Invoices � Payments � Expenses � Cash � Ledger � Journal � TB)
   Same room as Accounting � Silver structure � Graphite calm � Lime signal only
   Scope: .dx-wave-k under Premium only. Do NOT restyle AccountingWorkspace master.
   ========================================================================== */

html[data-app-theme='dentixa-premium'] .dx-wave-k {
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .min-h-screen.bg-gradient-to-br,
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-gradient-to-br'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-gradient-to-r'] {
  background-image: none !important;
  background-color: transparent !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-wave-k .rounded-2xl {
  border-radius: var(--dx-radius-sm, 8px) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .shadow,
html[data-app-theme='dentixa-premium'] .dx-wave-k .shadow-sm,
html[data-app-theme='dentixa-premium'] .dx-wave-k .shadow-md,
html[data-app-theme='dentixa-premium'] .dx-wave-k .shadow-lg,
html[data-app-theme='dentixa-premium'] .dx-wave-k .shadow-2xl {
  box-shadow: none !important;
}

/* Rainbow / SaaS fills � Graphite calm */
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-amber-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-yellow-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-orange-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-red-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-teal-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-rose-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-primary-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='from-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='from-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='from-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='from-primary-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='via-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='via-green-'] {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-amber-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-red-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-rose-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='border-primary-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k .border-l-4,
html[data-app-theme='dentixa-premium'] .dx-wave-k .border-t-4,
html[data-app-theme='dentixa-premium'] .dx-wave-k .border-2 {
  border-color: var(--dx-silver-border, #3a4047) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-blue-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-green-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-emerald-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-amber-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-purple-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-rose-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-cyan-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-indigo-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-primary-'],
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='text-orange-'] {
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-white,
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-gray-50,
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-slate-50 {
  background-color: var(--dx-panel, #111314) !important;
}

html.dark[data-app-theme='dentixa-premium'] .dx-wave-k .bg-white,
html.dark[data-app-theme='dentixa-premium'] .dx-wave-k .dark\:bg-dark-800,
html.dark[data-app-theme='dentixa-premium'] .dx-wave-k .dark\:bg-dark-700,
html.dark[data-app-theme='dentixa-premium'] .dx-wave-k .dark\:bg-dark-900 {
  background-color: var(--dx-panel, #111314) !important;
}

/* Panels / filters � Silver 1px structure */
html[data-app-theme='dentixa-premium'] .dx-wave-k .rounded-xl.border,
html[data-app-theme='dentixa-premium'] .dx-wave-k .rounded-lg.border,
html[data-app-theme='dentixa-premium'] .dx-wave-k section.rounded-3xl,
html[data-app-theme='dentixa-premium'] .dx-wave-k section.rounded-2xl {
  border: 1px solid var(--dx-silver-border, #3a4047) !important;
  background: var(--dx-panel, #111314) !important;
}

/* finance-ledger � Accounting room table DNA */
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'],
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] {
  table-layout: fixed !important;
  width: 100% !important;
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  background: transparent !important;
  color: var(--dx-text) !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'] thead th,
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] thead th {
  background: #111314 !important;
  background-image: none !important;
  color: var(--dx-muted, #8b939e) !important;
  border-bottom: 1px solid var(--dx-silver-border, #3a4047) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'] tbody td,
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] tbody td {
  border-bottom: 1px solid rgba(139, 147, 158, 0.35);
  color: var(--dx-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'] tbody tr,
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] tbody tr {
  outline: 1px solid transparent;
  outline-offset: -1px;
  background-color: transparent;
  transition: background-color 120ms ease, outline-color 120ms ease;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'] tbody tr:hover,
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] tbody tr:hover {
  background-color: var(--dx-panel-2, #181b1c) !important;
  outline-color: var(--dx-silver-border, #3a4047);
}

html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'] tbody tr[data-dx-row-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] tbody tr[data-dx-row-selected='true'],
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'] tbody tr[data-dx-edge='event'],
html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] tbody tr[data-dx-edge='event'] {
  background-color: transparent !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: -1px;
}

/* Status badges � Graphite/Silver, not rainbow fills */
html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status,
html[data-app-theme='dentixa-premium'] .dx-wave-k [data-dx-ui='fin-status'] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--dx-silver-border, #3a4047);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dx-text);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--dx-silver-border, #3a4047);
  flex-shrink: 0;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status[data-dx-status='paid'] .dx-fin-status__dot,
html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status[data-dx-status='Posted'] .dx-fin-status__dot,
html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status[data-dx-status='completed'] .dx-fin-status__dot,
html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status[data-dx-status='active'] .dx-fin-status__dot {
  background: var(--tok-brand-lime-on-dark);
}

html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status[data-dx-status='overdue'] .dx-fin-status__dot,
html[data-app-theme='dentixa-premium'] .dx-wave-k .dx-fin-status[data-dx-status='cancelled'] .dx-fin-status__dot {
  background: #8b939e;
}

/* Currency chips � silver strip, not indigo pills */
html[data-app-theme='dentixa-premium'] .dx-wave-k [data-dx-ui='currency-chip'] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--dx-silver-border, #3a4047);
  border-radius: var(--dx-radius-sm, 8px);
  background: transparent;
  color: var(--dx-muted, #8b939e);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Primary CTA � single Lime fill OK */
html[data-app-theme='dentixa-premium'] .dx-wave-k [data-dx-primary='true'],
html[data-app-theme='dentixa-premium'] .dx-wave-k a[data-dx-primary='true'] {
  background: var(--tok-brand-lime-on-dark) !important;
  color: #050505 !important;
  border: 1px solid var(--tok-brand-lime-on-dark) !important;
  border-radius: var(--dx-radius-sm, 8px) !important;
  box-shadow: none !important;
}

html[data-app-theme='dentixa-premium'] .dx-wave-k button:not([data-dx-primary='true']).bg-primary-600,
html[data-app-theme='dentixa-premium'] .dx-wave-k a.bg-primary-600,
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-indigo-600,
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-blue-600,
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-green-600 {
  background: var(--dx-panel-2, #181b1c) !important;
  color: var(--dx-text) !important;
  border: 1px solid var(--dx-silver-border, #3a4047) !important;
  box-shadow: none !important;
}

/* Focus = Lime 1px signal */
html[data-app-theme='dentixa-premium'] .dx-wave-k input:focus,
html[data-app-theme='dentixa-premium'] .dx-wave-k select:focus,
html[data-app-theme='dentixa-premium'] .dx-wave-k textarea:focus {
  border-color: var(--tok-brand-lime-on-dark) !important;
  box-shadow: none !important;
  outline: 1px solid var(--tok-brand-lime-on-dark) !important;
  outline-offset: 0;
}

/* Progress bars � silver track, no emerald fill */
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-emerald-200,
html[data-app-theme='dentixa-premium'] .dx-wave-k .bg-emerald-600,
html[data-app-theme='dentixa-premium'] .dx-wave-k [class*='bg-emerald-'][class*='rounded-full'] {
  background-color: var(--dx-silver-border, #3a4047) !important;
}

/* Mobile: keep readable � horizontal scroll on ledgers */
@media (max-width: 640px) {
  html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='finance-ledger'],
  html[data-app-theme='dentixa-premium'] .dx-wave-k table[data-dx-ui='erp-ledger'] {
    min-width: 720px;
    font-size: 0.78rem !important;
  }
}

/* Invoice details — same DNA, all viewports */
html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] {
  color: var(--dx-text);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dx-line, #3a4047);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__section {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--dx-line, #3a4047);
  border-radius: var(--dx-radius-sm, 8px);
  background: var(--dx-panel, #111314);
  box-shadow: none;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__section--wide {
  grid-column: 1 / -1;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__kv {
  display: grid;
  grid-template-columns: minmax(6.5rem, 36%) 1fr;
  gap: 0.4rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__kv dt {
  color: var(--dx-muted, #8b939e);
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__table {
  width: 100%;
  min-width: 32rem;
}

html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-fin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__kv {
    grid-template-columns: 1fr;
    gap: 0.12rem 0;
  }

  html[data-app-theme='dentixa-premium'] [data-dx-ui='invoice-details'] .dx-invoice-details__section {
    padding: 0.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Super Admin — day-mode readability + chrome discipline                     */
/* -------------------------------------------------------------------------- */

/* Keep primary nav always charcoal; content stays day tokens. */
html[data-app-theme='dentixa-premium'] aside.sa-sidebar,
html[data-app-theme='dentixa-premium'] .sa-shell aside.sa-sidebar {
  background: #0a0d14 !important;
  color: #f5f5f7 !important;
  border-color: rgba(139, 147, 158, 0.38) !important;
}

/* Do NOT use color:inherit on links — Premium token remap was forcing dark ink on charcoal nav. */
html[data-app-theme='dentixa-premium'] aside.sa-sidebar a:not([class*='bg-teal']):not([class*='bg-red']) {
  color: #e2e8f0 !important;
}
html[data-app-theme='dentixa-premium'] aside.sa-sidebar a:hover:not([class*='bg-teal']):not([class*='bg-red']) {
  color: #ffffff !important;
}
html[data-app-theme='dentixa-premium'] aside.sa-sidebar a[class*='bg-teal'],
html[data-app-theme='dentixa-premium'] aside.sa-sidebar button[class*='bg-teal'],
html[data-app-theme='dentixa-premium'] aside.sa-sidebar a[class*='bg-red'],
html[data-app-theme='dentixa-premium'] aside.sa-sidebar button[class*='bg-red'] {
  color: #ffffff !important;
}

html[data-app-theme='dentixa-premium'] aside.sa-sidebar h1,
html[data-app-theme='dentixa-premium'] aside.sa-sidebar .!text-white,
html[data-app-theme='dentixa-premium'] aside.sa-sidebar [class*='text-white'] {
  color: #ffffff !important;
}

html[data-app-theme='dentixa-premium'] aside.sa-sidebar button:not([class*='bg-']) {
  color: #cbd5e1 !important;
}

html[data-app-theme='dentixa-premium'] aside.sa-sidebar p,
html[data-app-theme='dentixa-premium'] aside.sa-sidebar span.text-\[\#94a3b8\],
html[data-app-theme='dentixa-premium'] aside.sa-sidebar [class*='text-[#94a3b8]'],
html[data-app-theme='dentixa-premium'] aside.sa-sidebar .text-slate-500,
html[data-app-theme='dentixa-premium'] aside.sa-sidebar .text-slate-300 {
  color: #94a3b8 !important;
}

html[data-app-theme='dentixa-premium'] aside.sa-sidebar .text-lime-300,
html[data-app-theme='dentixa-premium'] aside.sa-sidebar .text-teal-100,
html[data-app-theme='dentixa-premium'] aside.sa-sidebar .text-teal-200 {
  color: var(--tok-brand-lime-on-dark) !important;
}

html[data-app-theme='dentixa-premium'] aside.sa-sidebar input[type='search'] {
  background: #111314 !important;
  color: #f5f5f7 !important;
  border-color: rgba(139, 147, 158, 0.45) !important;
}

/* Day main canvas: dark ink on light paper — stop washed charcoal conflicts */
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin {
  background-color: #f5f5f7 !important;
  background-image: none !important;
  color: #12141a !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin main {
  color: #12141a !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main h1,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main h2,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main h3,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main label,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main th,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin main h1,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin main h2,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin main h3 {
  color: #12141a !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main p,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main span,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main td,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin main p {
  color: inherit;
}

html:not(.dark)[data-app-theme='dentixa-premium'] :is(.sa-shell, .dx-scope-super-admin) main .text-slate-500,
html:not(.dark)[data-app-theme='dentixa-premium'] :is(.sa-shell, .dx-scope-super-admin) main .text-slate-400,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main .text-gray-500,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main .text-gray-400 {
  color: #5c6570 !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] :is(.sa-shell, .dx-scope-super-admin) main .text-slate-900,
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main .text-slate-800,
html:not(.dark)[data-app-theme='dentixa-premium'] :is(.sa-shell, .dx-scope-super-admin) main .text-gray-900 {
  color: #12141a !important;
}

/* Content asides (tools rails) follow day panel — not nav charcoal */
html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell main aside:not(.sa-sidebar),
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin main aside:not(.sa-sidebar) {
  background: #ffffff !important;
  color: #12141a !important;
  border-color: rgba(139, 147, 158, 0.42) !important;
  backdrop-filter: none !important;
}

/* Restore solid primary/teal CTAs in Super Admin day mode */
html:not(.dark)[data-app-theme='dentixa-premium'] :is(.sa-shell, .dx-scope-super-admin) main :is(button, a).bg-teal-600 {
  background-color: #0d9488 !important;
  color: #ffffff !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] :is(.sa-shell, .dx-scope-super-admin) main button.bg-teal-50 {
  background-color: #f0fdfa !important;
  color: #115e59 !important;
}

html:not(.dark)[data-app-theme='dentixa-premium'] .sa-shell header,
html:not(.dark)[data-app-theme='dentixa-premium'] .dx-scope-super-admin header {
  background: #ffffff !important;
  color: #12141a !important;
  border-color: rgba(139, 147, 158, 0.42) !important;
}

/* Ledger money and partner-lab labels must stay readable inside the fixed table. */
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] {
  min-width: 1580px !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='type'] { width: 132px !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='accounts'] { width: 220px !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='desc'] { width: 220px !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='debit'] { width: 168px !important; }
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] col[data-dx-coltrack='credit'] { width: 168px !important; }

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='debit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='credit'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='accounts'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='desc'],
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace table[data-dx-ui='erp-ledger'] tbody td[data-dx-col='type'] {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='debit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='credit'] .dx-ledger-amount,
html[data-app-theme='dentixa-premium'] .dx-scope-accounting-workspace [data-dx-col='accounts'] .dx-account-chip__name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Stateful bells opt out of idle silver overrides. Delivery wins below. */
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame='critical'] { --notification-color: #f43f5e; }
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame='warning'] { --notification-color: #f59e0b; }
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame='info'] { --notification-color: #0ea5e9; }
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame='success'] { --notification-color: #10b981; }
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='warning'] { --notification-color: #f59e0b; }
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-delivery-bell='critical'] { --notification-color: #ef4444; }
/* Light mode: the notification colour is also used as text (badge numerals) on a light surface; mix it toward the text colour for >= 4.5:1. Dark keeps the bright values. */
html[data-app-theme='dentixa-premium']:not(.dark) .dx-topbar-action[data-notification-frame='critical'],
html[data-app-theme='dentixa-premium']:not(.dark) .dx-topbar-action[data-delivery-bell='critical'] { --notification-color: color-mix(in srgb, #ef4444 45%, var(--dx-text)); }
html[data-app-theme='dentixa-premium']:not(.dark) .dx-topbar-action[data-notification-frame='warning'],
html[data-app-theme='dentixa-premium']:not(.dark) .dx-topbar-action[data-delivery-bell='warning'] { --notification-color: color-mix(in srgb, #f59e0b 45%, var(--dx-text)); }
html[data-app-theme='dentixa-premium']:not(.dark) .dx-topbar-action[data-notification-frame='info'] { --notification-color: color-mix(in srgb, #0ea5e9 55%, var(--dx-text)); }
html[data-app-theme='dentixa-premium']:not(.dark) .dx-topbar-action[data-notification-frame='success'] { --notification-color: color-mix(in srgb, #10b981 55%, var(--dx-text)); }
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame]:not([data-notification-frame='muted']) {
  border: 1px solid var(--notification-color);
  color: var(--notification-color);
  background: var(--dx-panel);
  --notification-frame-glow: color-mix(in srgb, var(--notification-color) 35%, transparent);
  box-shadow: 0 0 6px var(--notification-frame-glow);
}
html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame]:not([data-notification-frame='muted']) :is(svg, svg path, [data-dx-icon], .dx-topbar-badge-center) {
  color: var(--notification-color);
}
html[data-app-theme='dentixa-premium'] .app-top-navigation { overflow-clip-margin: 8px; }
@media (prefers-reduced-motion: reduce) {
  html[data-app-theme='dentixa-premium'] .dx-topbar-action[data-notification-frame] { animation: none; }
}

/* ===== GH-202 owner feedback (d): light-mode contrast pass (WCAG AA) ===== */
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) table[data-dx-ui='erp-ledger'] thead th {
  background: #f3f4f6 !important;
  color: #3d434b !important;
  border-color: #dfe2e6 !important;
}
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) table[data-dx-ui='erp-ledger'] thead th * { color: inherit !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) :is(.dx-live-chip, .dx-accent, .text-primary-500, .text-primary-600, .text-primary-700, [style*="color: var(--brand-lime)"]) { color: #4f7309 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) :is(.dx-eyebrow, .dx-page-desc) { color: #4b5058 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) .bottom-nav-item-label { color: #3d4752 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) kbd { color: #334155 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) .dx-badge--warning { color: #8a4b00 !important; }
html[data-app-theme='dentixa-premium']:not(#_) span[role='status'].bg-emerald-600 { background: #15803d !important; color: #ffffff !important; }
html.dark[data-app-theme='dentixa-premium'] :is(button, a).bg-primary { color: #11140d !important; }
html.dark [data-ov2-a5-preview] [class*='dark:text-'] { color: #17191c !important; }html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) :is(table thead, table thead tr, table thead th) { background: #f3f4f6 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) table thead th, html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) table thead th * { color: #3d434b !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) :is(.dx-accent, em, span.whitespace-nowrap[style*="lime"]) { color: #3f5c07 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) :is(label.mb-1.block, [class*="text-[var(--dx-muted)]"], a.sr-only) { color: #4b5058 !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) .text-green-700 { color: #166534 !important; }
html.dark [data-ov2-a5-preview] :is(h1, h2, h3, h4, p, span, label, dt, dd, div):not([class*="bg-"]) { color: #17191c !important; }html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) [data-dx-ui='settings-tab'][aria-selected='true'], html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) [data-dx-ui='settings-tab'][aria-selected='true'] * { color: #3f5c07 !important; }
/* (b) order page v2 dark: dates cards + summary render on white paper; keep their headings dark */
html.dark:not(#_) .ov2m :is(section.ov2m-sc h3, section.ov2m-sc h3 *, [data-ov2-summary] h3, [data-ov2-summary] h3 *):where(:not(html.dark:not(#_):not(#_) .ov2m :is([data-ov2-section="teeth"] h3, [data-ov2-section="teeth"] h3 *, [data-testid="smile-studio-entry"] h3))) { color: #17191c !important; }html[data-app-theme='dentixa-premium']:not(#_) a.sr-only { background: #ffffff !important; color: #17191c !important; }
html:not(.dark)[data-app-theme='dentixa-premium']:not(#_) { --dx-muted: #565c64; --muted: #565c64; --color-text-secondary: #565c64; }

/* BUTTON-CONTRAST-FIX: the disabled recipe (graphite-lime.css) over this pack's !important fills
 * (e.g. .dx-acc-drawer-overlay coloured buttons, specificity 0,3,2). */
html[data-app-theme='dentixa-premium'] body [class*='btn-disabled-bg']:disabled:disabled:disabled:disabled {
  background-color: var(--tok-btn-disabled-bg) !important;
  background-image: none !important;
  color: var(--tok-btn-disabled-fg) !important;
  border: 1px solid var(--tok-btn-disabled-border) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}
html[data-app-theme='dentixa-premium'] body [class*='disabled:text-btn-disabled-fg']:not([class*='btn-disabled-bg']):disabled:disabled:disabled:disabled {
  opacity: 1 !important;
  cursor: not-allowed !important;
}
html[data-app-theme='dentixa-premium'] body [class*='disabled:text-btn-disabled-fg']:not([class*='btn-disabled-bg']):disabled:disabled:disabled:disabled {
  color: var(--tok-btn-disabled-fg) !important;
}

/* Mode tokens formerly applied inline. Keep parity with premiumColorTokens. */
html[data-app-theme='dentixa-premium'] {
  --dx-bg: var(--tok-pm-light-f5f5f7);
  --dx-panel: var(--tok-pm-light-ffffff);
  --dx-soft: var(--tok-pm-light-eef0f3);
  --dx-panel-2: var(--tok-pm-light-f7f8fa);
  --dx-line: var(--tok-pm-light-8b939e-a42);
  --dx-line-subtle: var(--tok-pm-light-8b939e-a28);
  --dx-text: var(--tok-pm-light-1d1d1f);
  --dx-muted: var(--tok-pm-light-666c75);
  --dx-lime: var(--tok-pm-light-7aab12);
  --dx-lime-deep: var(--tok-pm-light-5f8a0e);
  --dx-lime-bright: var(--tok-pm-light-c8f04a);
  --dx-lime-soft: var(--tok-pm-light-7aab12-a12);
  /* Text-safe lime: fills keep --dx-lime; lime used as text on light surfaces needs >= 4.5:1 (6.5:1 on the page surface). */
  --dx-lime-text: var(--tok-auth-link);
  /* Focus indicators need >= 3:1 against the surface (the lime fill was 2.7:1 on light) */
  --dx-focus-ring: var(--tok-auth-link);
  --dx-lime-deep-text: var(--tok-auth-link);
  --dx-lime-glow: var(--tok-pm-light-7aab12-a12);
  --dx-crystal: color-mix(in srgb, var(--tok-pm-light-ffffff) 82%, transparent);
  --dx-crystal-border: var(--tok-pm-light-8b939e-a42);
  --dx-shadow-soft: 0 24px 60px var(--tok-pm-light-000000-a08);
  --dx-shadow-lift: 0 18px 50px var(--tok-pm-light-000000-a08);
  --ink: var(--tok-pm-light-f5f5f7);
  --bg: var(--tok-pm-light-f5f5f7);
  --surface: var(--tok-pm-light-ffffff);
  --lime: var(--tok-pm-light-7aab12);
  --lime-soft: var(--tok-pm-light-7aab12-a12);
  --lime-glow: var(--tok-pm-light-7aab12-a12);
  --muted: var(--tok-pm-light-666c75);
  --line: var(--tok-pm-light-8b939e-a42);
  --panel: var(--tok-pm-light-ffffff);
  --brand-lime: var(--tok-pm-light-7aab12);
  --brand-lime-deep: var(--tok-pm-light-5f8a0e);
  --color-primary: var(--tok-pm-light-7aab12);
  --color-accent: var(--tok-pm-light-c8f04a);
  --apple-primary: var(--tok-pm-light-7aab12);
  --apple-primary-hover: var(--tok-pm-light-c8f04a);
  --apple-accent: var(--tok-pm-light-7aab12);
  --color-surface: var(--tok-pm-light-f5f5f7);
  --apple-surface: var(--tok-pm-light-f5f5f7);
  --color-background: var(--tok-pm-light-f5f5f7);
  --color-bg: var(--tok-pm-light-f5f5f7);
  --color-text: var(--tok-pm-light-1d1d1f);
  --color-text-secondary: var(--tok-pm-light-666c75);
  --color-card-bg: color-mix(in srgb, var(--tok-pm-light-ffffff) 82%, transparent);
  --color-card-border: var(--tok-pm-light-8b939e-a42);
  --color-border: var(--tok-pm-light-8b939e-a42);
  --color-input-bg: var(--tok-pm-light-ffffff);
  --color-input-border: var(--tok-pm-light-808690);
  --apple-glass: color-mix(in srgb, var(--tok-pm-light-ffffff) 82%, transparent);
  --apple-shadow: var(--tok-pm-light-000000-a08);
}
html.dark[data-app-theme='dentixa-premium'] {
  --dx-bg: var(--tok-pm-dark-050505);
  --dx-panel: var(--tok-pm-dark-111314);
  --dx-soft: var(--tok-pm-dark-181b1c);
  --dx-panel-2: var(--tok-pm-dark-1c1f26);
  --dx-line: var(--tok-pm-dark-3a4047);
  --dx-line-subtle: var(--tok-pm-dark-424245);
  --dx-text: var(--tok-pm-dark-f5f5f7);
  --dx-muted: var(--tok-pm-dark-8b939e);
  --dx-lime: var(--tok-pm-dark-c8f04a);
  --dx-lime-deep: var(--tok-pm-dark-7aab12);
  --dx-lime-bright: var(--tok-pm-dark-e8ff9a);
  --dx-lime-soft: var(--tok-pm-dark-c8f04a-a12);
  --dx-lime-text: var(--tok-pm-dark-c8f04a);
  --dx-focus-ring: var(--tok-pm-dark-c8f04a);
  --dx-lime-deep-text: var(--tok-pm-dark-7aab12);
  --dx-lime-glow: var(--tok-pm-dark-c8f04a-a12);
  --dx-crystal: color-mix(in srgb, var(--tok-pm-dark-111314) 88%, transparent);
  --dx-crystal-border: var(--tok-pm-dark-3a4047);
  --dx-shadow-soft: 0 30px 80px var(--tok-pm-dark-000000-a55);
  --dx-shadow-lift: 0 18px 50px var(--tok-pm-dark-000000-a45);
  --ink: var(--tok-pm-dark-000000);
  --bg: var(--tok-pm-dark-050505);
  --surface: var(--tok-pm-dark-111314);
  --lime: var(--tok-pm-dark-c8f04a);
  --lime-soft: var(--tok-pm-dark-c8f04a-a12);
  --lime-glow: var(--tok-pm-dark-c8f04a-a12);
  --muted: var(--tok-pm-dark-8b939e);
  --line: var(--tok-pm-dark-3a4047);
  --panel: var(--tok-pm-dark-111314);
  --brand-lime: var(--tok-pm-dark-c8f04a);
  --brand-lime-deep: var(--tok-pm-dark-7aab12);
  --color-primary: var(--tok-pm-dark-c8f04a);
  --color-accent: var(--tok-pm-dark-e8ff9a);
  --apple-primary: var(--tok-pm-dark-c8f04a);
  --apple-primary-hover: var(--tok-pm-dark-e8ff9a);
  --apple-accent: var(--tok-pm-dark-c8f04a);
  --color-surface: var(--tok-pm-dark-050505);
  --apple-surface: var(--tok-pm-dark-050505);
  --color-background: var(--tok-pm-dark-050505);
  --color-bg: var(--tok-pm-dark-050505);
  --color-text: var(--tok-pm-dark-f5f5f7);
  --color-text-secondary: var(--tok-pm-dark-8b939e);
  --color-card-bg: var(--tok-pm-dark-111314);
  --color-card-border: var(--tok-pm-dark-3a4047);
  --color-border: var(--tok-pm-dark-3a4047);
  --color-input-bg: var(--tok-pm-dark-1c1f26);
  --color-input-border: var(--tok-pm-dark-6b7672);
  --apple-glass: color-mix(in srgb, var(--tok-pm-dark-111314) 88%, transparent);
  --apple-shadow: var(--tok-pm-dark-000000-a55);
}
