/**
 * 管理端开奖结果 —— 对齐代理后台「历史开奖结果」视觉
 * 算法见 lottery-result-history-derive.js；节点渲染见 lottery-result-history-ui.js
 *
 * 要求：整表一屏左右放得下（禁止横向滚动）；按业务日一页拉全（不分页）。
 */

/* 页壳 */
.lottery-history-page.el-card {
  border: 1px solid #c5d0db;
  border-radius: 2px;
  box-shadow: none;
  overflow-x: hidden;
}
.lottery-history-page .el-card__header {
  padding: 10px 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
  border-bottom: 1px solid #c5d0db;
}
.lottery-history-page .page-title {
  width: auto !important;
  min-width: 220px;
  font-size: 15px;
  font-weight: 700;
  color: #1f3a5f;
  letter-spacing: 0.02em;
}
.lottery-history-page .page-title .text-danger {
  color: #c0392b !important;
}

/* 彩种切换：做成对方那种文字链风格 */
.lottery-history-page .el-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  padding: 6px 2px 10px;
  border-bottom: 1px solid #d7e0ea;
  margin-bottom: 8px;
}
.lottery-history-page .el-radio-button {
  margin: 0 !important;
}
.lottery-history-page .el-radio-button__inner {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1a5fb4 !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  font-weight: 500;
}
.lottery-history-page .el-radio-button__inner:hover {
  color: #0b3d8c !important;
  text-decoration: underline;
}
.lottery-history-page .el-radio-button.is-active .el-radio-button__inner {
  color: #fff !important;
  background: #2f6fb5 !important;
  border-radius: 2px !important;
  text-decoration: none !important;
}

/* 表：禁止横向滚动，列宽自适应挤进可视区 */
.lh-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid #b9c2cb;
  background: #fff;
}
.lh-hist-table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 12px;
}
.lh-hist-table th {
  background: #e8f2fa;
  color: #243447;
  font-weight: 700;
  border: 1px solid #b9c2cb;
  padding: 5px 2px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  word-break: keep-all;
}
.lh-hist-table td {
  border: 1px solid #c9d3de;
  padding: 4px 2px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}
.lh-hist-table tbody tr:nth-child(even) td {
  background: #f7fafc;
}
.lh-hist-table tbody tr:hover td {
  background: #fff8e8;
}
.lh-empty {
  color: #909399;
  padding: 18px 0 !important;
}
.lh-day-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: #667788;
  text-align: right;
}
.lh-op-btn {
  margin: 0 2px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #1a5fb4;
  cursor: pointer;
  font-size: 12px;
}
.lh-op-btn:hover { text-decoration: underline; }
.lh-op-btn:disabled {
  color: #adb5bd;
  cursor: not-allowed;
  text-decoration: none;
}
.lh-hist-table .text-muted { color: #9aa4af; }

/* PK10 车号彩球（代理后台同款色，略缩小以一屏放下） */
.lh-balls {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}
.lh-car {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  flex: 0 0 auto;
}
.lh-car--1 { background: #e6c800; color: #333; }
.lh-car--2 { background: #1e90ff; }
.lh-car--3 { background: #4a4a4a; }
.lh-car--4 { background: #ff7a00; }
.lh-car--5 { background: #36d7e0; color: #133; }
.lh-car--6 { background: #5b2cff; }
.lh-car--7 { background: #b8b8b8; color: #222; }
.lh-car--8 { background: #e31c23; }
.lh-car--9 { background: #7a0010; }
.lh-car--10 { background: #12a312; }

/* 通用圆球 */
.lh-round {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6b6b, #d62828);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.lh-balls--kl8 .lh-round {
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  background: linear-gradient(180deg, #5aa9ff, #1f6fd0);
}

/* 大小单双 / 龙虎 色标 */
.lh-tag,
.lh-chip {
  font-style: normal;
  display: inline-block;
  min-width: 1.2em;
  margin: 0 1px;
  padding: 0 3px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}
.lh-tag--da,
.lh-tag--dan,
.lh-tag--long { color: #fff; background: #e03131; }
.lh-tag--xiao,
.lh-tag--shuang,
.lh-tag--hu { color: #fff; background: #1c7ed6; }
.lh-tag--he { color: #fff; background: #868e96; }
.lh-tag--red { color: #fff; background: #e03131; }
.lh-tag--blue { color: #fff; background: #1c7ed6; }
.lh-tag--green { color: #fff; background: #2f9e44; }

.lh-sum {
  font-style: normal;
  display: inline-block;
  min-width: 1.2em;
  margin: 0 2px;
  font-weight: 700;
  color: #243447;
}
.lh-sum--pc {
  color: #c0392b;
  font-size: 13px;
}
.lh-gyh,
.lh-dldh,
.lh-dxds,
.lh-pcdd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px;
}
.lh-op {
  margin: 0 1px;
  color: #667788;
  font-weight: 600;
}
.lh-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

/* 六合彩球 */
.lh-lhc-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.lh-lhc-ball {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.lh-lhc-ball--red { background: linear-gradient(180deg, #ff6b6b, #d62828); }
.lh-lhc-ball--blue { background: linear-gradient(180deg, #74c0fc, #1c7ed6); }
.lh-lhc-ball--green { background: linear-gradient(180deg, #8ce99a, #2f9e44); }
.lh-lhc-ball--muted { background: #ced4da; color: #495057; }
.lh-lhc-sx {
  font-style: normal;
  margin-top: 1px;
  font-size: 10px;
  color: #495057;
}
