/* v1.1 operator overrides */

/* ── 借贷关系维护页面 ─────────────────────────────────────────── */
.operator-relations-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.operator-relations-frame .page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.operator-relations-frame .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator-relation-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operator-relation-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

/* ── 关闭逾期借款弹窗 ─────────────────────────────────────────── */
.operator-loan-close-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.operator-close-debt-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, .26);
  border-radius: var(--radius-lg, 12px);
  background: rgba(239, 68, 68, .06);
}

.operator-close-debt-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.operator-close-debt-main strong {
  font-size: 20px;
  font-weight: 780;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.operator-close-debt-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  flex: 1 1 260px;
  min-width: 0;
}

.operator-close-debt-side > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.operator-close-debt-side span {
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.operator-close-debt-side strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── 链上校验清单 ─────────────────────────────────────────────── */
.onchain-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onchain-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border, rgba(148, 163, 184, .24));
  border-radius: var(--radius, 10px);
  background: var(--bg-card2, rgba(148, 163, 184, .06));
}

.onchain-check-item.is-pass {
  border-color: rgba(34, 197, 94, .32);
  background: rgba(34, 197, 94, .07);
}

.onchain-check-item.is-block {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(245, 158, 11, .09);
}

.onchain-check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.onchain-check-item.is-pass .onchain-check-mark {
  background: rgba(34, 197, 94, .18);
  color: #15803d;
}

.onchain-check-item.is-block .onchain-check-mark {
  background: rgba(245, 158, 11, .2);
  color: #b45309;
}

.onchain-check-text {
  color: var(--text-primary, #0f172a);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.onchain-check-note {
  margin-top: 2px;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .operator-relation-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .operator-relation-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .operator-close-debt-side {
    grid-template-columns: minmax(0, 1fr);
  }
}
