/* 9Pay 商户平台后台 — 在 admin.css 基础上补充 */
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { font-size: 17px; letter-spacing: -.2px; }
.page-head p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.page-head .toolbar-right { margin-left: auto; }

.mono-sm { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.amount.in { color: var(--green); }
.amount.out { color: var(--red); }
.amount.dim { color: var(--muted); font-weight: 500; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-box { padding: 16px 18px; background: #fff; border: 1px solid #edf2f9; border-radius: 14px; box-shadow: var(--shadow); }
.stat-box .lb { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.stat-box .lb .ic { width: 14px; height: 14px; }
.stat-box .val { margin-top: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.stat-box .val small { margin-left: 3px; font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: 0; }
.stat-box .note { margin-top: 5px; font-size: 10px; color: var(--faint); }
.stat-box .note b { color: #5f728b; font-weight: 600; }
.stat-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 今日汇总条 */
.sum-bar { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 14px; padding: 11px 16px; border-radius: 12px; background: #f4fbf7; border: 1px solid #d5ecdf; border-left: 3px solid #22a06b; }
.sum-bar .sum-title { margin-right: 8px; font-size: 11px; font-weight: 700; color: #1a9b63; white-space: nowrap; }
.sum-bar .sum-item { display: flex; align-items: baseline; gap: 6px; padding: 4px 13px; border-right: 1px dashed #d7e7de; }
.sum-bar .sum-item:last-child { border-right: 0; padding-right: 2px; }
.sum-bar .sum-item span { font-size: 11px; color: #7b8ca3; white-space: nowrap; }
.sum-bar .sum-item b { font-size: 13px; font-weight: 700; color: #1f3550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-bar .sum-item.green b { color: #1a9b63; }
.sum-bar .sum-item.orange b { color: #d9880f; }
.sum-bar .sum-by { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; padding-top: 9px; border-top: 1px dashed #cfe7da; }
.sum-bar .sum-by-title { font-size: 11px; font-weight: 700; color: #1a9b63; white-space: nowrap; margin-right: 2px; }
.sum-bar .sum-mch { padding: 3px 9px; border: 1px solid #dcefe4; border-radius: 8px; background: #fff; font-size: 11px; color: #31465e; white-space: nowrap; }
.sum-bar .sum-mch i { font-style: normal; color: #93a3b8; font-size: 10px; }
.sum-bar .sum-mch b { font-weight: 700; color: #1a9b63; font-variant-numeric: tabular-nums; }

.hero-mini { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 16px; border-radius: 18px; color: #fff; background: radial-gradient(420px 220px at 94% -30%, rgba(255,255,255,.24), transparent 70%), linear-gradient(120deg, #21406e 0%, #2b5796 50%, #3570c9 100%); box-shadow: 0 16px 34px rgba(20, 55, 110, .25); }
.hero-mini .hm-eyebrow { font-size: 9.5px; letter-spacing: 2px; color: rgba(255,255,255,.62); font-weight: 700; }
.hero-mini h2 { margin-top: 7px; font-size: 19px; }
.hero-mini p { margin-top: 5px; font-size: 11.5px; color: rgba(255,255,255,.75); }
.hero-mini .hm-grid { margin-left: auto; display: grid; grid-template-columns: repeat(4, minmax(84px, auto)); gap: 20px; }
.hero-mini .hm-grid span { display: block; font-size: 10px; color: rgba(255,255,255,.62); }
.hero-mini .hm-grid b { display: block; margin-top: 4px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }

.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 10px 2px 0; }
.chart-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar .bar-wrap { flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart-bar .bar-wrap .bar { width: 50%; max-width: 16px; border-radius: 5px 5px 3px 3px; background: linear-gradient(180deg, #6fa8ff, #2f7dfa); min-height: 3px; transition: height .3s ease; }
.chart-bar .bar-wrap .bar.payout { background: linear-gradient(180deg, #ffc96b, #e79a17); }
.chart-bar em { font-size: 9px; color: var(--faint); font-style: normal; white-space: nowrap; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 10.5px; color: var(--faint); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }

.secret-row { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: #f7fbff; border: 1px dashed #d7e6f7; }
.secret-row code { flex: 1; min-width: 0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; color: #3b5170; word-break: break-all; }
.secret-row .lb { flex: 0 0 auto; font-size: 10.5px; color: var(--faint); }

.api-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #0f2036; color: #cfe0f5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10.5px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.api-box b { color: #7fd0ff; font-weight: 600; }
.api-doc { font-size: 12px; color: #4b5f79; line-height: 1.8; }
.api-doc code { padding: 1px 5px; border-radius: 5px; background: #eef4ff; color: #2f6fd0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.api-doc h4 { margin: 14px 0 6px; font-size: 12.5px; color: #253a56; }
.api-doc ul { margin: 0; padding-left: 18px; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 2px 0; font-size: 11.5px; color: var(--muted); }
.pager button { height: 30px; padding: 0 12px; border-radius: 8px; background: #f2f7fd; color: #4b5f79; font-size: 11.5px; font-weight: 600; }
.pager button:disabled { opacity: .4; }
.pager b { color: #2c405c; }

.tbl-note { font-size: 10.5px; color: var(--faint); }
.rate-pill { display: inline-flex; gap: 8px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rate-pill b { color: #42546d; font-weight: 600; }

.formula { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #f6faff; color: #5f728b; font-size: 11px; line-height: 1.7; }
.formula b { color: #2f74f4; }

.kyc-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #edf2f9; border-radius: 13px; background: #fff; }
.kyc-card + .kyc-card { margin-top: 10px; }
.kyc-main { flex: 1; min-width: 0; }
.kyc-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.kyc-meta { margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 10.5px; color: var(--faint); }
.kyc-nums { display: flex; gap: 18px; flex-wrap: wrap; text-align: right; }
.kyc-nums span { display: block; font-size: 9.5px; color: var(--faint); }
.kyc-nums b { display: block; margin-top: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }

.ch-list { display: flex; flex-direction: column; gap: 10px; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #edf2f9; border-radius: 13px; background: #fff; }
.ch-code { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eaf3ff; color: #2f7dfa; flex: 0 0 auto; }
.ch-code .ic { width: 16px; height: 16px; }
.ch-main { flex: 1; min-width: 0; }
.ch-name { font-size: 12.5px; font-weight: 700; }
.ch-sub { margin-top: 3px; font-size: 10.5px; color: var(--faint); }
.ch-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 900px) {
  .stat-strip, .stat-strip.five { grid-template-columns: 1fr 1fr; }
  .hero-mini .hm-grid { grid-template-columns: repeat(2, minmax(88px, auto)); }
  .sum-bar .sum-item { padding: 4px 9px; }
}
