html[data-theme="arang-emas"]{
  --bg:#F6F5F2;--surface:#FFFFFF;--surface-2:#F6F5F2;--line:#E3E0D8;--track:#ECE9E1;
  --ink:#1B1B1A;--muted:#5B5A56;
  --accent:#B28E3E;--on-accent:#0E0E0E;--accent-text:#8A6A1C;--accent-tint:#F4EBD3;--accent-tint-ink:#7A5B14;
  --sidebar-bg:#1C1C1C;--sidebar-ink:#F2F0EA;--sidebar-muted:#B9B6AD;--sidebar-active-bg:rgba(178,142,62,.18);--sidebar-active-ink:#FFFFFF;
  --btn-strong-bg:#0E0E0E;--btn-strong-ink:#FFFFFF;
  --ok:#1F7A55;--warn:#B45309;--warn-ink:#8A3F0A;--danger:#B3261E}
html[data-theme="hitam-champagne"]{
  --bg:#141414;--surface:#1C1C1C;--surface-2:#232220;--line:#2C2B28;--track:#2C2B28;
  --ink:#F2F0EA;--muted:#A9A59B;
  --accent:#C9A961;--on-accent:#141414;--accent-text:#C9A961;--accent-tint:#2A2519;--accent-tint-ink:#E3CC8F;
  --sidebar-bg:#0E0E0E;--sidebar-ink:#F2F0EA;--sidebar-muted:#A9A59B;--sidebar-active-bg:rgba(201,169,97,.16);--sidebar-active-ink:#FFFFFF;
  --btn-strong-bg:transparent;--btn-strong-ink:#C9A961;
  --ok:#5FD0A0;--warn:#E08A3C;--warn-ink:#F0A25C;--danger:#FF8F85}
html[data-theme="gading-perunggu"]{
  --bg:#FAF8F3;--surface:#FFFFFF;--surface-2:#FAF8F3;--line:#E8E3D8;--track:#EDE7DA;
  --ink:#2A2622;--muted:#6B655C;
  --accent:#8C6A2F;--on-accent:#FFFFFF;--accent-text:#8C6A2F;--accent-tint:#EFE4CC;--accent-tint-ink:#6B4F1E;
  --sidebar-bg:#F1EDE3;--sidebar-ink:#2A2622;--sidebar-muted:#6B655C;--sidebar-active-bg:#E9DFC8;--sidebar-active-ink:#6B4F1E;
  --btn-strong-bg:#2A2622;--btn-strong-ink:#FFFFFF;
  --ok:#1F7A55;--warn:#B45309;--warn-ink:#8A3F0A;--danger:#B3261E}
html[data-theme]{
  --purple:var(--accent-text);
  --purple-dark:var(--accent-tint-ink);
  --green:var(--ok);
  --yellow:var(--warn);
  --red:var(--danger);
  --cyan:var(--ok);
  --accent-border:color-mix(in srgb,var(--accent) 45%,var(--line));
  --ok-tint:color-mix(in srgb,var(--ok) 13%,var(--surface));
  --warn-tint:color-mix(in srgb,var(--warn) 14%,var(--surface));
  --danger-tint:color-mix(in srgb,var(--danger) 13%,var(--surface));
}
@media screen{
  html[data-theme="arang-emas"]{--line:#AAA498;--accent-text:#705414}
  html[data-theme="gading-perunggu"]{--line:#A99E8C;--accent-text:#694B1E}
  html[data-theme="hitam-champagne"]{color-scheme:dark}

  html[data-theme] .mh2-card svg text{fill:var(--muted)}
  html[data-theme] .mh2-card svg text[font-weight="700"]{fill:var(--ink)}
  html[data-theme] .mh2-card svg line{stroke:var(--line)}
  html[data-theme] .mh2-donut circle:not([stroke-dasharray]){stroke:var(--track)}
  html[data-theme] .mh2-card svg rect{fill:color-mix(in srgb,var(--accent) 64%,var(--surface))}
  html[data-theme] .mh2-card svg rect[fill="#6C4FE0"]{fill:var(--accent)}
  html[data-theme] .mh2-card{
    --chart-1:var(--accent);
    --chart-2:var(--ok);
    --chart-3:color-mix(in srgb,var(--accent) 42%,var(--ink));
    --chart-4:var(--warn);
    --chart-5:var(--danger);
    --chart-6:var(--muted)
  }
  html[data-theme] .mh2-card :is([stroke="#6C4FE0"],.mh2-lg > div:nth-child(6n+1) .mh2-dot){--chart-series:var(--chart-1)}
  html[data-theme] .mh2-card :is([stroke="#2FB5A3"],.mh2-lg > div:nth-child(6n+2) .mh2-dot){--chart-series:var(--chart-2)}
  html[data-theme] .mh2-card :is([stroke="#B9ABF5"],.mh2-lg > div:nth-child(6n+3) .mh2-dot){--chart-series:var(--chart-3)}
  html[data-theme] .mh2-card :is([stroke="#F2A93B"],.mh2-lg > div:nth-child(6n+4) .mh2-dot){--chart-series:var(--chart-4)}
  html[data-theme] .mh2-card :is([stroke="#E5698A"],.mh2-lg > div:nth-child(6n+5) .mh2-dot){--chart-series:var(--chart-5)}
  html[data-theme] .mh2-card :is([stroke="#4B8BF5"],.mh2-lg > div:nth-child(6n+6) .mh2-dot){--chart-series:var(--chart-6)}
  html[data-theme] .mh2-donut circle[stroke-dasharray]{stroke:var(--chart-series)}
  /* The legend has inline colors from the production chart renderer. */
  html[data-theme] .mh2-lg .mh2-dot{background:var(--chart-series) !important}
  html[data-theme] .employee-dashboard svg [stroke="#7367f0"]{stroke:var(--accent-text)}
  html[data-theme] .employee-dashboard svg [fill="#7367f0"]{fill:var(--accent-text)}
  html[data-theme] .employee-dashboard svg [stroke="#e6e2f1"]{stroke:var(--line)}
  html[data-theme] .live-app thead th:not(.document-paper *,.payroll-slip *,.receipt-sheet *){
    background:var(--surface-2);color:var(--ink);border-color:var(--line)
  }
}
@media print{
  html[data-theme][data-theme]{color-scheme:light;--bg:#F6F5F2;--surface:#FFFFFF;--surface-2:#F6F5F2;--line:#E3E0D8;--track:#ECE9E1;
  --ink:#1B1B1A;--muted:#5B5A56;
  --accent:#B28E3E;--on-accent:#0E0E0E;--accent-text:#8A6A1C;--accent-tint:#F4EBD3;--accent-tint-ink:#7A5B14;
  --sidebar-bg:#1C1C1C;--sidebar-ink:#F2F0EA;--sidebar-muted:#B9B6AD;--sidebar-active-bg:rgba(178,142,62,.18);--sidebar-active-ink:#FFFFFF;
  --btn-strong-bg:#0E0E0E;--btn-strong-ink:#FFFFFF;
  --ok:#1F7A55;--warn:#B45309;--warn-ink:#8A3F0A;--danger:#B3261E}
  .sidebar-theme-select{display:none}
}
html[data-theme] body{background:var(--bg);color:var(--ink)}
html[data-theme] .btn:not(.secondary,.plain,.danger,.mh-ghost,.mh-hero-primary,.mh-hero-secondary),
html[data-theme] .live-tab.active{
  background:var(--accent);color:var(--on-accent)
}
html[data-theme] .btn:not(.secondary,.plain,.danger,.mh-ghost,.mh-hero-primary,.mh-hero-secondary):hover{background:color-mix(in srgb,var(--accent) 91%,var(--on-accent))}
html[data-theme] :is(.btn.secondary,.live-tab):not(.active){background:var(--accent-tint);color:var(--accent-tint-ink)}
html[data-theme] .btn.plain{background:var(--surface);color:var(--ink)}
html[data-theme] .btn.danger{background:var(--danger-tint);color:var(--danger)}
html[data-theme] .live-app .sidebar,html[data-theme] .live-app .sidebar-account-area{
  background:var(--sidebar-bg);color:var(--sidebar-ink)
}
html[data-theme] .live-app .sidebar :is(.navitem,.live-menu-group>summary,.sidebar-account-heading strong,.sidebar-collapse){
  color:var(--sidebar-ink)
}
html[data-theme] .live-app .sidebar :is(.sidebar-nav-caption,small,.sidebar-role){color:var(--sidebar-muted)}
html[data-theme] .live-app .sidebar :is(.navitem.active,.navitem:hover,.live-menu-group>summary:hover,.live-menu-group.has-current>summary){
  background:var(--sidebar-active-bg);color:var(--sidebar-active-ink)
}
html[data-theme] :is(.live-sidebar,.sidebar) :is(.navitem,.live-menu-group>summary){box-shadow:none}
html[data-theme] :is(input:not([type=checkbox],[type=radio]),textarea,select){
  accent-color:var(--accent);border-color:var(--line)
}
html[data-theme] #app :is(input:not([type=checkbox],[type=radio]),textarea,select),
html[data-theme] #modal-root :is(input:not([type=checkbox],[type=radio]),textarea,select){
  background-color:var(--surface);color:var(--ink)
}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
.sidebar-theme-select{display:grid;gap:4px;margin:6px 0 10px;font-size:14px}
.sidebar-theme-select select{width:100%;min-width:0;min-height:40px;border:1px solid;border-radius:8px;padding:5px 7px}
html[data-theme] #app .sidebar-theme-select select{background:var(--sidebar-bg);color:var(--sidebar-ink);border-color:var(--sidebar-muted)}
.sidebar-theme-select .theme-label{color:var(--sidebar-ink)}
.sidebar-theme-select select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-theme] :is(.sidebar,.live-sidebar) :is(.brand,.sidebar-brand) img,
html[data-theme] :is(.login-brand,.login-brand-mobile) img{
  background:#fff;border-radius:8px
}
@media screen{
  html[data-theme="hitam-champagne"] :is(canvas,svg){color:inherit}
}
html[data-theme]{--heading:var(--ink)}
html[data-theme] :is(.manager-stock-ui,.mh-dashboard,.manager-customers-ui){
  --ms-text:var(--ink);--ms-muted:var(--muted);--ms-line:var(--line);--ms-purple:var(--accent-text);
  --mh-ink:var(--ink);--mh-muted:var(--muted);--mh-line:var(--line);--mh-purple:var(--accent-text);
  --mc-text:var(--ink);--mc-muted:var(--muted)
}
html[data-theme] :is(.tab.active,.mini-card,#toast,.manager-stock-ui .ms-primary,.manager-customers-ui .mc-tabs .active,.manager-a4 .manager-pay-nav>.manager-more>summary.active){
  background:var(--accent);color:var(--on-accent)
}
html[data-theme] :is(.welcome,.mh-dashboard .mh-hero){background:var(--sidebar-bg);color:var(--sidebar-ink)}
html[data-theme] .adm-hero{background:var(--sidebar-bg);color:var(--sidebar-ink)}
html[data-theme] .adm-hero :is(h1,.adm-hc:not(.good,.warn)){color:var(--sidebar-ink)}
@media screen{
  html[data-theme] :is(.mh-dashboard .mh-hero,.adm-hero,.welcome){
    background-image:linear-gradient(125deg,var(--sidebar-bg) 32%,color-mix(in srgb,var(--sidebar-bg) 89%,var(--accent)))
  }
  html[data-theme] :is(.mh2-kpi,.mh-dashboard .mh-latest,.adm-kpi:not(.warn,.bad)){
    background-image:linear-gradient(135deg,var(--surface) 30%,color-mix(in srgb,var(--surface) 78%,var(--accent-tint)));
    color:var(--ink)
  }
}
html[data-theme] :is(.welcome h2,.welcome p,.welcome .badge,.mh-dashboard .mh-hero h1,.mh-dashboard .mh-hero p,.mh-dashboard .mh-eyebrow,.mh-dashboard .mh-hero-secondary){color:var(--sidebar-ink)}
html[data-theme] :is(.avatar,.login-form > .badge,.live-workflow li > span){
  background:var(--accent-tint);color:var(--accent-tint-ink)
}
html[data-theme] .live-mobile-nav [aria-current="page"]{color:var(--accent-tint-ink)}
html[data-theme] .mh-dashboard .mh-feedback > .mh-ghost,
html[data-theme] .mh-dashboard .mh-feedback > .mh-ghost:hover{
  background:var(--ink);
  color:var(--surface);
  border:1px solid var(--ink);
  padding-inline:14px;
  font-weight:700
}
html[data-theme] body:has(.live-app) #modal-root .modal-footer :is(.btn[type=submit]:not(:disabled),[data-ui-next-action]):not(.danger){
  background:var(--accent);color:var(--on-accent)
}
html[data-theme] body:has(.live-app) #modal-root .modal-footer .btn.danger[type=submit]:not(:disabled){
  background:var(--danger-tint);color:var(--danger)
}
html[data-theme] :is(.btn,input,textarea,select,a):focus-visible{outline-color:var(--accent)}
.live-app[data-sidebar-collapsed="true"] .sidebar-theme-select .theme-label{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)
}
@media print{
  html[data-theme][data-theme] .adm-hero{background:var(--surface);color:var(--ink)}
  html[data-theme][data-theme] .adm-hero :is(h1,.adm-hc:not(.good,.warn)){color:var(--ink)}
  html[data-theme][data-theme] :is(.welcome,.mh-dashboard .mh-hero,.mini-card,#toast){
    background:var(--surface);color:var(--ink)
  }
  html[data-theme][data-theme] :is(.welcome h2,.welcome p,.welcome .badge,.mh-dashboard .mh-hero h1,.mh-dashboard .mh-hero p,.mh-dashboard .mh-eyebrow,.mh-dashboard .mh-hero-secondary){
    color:var(--ink)
  }
}
html[data-theme] .live-app .sidebar-role{background:var(--sidebar-active-bg);border-color:var(--sidebar-muted)}
html[data-theme] .live-app .sidebar :is(.navitem,.live-menu-group>summary):focus-visible{outline-color:var(--accent)}
html[data-theme] .live-app .sidebar :is(.sidebar-brand,.sidebar-account-area,.sidebar-feedback){border-color:color-mix(in srgb,var(--sidebar-ink) 18%,var(--sidebar-bg))}
