/** 模板2 开奖区 KJ-TabBox */

/* iframe-conten 原固定高度改由内容撑开 */
.template2-page .iframe-conten {
  height: auto !important;
  min-height: 0;
}

.iframe-conten .KJ-TabBox {
  width: 100%;
  background: #fff;
}

.iframe-conten .KJ-TabBox ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  list-style: none;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}

.iframe-conten .KJ-TabBox li {
  margin: 0;
  list-style: none;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  border: 1px solid gainsboro;
  border-bottom: 0;
  display: inline-block;
  color: #000;
  cursor: pointer;
  box-sizing: border-box;
}

.iframe-conten .KJ-TabBox li:first-child {
  border-left: solid 1px gainsboro;
  border-right: none;
}

.iframe-conten .KJ-TabBox li:nth-child(2),
.iframe-conten .KJ-TabBox li:nth-child(3) {
  border-right: none;
}

.iframe-conten .KJ-TabBox li.cur {
  color: limegreen;
  font-weight: bold;
  background-color: white;
  cursor: default;
  border-color: limegreen;
  border-left: solid 1px;
  border-right: solid 1px;
}

.iframe-conten .KJ-TabBox > div {
  border-top: 1px solid gainsboro;
  margin-top: -1px;
  display: none;
}

.iframe-conten .KJ-TabBox > div.cur {
  display: block !important;
  border-color: limegreen;
}

.iframe-conten .KJ-TabBox .KJ-IFRAME {
  background: white;
}

/* mydata.php 内联样式（参考站） */
.iframe-conten .KJ-TabBox .cgi-body {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.iframe-conten .KJ-TabBox .kj-tit {
  height: 28px;
  line-height: 28px;
  color: #000;
  font-size: 18px;
  border-top: solid 3px #f8f8f8;
  background: #ffffcc;
  font-weight: bold;
  font-family: SimSun, 'Songti SC', serif;
  padding-left: 2%;
  box-sizing: border-box;
}

.iframe-conten .KJ-TabBox .kj-tit table {
  width: 100%;
  border-collapse: collapse;
  height: 100%;
}

.iframe-conten .KJ-TabBox .kj-tit td {
  vertical-align: middle;
}

.iframe-conten .KJ-TabBox .kj-tit em,
.iframe-conten .KJ-TabBox .kj-tit .em {
  color: #e22121;
  font-style: normal;
}

.template2-page .iframe-conten .KJ-TabBox .cgi-body:not(.t2-kj-painted) .kj-box {
  visibility: hidden;
}

.iframe-conten .KJ-TabBox .kj-box {
  padding: 3px 0 1px;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #eee;
  background: #f8f8f8;
  /* 预告/直播中无生肖数据时也占位，避免与已开奖区高度跳动 */
  min-height: 66px;
  box-sizing: border-box;
}

.iframe-conten .KJ-TabBox .kj-box::after {
  content: '';
  display: block;
  clear: both;
}

.iframe-conten .KJ-TabBox .kj-l {
  float: left;
  width: 83%;
}

.iframe-conten .KJ-TabBox .kj-r {
  float: right;
  width: 15%;
}

.iframe-conten .KJ-TabBox .kj-box table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.iframe-conten .KJ-TabBox .kj-box th,
.iframe-conten .KJ-TabBox .kj-box td {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  text-align: center;
  border: solid 1px #ddd;
  background: #fff;
  font-weight: bold;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  vertical-align: middle;
}

.iframe-conten .KJ-TabBox .kj-box th {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.iframe-conten .KJ-TabBox .kj-box th.blue {
  background: #00f;
}

.iframe-conten .KJ-TabBox .kj-box th.green {
  background: #090;
}

.iframe-conten .KJ-TabBox .kj-box th.red {
  background: red;
}

/* 模板2：揭晓中未出球 — 与模板1 .ball.pending 同色（#767676 / #161616） */
.template2-page .iframe-conten .KJ-TabBox .kj-box th.t2-kj-live-pending {
  background: #767676 !important;
  color: #161616;
  vertical-align: middle;
}

.template2-page .iframe-conten .KJ-TabBox .kj-box th.t2-kj-live-pending .num:not(.t2-kj-live-msg) {
  color: #161616;
}

.template2-page .iframe-conten .KJ-TabBox .kj-box th.t2-kj-live-pending .num.t2-kj-live-msg {
  /* 与已开奖 .num 相同块级排版，避免 flex 在 table 里把行高压矮 */
  display: block;
  width: 100%;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  color: #161616;
  font-family: 'Microsoft YaHei', sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.iframe-conten .KJ-TabBox .kj-box .num {
  display: block;
  width: 100%;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  box-sizing: border-box;
}

.iframe-conten .KJ-TabBox .kj-box td {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  font-size: 24px;
  color: #222;
}

.iframe-conten .KJ-TabBox .kj-box .txt {
  display: block;
  width: 100%;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  font-size: 24px;
  font-weight: 700;
  box-sizing: border-box;
}

.iframe-conten .KJ-TabBox .kj-tit .hist {
  background: #ffd6ff;
}

.iframe-conten .KJ-TabBox .kj-tit .hist a,
.iframe-conten .KJ-TabBox .kj-tit .hist b {
  color: navy;
  font-weight: 700;
  text-decoration: none;
}

.iframe-conten .KJ-TabBox .kj-tit .refresh-cell {
  background: #f7f7b4;
}

.iframe-conten .KJ-TabBox .kj-tit .refresh-cell a,
.iframe-conten .KJ-TabBox .kj-tit .refresh-cell font {
  color: purple;
  text-decoration: none;
}