/* 英德业务绩效进度页 · 暖白风格（与运营看板一致） */

.bp-page .bp-top,
.bp-page .bp-main,
.bp-page .foot {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.bp-page .bp-main {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.bp-page .bp-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  background: var(--panel);
}

.bp-page .bp-link:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.bp-actions {
  margin: 0.35rem 0 0;
}

.bp-actions .export-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.bp-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.bp-cov-card {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.bp-cov-card .name {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.bp-cov-card .val {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.bp-cov-card .sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.bp-cov-card.ok .val { color: var(--good); }
.bp-cov-card.wait .val { color: var(--gold); }

.bp-block {
  margin: 0;
}

.bp-block > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.bp-block > header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.bp-block > header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.bp-detail-head {
  align-items: center !important;
}

.bp-block .table-wrap {
  border: none;
  border-radius: 0;
  background: transparent;
}

.bp-page .table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bp-table th,
.bp-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.bp-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3efe8;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
}

.bp-table td.left,
.bp-table th.left {
  text-align: left;
}

.bp-table tr:hover td {
  background: var(--accent-soft);
}

.bp-table .rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bp-table .score {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bp-table .name-cell {
  font-weight: 600;
}

.bp-chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.bp-chip.bdm {
  color: var(--gold);
  border-color: rgba(161, 98, 7, 0.28);
  background: rgba(161, 98, 7, 0.1);
}

.bp-chip.a {
  color: var(--good);
  border-color: rgba(4, 120, 87, 0.28);
  background: var(--good-soft);
}

.bp-chip.b {
  color: var(--accent-deep);
  border-color: rgba(30, 75, 140, 0.28);
  background: var(--accent-soft);
}

.bp-chip.canyin {
  color: var(--accent-deep);
  border-color: rgba(30, 75, 140, 0.28);
  background: var(--accent-soft);
}

.bp-chip.feican {
  color: var(--warn);
  border-color: rgba(180, 83, 9, 0.28);
  background: var(--warn-soft);
}

.bp-matrix-wrap {
  display: grid;
  gap: 1rem;
}

.bp-matrix-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.bp-matrix-section .bp-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.bp-matrix-scroll {
  overflow: auto;
  max-height: 60vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.bp-matrix-scroll .bp-table {
  border: none;
  margin: 0;
  background: transparent;
}

.bp-matrix-table .bp-metric-name {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.bp-matrix-table .bp-w {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
}

/* 双行表头固定 */
.bp-matrix-scroll thead th {
  position: sticky;
  z-index: 3;
  background: #f3efe8;
  box-shadow: 0 1px 0 var(--line);
}

.bp-matrix-scroll thead tr:first-child th {
  top: 0;
  z-index: 4;
}

.bp-matrix-scroll thead tr.bp-subhead th {
  top: 3.25rem;
  z-index: 3;
}

/* BD 列左右滚动时固定 */
.bp-matrix-scroll .bp-sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fffdf9;
  box-shadow: 1px 0 0 var(--line);
  min-width: 4.5rem;
}

.bp-matrix-scroll thead .bp-sticky-col {
  z-index: 5;
  background: #f3efe8;
}

.bp-matrix-scroll tbody tr:hover .bp-sticky-col {
  background: var(--panel-2);
}

.bp-matrix th.metric {
  min-width: 72px;
}

.bp-cell {
  min-width: 64px;
}

.bp-cell.ok {
  background: var(--good-soft);
  color: var(--good);
  font-weight: 600;
}

.bp-cell.wait {
  background: var(--warn-soft);
  color: var(--warn);
}

.bp-cell.fail {
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 700;
}

.bp-person-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bp-person-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.bp-person-bar h3 {
  margin: 0;
  font-size: 1rem;
}

.bp-person-bar .meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.bp-person-kpi {
  text-align: right;
}

.bp-person-kpi .label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.bp-person-kpi .val {
  margin: 0;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
}

.bp-empty {
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.bp-page .foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .bp-page .bp-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
}

.bp-cell.rg-0, .bp-cell.rg-1 { background: rgba(185, 28, 28, 0.12); color: #b91c1c; font-weight: 700; }
.bp-cell.rg-2, .bp-cell.rg-3 { background: rgba(217, 119, 6, 0.12); color: #c2410c; font-weight: 650; }
.bp-cell.rg-4, .bp-cell.rg-5 { background: rgba(161, 98, 7, 0.1); color: #a16207; font-weight: 650; }
.bp-cell.rg-6, .bp-cell.rg-7 { background: rgba(21, 128, 61, 0.1); color: #15803d; font-weight: 650; }
.bp-cell.rg-8, .bp-cell.rg-9, .bp-cell.rg-10 { background: rgba(22, 101, 52, 0.12); color: #166534; font-weight: 700; }

/* 子模块切换 */
.bp-tabs {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto 0.75rem;
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.bp-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.bp-tab.active {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

.bp-pane[hidden] {
  display: none !important;
}

.bp-pane.active {
  display: grid;
  gap: 1rem;
}

.bp-page .bp-tabs + .bp-main {
  padding-top: 0;
}
