/* ============================================================
   cust-history.css — 历史补录
   ★ 老板 2026-09-24：彩民自己记录过往购买。
     视觉上刻意**保持"台账/笔记"质感**，不做成彩票/开奖那种炫彩风。
   ============================================================ */

/* ── 一条记录 ────────────────────────────────────────────── */
.hist-item {
  border: 1px solid var(--line, #e6eaf1);
  border-left: 3px solid var(--brand, #1f6feb);
  border-radius: 9px;
  padding: 10px 12px;
  margin: 9px 0;
  background: #fff;
}
.hist-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12.5px; margin-bottom: 7px;
}
.hist-period { font-weight: 700; color: var(--brand-ink, #14417a); }
.hist-mode {
  background: #eef4fd; color: #14417a; border-radius: 5px;
  padding: 1px 7px; font-size: 11.5px;
}
.hist-win {
  background: #e7f8ee; color: #17703f; border-radius: 5px;
  padding: 1px 7px; font-size: 11.5px; font-weight: 600;
}
.hist-nowin {
  background: #f1f3f7; color: #77808f; border-radius: 5px;
  padding: 1px 7px; font-size: 11.5px;
}
.hist-pay {
  background: #fff4e0; color: #9a6200; border-radius: 5px;
  padding: 1px 7px; font-size: 11.5px; font-weight: 600;
}

/* ── 号码球 ──────────────────────────────────────────────── */
.hist-balls { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.hball {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; border-radius: 50%;
  background: #eef2f8; color: #2c3644;
  font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 表单里可点的球 */
.hball.pick { cursor: pointer; border: 1px solid #d6deea; user-select: none; }
.hball.pick.on { background: var(--brand, #1f6feb); color: #fff; border-color: var(--brand, #1f6feb); }

/* 表单里的号码网格 */
.hgrid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 4px; margin: 4px 0 8px;
}
.hgrid .hball { min-width: 0; width: 100%; height: 28px; border-radius: 7px; }

.hist-note { font-size: 11.5px; color: #8a93a3; margin-top: 4px; }
.hist-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 7px; font-size: 11px; color: #9aa3b2;
}

/* ── 表格（年度汇总）──────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  background: #f4f7fc; color: #14417a; font-weight: 600;
  text-align: left; padding: 7px 9px;
  border-bottom: 1px solid #e2e8f1; white-space: nowrap;
}
.tbl td { padding: 7px 9px; border-bottom: 1px solid #eef1f6; }
.tbl tr:last-child td { border-bottom: none; }

/* 窄屏：号码格子缩到 8 列，球小一号 */
@media (max-width: 400px) {
  .hgrid { grid-template-columns: repeat(8, 1fr); }
  .stat .v { font-size: 17px; }
}

/* ══════════════════════════════════════════════════════════════
   ★ 2026-09-25 新增：历史并入「我的」+ 彩种 + 多注录入
   ══════════════════════════════════════════════════════════════ */

/* ── 分段切换（历史查询 / 数据录入）── */
.meseg {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.mesegb {
  flex: 1;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line, #d0d5dd);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--muted, #667085);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.mesegb.on {
  background: rgba(31, 111, 235, 0.08);
  border-color: var(--brand, #1f6feb);
  color: var(--brand, #1f6feb);
}

/* ── 彩种标签 ── */
.hist-game {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef3fa;
  color: #3b5a80;
  border: 1px solid #d8e2f0;
}

/* ── 双色球蓝球（和红球视觉区分开）── */
.hball.blue {
  background: #1f6feb;
  color: #fff;
  border-color: #1f6feb;
}

/* ── 多注文本框 ── */
.hfta {
  width: 100%;
  box-sizing: border-box;
  /* ★ 16px：iOS 聚焦不放大（同计算器的教训） */
  font-size: 16px;
  line-height: 1.7;
  padding: 11px 12px;
  border: 1px solid var(--line, #d0d5dd);
  border-radius: 9px;
  background: #fff;
  color: var(--fg, #1d2939);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
  -webkit-appearance: none;
}
.hfta:focus {
  outline: none;
  border-color: var(--brand, #1f6feb);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

/* ★ 彩种分组标签（2026-09-25，7 种彩种按福彩/体彩分组） */
.hfgrouplbl { font-size: 12px; color: #5b6b7f; font-weight: 600;
  margin: 2px 0 5px; letter-spacing: .3px; }
.hint code { background: #eef2f7; border-radius: 4px; padding: 1px 5px;
  font-size: 12px; color: #2a3a4d; }
