/*
 * VMOS agent management: fixed-width columns with explicit horizontal scroll.
 * Scoped overrides intentionally supersede the legacy OTP table's
 * "overflow-x: hidden" and "width: 100% !important" rules.
 */
.bank-otp-table-card.vmos-agent-stable-table .ant-table-content {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.bank-otp-table-card.vmos-agent-stable-table .ant-table table {
  min-width: 1360px !important;
  width: 1360px !important;
  table-layout: fixed !important;
}
.vmos-agent-stable-table .ant-table-tbody > tr > td {
  vertical-align: middle;
}
.vmos-agent-health,
.vmos-agent-readiness,
.vmos-agent-proxy-cell {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.vmos-agent-health .ant-tag,
.vmos-agent-readiness .ant-tag {
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  padding: 0 6px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 11px;
  line-height: 20px;
}
.vmos-agent-readiness small,
.vmos-agent-proxy-state {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ui-text-secondary);
  font-size: 11px;
  line-height: 16px;
}
.vmos-agent-proxy-state.is-error {
  color: var(--ui-status-danger-text);
}
.vmos-agent-proxy-cell .ant-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding-inline: 10px;
  font-weight: 600;
}
.vmos-agent-stable-table .vmos-agent-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 3px;
  row-gap: 3px;
}
.vmos-agent-stable-table .vmos-agent-row-actions .ant-btn {
  max-width: none;
  padding-inline: 5px;
  white-space: nowrap;
}
.vmos-agent-stable-table .ant-table-content::-webkit-scrollbar {
  height: 9px;
}
.vmos-agent-stable-table .ant-table-content::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--ui-border);
}
@media (max-width: 760px) {
  .vmos-agent-stable-table .bank-otp-list-heading {
    gap: 5px;
    padding-block: 10px;
  }
}

.vmos-agent-id-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.vmos-agent-id-cell > .ant-typography {
  margin: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vmos-agent-id-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.vmos-agent-id-actions .ant-btn {
  padding-inline: 0 !important;
  flex-shrink: 0;
  height: 24px;
  font-size: 11px;
  font-weight: 600;
}
.vmos-agent-id-actions .ant-tag {
  min-width: 0;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-inline-end: 0;
  font-size: 11px;
}
.vmos-agent-stable-table .ant-table-tbody > tr > td {
  height: 72px;
}
.bank-vmos-native-proxy-modal .bank-vmos-proxy-alert {
  margin: 12px 0 15px;
}
.bank-vmos-native-proxy-modal .bank-vmos-proxy-current {
  margin: 0 0 16px;
}
.bank-vmos-native-proxy-modal .bank-vmos-proxy-form .ant-form-item {
  margin-bottom: 15px;
}
.bank-vmos-native-proxy-modal .bank-vmos-proxy-form .ant-form-item-extra {
  margin-top: 6px;
}
.bank-vmos-native-proxy-modal .bank-vmos-proxy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  border-top: 1px solid var(--ui-border-subtle);
  padding-top: 12px;
}

/* Prevent ad-hoc proxy widgets surviving in stale client sessions. */
#jinpay-native-vmos-proxy-shortcut, .jp-vmos-proxy-inline { display: none !important; }
