/* 门店盈亏仓：仅作用于 .pl-page，不改驾驶舱 / 大屏 / 看板 */
.pl-page {
  --pl-navy: #1d1d1f;
  --pl-navy2: #1d1d1f;
  --pl-blue: #0071e3;
  --pl-green: #248a3d;
  --pl-green-bg: #e8f5ea;
  --pl-red: #c43e3e;
  --pl-red-bg: #f8e8e8;
  --pl-orange: #a15c00;
  --pl-orange-bg: #f8f1e7;
  --pl-ink: #1d1d1f;
  --pl-sub: #6e6e73;
  --pl-line: rgba(0, 0, 0, 0.08);
  --pl-card: #ffffff;
  --pl-bg: #f5f5f7;
  background: var(--pl-bg);
  color: var(--pl-ink);
  font-size: 14px;
  min-height: calc(100vh - 72px);
  padding-bottom: 48px;
}
.pl-hero {
  background: transparent;
  color: var(--pl-ink);
  padding: 32px 0 8px;
  position: relative;
  overflow: visible;
}
.pl-hero::after,
.pl-hero::before { content: none; }
.pl-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; margin: 0; line-height: 1.15; }
.pl-hero .sub { margin-top: 10px; font-size: 17px; color: var(--pl-sub); line-height: 1.5; max-width: 46em; }
.pl-hero .tag { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.pl-hero .tag span {
  background: #fff;
  border: 1px solid var(--pl-line);
  color: var(--pl-sub);
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 12px;
}
.pl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pl-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.pl-kpi {
  background: var(--pl-card);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: none;
  border: 1px solid var(--pl-line);
}
.pl-kpi .label { font-size: 12px; color: var(--pl-sub); }
.pl-kpi .num { font-size: 28px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.pl-kpi .note { font-size: 11px; color: var(--pl-sub); margin-top: 4px; }
.pl-kpi.g .num { color: var(--pl-green); }
.pl-kpi.r .num { color: var(--pl-red); }
.pl-kpi.b .num { color: var(--pl-navy2); }
.pl-kpi .bar { height: 5px; border-radius: 3px; margin-top: 10px; background: #eef1f6; overflow: hidden; }
.pl-kpi .bar i { display: block; height: 100%; border-radius: 3px; }
.pl-section { margin-top: 28px; }
.pl-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pl-sec-head h2 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.pl-sec-head .en { font-size: 11px; color: #6e6e73; letter-spacing: 0.06em; text-transform: uppercase; }
.pl-sec-head .hint { margin-left: auto; font-size: 12px; color: var(--pl-sub); }
.pl-card {
  background: var(--pl-card);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: none;
  border: 1px solid var(--pl-line);
}
.pl-grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.pl-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pl-grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pl-page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pl-page th {
  background: #f5f5f7; color: var(--pl-sub); font-weight: 500; text-align: left;
  padding: 9px 10px; border-bottom: 1px solid var(--pl-line); white-space: nowrap;
}
.pl-page td { padding: 8px 10px; border-bottom: 1px solid #f0f2f7; font-variant-numeric: tabular-nums; }
.pl-page tr:last-child td { border-bottom: none; }
.pl-page tbody tr:hover { background: #f5f5f7; }
.pl-page .t-r { text-align: right; }
.pl-page .t-c { text-align: center; }
.pl-page .num-g { color: var(--pl-green); font-weight: 700; }
.pl-page .num-r { color: var(--pl-red); font-weight: 700; }
.pl-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.pl-pill.g { background: var(--pl-green-bg); color: var(--pl-green); }
.pl-pill.r { background: var(--pl-red-bg); color: var(--pl-red); }
.pl-pill.o { background: var(--pl-orange-bg); color: #b45309; }
.pl-pill.b { background: #e8eefb; color: var(--pl-navy2); }
.pl-bar-row { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: 12px; padding: 7px 0; }
.pl-bar-row .lbl { font-size: 12.5px; color: var(--pl-sub); text-align: right; }
.pl-bar-row .track { height: 10px; background: #ececef; border-radius: 999px; overflow: hidden; }
.pl-bar-row .track i { display: block; height: 100%; border-radius: 999px; }
.pl-bar-row .val { font-weight: 700; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.pl-bg-red { background: linear-gradient(90deg, #f87171, #ef4444); }
.pl-bg-green { background: linear-gradient(90deg, #34d399, #10b981); }
.pl-region-card {
  border-radius: 22px; padding: 16px 18px; border: 1px solid var(--pl-line);
  background: var(--pl-card); display: flex; flex-direction: column; gap: 10px;
}
.pl-region-card .rname { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-region-card .donut-wrap { display: flex; align-items: center; gap: 14px; }
.pl-donut-info { flex: 1; font-size: 12px; color: var(--pl-sub); line-height: 1.8; }
.pl-donut-info b { font-size: 13px; color: var(--pl-ink); }
.pl-region-card.hot { border-color: rgba(196, 62, 62, 0.28); background: #fff; }
.pl-region-card.good { border-color: rgba(36, 138, 61, 0.28); background: #fff; }
.pl-donut { position: relative; width: 86px; height: 86px; flex-shrink: 0; }
.pl-donut .center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.pl-donut .center b { font-size: 17px; }
.pl-donut .center span { font-size: 10px; color: var(--pl-sub); }
.pl-callout { border-radius: 16px; padding: 14px 16px; font-size: 13px; line-height: 1.8; }
.pl-callout.warn { background: var(--pl-orange-bg); border: 1px solid transparent; color: #7c4a03; }
.pl-callout.danger { background: var(--pl-red-bg); border: 1px solid transparent; color: #8f1d1d; }
.pl-callout.ok { background: var(--pl-green-bg); border: 1px solid transparent; color: #0b6e4f; }
.pl-foot { margin-top: 34px; color: #6e6e73; font-size: 11.5px; line-height: 1.9; border-top: 1px solid var(--pl-line); padding-top: 16px; }
.pl-legend { display: flex; gap: 16px; font-size: 12px; color: var(--pl-sub); margin-top: 8px; flex-wrap: wrap; }
.pl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pl-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pl-filter select, .pl-filter input[type="text"] {
  padding: 8px 12px; border: 1px solid var(--pl-line); border-radius: 980px; font-size: 13px;
  font-family: inherit; background: #fff; color: var(--pl-ink); outline: none;
}
.pl-filter select:focus, .pl-filter input:focus { border-color: var(--pl-blue); }
.pl-filter input[type="text"] { width: 200px; }
.pl-filter .cnt { margin-left: auto; font-size: 12px; color: var(--pl-sub); }
.pl-filter .cnt b { color: var(--pl-navy2); font-size: 14px; }
.pl-sort-btn, .pl-dl-btn {
  padding: 7px 14px; border: 1px solid var(--pl-line); border-radius: 980px; font-size: 13px;
  background: #fff; cursor: pointer; color: var(--pl-ink); font-family: inherit;
}
.pl-sort-btn:hover, .pl-dl-btn:hover { border-color: var(--pl-blue); color: var(--pl-blue); }
.pl-sort-btn.active { background: #eaf3fb; border-color: var(--pl-blue); color: var(--pl-blue); font-weight: 600; }
.pl-table-scroll { max-height: 560px; overflow: auto; border: 1px solid var(--pl-line); border-radius: 16px; }
.pl-table-scroll table thead th { position: sticky; top: 0; z-index: 1; background: #f5f5f7; }
.pl-table-scroll td { white-space: nowrap; }
.pl-row-abn td { background: #fffdf7; }
.pl-page th.sortable { cursor: pointer; user-select: none; }
.pl-page th.sortable:hover { color: var(--pl-blue); }
.pl-page th.sortable .arr { font-size: 10px; color: #9db3d0; margin-left: 2px; }
.pl-mini-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pl-mini-filter .mf-label { font-size: 12px; color: var(--pl-sub); }
.pl-mini-filter select {
  padding: 5px 10px; font-size: 12px; border: 1px solid var(--pl-line);
  border-radius: 8px; background: #fff; color: var(--pl-ink); outline: none; cursor: pointer;
}
.app-shell.pl-shell { min-height: 100vh; background: #f5f5f7; }
.app-shell.pl-shell .main { padding: 0; max-width: none; }
.hub-grid.hub-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1100px) {
  .hub-grid.hub-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pl-kpis, .pl-grid2, .pl-grid4, .pl-grid5 { grid-template-columns: 1fr; }
  .pl-hero { padding: 24px 0 8px; }
  .pl-wrap { padding: 0 14px; }
  .pl-filter input[type="text"] { width: 100%; }
  .pl-kpi .num { font-size: 24px; }
}
.pl-chg-card { border-radius: 22px; padding: 16px 18px 10px; background: var(--pl-card); box-shadow: none; border: 1px solid var(--pl-line); }
.pl-chg-card.up { border: 1px solid rgba(36, 138, 61, 0.28); }
.pl-chg-card.down { border: 1px solid rgba(196, 62, 62, 0.28); }
.pl-chg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pl-chg-head .arrow { font-size: 22px; line-height: 1; }
.pl-chg-head .ttl { font-size: 15px; font-weight: 700; }
.pl-chg-card.up .ttl { color: var(--pl-green); }
.pl-chg-card.down .ttl { color: var(--pl-red); }
.pl-chg-head .sub { font-size: 12px; color: var(--pl-sub); font-weight: 400; margin-left: 6px; }
.pl-chg-head .sum { font-size: 12px; color: var(--pl-sub); margin-top: 2px; }
.pl-chg-card .pl-table-scroll { max-height: 340px; border: 0; border-radius: 8px; }
.pl-pill.chg-up { background: #e8f5ea; color: #248a3d; border: 1px solid transparent; }
.pl-pill.chg-down { background: #f8e8e8; color: #c43e3e; border: 1px solid transparent; }

.pl-chg-stack { display: grid; grid-template-columns: 1fr; gap: 16px; }
