/* 恒盛电讯协同中台 v7.0 - 供应商直购、双轨保证金授信与 V10 投标风控样式 */
.v7-quota-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 9px 16px;
  border-bottom: 1px solid #334155;
}
.v7-quota-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.v7-vip-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
}
.v7-vip-pill.strategic {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.v7-fx-pill {
  background: rgba(255,255,255,0.12);
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 700;
}
.v7-quota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 12px;
  border-radius: 8px;
}
.v7-qbox span {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}
.v7-qbox strong {
  font-size: 14.5px;
  font-weight: 900;
}
.v7-q-cyan { color: #38bdf8; }
.v7-q-gold { color: #fde047; }
.v7-q-green { color: #4ade80; }

.v7-alert-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1.5px solid #ef4444;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v7-alert-btn.active {
  background: #dc2626;
  color: #fff;
  border-color: #991b1b;
}
.v7-alert-cnt {
  background: #dc2626;
  color: #fff;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 11px;
}
.v7-alert-btn.active .v7-alert-cnt {
  background: #fff;
  color: #dc2626;
}

.v7-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 1280px) {
  .v7-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .v7-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .v7-quota-grid { grid-template-columns: 1fr; gap: 5px; }
}
.v7-kpi-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 12px;
}
.v7-kpi-lbl {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.v7-kpi-val {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}
.v7-kpi-sub {
  font-size: 11px;
  color: #475569;
  margin-top: 3px;
}

.v7-dual-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  .v7-dual-grid { grid-template-columns: 1fr; }
}
.v7-bar-row {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.v7-bar-row.warn {
  background: #fff5f5;
  border-color: #fca5a5;
}
.v7-bar-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  margin-top: 4px;
}
.v7-bar-lbl {
  width: 88px;
  text-align: right;
  color: #475569;
  font-weight: 700;
  flex-shrink: 0;
}
.v7-bar-track {
  flex: 1;
  height: 13px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.v7-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.v7-bar-val {
  width: 130px;
  font-family: Consolas, monospace;
  font-weight: 800;
  flex-shrink: 0;
}

.v7-warn-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
  background: #dc2626;
  color: #fff;
}
.v7-ok-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
}
.v7-row-warn td {
  background: #fff5f5 !important;
}
.v7-rank1-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
  font-family: Consolas, monospace;
}

.v7-direct-buy-btn {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.v7-direct-buy-btn.proc {
  background: #f59e0b;
  cursor: not-allowed;
}
.v7-direct-buy-btn.sold {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}
.v7-bulk-ta {
  width: 100%;
  height: 76px;
  font-family: Consolas, monospace;
  font-size: 12.5px;
  padding: 8px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
}
