/*
 * KTUI migration compatibility layer.
 * Backfills Metronic Tailwind classes that existed in the old (un-prefixed)
 * version ims-web was built against but were dropped/renamed in current KTUI.
 * Loaded after styles.css. See wiki handoff: metronic_s3_outage.
 */

/* ---- Buttons: color variants KTUI dropped (success/warning) ---- */
.kt-btn.kt-btn-success {
  background-color: #17c653;
  color: #fff;
  border-color: transparent;
}
.kt-btn.kt-btn-success:hover { background-color: #13a544; }

.kt-btn.kt-btn-warning {
  background-color: #f6b100;
  color: #1f2937;
  border-color: transparent;
}
.kt-btn.kt-btn-warning:hover { background-color: #d99b00; }

/* link-style button */
.kt-btn.kt-btn-link {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-primary, #1b84ff);
  padding-left: 0;
  padding-right: 0;
  height: auto;
}
.kt-btn.kt-btn-link:hover { text-decoration: underline; }

/* ---- Button sizes KTUI dropped ---- */
.kt-btn.kt-btn-xs {
  height: 1.75rem;
  padding-inline: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  gap: 0.25rem;
}
/* icon-button size bumps (larger glyph; dimensions still driven by size-* utils) */
.kt-btn.kt-btn-icon-lg i { font-size: 1.25rem; }
.kt-btn.kt-btn-icon-xl i { font-size: 1.5rem; }

/* ---- Badges: shapes KTUI dropped ---- */
.kt-badge.kt-badge-circle {
  border-radius: 9999px;
  padding-inline: 0;
  aspect-ratio: 1 / 1;
  justify-content: center;
  min-width: 1.5rem;
}
.kt-badge.kt-badge-pill { border-radius: 9999px; }

/* ---- Switch label spacing ---- */
.kt-switch-label { margin-inline-start: 0.5rem; user-select: none; }
