
/* KLM Chinese name display fixes */
.klm-um-name-block {
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.klm-um-name-block em,
.klm-um-edit-person em,
.klm-ticket-name-china,
.klm-ticket-name-china-inline,
.staff-name-china,
.staff-name-china-field {
  display:block;
  margin-top:2px;
  font-size:11px;
  font-style:italic;
  font-weight:700;
  color:var(--klm-text-muted,#94a3b8);
}
.klm-ticket-name-china-inline {
  display:inline;
  margin-top:0;
}
.klm-um-card-detailed .klm-um-main {
  display:grid;
  grid-template-columns:minmax(210px,260px) 1fr;
  align-items:center;
  gap:18px;
}
.klm-um-card-detailed .klm-um-row {
  grid-column:1;
}
.klm-um-card-detailed .klm-um-info-grid {
  grid-column:2;
  margin-left:auto;
}
.chat-name {
  white-space:normal;
}
.klm-um-identity-under-name,
.klm-um-email-under-name {
  display:block;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  color:#dbeafe;
}
.klm-um-email-under-name {
  font-size:11px;
  color:#ffffff;
  opacity:.9;
}

/* Status Verification color fixes: keep semantic colors in dark mode */
html[data-theme="dark"] .klm-action-radios-container label span[style*="color:#16a34a"],
html[data-theme="dark"] .klm-action-radios-container label span[style*="color: #16a34a"] {
  color:#22c55e !important;
}
html[data-theme="dark"] .klm-action-radios-container label span[style*="color:#ea580c"],
html[data-theme="dark"] .klm-action-radios-container label span[style*="color: #ea580c"] {
  color:#f97316 !important;
}
html[data-theme="dark"] .klm-action-radios-container label span[style*="color:#dc2626"],
html[data-theme="dark"] .klm-action-radios-container label span[style*="color: #dc2626"] {
  color:#ef4444 !important;
}
html[data-theme="dark"] .klm-action-radios-container label span[style*="color:#9333ea"],
html[data-theme="dark"] .klm-action-radios-container label span[style*="color: #9333ea"] {
  color:#a855f7 !important;
}
html[data-theme="dark"] .klm-action-radios-container label > div > span:nth-child(2) {
  color:#94a3b8 !important;
}
html[data-theme="dark"] .klm-action-radios-container input[type="radio"] {
  accent-color:#ef4444;
}
.klm-um-button.lock {
  border-color:rgba(245,158,11,.35);
  color:#fbbf24;
  background:rgba(245,158,11,.10);
}
html[data-theme="light"] .klm-um-button.lock {
  color:#92400e;
  background:#fffbeb;
  border-color:#fde68a;
}
.klm-user-manager #klmUmCompanyFilter {
  flex:0 1 25%;
  width:25%;
  min-width:220px;
  max-width:420px;
}
@media (max-width:720px) {
  .klm-user-manager #klmUmCompanyFilter {
    flex:1 1 100%;
    width:100%;
    min-width:0;
    max-width:none;
  }
}
.klm-um-actions {
  flex-wrap:nowrap !important;
  gap:6px !important;
}
.klm-um-button.icon-only {
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 !important;
  display:inline-grid !important;
  place-items:center !important;
  border-radius:12px !important;
  font-size:14px !important;
  line-height:1 !important;
}
.klm-um-button.icon-only:disabled {
  opacity:.45;
}
