/* BMA CRM - fix incremental do tema claro/escuro sem rebuild */
html.theme-dark,
html.theme-dark body,
html.theme-dark #root {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

html.theme-dark .bg-white,
html.theme-dark .bg-surface {
  background-color: #111827 !important;
}

html.theme-dark .bg-slate-50 {
  background-color: #0f172a !important;
}

html.theme-dark .bg-slate-100 {
  background-color: #1f2937 !important;
}

html.theme-dark .bg-blue-50 {
  background-color: #172554 !important;
}

html.theme-dark .text-ink,
html.theme-dark .text-slate-700,
html.theme-dark .text-slate-800,
html.theme-dark .text-slate-900 {
  color: #f8fafc !important;
}

html.theme-dark .text-slate-600,
html.theme-dark .text-slate-500 {
  color: #cbd5e1 !important;
}

html.theme-dark .text-slate-400 {
  color: #94a3b8 !important;
}

html.theme-dark .border-line,
html.theme-dark .border-slate-200,
html.theme-dark .border-slate-300 {
  border-color: #334155 !important;
}

html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

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

html.theme-dark input[type="color"] {
  background-color: #111827 !important;
}

html.theme-dark table,
html.theme-dark thead,
html.theme-dark tbody,
html.theme-dark tr,
html.theme-dark td,
html.theme-dark th {
  color: #e5e7eb !important;
  border-color: #334155 !important;
}

html.theme-dark .hover\:bg-slate-50:hover,
html.theme-dark button:hover,
html.theme-dark a:hover {
  background-color: #1f2937 !important;
}

html.theme-dark .ring-blue-100 {
  --tw-ring-color: #1d4ed8 !important;
}

html.theme-dark .shadow,
html.theme-dark .shadow-sm,
html.theme-dark .shadow-md {
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}

#bma-operation-modes-block {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

#bma-operation-modes-block .bma-mode-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1rem;
}

#bma-operation-modes-block .bma-mode-status {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

#bma-operation-modes-block .bma-mode-status.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

html.theme-dark #bma-operation-modes-block .bma-mode-card,
html.theme-dark #bma-operation-modes-block .bma-mode-status {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html.theme-dark #bma-operation-modes-block .bma-mode-status.error {
  background: #450a0a !important;
  border-color: #7f1d1d !important;
  color: #fecaca !important;
}
