html[data-ekegr-theme="dark"] body{background:#111713!important;color:#e9f0ec!important}
html[data-ekegr-theme="dark"] .appbar,html[data-ekegr-theme="dark"] .ekegr-topbar,html[data-ekegr-theme="dark"] .ekegr-sidebar,html[data-ekegr-theme="dark"] .card,html[data-ekegr-theme="dark"] article,html[data-ekegr-theme="dark"] section,html[data-ekegr-theme="dark"] .tablewrap,html[data-ekegr-theme="dark"] .ekegr-table-scroll,html[data-ekegr-theme="dark"] .popover,html[data-ekegr-theme="dark"] .ekegr-modal section,html[data-ekegr-theme="dark"] .ekegr-quick-panel{background-color:#18201b!important;color:#e9f0ec!important;border-color:#304039!important}
html[data-ekegr-theme="dark"] table,html[data-ekegr-theme="dark"] th,html[data-ekegr-theme="dark"] td{background-color:#18201b!important;color:#e9f0ec!important;border-color:#304039!important}
html[data-ekegr-theme="dark"] thead th{background:#202b25!important;color:#aebcb4!important}
html[data-ekegr-theme="dark"] input,html[data-ekegr-theme="dark"] select,html[data-ekegr-theme="dark"] textarea{background:#111713!important;color:#e9f0ec!important;border-color:#3a4a42!important}
html[data-ekegr-theme="dark"] .muted,html[data-ekegr-theme="dark"] .muted-row,html[data-ekegr-theme="dark"] small{color:#9facA5!important}
html[data-ekegr-theme="dark"] a{color:#8bc9ab}
html[data-ekegr-theme="dark"] .button,html[data-ekegr-theme="dark"] button,html[data-ekegr-theme="dark"] .btn{border-color:#3a4a42}
html[data-ekegr-theme="dark"] .secondary{background:#202b25!important;color:#e9f0ec!important}
html[data-ekegr-theme="dark"] .success{background:#173326!important;color:#75d7a4!important;border-color:#28583f!important}
html[data-ekegr-theme="dark"] .error{background:#3a201e!important;color:#ff9b92!important;border-color:#6d3833!important}
.ekegr-theme-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe3df;background:#fff;border-radius:9px;min-width:36px;height:36px;cursor:pointer;font-size:16px}
html[data-ekegr-theme="dark"] .ekegr-theme-toggle{background:#202b25;color:#e9f0ec;border-color:#3a4a42}

/* V23 - dark/light control contrast; SVG uses currentColor */
html:not([data-ekegr-theme="dark"]) .ekegr-theme-toggle,
html[data-ekegr-theme="light"] .ekegr-theme-toggle {
  color:#18342b!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-ekegr-theme="dark"] .ekegr-theme-toggle {
  color:#e3ede8!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.ekegr-theme-toggle {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:38px;
  min-height:38px;
  padding:8px;
  line-height:1;
  flex:0 0 auto;
}
.ekegr-theme-toggle svg {display:block!important;width:20px;height:20px;stroke:currentColor!important;opacity:1!important;visibility:visible!important;}
.ekegr-theme-toggle:focus-visible {outline:2px solid currentColor;outline-offset:2px;border-radius:6px;}

/* Authenticated ERP dark palette: preserve table states and button contrast. */
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(.tablewrap,.table-wrap,.table-card,.table-shell,.ekegr-table-shell){
  background:#18251f!important;
  border-color:#34463d!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main table th{
  background:#22332a!important;
  color:#d6e6dc!important;
  border-color:#34463d!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main table td{
  background:#18251f!important;
  color:#e7f0eb!important;
  border-color:#34463d!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main table tbody tr:nth-child(even)>td{background:#1d2b24!important}
html[data-ekegr-theme="dark"] body.ekegr-studio main table tbody tr:hover>td{background:#2a4034!important}
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button,input[type=submit],input[type=button]):not(.secondary):not(.button-secondary){
  border-color:#347454!important;
  background:#216044!important;
  color:#fff!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button,input[type=submit],input[type=button]):not(.secondary):not(.button-secondary):hover:not(:disabled){
  border-color:#4b9a70!important;
  background:#2a7754!important;
  color:#fff!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button,input[type=submit],input[type=button]).secondary,
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button).button-secondary{
  border-color:#45594d!important;
  background:#26372e!important;
  color:#deeee4!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button).secondary:hover,
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button).button-secondary:hover{background:#30483a!important;color:#fff!important}
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button).danger,
html[data-ekegr-theme="dark"] body.ekegr-studio main :is(button,.button,a.button)[data-variant="danger"]{background:#8f302e!important;color:#fff!important}
html[data-ekegr-theme="dark"] body.ekegr-studio main.help-center-page .help-guide-count,
html[data-ekegr-theme="dark"] body.ekegr-studio main.help-center-page .guide-card .chip{
  border-color:#40564a!important;
  background:#23362b!important;
  color:#c9e5d4!important;
}
html[data-ekegr-theme="dark"] body.ekegr-studio main.help-center-page .guide-card,
html[data-ekegr-theme="dark"] body.ekegr-studio main.help-center-page .help-support,
html[data-ekegr-theme="dark"] body.ekegr-studio main.help-center-page .help-knowledge{background:#18251f!important;color:#e7f0eb!important}
html[data-ekegr-theme="dark"] body.ekegr-studio main.help-center-page .status{background:#28372f!important;color:#c9e5d4!important}
html[data-ekegr-theme="dark"] body.ekegr-studio .ekegr-modal-dialog{background:#18251f!important;color:#e7f0eb!important;border-color:#34463d!important}
html[data-ekegr-theme="dark"] body.ekegr-studio .ekegr-modal-head{background:#18251f!important;border-color:#34463d!important}
html[data-ekegr-theme="dark"] body.ekegr-studio .ekegr-modal-head .ekegr-modal-close{background:#22332a!important;color:#e7f0eb!important;border-color:#45594d!important}
