/* 咸鱼电竞设计系统 · 10-reports
   业主 2026-10-11：报备审核按全站预览 v7 落地（预览 css/07-dashboard.css .row / .queue + css/10-pages.css 手机两行式）。
   不分层 + .xy-rep / #reportSheet 作用域：stage6.css、tailwind.css 没分层，会压过 @layer xy.*，这里同样不分层才能赢。 */

/* ── 页面外壳 ── */
.xy-rep.reports-page { display: grid; gap: var(--s-6); min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.xy-rep .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.xy-rep .xy-lead-actions { display: none; }
.xy-rep .rep-board { display: grid; min-width: 0; }
.xy-rep .rep-board > .section-head.xy-sec { padding: 4px 4px 0; margin-bottom: 10px; }

/* ── 状态 tabs（同派单页 .xy-tabs） ── */
.xy-rep .xy-tabs { position: relative; display: flex; gap: var(--s-5); margin: 0; padding: 0 4px; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.xy-rep .xy-tabs::-webkit-scrollbar { display: none; }
.xy-rep .xy-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; min-height: 44px; margin: 0; padding: 0 2px;
  border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 13.5px; font-weight: 400; color: var(--text-3); white-space: nowrap; cursor: pointer;
}
.xy-rep .xy-tab:hover { color: var(--text-1); background: none; }
.xy-rep .xy-tab[aria-selected="true"] { color: var(--text-1); font-weight: 600; }
.xy-rep .xy-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.xy-rep .xy-tab .num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); font-size: 12px; background: var(--bg-raised); color: var(--text-3); }
.xy-rep .xy-tab[aria-selected="true"] .num { background: var(--accent-tint); color: var(--accent); }

/* ── 工具条：全选 + 搜索 + 类型分段 ── */
.xy-rep .rep-tools { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px 4px; }
.xy-rep .rep-all { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; font-size: 13px; color: var(--text-3); white-space: nowrap; cursor: pointer; }
.xy-rep .rep-search { width: min(280px, 100%); }
.xy-rep .rep-search .searchbar { display: flex; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.xy-rep .rep-search .searchbox {
  position: relative; flex: 1; display: flex; align-items: center; height: 36px; min-height: 36px; margin: 0; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline);
}
.xy-rep .rep-search .searchbox:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(244, 179, 207, .16); }
.xy-rep .rep-search .searchbox svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; margin: 0; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.xy-rep .rep-search .searchbox input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 0 0 24px; border: 0; background: none; box-shadow: none; outline: 0; color: var(--text-1); font-size: 13px; }
.xy-rep .rep-search .searchbox input::placeholder { color: var(--text-4); }
.xy-rep .rep-search .searchbar > :not(.searchbox) { display: none; }
.xy-rep .rep-seg { display: inline-flex; margin-left: auto; padding: 3px; border-radius: var(--r-md); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
.xy-rep .rep-seg button {
  height: 32px; min-height: 32px; margin: 0; padding: 0 16px; border: 0; border-radius: calc(var(--r-md) - 3px); background: none; box-shadow: none;
  font-size: 13px; font-weight: 400; color: var(--text-3); white-space: nowrap; cursor: pointer;
}
.xy-rep .rep-seg button:hover { color: var(--text-1); background: none; }
/* 选中的底块画在 ::before 上：切换时只让底块从旧位置滑过来，字不动（宝宝 11-02「左右动的居然是中间的文字」） */
.xy-rep .rep-seg button { position: relative; isolation: isolate; }
.xy-rep .rep-seg button[aria-pressed="true"] { color: var(--text-1); font-weight: 600; }
.xy-rep .rep-seg button[aria-pressed="true"]::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: -1; border-radius: inherit; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--hairline-strong); }

/* ── 勾选框（预览 .check） ── */
.xy-rep .rep-check { position: relative; display: inline-grid; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.xy-rep .rep-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.xy-rep .rep-check > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink-400); transition: background var(--t-fast), box-shadow var(--t-fast); pointer-events: none; }
.xy-rep .rep-check > span svg { width: 13px; height: 13px; color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: opacity var(--t-fast), transform var(--t-fast); }
.xy-rep .rep-check input:checked + span { background: var(--accent); box-shadow: none; }
.xy-rep .rep-check input:checked + span svg { opacity: 1; transform: none; }
.xy-rep .rep-check input:indeterminate + span { background: var(--accent); box-shadow: none; }
.xy-rep .rep-check input:indeterminate + span::after { content: ""; width: 10px; height: 2px; border-radius: 1px; background: var(--accent-ink); }
.xy-rep .rep-check input:indeterminate + span svg { display: none; }
.xy-rep .rep-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.xy-rep .rep-check input:disabled + span { opacity: .45; }

/* ── 队列：一单一行卡 ── */
.xy-rep .rep-queue { display: grid; gap: 10px; container-type: inline-size; }
.xy-rep .rep-row {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: var(--s-5);
  padding-left: 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 236, 245, .03), transparent 70%), var(--bg-surface);
  box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(255, 228, 240, .05), 0 10px 24px -18px rgba(0, 0, 0, .8);
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.xy-rep .rep-row:hover { background: linear-gradient(180deg, rgba(255, 236, 245, .045), transparent 70%), var(--bg-raised); transform: translateY(-1px); }
.xy-rep .rep-row.is-on { box-shadow: inset 0 1px 0 rgba(255, 240, 247, .05), 0 0 0 1px rgba(244, 179, 207, .3); }
.xy-rep .rep-row.is-picked { background: linear-gradient(180deg, rgba(244, 179, 207, .07), transparent 80%), var(--bg-surface); box-shadow: 0 0 0 1px rgba(244, 179, 207, .26); }
.xy-rep .rep-dot { display: grid; place-items: center; width: 20px; height: 20px; }
.xy-rep .rep-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-500); }
.xy-rep .rep-open {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(96px, 1fr) 104px 96px 16px; align-items: center; gap: var(--s-5);
  width: 100%; min-width: 0; min-height: 76px; height: auto; margin: 0; padding: 16px 20px 16px 0; border: 0; border-radius: 0 18px 18px 0;
  background: none; box-shadow: none; color: var(--text-1); font: inherit; font-weight: 400; text-align: left; cursor: pointer;
}
.xy-rep .rep-open:hover { background: none; }
.xy-rep .rep-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.xy-rep .rep-main { display: grid; gap: 5px; min-width: 0; }
.xy-rep .rep-main strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.xy-rep .rep-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--text-4); }
.xy-rep .rep-kind { font-size: 12px; color: var(--sky-400); white-space: nowrap; }
.xy-rep .rep-kind.is-gift { color: var(--accent); }
.xy-rep .rep-kind::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.xy-rep .rep-people { display: grid; gap: 3px; min-width: 0; font-size: 13px; color: var(--text-1); }
.xy-rep .rep-people > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xy-rep .rep-people em { margin-right: 6px; font-style: normal; font-size: 11.5px; color: var(--text-4); }
.xy-rep .rep-amount { display: grid; justify-items: end; gap: 3px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.xy-rep .rep-amount small { font-family: var(--font-ui); font-size: 11.5px; font-weight: 400; color: var(--text-4); }
.xy-rep .rep-tail { display: grid; justify-items: end; gap: 5px; min-width: 0; }
.xy-rep .rep-tail small { overflow: hidden; max-width: 100%; font-size: 11.5px; color: var(--text-4); text-overflow: ellipsis; white-space: nowrap; }
.xy-rep .rep-meta { display: none; }
.xy-rep .rep-go { width: 16px; height: 16px; color: var(--text-4); }

/* ── 状态徽章 ── */
:is(.xy-rep, #reportSheet) .rep-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-raised); color: var(--text-3);
}
:is(.xy-rep, #reportSheet) .rep-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
:is(.xy-rep, #reportSheet) .rep-badge.is-warn { background: var(--st-warn-tint); color: var(--st-warn); }
:is(.xy-rep, #reportSheet) .rep-badge.is-brand { background: var(--accent-tint); color: var(--accent); }
:is(.xy-rep, #reportSheet) .rep-badge.is-ok { background: var(--st-ok-tint); color: var(--st-ok); }

/* ── 空态 / 脚注 / 分页 ── */
.xy-rep .rep-state { padding: 36px 12px; border-radius: 18px; background: var(--bg-surface); text-align: center; font-size: 13px; color: var(--text-4); }
.xy-rep .rep-state .ghost { margin-left: 8px; }
.xy-rep .rep-foot { margin: 0; padding: var(--s-4) 4px 0; text-align: right; font-size: 12.5px; color: var(--text-4); }
.xy-rep .report-pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 12px; font-size: 12.5px; color: var(--text-3); }

/* ── 批量条：勾选后底部浮出（预览 .batchbar） ── */
.xy-rep .rep-batchbar {
  position: fixed; left: calc(50% + 124px); bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 10px;
  width: min(620px, calc(100vw - 296px)); padding: 10px 10px 10px 20px; border-radius: var(--r-lg);
  background: var(--bg-raised); box-shadow: 0 0 0 1px var(--hairline-strong), 0 22px 48px -16px rgba(0, 0, 0, .85);
  transform: translateX(-50%); animation: rep-bar-in var(--t-base, .2s) var(--ease-out) both;
}
.xy-rep .rep-batchbar[hidden] { display: none !important; }
.xy-rep .rep-batch-text { display: grid; flex: 1; min-width: 0; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.xy-rep .rep-batch-text small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.xy-rep .rep-batchbar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.xy-rep .rep-batchbar button svg { width: 15px; height: 15px; }
.xy-rep .rep-batchbar button.ghost { background: none; color: var(--text-2); }
.xy-rep .rep-batchbar button.ghost:hover { background: var(--bg-hover); color: var(--text-1); }
.xy-rep .rep-batchbar button.primary { background: var(--accent); color: var(--accent-ink); }
.xy-rep .rep-batchbar button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.xy-rep .rep-batchbar button:disabled { opacity: .45; cursor: not-allowed; }
body:has(.xy-rep .rep-batchbar:not([hidden])) .xy-rep.reports-page { padding-bottom: 88px; }
@keyframes rep-bar-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ── 详情抽屉：桌面右侧浮动卡、手机底部抽屉（预览 #drawer） ── */
#reportSheetBackdrop.report-sheet-backdrop {
  position: fixed; inset: 0; z-index: 240; display: block; background: rgba(4, 5, 8, .62);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease-out), visibility 0s linear .2s;
}
#reportSheetBackdrop.report-sheet-backdrop.show { opacity: 1; visibility: visible; transition: opacity .2s var(--ease-out); }
#reportSheet.report-sheet {
  position: fixed; top: 12px; right: 12px; bottom: 12px; left: auto; z-index: 241; display: flex; flex-direction: column;
  width: min(500px, calc(100vw - 24px)) !important; max-width: none !important; height: auto; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 20px; background: var(--bg-surface); overflow: hidden;
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 30px 80px -20px rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: transform .26s var(--ease-out), opacity .2s var(--ease-out), visibility 0s linear .26s;
}
#reportSheet.report-sheet.show { opacity: 1; visibility: visible; transform: none; transition: transform .26s var(--ease-out), opacity .2s var(--ease-out); }
#reportSheet .report-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: 0 0 auto; min-height: 0; padding: 22px 20px 16px 24px; border-bottom: 1px solid var(--hairline); background: none; }
#reportSheet .report-sheet-heading { display: grid; gap: 8px; min-width: 0; }
#reportSheet .report-sheet-heading h3 { margin: 0; overflow: hidden; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text-1); text-overflow: ellipsis; white-space: nowrap; }
#reportSheet .report-sheet-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12.5px; color: var(--text-4); }
#reportSheet .report-sheet-sub .num { font-family: var(--font-num); }
#reportSheet .report-sheet-sub .rep-kind { color: var(--sky-400); }
#reportSheet .report-sheet-sub .rep-kind.is-gift { color: var(--accent); }
#reportSheet .report-sheet-sub .rep-kind::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
#reportSheet #reportSheetClose { display: grid; place-items: center; flex: 0 0 auto; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--text-3); }
#reportSheet #reportSheetClose:hover { background: var(--bg-hover); color: var(--text-1); }
#reportSheet .report-sheet-body { flex: 1 1 auto; min-height: 0; padding: 20px 24px 0; overflow: auto; overscroll-behavior: contain; }

#reportSheet .rd { display: grid; gap: 22px; }
#reportSheet .rd-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
#reportSheet .rd-big { font-family: var(--font-num); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--text-1); }
#reportSheet .rd-big .cur { margin-right: 2px; font-size: 18px; font-weight: 500; }
#reportSheet .rd-hero-meta { font-size: 13px; color: var(--text-3); }
#reportSheet .rd-sec { display: grid; gap: 10px; min-width: 0; }
#reportSheet .rd-sec > h4 { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
#reportSheet .rd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
#reportSheet .rd-steps li { display: grid; gap: 3px; padding-top: 12px; border-top: 3px solid var(--ink-700); }
#reportSheet .rd-steps li strong { font-size: 13px; font-weight: 600; color: var(--text-3); }
#reportSheet .rd-steps li span { font-size: 12px; color: var(--text-4); }
#reportSheet .rd-steps li.is-done { border-top-color: var(--st-ok); }
#reportSheet .rd-steps li.is-done strong { color: var(--text-2); }
#reportSheet .rd-steps li.is-now { border-top-color: var(--accent); }
#reportSheet .rd-steps li.is-now strong { color: var(--text-1); }
#reportSheet .rd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: 14px; background: var(--hairline); box-shadow: 0 0 0 1px var(--hairline); }
#reportSheet .rd-fields > div { display: grid; gap: 4px; min-width: 0; padding: 12px 16px; background: var(--bg-surface); }
#reportSheet .rd-fields > .full { grid-column: 1 / -1; }
#reportSheet .rd-fields dt { font-size: 12px; color: var(--text-4); }
#reportSheet .rd-fields dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text-1); overflow-wrap: anywhere; }
#reportSheet .rd-fields > .full:last-child dd { font-weight: 500; }
#reportSheet .rd-split { display: grid; gap: 12px; }
#reportSheet .rd-split-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); }
#reportSheet .rd-track { height: 6px; overflow: hidden; border-radius: 3px; background: var(--ink-750); }
#reportSheet .rd-track i { display: block; height: 100%; border-radius: 3px; background: var(--ink-500); }
#reportSheet .rd-track i.is-player { background: #8f8cf0; }
#reportSheet .rd-track i.is-staff { background: #e07aa8; }
#reportSheet .rd-track i.is-shop { background: var(--ink-400); }
#reportSheet .rd-split-row b { min-width: 64px; text-align: right; font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--text-1); }
#reportSheet .rd-proof { display: block; width: 120px; height: 90px; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-md); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); cursor: zoom-in; }
#reportSheet .rd-proof img { width: 100%; height: 100%; object-fit: cover; }
#reportSheet .rd-log { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#reportSheet .rd-log li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
#reportSheet .rd-log li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-500); }
#reportSheet .rd-log li:last-child::before { background: var(--accent); }
#reportSheet .rd-actions {
  position: sticky; bottom: 0; z-index: 1; display: flex; gap: 10px; margin: 0 -24px; padding: 14px 24px 18px;
  border-top: 1px solid var(--hairline); background: var(--bg-surface);
}
#reportSheet .rd-actions button {
  display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; height: 44px; min-height: 44px; margin: 0; padding: 0 12px;
  border: 0; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: none;
}
#reportSheet .rd-actions button svg { width: 15px; height: 15px; }
#reportSheet .rd-actions button.primary { flex-grow: 1.6; background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -8px rgba(244, 179, 207, .55); }
#reportSheet .rd-actions button.primary:hover { background: var(--accent-hover); }
#reportSheet .rd-actions button.secondary, #reportSheet .rd-actions button.ghost { background: var(--bg-raised); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
#reportSheet .rd-actions button.danger { background: none; color: var(--rose-400); box-shadow: inset 0 0 0 1px rgba(242, 143, 152, .4); }
#reportSheet .rd-actions button.danger:hover { background: rgba(242, 143, 152, .12); }
#reportSheet .rd > :last-child:not(.rd-actions) { margin-bottom: 24px; }

/* ── 桌面窄屏：顶栏还在，批量条跟着内容区居中 ── */
@media (max-width: 1180px) {
  .xy-rep .rep-open { grid-template-columns: minmax(0, 2fr) minmax(88px, 1fr) 96px 92px 16px; gap: var(--s-4); }
}

/* ── 平板 / 手机（预览 979px 断点：顶栏没了，主操作回到页首右上角） ── */
@media (max-width: 979px) {
  .xy-rep.reports-page { gap: 18px; }
  .xy-rep .xy-lead { position: relative; }
  .xy-rep .xy-lead-actions { display: flex; }
  /* 咸鱼 2026-10-27：两个按钮以内浮在标题右上角；陪玩管理店长有三个（店规 / 附加标签 / 签发邀请码）放不下，留在标题下面单独一行 */
  .xy-rep .xy-lead-actions:not(:has(> button:nth-child(3))) { position: absolute; top: 4px; right: 0; left: auto; width: auto !important; }
  .xy-rep .xy-lead-actions:has(> button:nth-child(3)) { gap: 8px; }
  .xy-rep .xy-lead-actions > button { flex: none !important; width: auto !important; }
  .xy-rep .rep-batchbar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* 业主 2026-10-12：底栏取消，批量条贴底 */ width: auto; transform: none; animation-name: rep-bar-in-m; }
  @keyframes rep-bar-in-m { from { opacity: 0; transform: translateY(16px); } }
}

/* 队列本身窄于 620px：拍板版手机两行式 —— 标题 + 金额 / 人员 · 状态 */
@container (max-width: 620px) {
  .xy-rep .rep-row { align-items: start; column-gap: 12px; padding-left: 14px; border-radius: var(--r-md); }
  .xy-rep .rep-row > .rep-check, .xy-rep .rep-row > .rep-dot { margin-top: 13px; }
  .xy-rep .rep-open {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "meta meta"; gap: 7px 12px;
    min-height: 0; padding: 12px 14px 12px 0; border-radius: 0 var(--r-md) var(--r-md) 0;
  }
  .xy-rep .rep-main { grid-area: main; gap: 4px; }
  .xy-rep .rep-main strong { font-size: 14px; }
  .xy-rep .rep-main small { gap: 2px 8px; font-size: 11.5px; }
  .xy-rep .rep-kind { font-size: 11.5px; }
  .xy-rep .rep-amount { grid-area: amt; gap: 2px; font-size: 15px; }
  .xy-rep .rep-amount small { font-size: 11px; }
  .xy-rep .rep-people, .xy-rep .rep-tail, .xy-rep .rep-go { display: none; }
  .xy-rep .rep-meta { grid-area: meta; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; font-size: 12px; color: var(--text-3); }
  .xy-rep .rep-meta > i { font-style: normal; color: var(--ink-500); }
  .xy-rep .rep-meta .rep-meta-st { margin-left: auto; font-size: 11.5px; color: var(--text-4); }
}

@media (max-width: 760px) {
  .xy-rep .rep-tools { flex-wrap: wrap; row-gap: 10px; min-height: 0; padding: 10px 2px; }
  .xy-rep .rep-all { margin-right: 0; font-size: 12.5px; }
  .xy-rep .rep-search { order: 3; flex: 1 1 100%; width: 100%; }
  .xy-rep .rep-seg button { height: 30px; min-height: 30px; padding: 0 10px; font-size: 12.5px; }
  .xy-rep .xy-tabs { gap: 18px; padding: 0 2px; }
  .xy-rep .xy-tab { gap: 6px; font-size: 13px; }
  .xy-rep .rep-board > .section-head.xy-sec { padding: 0 2px; }
  .xy-rep .rep-queue { gap: 8px; }
  .xy-rep .rep-foot { padding-top: 12px; font-size: 12px; }
  .xy-rep .rep-batchbar { padding: 8px 8px 8px 14px; gap: 6px; }
  .xy-rep .rep-batchbar button { height: 38px; min-height: 38px; padding: 0 12px; font-size: 12.5px; }
  .xy-rep .rep-batchbar button.primary svg { display: none; }

  #reportSheet.report-sheet {
    top: auto; left: 0; right: 0; bottom: 0; width: 100% !important; max-height: 92dvh; border-radius: 20px 20px 0 0;
    transform: translateY(32px); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #reportSheet.report-sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--ink-600); }
  #reportSheet .report-sheet-header { padding: 22px 12px 14px 18px; }
  #reportSheet .report-sheet-heading h3 { font-size: 16px; }
  #reportSheet #reportSheetClose { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
  #reportSheet .report-sheet-body { padding: 16px 18px 0; }
  #reportSheet .rd { gap: 18px; }
  #reportSheet .rd-big { font-size: 28px; }
  #reportSheet .rd-big .cur { font-size: 16px; }
  #reportSheet .rd-fields > div { padding: 10px 12px; }
  #reportSheet .rd-fields dd { font-size: 13px; }
  #reportSheet .rd-actions { margin: 0 -18px; padding: 12px 18px 14px; }
}

/* 按预览：主操作在右，驳回为红字描边；tabs 下划线通栏 */
#reportSheet .rd-actions button.primary { order: 2; }
#reportSheet .rd-actions button[onclick^="rejectReport"] { background: none; color: var(--rose-400); box-shadow: inset 0 0 0 1px rgba(242, 143, 152, .4); }
#reportSheet .rd-actions button[onclick^="rejectReport"]:hover { background: rgba(242, 143, 152, .12); }
.xy-rep .rep-board > .xy-tabs { width: 100%; justify-self: stretch; align-self: stretch; box-sizing: border-box; }

/* 手机：四个读数一行，卡片收窄 */
@media (max-width: 560px) {
  .xy-rep .xy-lead-stats[data-count="4"] { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  .xy-rep .xy-lead-stats[data-count="4"] > .xy-lead-stat { padding: 10px 10px 11px; border-top: 0; border-left: 0; }
  .xy-rep .xy-lead-stats[data-count="4"] > .xy-lead-stat + .xy-lead-stat { border-left: 1px solid var(--hairline); }
  .xy-rep .xy-lead-stats[data-count="4"] .xy-lead-stat dt { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xy-rep .xy-lead-stats[data-count="4"] .xy-lead-stat dd { margin-top: 3px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .xy-rep .rep-row, #reportSheet.report-sheet, #reportSheetBackdrop.report-sheet-backdrop { transition: none; }
  .xy-rep .rep-batchbar { animation: none; }
}
