/* 通用组件样式。与壹号遗留的 common.css 隔离，整个文件移除即回退。
   取彩种设置页的卡片/输入/开关做基线，色值一律跟主题变量，不写死蓝绿。 */

/* —— 卡片 —— */
.x8-card { background: #fff; border: 1px solid #e7ebf0; border-radius: 8px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); }
.x8-card-hd { position: relative; text-align: center; font-weight: 600; color: #3b4a5a; background: linear-gradient(#f8fafc, #eef2f7); border-bottom: 1px solid #e7ebf0; border-radius: 8px 8px 0 0; padding: 12px 14px; font-size: 14px; }
.x8-card-bd { padding: 18px 26px; }
.x8-card-bd.tight { padding: 12px 14px; }

/* —— 表单 —— */
/* 按容器自己的宽度决定一列还是两列:标签 150 + 控件 190 一格至少要 340
   写死两列的话 600 宽的弹窗里两格并排就是 710 顶出去 底下拖出一条横向滚动条 */
.x8-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2px 30px; }
/* 栅格单元默认 min-width:auto 装不下就把整列撑宽 一行多选那种宽内容会把整张表顶出弹窗
   两处都收成 0 内容才会在格子里换行 */
.x8-fi { display: flex; align-items: center; padding: 8px 0; min-width: 0; }
.x8-fi.full { grid-column: 1 / -1; }
.x8-fi > .x8-lbl { width: 150px; text-align: right; color: #6b7683; padding-right: 14px; flex: none; font-size: 13px; }
.x8-fi .x8-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.x8-ipt { height: 36px; line-height: 36px; border: 1px solid #dce1e6; border-radius: 5px; padding: 0 11px; color: #333; outline: none; box-sizing: border-box; font-size: 13px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.x8-ipt:focus { border-color: var(--main-color); box-shadow: 0 0 0 2px rgba(var(--main-color-rgb), .12); }
.x8-ipt[disabled], .x8-ipt[readonly] { background: #f5f7fa; color: #98a2ae; cursor: not-allowed; }
/* 数字框不出右侧那对上下增减箭头 全站只让手输 */
.x8-ipt[type=number] { -moz-appearance: textfield; }
.x8-ipt[type=number]::-webkit-outer-spin-button, .x8-ipt[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select.x8-ipt { cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%238a95a1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; }
select.x8-ipt:hover { border-color: #b9c2cc; }
.x8-w-main { width: 190px; max-width: 100%; min-width: 0; }
.x8-w-mini { width: 64px; text-align: center; }
.x8-w-full { width: 100%; }
.x8-unit { color: #6b7683; font-size: 13px; white-space: nowrap; }
.x8-hint { color: var(--danger-color); font-size: 12px; white-space: nowrap; }
.x8-req::before { content: "*"; color: var(--danger-color); margin-right: 3px; }
.x8-radio { display: inline-flex; align-items: center; gap: 5px; margin-right: 22px; cursor: pointer; color: #465060; font-size: 13px; }
/* 单双数尺寸原生单选的内圆点会偏，且不写 flex:none 会被外面的 flex 压扁，看着就是圆点歪的 */
.x8-radio input { accent-color: var(--main-color); width: 16px; height: 16px; margin: 0; flex: none; }
.x8-checks { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.x8-check-item { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #465060; font-size: 13px; }
.x8-check-item input { accent-color: var(--main-color); width: 15px; height: 15px; margin: 0; }

/* 校验不通过：红框 + 行内提示，提示位由 form 组件插在控件后 */
.x8-ipt.x8-invalid { border-color: var(--danger-color); }
.x8-invalid-tip { color: var(--danger-color); font-size: 12px; }

/* —— 开关 —— */
.x8-sw { position: relative; display: inline-block; width: 46px; height: 24px; flex: none; }
.x8-sw input { display: none; }
.x8-sw .track { position: absolute; inset: 0; background: #cfd6dd; border-radius: 24px; transition: .2s; cursor: pointer; }
.x8-sw .track:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
/* 开=启用/在售/允许，是状态不是主操作，所以走语义色不跟主题（口径同 --ok-color 那批） */
/* 开着的颜色跟主题走 取主色调浅一点 不支持 color-mix 的直接用主色 */
.x8-sw input:checked + .track { background: var(--main-color); background: color-mix(in srgb, var(--main-color) 75%, #fff); }
.x8-sw input:checked + .track:before { transform: translateX(22px); }
.x8-sw input:disabled + .track { opacity: .55; cursor: not-allowed; }

/* —— 图片字段 —— */
.x8-img { display: inline-flex; align-items: center; gap: 10px; }
.x8-img .x8-img-prev { width: 40px; height: 40px; border: 1px solid #e7ebf0; border-radius: 6px; background: #f7f9fb; object-fit: contain; }
.x8-img .x8-img-pick { margin: 0; }

/* —— 筛选栏 —— */
.x8-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid #e7ebf0; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); }
.x8-filter .x8-ipt { height: 32px; line-height: 32px; }
.x8-filter-item { display: inline-flex; align-items: center; gap: 6px; }
.x8-filter-lbl { color: #6b7683; font-size: 13px; }
/* 按钮跟在最后一个筛选项后面 不推到最右侧：条件只有一两项时推到边上离得太远 眼睛要横扫一整行 */
.x8-filter-ops { display: flex; gap: 8px; margin-left: 6px; }

/* —— 额度汇总条（代理页/会员页顶上：本人额度、已下发、可再分配） —— */
.x8-quota { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 10px 14px; margin-bottom: 10px; background: #f7f8fa; border: 1px solid #e7ebf0; border-radius: 6px; font-size: 13px; }
.x8-quota-i { display: inline-flex; align-items: baseline; gap: 6px; }
.x8-quota-i em { font-style: normal; color: #6b7683; }
.x8-quota-i b { color: var(--main-color); font-size: 15px; }

/* —— 页内子页签（报表这类一页几块内容的） —— */
/* 允许折行且禁止压缩：即时操盘有 23 个玩法 tab，挤一行时 flex 会把每个压到一字宽、文字竖着排 */
.x8-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid #e7ebf0; }
.x8-tabs .x8-tab { flex: none; white-space: nowrap; padding: 9px 18px; font-size: 14px; color: #6b7683; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; }
.x8-tabs .x8-tab:hover { color: var(--main-color); }
.x8-tabs .x8-tab.on { color: var(--main-color); font-weight: 600; border-bottom-color: var(--main-color); }
/* 族内那一排：挨着一级 tab 摆，窄一档、不再画底线，免得两条线叠着 */
.x8-tabs-sub { border-bottom: none; margin-bottom: 8px; gap: 6px; }
.x8-tabs-sub .x8-tab { padding: 4px 14px; font-size: 13px; border-bottom: none; border-radius: 14px; background: #f2f4f7; margin-bottom: 0; }
.x8-tabs-sub .x8-tab.on { background: var(--main-color); color: #fff; }

/* —— 表格 —— */
.x8-tb-wrap { background: #fff; border: 1px solid #e7ebf0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); }
.x8-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.x8-tb th { background: #f6f8fc; color: #5a6684; font-weight: 600; padding: 8px 10px; text-align: center; white-space: nowrap; border-bottom: 1px solid #eef1f5; }
.x8-tb td { padding: 7px 10px; text-align: center; border-bottom: 1px solid #eef1f5; color: #333; }
.x8-tb tbody tr:last-child td { border-bottom: 0; }
.x8-tb tbody tr:nth-child(even) { background: #fafbfd; }
.x8-tb tbody tr:hover { background: rgba(var(--main-color-rgb), .06); }
/* 合计行加粗，盈亏沿用单元格配色。 */
.x8-tb tbody tr.x8-sum td { background: #f6f8fc; font-weight: 600; }
.x8-tb tbody tr.x8-sum td { color: #000 !important; }
.x8-tb .x8-op { color: var(--main-color); cursor: pointer; margin: 0 6px; }
.x8-tb .x8-op:hover { opacity: .66; }
/* 下线管理那几页的操作列是自己拼的格子（要控制三列宽度），没套 .x8-op。
   它们原先靠视觉层里针对 layui 表格的那条规则上色，表格换成组件后就落单成黑字了，这里补上。 */
.x8-tb td [data-action]:not(.x8-op) { color: var(--main-color); cursor: pointer; transition: opacity .15s; }
.x8-tb td [data-action]:not(.x8-op):hover { opacity: .66; }
.x8-tb td [data-action].x8-ro { color: #b9c0cc; cursor: not-allowed; }
/* 代理列（agencyList）的热区撑满整格：格子里只有一个数字，点在旁边的空白上没反应。
   td 的 height:1px 只是给百分比高度一个参照，表格里 td 实高照样由行撑开。 */
.x8-tb td.x8-cell-drill { padding: 0; height: 1px; }
.x8-tb td.x8-cell-drill > span { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 7px 10px; box-sizing: border-box; }

/* —— 分页 —— */
.x8-pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 0 4px; font-size: 13px; color: #6b7683; }
.x8-pager button { height: 30px; min-width: 30px; padding: 0 10px; border: 1px solid #e2e6ee; background: #fff; border-radius: 5px; color: #465060; cursor: pointer; transition: all .15s; }
.x8-pager button:hover:not(:disabled) { border-color: var(--main-color); color: var(--main-color); }
.x8-pager button:disabled { color: #c0c6cf; cursor: not-allowed; background: #f7f8fa; }
.x8-pager .cur { color: var(--main-color); font-weight: 600; }
.x8-pager select { height: 30px; border: 1px solid #e2e6ee; border-radius: 5px; padding: 0 6px; color: #465060; cursor: pointer; }

/* —— 四种状态 —— */
.x8-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 46px 20px; color: #98a2ae; font-size: 14px; }
.x8-state i { font-size: 34px; color: #ccd3dc; }
.x8-state .x8-state-act { color: var(--main-color); cursor: pointer; font-size: 13px; }
.x8-state-cell { text-align: center; color: #98a2ae; padding: 34px 10px; }
/* 卡片内小槽位的空态：字色跟整块空态同一个，只是不带图标、内边距收窄 */
.x8-state-tip { color: #98a2ae; font-size: 13px; padding: 10px 8px; }
.x8-state-err i { color: #f0a3a3; }

/* 加载中：轻量转圈，不遮全屏，容器内替换 */
.x8-spin { width: 26px; height: 26px; border: 2px solid #e6eaf0; border-top-color: var(--main-color); border-radius: 50%; animation: x8spin .7s linear infinite; }
@keyframes x8spin { to { transform: rotate(360deg); } }

/* 表格行内的小转圈，跟文字并排 */
.x8-cell-loading { display: inline-flex; align-items: center; gap: 7px; }
.x8-spin-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid #e6eaf0; border-top-color: var(--main-color); border-radius: 50%; animation: x8spin .7s linear infinite; }

/* —— 号码球与生肖 —— */
/* 球是白字，底色由波色给。没波色的号码照样要出球，所以底色留一个灰的兜底，
   不然就是白底白字，那一列看上去整片是空的 */
.x8-ball { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #8d95a3; color: #fff; font-size: 13px; font-weight: 600; margin: 0 2px; vertical-align: middle; }
.x8-ball-red { background: radial-gradient(circle at 34% 28%, #ff7a68, #d0271a); }
.x8-ball-blue { background: radial-gradient(circle at 34% 28%, #6bb6ff, #1565c0); }
.x8-ball-green { background: radial-gradient(circle at 34% 28%, #7cd992, #2e7d32); }
.x8-ball-yellow { background: radial-gradient(circle at 34% 28%, #ffe27a, #e0a800); }
/* 赛车十个车号各一色 物料 display.color 给 pk1~pk10 照开奖网画成圆角方块 白字描黑边 */
.x8-ball-pk1 { background: #e6de00; } .x8-ball-pk2 { background: #0092dd; } .x8-ball-pk3 { background: #4b4b4b; }
.x8-ball-pk4 { background: #ff7600; } .x8-ball-pk5 { background: #17e2e5; } .x8-ball-pk6 { background: #5234ff; }
.x8-ball-pk7 { background: #bfbfbf; } .x8-ball-pk8 { background: #ff2600; } .x8-ball-pk9 { background: #780b00; }
.x8-ball-pk10 { background: #07bf00; }
.x8-ball-pk1, .x8-ball-pk2, .x8-ball-pk3, .x8-ball-pk4, .x8-ball-pk5, .x8-ball-pk6, .x8-ball-pk7, .x8-ball-pk8, .x8-ball-pk9, .x8-ball-pk10 {
  border-radius: 4px; color: #fff; font-family: Tahoma, Arial, sans-serif; text-shadow: -1px 0 #333, 1px 0 #333, 0 -1px #333, 0 1px #333;
}
/* 五码球号照开奖网：盘面与信息条上期是实心蓝球白字 开奖历史是白底蓝圈深字 */
.x8-ball-ssc { background: #0092dd; color: #fff; font-family: Tahoma, Arial, sans-serif; }
.historyOpen .x8-ball.x8-ball-ssc { background: #fff; color: #012537; border: 2px solid #0092dd; box-sizing: border-box; font-weight: 700; }
/* 三码单球盘面：蓝圈 中间透底 黑字 */
.x8-ball-ring { background: transparent; color: #000; border: 2px solid #0092dd; box-sizing: border-box; font-family: Tahoma, Arial, sans-serif; font-weight: 700; }
.x8-ball-sm { width: 22px; height: 22px; font-size: 11px; }
/* 一行里要塞十几二十个号码（色波含哪些号、连码的组合）时用这一档 */
.x8-ball-xs { width: 18px; height: 18px; font-size: 10px; margin: 1px; }
.x8-ball-lg { width: 36px; height: 36px; font-size: 15px; }
.x8-ball-plus { color: #98a2ae; margin: 0 4px; }
/* 生肖跟在球右边 不是摞在球下面：摞着会把整条信息条撑高一倍 */
.x8-ball-zodiac { display: inline-flex; flex-direction: row; align-items: center; gap: 3px; margin: 0 3px; }
.x8-ball-zodiac em { font-style: normal; font-size: 14px; color: #333; }
.x8-zodiac { display: inline-block; padding: 1px 6px; border-radius: 3px; background: #f2f5f9; color: #5a6684; font-size: 12px; }

/* —— 看盘（操盘页表体） —— */
.x8-bd-card { margin-bottom: 10px; }
.x8-bd-card .x8-card-hd { text-align: left; font-size: 13px; padding: 9px 14px; }
/* 封盘或无调赔权限的物料：整行压暗 但数据照看 */
tr.x8-bd-lock td { background: #fafbfd; }

.x8-bd-label { font-weight: 600; color: #465060; font-size: 13px; }
.x8-bd-zo { font-style: normal; font-size: 11px; color: #6b7683; margin-left: 3px; }
.x8-bd-odds { font-weight: 600; color: var(--main-color); font-size: 14px; }
.x8-bd-oddsbox { display: inline-flex; align-items: center; gap: 4px; }
.x8-bd-step { width: 18px; height: 18px; line-height: 1; padding: 0; border: 1px solid #dce1e6; background: #fff; border-radius: 4px; color: #6b7683; cursor: pointer; font-size: 13px; }
.x8-bd-step:hover { border-color: var(--main-color); color: var(--main-color); }
.x8-bd-flat { color: #98a2ae; }
.x8-bd-up { color: var(--ok-color); font-weight: 600; }
.x8-bd-down { color: var(--danger-color); font-weight: 600; }
.x8-bd-tbwrap { box-shadow: none; }
.x8-bd-td-item { text-align: left !important; }
.x8-bd-num { text-align: right !important; }
.x8-bd-td-nums { text-align: left !important; }

/* 数据列可点：钻到明细单。0 也留着可点，点开是空列表比让人以为坏了强 */
.x8-bd-drill { cursor: pointer; }
.x8-bd-amt { color: var(--ok-color); font-weight: 600; }
/* 信息条：期号、倒计时这些是背景信息，不是要盯的数，别整条加粗压黑。
   真正要变色的只有倒计时进入最后一分钟和今日盈利正负，那两处自己带类。 */
.x8-bd-head .x8-card-bd { color: #6b7683; font-size: 13px; }
.x8-bd-head b { font-weight: normal; color: #3b4a5a; }
.x8-bd-head b.x8-bd-up, .x8-bd-head b.x8-bd-down { font-weight: 600; }
/* 实时状态：数字半天不动时，得让人分得清是没人下注还是推送断了 */
.x8-bd-live { font-size: 12px; padding: 2px 9px; border-radius: 10px; color: #8a95a1; background: #f1f3f5; }
.x8-bd-live.on { color: var(--ok-color); background: rgba(82, 196, 26, .1); }
.x8-bd-live.off { color: var(--danger-color); background: rgba(229, 77, 66, .1); }
/* 注额后面的占用比：设了当期上限的物料才有，快满仓变色 */
.x8-bd-use { font-style: normal; font-size: 11px; font-weight: normal; color: #8a95a1; margin-left: 4px; }
.x8-bd-use.warn { color: var(--warn-color); }
.x8-bd-use.full { color: var(--danger-color); }
.x8-bd-over { font-style: normal; color: var(--danger-color); font-weight: 600; }

/* 一格两行：上行主值下行附注，注单的分成列、合成列都用它 */
.x8-cellstack { display: flex; flex-direction: column; gap: 1px; line-height: 1.5; }
.x8-cellstack i { font-style: normal; font-size: 12px; color: #98a2b3; }
/* 组合注单弹窗的抬头：碰法那串号码能有好几十个字 layui 默认一行截成 …
   放开换行整串都要看得见 高度跟着内容走。
   keep-all 是不让它见着空格就断——抬头里「账号 · 会员 · 玩法」全是空格 光给 normal 会没到边就先折
   真放不下时靠 anywhere 断 所以是「装得下一行 装不下才换」 */
.layui-layer-title {
  white-space: normal; word-break: keep-all; overflow-wrap: anywhere;
  height: auto; line-height: 1.6; padding: 10px 60px 10px 15px;
}
/* 注单统计那一行：不套卡片 贴着筛选栏平铺 上下收紧 */
.x8-statline { display: flex; gap: 26px; flex-wrap: wrap; padding: 6px 0 2px; font-size: 13px; color: #5a6478; }
.x8-statline b { color: #303a4b; font-weight: 600; }
/* 金额 退水 会员结果 分成 来源 状态这一串：宽度拉平 内容再短也不让表格把它们压得宽窄不一 */
.x8-tb td.x8-col-even, .x8-tb th.x8-col-even { width: 92px; max-width: 92px; }
/* 项目列：组合玩法的选号能有一长串 给足宽度 但只占一行 装不下截断成 … 全文挂在 title 上
   折行的话一行单子能撑成两三倍高 一屏看不了几单 */
.x8-tb td.x8-col-item, .x8-tb th.x8-col-item { width: 260px; max-width: 260px; }
.x8-item { max-width: 100%; }
.x8-item .x8-item-h { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x8-item i { white-space: nowrap; }
/* 列没合并的那几处项目列：一行到底 装不下截断成 … 全文在 title 上 */
.x8-item-line { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 分成列：格里只出最贴近会员那一级 后面那个 +N 是还有几级 悬停弹出整条链 */
.x8-chain { cursor: default; }
.x8-chain .x8-chain-n {
  font-style: normal; font-size: 11px; color: #fff; background: #9aa6b6;
  border-radius: 8px; padding: 0 5px; margin-left: 4px; line-height: 16px; display: inline-block;
}
/* 面板挂在 body 上 表格容器 overflow 裁不到它 */
/* 鼠标要能走进来选字复制 所以 user-select 打开 不要设 pointer-events:none */
.x8-chain-pop {
  display: none; position: fixed; z-index: 2147483000; background: #fff; color: #3b4a5a;
  border: 1px solid #dce1e6; border-radius: 4px; box-shadow: 0 4px 16px rgba(20, 40, 80, .16);
  padding: 6px; font-size: 12px; user-select: text;
}
.x8-chain-pop table { border-collapse: collapse; }
.x8-chain-pop th, .x8-chain-pop td { padding: 3px 10px 3px 6px; text-align: left; white-space: nowrap; }
.x8-chain-pop th { color: #8a95a5; font-weight: 400; border-bottom: 1px solid #edf0f5; }
/* 会员那行账号后面的复制 只此一处 代理层级不给 */
.x8-chain-cp {
  margin-left: 6px; font-size: 11px; color: var(--main-color, #1e9fff); cursor: pointer; user-select: none;
}
.x8-chain-cp:hover { text-decoration: underline; }
/* 多档赔付一格摞几行 */
.x8-bd-tierline { display: block; }
/* 组合排行照 SK78：顶上单组 复式两个页签 一页二十行 表下翻页加一行说明 */
/* 两个页签连成一块 顶上两个角跟档位条一样收一点圆 */
.x8-bd-cbtabs { display: flex; margin-bottom: 4px; }
.x8-bd-cbtab:first-child { border-top-left-radius: 4px; }
.x8-bd-cbtab:last-child { border-top-right-radius: 4px; }
/* 页签跟左边档位条一样高 颜色也跟它一套：没选中是主色浅色 选中是主色 */
.x8-bd-cbtab { width: 102px; height: 32px; line-height: 32px; box-sizing: border-box; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #e4e9f7; color: #3b4a5a; }
.x8-bd-cbtab:hover { color: var(--main-color); }
.x8-bd-cbtab.on { background: var(--main-color); color: #fff; cursor: default; }
.x8-bd-cbtabgrp { display: flex; }
/* 批量补货靠最右 颜色跟没选中的页签一套：主色浅色底 */
.x8-bd-cbquick { height: 32px; line-height: 32px; box-sizing: border-box; padding: 0 16px; margin-left: auto;
  border-radius: 4px 4px 0 0; background: #e4e9f7; color: #3b4a5a; font-size: 13px; font-weight: 600; cursor: pointer; }
.x8-bd-cbquick:hover { color: var(--main-color); }
.x8-bd-cbpick { display: inline-flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; font-weight: inherit; }
.x8-bd-cbpick input { margin: 0; cursor: pointer; }
.x8-bd-combos.x8-tb-wrap { border-radius: 0 !important; }
.x8-bd-combos .x8-tb { table-layout: fixed; }
.x8-bd-combos .x8-tb th { font-size: 14px; font-weight: 700; }
.x8-bd-combos .x8-tb th, .x8-bd-combos .x8-tb td { height: 24px; padding: 2px 6px !important; text-align: center !important; }
.x8-bd-combos .x8-bd-cbitems { word-break: normal; overflow-wrap: anywhere; }
/* 注额带着「(补527,737.5)」一长串 窄了先把补货那块挪到下一行 还放不下就在「补」后面再断一次 数字本身不拆 */
.x8-bd-combos .x8-bd-cbamt .x8-bd-amt { overflow-wrap: normal; }
/* 额注后面那个「(补3)」与注单列表金额后面的「(补)」「(手补)」：红字 不斜 一眼看得出是补货
   放在 ui.css 不放 polish.css：惠来报表 注单这些页不载 polish 放那边就成了斜体黑字 */
.x8-bd-rptag { font-style: normal; font-size: 12px; color: #f82525; margin-left: 2px; white-space: nowrap; }
.x8-bd-combos .x8-bd-cbamt .x8-bd-rptag { display: inline-block; white-space: normal; }
.x8-bd-cbprofit { color: #f82525 !important; }
.x8-bd-cbcount { font-style: normal; font-size: 12px; color: #8a95a1; margin-right: 4px; }
.x8-bd-pager { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 8px 0 6px; font-size: 12px; color: #666; }
.x8-bd-pager > span { margin-right: 6px; }
.x8-bd-pager a { min-width: 24px; height: 22px; line-height: 20px; padding: 0 5px; box-sizing: border-box; text-align: center; cursor: pointer;
  border: 1px solid var(--bd-line, #dce1e6); background: #fff; color: #3b4a5a; }
.x8-bd-pager a:not(.on):not(.off):hover { color: var(--main-color); background: #e4e9f7; }
.x8-bd-pager a.on { background: var(--main-color); border-color: var(--main-color); color: #fff; cursor: default; }
.x8-bd-pager a.off { color: #c0c6cc; cursor: default; }
.x8-bd-pager i { font-style: normal; color: #98a2ae; }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .x8-bd-cbtab:not(.on) { background: color-mix(in srgb, var(--main-color) 26%, #fff); }
  .x8-bd-cbtab:not(.on):hover { background: color-mix(in srgb, var(--main-color) 36%, #fff); }
  .x8-bd-cbquick { background: color-mix(in srgb, var(--main-color) 26%, #fff); }
  .x8-bd-cbquick:hover { background: color-mix(in srgb, var(--main-color) 36%, #fff); }
  .x8-bd-pager a:not(.on):not(.off):hover { background: color-mix(in srgb, var(--main-color) 12%, #fff); }
}
/* 生肖、尾数这些不是号码的单元，跟号码球一样大一样密，只是底色浅字色深 */

/* 盘面与右边副区并排：副区是负值排行榜或组合排行。
   摞在盘面下面的话，盘面本身就占满一屏，副区永远要滚下去才看得见 */
.x8-bd-split { display: flex; align-items: flex-start; gap: 8px; }
.x8-bd-split > .x8-bd-board { flex: 1 1 auto; min-width: 0; }
/* 右侧排名照 SK78 的比例：1920 宽的屏上号码盘约 1117 排名 601 注单处理 181 */
.x8-bd-split > .x8-bd-aside { flex: 0 0 600px; max-width: 600px; }
.x8-bd-aside .x8-bd-card { margin: 0; }
/* 榜就二十五行 行高压到二十八后整张放得下 不设上限 免得自己长出一条滚动条 */
/* 榜上的号码是彩色文字不是球：二十五行画二十五个球 整张榜比盘面还高 */
.x8-bd-rknum { font-weight: 700; font-size: 13px; }
.x8-bd-rank .x8-tb th, .x8-bd-rank .x8-tb td { padding: 3px 8px !important; }
.x8-bd-rank .x8-bd-oddsbox { padding: 0 6px !important; }
/* 榜名照壹号：红字居中。卡片头默认左对齐还带一条竖标，这里都盖掉 */
.x8-bd-rank .x8-card-hd {
  text-align: center !important; color: var(--danger-color, #e54d42) !important;
  font-weight: 700; padding-left: 0 !important;
}
.x8-bd-rank .x8-card-hd::before { display: none !important; }
/* 榜名那行就是表头 跟下面数据行之间留一条线断开 */
.x8-bd-rank .x8-card-hd { border-bottom: 1px solid var(--bd-line) !important; }
.x8-bd-empty { text-align: center !important; color: #98a2ae; padding: 28px 0 !important; }

@media (max-width: 1400px) { .x8-bd-split > .x8-bd-aside { flex-basis: 460px; max-width: 460px; } }

/* 档位条：照壹号 连成一条 各档相邻不留缝 共用一条分界线。块里左档名右货量。
   档多了在自己这条里横滚 不外溢——右边挨着组合排行或注单面板 溢出去就压到人家身上了 */
/* 整条微微抬起来：它跟底下的盘面是两块，投影一压就分得开，不用另加线也不占高度 */
.x8-bd-tiers { display: flex; overflow-x: auto; box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }
.x8-bd-tiertab { flex: 1 1 0; min-width: 120px; display: flex; align-items: stretch;
  border: 1px solid var(--bd-line, #e7ebf0); cursor: pointer; }
.x8-bd-tiertab + .x8-bd-tiertab { border-left: none; }
/* 整条两端的上角圆一下 跟盘面那几张表一个圆角值 内格底色要跟着裁角 所以两端加 overflow */
.x8-bd-tiertab:first-child, .x8-bd-tiertab:last-child { overflow: hidden; }
.x8-bd-tiertab:first-child { border-top-left-radius: 4px; }
.x8-bd-tiertab:last-child { border-top-right-radius: 4px; }
.x8-bd-tier, .x8-bd-tiern { padding: 6px 10px; font-size: 13px; line-height: 18px; white-space: nowrap; }
/* 档条要比表头显眼：它是要点的，不是一行标题。底色比表头那层深一档，选中的那块整块吃主色
   （档名实底、货量浅底、四周一圈描边），一屏十来档扫过去一眼看得出自己停在哪。
   描边用 inset 画在块内，不占位——相邻两档共用一条边，加真边框会把整条撑宽 */
.x8-bd-tier { flex: 0 0 auto; font-weight: 600; color: #3b4a5a; background: #e4e9f7; }
.x8-bd-tiertab:hover .x8-bd-tier { color: var(--main-color); background: #d8e1f5; }
.x8-bd-tiertab.on { box-shadow: inset 0 0 0 1px var(--main-color); position: relative; z-index: 1; }
.x8-bd-tiertab.on .x8-bd-tier { background: var(--main-color); color: #fff; }
.x8-bd-tiertab.on .x8-bd-tiern { background: #eaf1fd; color: var(--main-color); font-weight: 600; }
/* 货量那格占掉块里剩余宽度 白底 跟壹号一样档名与货量各占一半那种观感 */
.x8-bd-tiern { flex: 1 1 0; min-width: 40px; text-align: center; color: #6b7683; background: #fff; }

/* 档并排：一档十来行的玩法（正码1-6、生肖连）整族横着摆，一档一个列组。
   组头「正码一」加它底下那张盘面是一个整块 seccol 这圈框收住整块就够。
   里面复用了号码宫格渲染 会自带一层 grid/gcol 边框 跟外面 seccol 叠成两条——去掉里层那圈 只留内部格线 */
/* 一行摆不下就折到下一行：档不许压到比自己那张表还窄
   压得动的话超出去的部分会钻到右边组合栏底下 整档看不见（生肖连的第四段就这么没的）
   basis 留 0 换行按最小内容宽算 写 auto 的话按最大内容宽算 明明摆得下也会提前折 */
.x8-bd-secrow { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; }
.x8-bd-seccol { flex: 1 1 0; border: 1px solid var(--bd-line, #e7ebf0); }
.x8-bd-seccol .x8-bd-grid, .x8-bd-seccol .x8-bd-gcol { border: none; }
/* 里层末行那条下边线也去掉 seccol 自己的底框就是这一块的底 留着又叠一条 */
.x8-bd-seccol .x8-bd-gcol .x8-tb tbody tr:last-child td { border-bottom: none; }
.x8-bd-sechd { padding: 6px 8px; text-align: center; font-weight: 600; color: #4a5568; background: #eef0f8; border-bottom: 1px solid var(--bd-line, #e7ebf0); }
/* 组合玩法并排的档头照档位条那个样子 左档名右额注 选中那档深底 点了右边组合排行换成这一档 */
.x8-bd-sechd.x8-bd-sectab { display: flex; align-items: stretch; padding: 0; cursor: pointer; }
.x8-bd-sectab .x8-bd-tier { flex: 1 1 0; text-align: center; background: #e4e9f7; }
.x8-bd-sectab .x8-bd-tiern { font-weight: 400; }
.x8-bd-sectab:hover .x8-bd-tier { color: var(--main-color); background: #d8e1f5; }
.x8-bd-sectab.on .x8-bd-tier { background: var(--main-color); color: #fff; }
.x8-bd-sectab.on .x8-bd-tiern { background: #eaf1fd; color: var(--main-color); font-weight: 600; }
.x8-bd-seccol .x8-tb-wrap { border: none; border-radius: 0; }

/* 号码宫格：一组横着切几列，一格里赔率、注额、盈亏竖着叠。
   摊成一行一项的长表时 49 个号码要滚三四屏，切成五列十行才一屏铺完 */
/* 五列各是独立的一块 各有各的边框 列间留一道缝 */
.x8-bd-grid { display: flex; align-items: flex-start; gap: 4px; }
.x8-bd-gcol { flex: 1 1 0; min-width: 0; border: 1px solid var(--bd-line, #e7ebf0); }
.x8-bd-gcol table { width: 100%; }
.x8-bd-gcol .x8-tb th, .x8-bd-gcol .x8-tb td { border-right: 1px solid var(--bd-line); padding: 4px 6px; }
.x8-bd-gcol .x8-tb th:last-child, .x8-bd-gcol .x8-tb td:last-child { border-right: none; }
.x8-bd-gcol .x8-tb tbody tr:last-child td { border-bottom: 1px solid var(--bd-line); }
/* 号码列只放一个球 给它固定宽度 剩下的全给赔率那格 免得五列各自宽窄不一 */
.x8-bd-gcol .x8-bd-td-item { width: 44px; text-align: center !important; }
.x8-bd-gcell { text-align: center !important; }

/* 总汇：三组并排，一屏铺完 49 个号码加后面那几行，不用滚 */
.x8-bd-smgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x8-bd-smcol { min-width: 0; }
.x8-bd-smcol + .x8-bd-smcol { border-left: 1px solid var(--bd-line, #e7ebf0); }
.x8-bd-smcol table { width: 100%; }
.x8-bd-seq { width: 46px; text-align: center !important; color: #98a2ae; font-weight: normal; }
/* 盘面走全格线：一屏一百多个数字，只有横线时眼睛对不准是哪一列 */
.x8-bd-smcol .x8-tb th, .x8-bd-smcol .x8-tb td { border-right: 1px solid var(--bd-line); padding: 8px 8px; }
.x8-bd-smcol .x8-tb th:last-child, .x8-bd-smcol .x8-tb td:last-child { border-right: none; }
.x8-bd-smcol .x8-tb tbody tr:last-child td { border-bottom: 1px solid var(--bd-line); }
/* 赔率整格居中，加减顶在两边——盘面上一列几十行，数字不居中扫下来对不齐 */
.x8-bd-smodds-h { text-align: center !important; }
.x8-bd-smodds { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.x8-bd-smodds .x8-bd-odds { flex: 1; text-align: center; }
.x8-bd-note { text-align: center; color: #98a2ae; font-size: 12px; padding: 0 12px 10px; }

/* 期号信息在左、操盘工具条在右，同一条 */
.bd-bar { margin: 8px 5px; }
.bd-bar .hd-area { display: block; }
.x8-bd-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #eef1f6; border-radius: 8px; padding: 8px 14px; min-height: 44px; }
.x8-bd-bar-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #6b7683; }
.x8-bd-bar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.x8-bd-play { font-size: 14px; color: #1f2d3d; }
.x8-bd-issue { color: #6b7683; }
.x8-bd-state { padding: 1px 8px; border-radius: 10px; font-size: 12px; background: rgba(82, 196, 26, .12); color: var(--ok-color); }
.x8-bd-state.closed { background: rgba(229, 77, 66, .1); color: var(--danger-color); }
.x8-bd-today b { font-weight: 600; }
.x8-bd-draw { display: flex; align-items: center; gap: 6px; }
.x8-bd-cd { color: #8a95a1; font-size: 12px; }
.x8-bd-cd b { color: #3b4a5a; font-weight: 600; }
/* 标签用的是 i 标签 浏览器默认给斜体 这里正回来 跟旁边的字一条基线 */
.x8-bd-cd i { font-style: normal; }
/* 距开奖跟距封盘之间留口气 两个数字挨太近会读成一个 */
.x8-bd-cd2 { margin-left: 10px; }
/* 上期还没出号那会儿占着球的位置 别用斜体 跟一排球的高度对齐 */
.x8-bd-await { font-style: normal; color: #e6a23c; font-weight: 600; }

/* 调赔值：输入框 + 两个快捷档 + 修改 */
.x8-bd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.x8-bd-step-box { display: inline-flex; align-items: center; gap: 4px; }
.x8-bd-step-box .lbl { font-size: 13px; color: #6b7683; margin-right: 2px; }
.x8-bd-step-box .x8-ipt { width: 72px; text-align: center; }
.x8-bd-quick { min-width: 40px; padding: 0 10px; border: 1px solid #dce1e6; background: #fff; border-radius: 5px; color: #465060; cursor: pointer; font-size: 13px; }
.x8-bd-quick:hover { border-color: var(--main-color); color: var(--main-color); }
.x8-bd-apply { padding: 0 14px; border: none; background: var(--main-color); color: #fff; border-radius: 5px; cursor: pointer; font-size: 13px; }
.x8-bd-apply:hover { filter: brightness(1.08); }
/* 工具条上的控件一律跟输入框同高。原先输入框 36、快捷键 28、layui 那两个 30，一条上摆三种高度 */
.x8-bd-tools .x8-ipt,
.x8-bd-tools .x8-bd-quick,
.x8-bd-tools .x8-bd-apply,
.x8-bd-tools .layui-btn { height: 28px; line-height: 26px; box-sizing: border-box; }
.x8-bd-tools .layui-btn { padding: 0 12px; font-size: 13px; }
/* 快速补货这种描边按钮 悬停跟随主题色 */
.x8-bd-tools .layui-btn-primary:hover { border-color: var(--main-color); color: var(--main-color); }
.x8-bd-tools .x8-ipt { padding: 0 8px; font-size: 13px; }
.x8-bd-tools select.x8-ipt { padding-right: 24px; background-position: right 7px center; }
.x8-bd-step-box .x8-ipt { width: 60px; }
.x8-bd-sel { width: 88px; }
.x8-bd-sel { width: 96px; }
/* 立即封盘：没东西出的时候整格不占位 不然工具条头上空出一截间距 */
.x8-bd-pclose:empty { display: none; }
.x8-bd-pclosed { color: var(--danger-color); font-size: 13px; font-weight: 600; }

/* 彩种当顶部 tab，名称一行、本期笔数一行 */
.x8-bd-czs { display: flex; gap: 26px; padding: 6px 12px 0; }
.x8-bd-cz { cursor: pointer; text-align: center; line-height: 1.5; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.x8-bd-cz .nm { display: block; font-size: 13px; color: #6b7683; }
.x8-bd-cz em { display: block; font-style: normal; font-size: 12px; color: #98a2ae; min-height: 16px; }
.x8-bd-cz.on { border-bottom-color: var(--main-color); }
.x8-bd-cz.on .nm { color: var(--main-color); font-weight: 600; }
.x8-bd-cz.on em { color: var(--main-color); }

/* 右栏注单处理：本期各族多少笔，点一下切过去 */
.x8-bd-side { width: 190px; flex: none; background: #fff; border: 1px solid var(--bd-line, #e7ebf0); border-radius: 6px; overflow: hidden; }
/* 标题条就是「注单处理」的入口，所以做成可点的样子 */
.x8-bd-sd-hd { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; color: #fff; background: var(--main-color); cursor: pointer; }
.x8-bd-sd-hd:hover { filter: brightness(1.08); }
.x8-bd-sd-hd .layui-icon { font-size: 14px; }
/* 不给自己的滚动条 高度跟着内容走 装不下就用浏览器那条滚 一屏里两条滚动条看着乱 */
.x8-bd-sd-bd { }
.x8-bd-sd-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 30px; padding: 0 12px; font-size: 13px; color: #465060; cursor: pointer; border-bottom: 1px solid #f2f4f7; }
.x8-bd-sd-row:last-child { border-bottom: none; }
.x8-bd-sd-row:hover { background: #f7f9fc; }
.x8-bd-sd-row.on { background: rgba(var(--main-color-rgb), .08); color: var(--main-color); }
.x8-bd-sd-row b { font-weight: 600; }

/* 无权限只读：按钮保留位置但不可点，跟隐藏的旧做法区分 */
.x8-ro { opacity: .45; cursor: not-allowed !important; pointer-events: none; }
.x8-ro-tip { color: #98a2ae; font-size: 12px; }



/* 列表里的小标签 目前只有补货单在会员列上打一个 */
.x8-tag { display: inline-block; padding: 0 5px; margin-left: 4px; border-radius: 2px;
  background: #eef4ff; color: #4a7dd0; font-size: 11px; line-height: 16px; vertical-align: 1px; }

/* 赔率数字本身就是调赔入口 光标与下划线提示一下 别让人以为只能按加减 */
.x8-bd-odds-set { cursor: pointer; }
.x8-bd-odds-set:hover { color: var(--main-color); }

/* —— 下拉框 —— 原生 select 的弹出列表由操作系统画 跟站内控件不是一套 这里自绘一层 */
.x8-sel { position: relative; display: inline-flex; align-items: center; height: 36px; box-sizing: border-box;
  border: 1px solid #dce1e6; border-radius: 5px; background: #fff; padding: 0 28px 0 11px; cursor: pointer;
  font-size: 13px; color: #333; user-select: none; transition: border-color .15s; }
.x8-sel:hover { border-color: #b9c2cc; }
.x8-sel.on { border-color: var(--main-color); box-shadow: 0 0 0 2px rgba(var(--main-color-rgb), .12); }
.x8-sel > select { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.x8-sel-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x8-sel-arrow { position: absolute; right: 11px; width: 0; height: 0; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid #8a95a1; transition: transform .15s; }
.x8-sel.on .x8-sel-arrow { transform: rotate(180deg); border-top-color: var(--main-color); }
.x8-sel.x8-sel-off { background: #f5f7fa; color: #98a2ae; cursor: not-allowed; }

/* 弹层里的单列表单整块居中：标签列收到刚够放四个字 跟控件挨在一起 整块 452 两边平分剩下的
   标签列还是 150 宽的话 左边空一大截 整块看着贴在右边 */
.x8-form-mid { max-width: 452px; margin: 0 auto; }
.x8-form-mid .x8-fi > .x8-lbl { width: 80px; padding-right: 10px; }

/* 一行两个控件：前面那个下拉按内容宽 后面那个吃掉剩下的 两个加起来跟下面的输入框一样宽 */
.x8-row2 > .x8-val > .x8-sel, .x8-row2 > .x8-val > select.x8-ipt { flex: none; width: 96px; }

/* 搜索式选人：搜索框与选定后那一行占同一个位置 轮流显示 */
/* .x8-val 是 flex 行 包装层不占满的话里面那个 width:100% 的输入框只能缩到内容宽 */
.x8-pick { display: block; flex: 1 1 auto; min-width: 0; }
/* [hidden] 是浏览器自带那条 display:none 这里写了 display:flex 就压过它了 要补一条 */
.x8-pick-on[hidden] { display: none; }
.x8-pick-on { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 11px; box-sizing: border-box;
  border: 1px solid #dce1e6; border-radius: 5px; background: #f7f9fc; font-size: 13px; }
.x8-pick-on > .x8-pick-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x8-pick-txt b { color: #333; font-weight: 600; }
.x8-pick-sub { margin-left: 8px; color: #98a2ae; }
.x8-pick-x { border: 1px solid #dce1e6; border-radius: 4px; background: #fff; color: #5b6673;
  height: 24px; padding: 0 10px; font-size: 12px; cursor: pointer; }
.x8-pick-x:hover { border-color: var(--main-color); color: var(--main-color); }
.x8-pick-panel { position: fixed; z-index: 2147483000; background: #fff; border: 1px solid #e2e7ee; border-radius: 5px;
  box-shadow: 0 6px 20px rgba(17, 22, 38, .12); font-size: 13px; overflow: hidden; box-sizing: border-box; }
.x8-pick-list { overflow-y: auto; padding: 4px 0; }
.x8-pick-opt { display: flex; align-items: center; padding: 7px 12px; color: #465060; cursor: pointer; }
.x8-pick-opt > b { flex: 0 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x8-pick-opt > .x8-pick-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x8-pick-opt.on, .x8-pick-opt:hover { background: rgba(var(--main-color-rgb), .08); }
.x8-pick-none { padding: 10px 12px; color: #98a2ae; }

/* z-index 要压过 layui 弹层（它的层号上千万）不然弹窗里的下拉展开会掉到弹窗后面 */
.x8-sel-panel { position: fixed; z-index: 2147483000; background: #fff; border: 1px solid #e2e7ee; border-radius: 5px;
  box-shadow: 0 6px 20px rgba(17, 22, 38, .12); font-size: 13px; overflow: hidden; width: max-content; }
/* 列表高度由脚本按屏幕剩余空间给，写死会让深层级的代理树掉出屏幕 */
.x8-sel-list { overflow-y: auto; padding: 4px 0; }
.x8-sel-find { padding: 6px 8px; border-bottom: 1px solid #eef1f5; }
.x8-sel-find input { width: 100%; height: 28px; box-sizing: border-box; border: 1px solid #dce1e6; border-radius: 4px;
  padding: 0 8px; font-size: 13px; outline: none; }
.x8-sel-find input:focus { border-color: var(--main-color); }
.x8-sel-opt { padding: 7px 12px; color: #465060; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x8-sel-opt:hover { background: rgba(var(--main-color-rgb), .08); color: var(--main-color); }
.x8-sel-opt.on { background: rgba(var(--main-color-rgb), .12); color: var(--main-color); font-weight: 600; }
