/* 平台后台 · 算力商：列表卡片、详情页签、就地改进货价 */
.pf-sup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 10px;
}

.pf-sup-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: var(--r12-surface);
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  cursor: pointer;
  transition: border-color var(--r12-dur-2) var(--r12-ease);
}
.pf-sup-card:hover { border-color: var(--r12-line-strong); }

.pf-sup-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pf-sup-top h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--r12-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sup-status { flex: none; display: flex; gap: 4px; }

.pf-sup-meta { font-size: 12px; line-height: 18px; color: var(--r12-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-sup-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.pf-sup-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.pf-sup-stats span { font-size: 12px; color: var(--r12-muted); white-space: nowrap; }
.pf-sup-stats b { font-size: 13px; font-weight: 600; color: var(--r12-ink); white-space: nowrap; }

.pf-sup-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--r12-error); }

.pf-sup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--r12-line);
  font-size: 12px;
  color: var(--r12-faint);
  min-width: 0;
}
.pf-sup-foot span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-go { flex: none; font-size: 16px; line-height: 1; color: var(--r12-faint); }

.pf-muted { color: var(--r12-muted); font-weight: 400; }

/* 详情页签 */
.pf-detail-tabs {
  display: flex;
  width: 100%;
  height: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-detail-tabs::-webkit-scrollbar { display: none; }
.pf-detail-tabs .seg-btn { flex: 0 0 auto; }

.pf-membership .membership-fill { width: var(--w, 0%); }
.pf-membership .membership-mark.pf-mark-platinum { left: 35%; }
.pf-membership .membership-mark.pf-mark-diamond { left: 100%; }

/* 待确认改价 */
.pf-pending .panel-action { display: flex; align-items: center; gap: 8px; }
.pf-reject { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--r12-muted); }
.pf-reject .input { width: 280px; }

/* 供货模型和进货价 */
.pf-route-model .pf-model-cell,
.pf-model-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pf-model-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.pf-quote-table .pf-model-cell { max-width: 340px; }
.pf-model-name { font-size: 13px; font-weight: 600; color: var(--r12-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-model-id { font-size: 11px; color: var(--r12-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-limits { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--r12-line); font-size: 12px; line-height: 18px; color: var(--r12-muted); }
.pf-limits b { margin-right: 8px; color: var(--r12-ink); font-weight: 600; }
.pf-price { margin-right: 2px; }
.pf-edit-cell { white-space: nowrap; }
.pf-edit-cell .input { width: 92px; height: 24px; margin-right: 4px; }
.pf-edit-cell .btn + .btn { margin-left: 4px; }

/* 账号：平台只管这家的主账号 */
.pf-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-control);
  background: var(--r12-surface-2);
}
.pf-account-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}
.pf-account-main b { font-weight: 600; }
.pf-account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--r12-surface-3);
  color: var(--r12-ink);
  font-size: 13px;
  font-weight: 600;
}
.pf-account-actions { display: flex; gap: 6px; }
.pf-account-note { margin: 8px 0 0; color: var(--r12-muted); font-size: 12px; }
.pf-account-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.pf-account-empty > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-account-empty b { font-size: 13px; font-weight: 600; }

@media (max-width: 1180px) {
  .pf-sup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
