/**
 * 管理端「即时注单」——对齐对方代理即时注单视觉
 * 一人一出口：格子 UI 只走 NumCard / TextCard / TextCardLhc；页壳 class=ib-board
 * 不做调赔假入口到「赔率设置」；本期调赔走 live_odds（板内 +/-）
 */

/* 页壳 */
.ib-board.el-card,
.ib-board {
  border: 1px solid #b9c5d1;
  border-radius: 2px;
  box-shadow: none;
  background: #f3f6f9;
  /* 禁止裁切横向一排；横滑认下面各条自己的 overflow-x */
  overflow: visible;
}
.ib-board .el-card__header,
.ib-board > .ib-board__header {
  padding: 8px 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f0f8 100%);
  border-bottom: 1px solid #b9c5d1;
}
.ib-board .el-card__body,
.ib-board > .ib-board__body {
  padding: 8px 10px 12px;
  background: #f3f6f9;
}
.ib-board .page-title {
  width: auto !important;
  min-width: 200px;
  font-size: 14px;
  font-weight: 700;
  color: #1f3a5f;
}
.ib-board .page-title .text-danger {
  color: #c0392b !important;
}

/* 顶部状态条：期号 / 封盘 / 倒计时 */
.ib-status-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 16px;
  padding: 6px 8px;
  margin: 6px 0 8px;
  background: #fff;
  border: 1px solid #c5d0db;
  border-radius: 2px;
  font-size: 13px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-status-bar .ib-period {
  color: #1a5fb4;
  font-weight: 700;
}
.ib-status-bar .ib-countdown {
  color: #c0392b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ib-status-bar .ib-ok {
  color: #1a7f37;
  font-weight: 700;
}
.ib-summary {
  margin-left: auto;
  color: #333;
  font-size: 12px;
}
.ib-summary em {
  font-style: normal;
  color: #c0392b;
  font-weight: 700;
}
.ib-today-wl {
  font-weight: 700;
  color: #1f3a5f;
  font-variant-numeric: tabular-nums;
}
.ib-today-wl.is-neg { color: #c0392b; }
.ib-today-wl.is-zero { color: #666; }

/* 运营条：对齐对方顶栏（左期号封盘输赢 / 中盘口虚注排序 / 右上期开奖） */
.ib-ops-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 14px;
  padding: 6px 8px;
  margin: 6px 0 8px;
  background: #fff;
  border: 1px solid #c5d0db;
  border-radius: 2px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-ops-bar--ref {
  justify-content: flex-start;
}
.ib-ops-left {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  flex: 0 0 auto;
}
.ib-ops-period {
  color: #1a5fb4;
  font-weight: 700;
}
.ib-ops-groupname {
  color: #1f3a5f;
  font-weight: 700;
}
.ib-ops-seal {
  color: #c0392b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ib-ops-seal.is-open {
  color: #1a7f37;
}
.ib-ops-mid {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  flex: 0 0 auto;
}
.ib-ops-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ib-ops-btn {
  border: 1px solid #9eb6ce;
  border-radius: 2px;
  background: linear-gradient(180deg, #eef6ff 0%, #d7e8f8 100%);
  color: #1f3a5f;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  line-height: 1.4;
}
.ib-ops-btn.is-active {
  background: #fff;
  border-color: #2f6fb5;
  color: #0b3d8c;
  box-shadow: inset 0 2px 0 #2f6fb5;
}
.ib-ops-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #eef1f4;
  color: #667;
}
.ib-ops-btn.is-active.is-disabled {
  opacity: 0.7;
  box-shadow: none;
}

/* 上期开奖号码（对方同款：号码 + xx期开奖） */
.ib-last-open {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 6px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-status-bar.ib-last-open {
  width: auto;
}
.ib-open-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff 0%, #e8f0f8 100%);
  border: 1px solid #8aa8c4;
  color: #0b3d8c;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* 开奖球色：与会员 Vue 同口径 car01~car10 / 六合波色 / SSC 圆球 */
.ib-open-ball.lh-car,
.ib-open-ball.lh-round,
.ib-open-ball.lhc-ball,
.ib-open-ball.pcdd-ball,
.ib-open-ball[class*="car0"],
.ib-open-ball.car10 {
  border: none;
  padding: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  color: #fff;
  font-size: 12px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.ib-open-ball.lh-round,
.ib-open-ball.ib-ssc-ball {
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6b6b, #d62828);
}
.ib-open-ball.lhc-ball,
.ib-open-ball.pcdd-ball {
  border-radius: 50%;
}
.ib-open-ball.lhc-ball--red { background: #e7352e; }
.ib-open-ball.lhc-ball--blue { background: #00b6ff; }
.ib-open-ball.lhc-ball--green { background: #1c971b; }
.ib-open-ball.lhc-ball--muted { background: #bdbdbd; color: #333; }
.ib-open-ball.pcdd-ball--digit { background: linear-gradient(180deg, #5b8def, #2f5fbf); }
.ib-open-ball.pcdd-ball--sum { background: linear-gradient(180deg, #ff8a3d, #d95a00); }
.ib-open-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  font-weight: 700;
  color: #1f3a5f;
}
/* 会员同款车号色 car01~car10 */
.ib-open-ball.car01, .ib-kind.car01 { background: linear-gradient(#e0d905, #c6c004); color: #333; border-radius: 4px; }
.ib-open-ball.car02, .ib-kind.car02 { background: linear-gradient(#0092dd, #0278b5); border-radius: 4px; }
.ib-open-ball.car03, .ib-kind.car03 { background: linear-gradient(#4b4b4b, #333); border-radius: 4px; }
.ib-open-ball.car04, .ib-kind.car04 { background: linear-gradient(#ff7600, #ee6f02); border-radius: 4px; }
.ib-open-ball.car05, .ib-kind.car05 { background: linear-gradient(#17e2e5, #14c4c7); color: #133; border-radius: 4px; }
.ib-open-ball.car06, .ib-kind.car06 { background: linear-gradient(#5234ff, #452ae1); border-radius: 4px; }
.ib-open-ball.car07, .ib-kind.car07 { background: linear-gradient(#bfbfbf, #a9a8a8); color: #222; border-radius: 4px; }
.ib-open-ball.car08, .ib-kind.car08 { background: linear-gradient(#ff2600, #e82402); border-radius: 4px; }
.ib-open-ball.car09, .ib-kind.car09 { background: linear-gradient(#780b00, #5c0a02); border-radius: 4px; }
.ib-open-ball.car10, .ib-kind.car10 { background: linear-gradient(#07bf00, #08a302); border-radius: 4px; }
.ib-kind.car01, .ib-kind.car02, .ib-kind.car03, .ib-kind.car04, .ib-kind.car05,
.ib-kind.car06, .ib-kind.car07, .ib-kind.car08, .ib-kind.car09, .ib-kind.car10 {
  display: inline-flex;
  width: 22px;
  height: 22px;
  min-width: 22px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.ib-kind.car01, .ib-kind.car05, .ib-kind.car07 { color: #222; }
/* 兼容旧 lh-car */
.ib-open-ball.lh-car {
  border-radius: 3px;
}
.ib-open-ball.lh-round {
  border: none;
  padding: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6b6b, #d62828);
  color: #fff;
  font-size: 12px;
}
/* 板内号码种类：同色车号块 */
.ib-kind.lh-car {
  display: inline-flex;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0 auto;
  padding: 0;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* 玩法页签：对方那种浅蓝大块；窄屏一排横滑，禁止折行被裁切 */
.ib-board > .ib-board__body > div > .el-radio-group,
.ib-board .ib-config-tabs.el-radio-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 4px 0 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-board .ib-config-tabs .el-radio-button {
  flex: 0 0 auto;
}
.ib-board .ib-config-tabs .el-radio-button__inner,
.ib-board .el-radio-group.ib-config-tabs .el-radio-button__inner {
  border: 1px solid #9eb6ce !important;
  border-radius: 2px !important;
  background: linear-gradient(180deg, #eef6ff 0%, #d7e8f8 100%) !important;
  box-shadow: none !important;
  color: #1f3a5f !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600;
  min-width: 88px;
}
.ib-board .ib-config-tabs .el-radio-button.is-active .el-radio-button__inner {
  background: linear-gradient(180deg, #fff 0%, #e8f2fc 100%) !important;
  border-color: #2f6fb5 !important;
  border-top: 3px solid #2f6fb5 !important;
  color: #0b3d8c !important;
}

/* 彩种一排：完整显示，左右滑，禁止折行后右边被挡 */
.ib-board .game-radio-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-board .game-radio-group .el-radio-button {
  flex: 0 0 auto;
}

/* 彩种切换仍用链接感，不抢玩法页签 */
.ib-board .game-radio-group .el-radio-button__inner,
.ib-board > .ib-board__body > .el-radio-group:first-of-type .el-radio-button__inner {
  border: 0 !important;
  background: transparent !important;
  color: #1a5fb4 !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
}
.ib-board .game-radio-group .el-radio-button.is-active .el-radio-button__inner {
  color: #fff !important;
  background: #2f6fb5 !important;
  border-radius: 2px !important;
}

/* PK10 三大组页签（对方同款大块） */
.ib-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}
.ib-group-tab {
  flex: 1 1 180px;
  min-width: 140px;
  text-align: center;
  padding: 8px 10px 6px;
  border: 1px solid #9eb6ce;
  border-radius: 2px;
  background: linear-gradient(180deg, #eef6ff 0%, #d7e8f8 100%);
  cursor: pointer;
  color: #1f3a5f;
  user-select: none;
}
.ib-group-tab.is-active {
  background: #fff;
  border-color: #2f6fb5;
  border-top: 3px solid #2f6fb5;
  color: #0b3d8c;
  font-weight: 700;
}
.ib-group-tab .ib-group-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.ib-group-tab .ib-group-amt {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #c0392b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 多列面板：一排横滑；列不压扁、不被外壳裁切 */
.ib-cols {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-pk10-board.ib-cols {
  flex-wrap: nowrap;
}
.ib-panel {
  flex: 1 1 0;
  min-width: 200px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #b9c5d1;
  border-radius: 2px;
  overflow: hidden;
}
/* 电脑约一屏四列宽；列不许再被压扁（病根：min-width:0 + shrink） */
.ib-pk10-board .ib-panel,
.ib-ssc-board .ib-panel,
.ib-cate-board .ib-panel,
.ib-pc286-board .ib-panel,
.ib-lhc-pingte-board .ib-panel {
  flex: 0 0 25%;
  min-width: 220px;
  max-width: none;
}
.ib-sec-title {
  padding: 3px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1f3a5f;
  background: #e8f1fa;
  border-bottom: 1px solid #d0dbe6;
}
.ib-panel-title {
  padding: 5px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1f3a5f;
  background: linear-gradient(180deg, #eaf3fb 0%, #d4e4f4 100%);
  border-bottom: 1px solid #b9c5d1;
}
.ib-head-row,
.ib-line {
  display: grid;
  grid-template-columns: minmax(48px, 1.1fr) minmax(48px, 0.9fr) minmax(48px, 0.9fr) minmax(52px, 1fr);
  align-items: center;
  column-gap: 2px;
  padding: 0 3px;
  min-height: 22px;
  font-size: 12px;
  border-bottom: 1px solid #d7e0ea;
  background: #fff;
}
.ib-head-row {
  background: #f0f4f8;
  font-weight: 700;
  color: #334;
  text-align: center;
  min-height: 22px;
}
.ib-line.is-open {
  background: #e8f6e4;
}
.ib-kind {
  color: #222;
  font-weight: 600;
  text-align: center;
  padding: 2px 0;
}
.ib-odds {
  color: #1a5fb4;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ib-odds-btn {
  border: 1px solid #9db4c9;
  background: #eef4fa;
  color: #1a5fb4;
  width: 16px;
  height: 16px;
  line-height: 14px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}
.ib-odds-btn:hover {
  background: #d6e6f5;
}
.ib-odds-step-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #c5d0db;
  border-radius: 2px;
  font-size: 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ib-odds-step-bar .ib-ops-btn {
  flex: 0 0 auto;
}
.ib-odds-step-label {
  color: #1f3a5f;
  font-weight: 700;
  margin-right: 4px;
}
.ib-amt {
  text-align: center;
  color: #888;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.ib-amt.has-bet {
  color: #1a7f37;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.ib-pl {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #1a7f37;
}
.ib-pl.is-neg {
  color: #c0392b;
  font-weight: 700;
}
.ib-pl.is-zero {
  color: #888;
}
.ib-foot {
  padding: 4px 8px;
  font-size: 12px;
  color: #333;
  background: #f7fafc;
  border-top: 1px solid #d7e0ea;
}
.ib-foot em {
  font-style: normal;
  font-weight: 700;
  color: #c0392b;
}

/* 旧 el-card 格子：强制收成行，避免双层卡片 */
.ib-board .ib-line .el-card,
.ib-board .el-card.ib-gone {
  display: none;
}

/* 兼容未改完的 el-row / el-col 包一层 TextCard */
.ib-board .el-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.ib-board .el-col {
  padding-left: 4px !important;
  padding-right: 4px !important;
  margin-bottom: 0 !important;
}
.ib-board .el-col .ib-line {
  border: 1px solid #d7e0ea;
  margin-bottom: 2px;
}
.ib-board hr {
  border: 0;
  border-top: 1px solid #c5d0db;
  margin: 8px 0;
}
.ib-board h4 {
  margin: 6px 0 4px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f3a5f;
  background: linear-gradient(180deg, #eaf3fb 0%, #d4e4f4 100%);
  border: 1px solid #b9c5d1;
}

/* 六合彩球 */
.ib-board .lhc-ball {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  margin: 0 2px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .ib-panel {
    flex-basis: 100%;
  }
  .ib-pk10-board .ib-panel,
  .ib-ssc-board .ib-panel,
  .ib-cate-board .ib-panel,
  .ib-pc286-board .ib-panel,
  .ib-lhc-pingte-board .ib-panel {
    flex: 0 0 220px;
    min-width: 220px;
    flex-basis: 220px;
    max-width: none;
  }
  .ib-head-row,
  .ib-line {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
    font-size: 11px;
  }
}
