/* Shared accessibility and containment rules for the dashboard shell. */
.dark {
  --muted-foreground: rgba(255, 255, 255, 0.72);
}

.dark .kt-input::placeholder,
.dark .kt-textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.text-muted-foreground\/50,
.text-muted-foreground\/60,
.text-muted-foreground\/70,
.speed-stat-hint {
  color: var(--muted-foreground);
}

.dark .kt-btn-primary {
  background-color: color-mix(in srgb, var(--primary) 78%, black);
  color: #fff;
}

.dark .kt-btn-success {
  background-color: #166534;
  color: #fff;
}

.dark .kt-badge-success {
  color: #86efac !important;
  background-color: rgba(34, 197, 94, 0.18) !important;
}

.dark .text-destructive,
.dark .text-destructive\/80 {
  color: #ff8fa3 !important;
}

.dark .kt-badge-danger {
  color: #ffb3c1 !important;
  background-color: rgba(244, 63, 94, 0.18) !important;
}

[data-err-row] {
  opacity: 1 !important;
}

.user-mode-tab small {
  color: var(--muted-foreground);
}

#scrollable_content,
#content,
#content > .tab {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

#content {
  overflow-x: hidden;
}

#content > .tab {
  overflow-x: clip;
}

#content > .tab .overflow-x-auto {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
