.theme-root .mk-card,
.theme-root .card.mk-card {
  background: var(--mk-surface);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  box-shadow: var(--mk-shadow);
}

.theme-root .mk-card .card-body,
.theme-root .mk-card-body {
  padding: 1rem;
}

.theme-root .mk-form .form-control,
.theme-root .mk-form .form-select {
  border-color: var(--mk-border);
  border-radius: calc(var(--mk-radius) - 3px);
}

.theme-root .mk-btn-primary,
.theme-root .btn.mk-btn-primary {
  background: var(--mk-primary);
  border-color: var(--mk-primary);
  color: var(--mk-primary-contrast);
}

.theme-root .mk-btn-secondary,
.theme-root .btn.mk-btn-secondary {
  background: var(--mk-surface);
  border-color: var(--mk-border);
  color: var(--mk-text);
}

.theme-root .mk-card .table thead th {
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--mk-muted);
  border-bottom-color: var(--mk-border);
}

.theme-root .mk-card .table td,
.theme-root .mk-card .table th {
  border-color: var(--mk-border);
}

.theme-root .market-header {
  background: var(--mk-surface);
  border-bottom: 1px solid var(--mk-border);
}

.theme-root .market-action {
  color: var(--mk-text);
}

.theme-root .market-action i {
  color: var(--mk-primary);
}

@media (max-width: 991.98px) {
  .theme-root .mk-sidebar {
    position: static !important;
    top: auto !important;
  }
}

.theme-debug-badge {
  position: fixed;
  top: 74px;
  right: 12px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid #111827;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

.theme-debug-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mk-primary);
  box-shadow: 0 0 0 2px #fff inset;
}

.theme-market-classic .theme-debug-badge {
  border-color: #1f6fe5;
  background: #eaf2ff;
}

.theme-market-clean-light .theme-debug-badge {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.theme-market-clean-compact .theme-debug-badge {
  border-color: #7c3aed;
  background: #f5f3ff;
}

@media (max-width: 991.98px) {
  .theme-debug-badge {
    top: 62px;
    right: 8px;
    font-size: 11px;
    padding: 5px 8px;
  }
}
