/* report-component.css — reports-unify-v1 (owner 2026-10-24, "都这样干"): one report block for the whole site
   (账户中心 报表, 合伙人 佣金与结算, later the trade page). Layout = release_staging/official-broker-roadmap/mockups/report-component.html.
   Colours = theme tokens; frosted-glass values only through the --glass-* tokens of bigbit-theme-colors.css. */
.bb-report{display:grid;gap:16px;min-width:0;color:var(--bb-theme-ink,#111)}
.bb-report-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.bb-report-head h2{margin:0 auto 0 0;font-size:18px;font-weight:600;line-height:1.3}
.bb-report-chips{display:flex;gap:8px;flex-wrap:wrap}
.bb-report-chip{height:36px;padding:0 14px;border:1px solid var(--bb-theme-line,#e3e3e6);border-radius:999px;background:var(--bb-theme-surface,#fff);color:var(--bb-theme-ink,#111);font:inherit;font-size:13px;cursor:pointer}
.bb-report-chip[aria-pressed=true]{background:var(--bb-theme-inset,#f5f5f7);border-color:var(--bb-theme-ink,#111);font-weight:600}
.bb-report-select{height:36px;padding:0 14px;border:1px solid var(--bb-theme-line,#e3e3e6);border-radius:999px;background:var(--bb-theme-surface,#fff);color:var(--bb-theme-ink,#111);font:inherit;font-size:13px}
.bb-report-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bb-report-tiles[data-count="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}
.bb-report-tiles[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.bb-report-tile{border:1px solid var(--bb-theme-line,#e3e3e6);border-radius:16px;background:var(--bb-theme-surface,#fff);padding:14px 16px;display:grid;gap:4px;min-width:0}
.bb-report-tile span{font-size:12px;color:var(--bb-theme-secondary,#666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-report-tile b{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-report-tile b.up{color:var(--bb-theme-up,#1f9d55)}
.bb-report-tile b.down{color:var(--bb-theme-down,#d64545)}
.bb-report-tile b.dash{color:var(--bb-theme-muted,#9a9a9a);font-weight:500}
.bb-report-tile small{font-size:12px;color:var(--bb-theme-muted,#9a9a9a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-report-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
.bb-report-body[data-blocks="1"]{grid-template-columns:minmax(0,1fr)}
.bb-report-panel{border:1px solid var(--bb-theme-line,#e3e3e6);border-radius:16px;background:var(--bb-theme-surface,#fff);padding:16px;min-width:0;overflow:hidden}
.bb-report-panel h3{margin:0 0 10px;font-size:14px;font-weight:600}
.bb-report-bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;align-items:end;height:160px;padding-top:6px;border-bottom:1px solid var(--bb-theme-line,#e3e3e6)}
.bb-report-bars i{display:block;border-radius:4px 4px 2px 2px;background:var(--bb-theme-up,#1f9d55);min-height:2px}
.bb-report-bars i.down{background:var(--bb-theme-down,#d64545)}
.bb-report-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--bb-theme-muted,#9a9a9a);margin-top:6px;font-variant-numeric:tabular-nums}
.bb-report-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.bb-report-table th{text-align:left;font-weight:500;color:var(--bb-theme-secondary,#666);padding:6px 0;border-bottom:1px solid var(--bb-theme-line,#e3e3e6);font-size:12px}
.bb-report-table td{padding:9px 0;border-bottom:1px solid var(--bb-theme-line,#e3e3e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0}
.bb-report-table th.num,.bb-report-table td.num{text-align:right}
.bb-report-table td.up{color:var(--bb-theme-up,#1f9d55)}
.bb-report-table td.down{color:var(--bb-theme-down,#d64545)}
.bb-report-table-wrap{overflow-x:auto}
.bb-report-donut{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center}
.bb-report-ring{width:120px;height:120px;border-radius:50%;display:grid;place-items:center}
.bb-report-ring b{width:92px;height:92px;border-radius:50%;background:var(--bb-theme-surface,#fff);display:grid;place-items:center;font-size:15px;font-weight:600;text-align:center;line-height:1.2}
.bb-report-ring b small{display:block;font-size:11px;color:var(--bb-theme-secondary,#666);font-weight:400}
.bb-report-legend{display:grid;gap:8px;font-size:13px}
.bb-report-legend div{display:flex;align-items:center;gap:8px;min-width:0}
.bb-report-legend i{width:10px;height:10px;border-radius:50%;background:var(--bb-theme-up,#1f9d55);flex:none}
.bb-report-legend i.down{background:var(--bb-theme-down,#d64545)}
.bb-report-legend i.grey{background:var(--bb-theme-line,#e3e3e6)}
.bb-report-legend b{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:600}
.bb-report-panel-empty{padding:18px 0 6px;color:var(--bb-theme-muted,#9a9a9a);font-size:13px}
/* the one state block: 空期间 / 暂未开放 / 读取失败 */
.bb-report-state{border:1px dashed var(--bb-theme-line,#e3e3e6);border-radius:16px;background:var(--bb-theme-surface,#fff);padding:28px 20px;display:grid;justify-items:center;gap:8px;text-align:center}
.bb-report-state-icon{width:44px;height:44px;border-radius:50%;background:var(--bb-theme-inset,#f5f5f7);display:grid;place-items:center;color:var(--bb-theme-secondary,#666)}
.bb-report-state-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.bb-report-state strong{font-size:15px;font-weight:600}
.bb-report-state p{margin:0;color:var(--bb-theme-secondary,#666);font-size:13px;max-width:34em;line-height:1.6}
.bb-report-state .bb-report-chip{margin-top:4px}
.bb-report-state .bb-report-chip.primary{background:var(--bb-theme-ink,#111);color:var(--bb-theme-surface,#fff);border-color:transparent;font-weight:600}
.bb-report-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--bb-theme-muted,#9a9a9a)}
.bb-report [hidden]{display:none!important}
/* frosted-glass skin: tiles, panels and chips are the avatar menu's capsules; the pressed chip is the current one */
html[data-bigbit-skin=glass] .bb-report :is(.bb-report-tile,.bb-report-panel,.bb-report-state,.bb-report-chip,.bb-report-select){background:var(--glass-bg-soft);border-color:var(--glass-edge-soft);box-shadow:var(--glass-raise)}
html[data-bigbit-skin=glass] .bb-report .bb-report-chip[aria-pressed=true]{background:var(--glass-bg);border-color:var(--glass-edge);box-shadow:var(--glass-press)}
html[data-bigbit-skin=glass] .bb-report .bb-report-state{box-shadow:none;border-style:dashed}
html[data-bigbit-skin=glass] .bb-report .bb-report-state-icon{background:var(--glass-bg)}
html[data-bigbit-skin=glass] .bb-report .bb-report-ring b{background:var(--bb-theme-surface,#fff)}
@media(max-width:760px){
  .bb-report-tiles,.bb-report-tiles[data-count="6"],.bb-report-tiles[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bb-report-body{grid-template-columns:minmax(0,1fr)}
  .bb-report-bars{height:120px}
  .bb-report-tile b{font-size:19px}
}
@media(prefers-reduced-motion:no-preference){.bb-report-chip{transition:box-shadow .15s ease,background-color .15s ease}}
