/* Dark mode – synced with Labor-Board laborTheme */
html.theme-dark,
html.theme-dark body.bg-slate-50 {
  background-color: #0f172a !important;
  color: #e2e8f0;
}

html.theme-dark [class*="bg-white"] {
  background-color: #1e293b !important;
}

html.theme-dark [class*="bg-slate-50"] {
  background-color: #1e293b !important;
}

html.theme-dark [class*="bg-slate-100"] {
  background-color: #334155 !important;
}

html.theme-dark [class*="bg-slate-200"] {
  background-color: #475569 !important;
}

html.theme-dark [class*="bg-slate-300"] {
  background-color: #64748b !important;
}

html.theme-dark [class*="bg-blue-50"],
html.theme-dark [class*="bg-amber-50"],
html.theme-dark [class*="bg-emerald-50"],
html.theme-dark [class*="bg-red-50"],
html.theme-dark [class*="bg-violet-50"],
html.theme-dark [class*="bg-green-50"] {
  background-color: rgba(30, 41, 59, 0.92) !important;
}

html.theme-dark [class*="bg-amber-100"],
html.theme-dark [class*="bg-red-100"],
html.theme-dark [class*="bg-orange-100"],
html.theme-dark [class*="bg-blue-100"],
html.theme-dark [class*="bg-blue-200"] {
  background-color: rgba(51, 65, 85, 0.95) !important;
}

html.theme-dark [class*="border-slate-200"],
html.theme-dark [class*="border-slate-100"],
html.theme-dark [class*="border-slate-300"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark [class*="text-slate-400"],
html.theme-dark [class*="text-slate-500"],
html.theme-dark [class*="text-slate-600"],
html.theme-dark [class*="text-slate-700"] {
  color: #94a3b8 !important;
}

html.theme-dark [class*="text-slate-800"],
html.theme-dark [class*="text-slate-900"] {
  color: #f1f5f9 !important;
}

html.theme-dark [class*="text-blue-600"],
html.theme-dark [class*="text-blue-700"] {
  color: #93c5fd !important;
}

html.theme-dark [class*="hover:bg-slate-100"]:hover,
html.theme-dark [class*="hover:bg-slate-200"]:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
  color: #64748b !important;
}

html.theme-dark .shadow-sm,
html.theme-dark .shadow-md {
  box-shadow: none !important;
}

html.theme-dark table thead,
html.theme-dark thead tr,
html.theme-dark thead [class*="bg-slate"] {
  background-color: #1e293b !important;
}

html.theme-dark tbody tr {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html.theme-dark .tooth-num {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.theme-dark .tooth-status-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .position-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

html.theme-dark .position-row.active-row {
  background: rgba(59, 130, 246, 0.12);
}

html.theme-dark .pos-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .kuerzel-card {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .kuerzel-card.active {
  background-color: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
}

html.theme-dark.embedded,
html.theme-dark.embedded body.bg-slate-50 {
  background-color: #111827 !important;
}

html.theme-dark.embedded .flex.h-screen > .flex-1 {
  background-color: #111827 !important;
}
