* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #ece9d8;
  font: 12px/1.2 "Microsoft YaHei", "SimSun", "Segoe UI", sans-serif;
  color: #000;
  overflow: hidden;
  user-select: none;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f0f0f0;
  border: 1px solid #a0a0a0;
}

/* ?? WinForms-like tabs ?? */
.tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 4px 4px 0 6px;
  background: #f0f0f0;
  border-bottom: 1px solid #a0a0a0;
  min-height: 28px;
}

.tab {
  appearance: none;
  border: 1px solid #a0a0a0;
  border-bottom: none;
  background: #e8e8e8;
  color: #000;
  padding: 4px 14px 5px;
  margin-right: 1px;
  margin-bottom: -1px;
  border-radius: 3px 3px 0 0;
  cursor: default;
  position: relative;
  z-index: 1;
  outline: none;
  font: inherit;
}

.tab:hover:not(.active) {
  background: #efefef;
}

.tab.active {
  background: #fff;
  z-index: 2;
  padding-bottom: 6px;
  font-weight: normal;
}

/* 运行状况页 · 仪表盘风格 */
.panel[data-panel="runstatus"].active {
  display: block;
  overflow: auto;
  background: #eef2f6;
}
.rs-dash {
  --rs-navy: #0c2d5a;
  --rs-blue: #1f6fd6;
  --rs-green: #1f9d5a;
  --rs-orange: #e08a2b;
  --rs-cyan: #1a9bb5;
  --rs-teal: #2a8f8a;
  --rs-slate: #5a6b7d;
  --rs-card: #ffffff;
  --rs-line: #e4eaf1;
  min-height: 100%;
  padding: 0 0 20px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #243447;
  background:
    linear-gradient(180deg, #d7e4f4 0%, #eef2f6 120px, #eef2f6 100%);
}
.rs-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #0c2d5a 0%, #164a8c 55%, #1a5aa8 100%);
  color: #fff;
}
.rs-dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rs-dash-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, #7eb6ff, transparent 55%),
    linear-gradient(145deg, #2f7fd6, #0e3d72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.rs-dash-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rs-dash-sub {
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.92;
}
.rs-dash-sub.is-running { color: #9dffc0; }
.rs-dash-sub.is-idle { color: #c5d4e8; }
.rs-dash-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rs-dash-date {
  font-size: 13px;
  opacity: 0.9;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.rs-btn {
  appearance: none;
  border: 0;
  border-radius: 4px;
  padding: 7px 14px;
  background: #fff;
  color: #0c2d5a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rs-btn:hover { background: #e8f1ff; }

.rs-dash-runtime {
  font-size: 13px;
  opacity: 0.95;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
}
.rs-conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #d7e4f5;
  font-size: 12px;
  font-weight: 700;
  max-width: 360px;
}
.rs-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a9aab;
  flex: 0 0 auto;
}
.rs-conn-main { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-conn-sub {
  display: inline;
  white-space: nowrap;
  font-weight: 600;
  font-size: 11px;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 6px;
  margin-left: 2px;
}
.rs-conn-sub[hidden] {
  display: none !important;
}
.rs-conn.is-good {
  border-color: rgba(61, 158, 111, 0.6);
  background: rgba(61, 158, 111, 0.18);
  color: #b8f0d0;
}
.rs-conn.is-good .rs-conn-dot { background: #3d9e6f; }
.rs-conn.is-fair {
  border-color: rgba(232, 168, 56, 0.65);
  background: rgba(232, 168, 56, 0.16);
  color: #ffe0a6;
}
.rs-conn.is-fair .rs-conn-dot { background: #e8a838; }
.rs-conn.is-poor,
.rs-conn.is-down {
  border-color: rgba(229, 57, 53, 0.65);
  background: rgba(229, 57, 53, 0.16);
  color: #ffc4c1;
}
.rs-conn.is-poor .rs-conn-dot,
.rs-conn.is-down .rs-conn-dot { background: #e53935; }
.rs-conn.is-mem {
  border-color: rgba(255, 152, 0, 0.7);
  background: rgba(255, 152, 0, 0.18);
  color: #ffe0b2;
}
.rs-conn.is-mem .rs-conn-dot { background: #ff9800; }

.rs-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(61, 158, 111, 0.55);
  background: rgba(61, 158, 111, 0.18);
  color: #b8f0d0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rs-live.is-off {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}
.rs-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d9e6f;
  box-shadow: 0 0 0 0 rgba(61, 158, 111, 0.7);
  animation: rsLivePulse 1.4s ease-out infinite;
}
.rs-live.is-off .rs-live-dot {
  background: #8a9aab;
  animation: none;
  box-shadow: none;
}
.rs-live-at {
  font-size: 12px;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
  min-width: 5.5em;
}
@keyframes rsLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 158, 111, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(61, 158, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 158, 111, 0); }
}
.rs-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.rs-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.rs-alert {
  margin: 0;
  padding: 8px 16px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 13px;
  border-bottom: 1px solid #f0d2a0;
}
.rs-alert.is-error {
  background: #fdecea;
  color: #a02828;
  border-color: #f0b4b0;
}
.rs-alert.is-seal {
  background: #e8f0ff;
  color: #1a4a8c;
  border-color: #b8cff0;
}
.rs-alert[hidden] { display: none !important; }

.rs-kpi-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 0;
}
.rs-progress {
  position: relative;
  height: 8px;
  margin: 10px 16px 0;
  border-radius: 99px;
  background: #dde5ee;
  overflow: hidden;
}
.rs-prog-cfg,
.rs-prog-run {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
}
.rs-prog-cfg { background: #7eb6ff; opacity: 0.55; }
.rs-prog-run { background: #1f9d5a; }
.rs-foot {
  margin: 12px 16px 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #6a7b8d;
  background: #f5f8fb;
  border: 1px solid #e4eaf1;
  border-radius: 4px;
}
.runstatus-code {
  cursor: pointer;
}
.runstatus-code:hover {
  border-color: #2f7fd6;
  box-shadow: 0 0 0 1px rgba(47, 127, 214, 0.25);
}
.rs-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: var(--rs-card);
  border-radius: 6px;
  border: 1px solid var(--rs-line);
  box-shadow: 0 1px 2px rgba(16, 40, 80, 0.04);
}
.rs-kpi-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.rs-c-blue { background: #2f7fd6; }
.rs-c-green { background: #1f9d5a; }
.rs-c-orange { background: #e08a2b; }
.rs-c-cyan { background: #1a9bb5; }
.rs-c-teal { background: #2a8f8a; }
.rs-c-slate { background: #5a6b7d; }
.rs-c-up { background: #e53935; }
.rs-c-down { background: #1b8a4a; }
.rs-kpi-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a2b3d;
}
.rs-kpi-num-sm { font-size: 16px; letter-spacing: -0.02em; }
.rs-kpi-label {
  margin-top: 2px;
  font-size: 12px;
  color: #6a7b8d;
}
.rs-kpi-foot {
  margin-top: 4px;
  font-size: 11px;
  color: #8a9aab;
}

.rs-card-chart {
  margin: 12px 16px 0;
}
.rs-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 0 0 8px;
  font-size: 12px;
  color: #5a6b7d;
}
.rs-lg {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border-radius: 2px;
}
.rs-lg-blue { background: #4a90e8; }
.rs-lg-green { background: #5cb85c; }
.rs-lg-teal { background: rgba(42, 143, 138, 0.55); }
.rs-lg-line {
  height: 3px;
  width: 16px;
  border-radius: 2px;
  background: #f0a020;
  vertical-align: 3px;
  position: relative;
}
.rs-lg-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #f0a020;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px #f0a020;
}
.rs-chart-box {
  position: relative;
  width: 100%;
  height: 300px;
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 4px;
}
.rs-chart-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.rs-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9aab;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.86);
}
.rs-chart-empty[hidden] { display: none !important; }

.rs-mid-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  padding: 12px 16px 0;
}
.rs-card {
  background: var(--rs-card);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 40, 80, 0.04);
  padding: 12px 14px 14px;
  min-width: 0;
}
.rs-card-table {
  margin: 12px 16px 0;
}
.rs-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1a2b3d;
}
.rs-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: #6a7b8d;
  background: #f2f6fa;
  border-radius: 99px;
  padding: 2px 10px;
}
.rs-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.rs-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#1f9d5a 0deg, #d5dde6 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.rs-donut-center {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #eef2f6;
}
.rs-donut-center strong {
  font-size: 20px;
  color: #0c2d5a;
}
.rs-donut-center span {
  font-size: 11px;
  color: #7a8b9c;
}
.rs-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #405468;
}
.rs-legend b { color: #1a2b3d; margin-left: 4px; }
.rs-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.rs-dot.on { background: #1f9d5a; }
.rs-dot.off { background: #c5d0db; }

.runstatus-codes {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}
.runstatus-code {
  min-width: 0;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #f5f8fb;
  color: #6a7b8d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.runstatus-code.is-on {
  border-color: #8fd4a8;
  background: #e7f8ee;
  color: #146c3a;
}
.runstatus-code.is-view {
  box-shadow: inset 0 0 0 2px #2f7fd6;
}
.runstatus-code .rs-label { display: block; }
.runstatus-code .rs-state {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
}

.rs-remind {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rs-remind li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #405468;
  line-height: 1.45;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rs-line);
}
.rs-remind li:last-child { border-bottom: 0; padding-bottom: 0; }
.rs-pill {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.rs-pill.run { background: #1f9d5a; }
.rs-pill.idle { background: #8a9aab; }
.rs-pill.warn { background: #e08a2b; }
.rs-pill.info { background: #2f7fd6; }
.rs-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rs-line);
  font-size: 12px;
  color: #6a7b8d;
}

.rs-table-wrap {
  overflow: auto;
  max-height: 320px;
  border: 1px solid var(--rs-line);
  border-radius: 4px;
}
.rs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.rs-table th,
.rs-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #edf1f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-table th {
  background: #f5f8fb;
  color: #5a6b7d;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.rs-table tbody tr:hover { background: #f7fafc; }
.rs-table .rs-st-on { color: #1f9d5a; font-weight: 700; }
.rs-table .rs-st-off { color: #8a9aab; }

/* 方案上涨下跌 · 考勤表风格 */
.rs-card-attend .rs-card-head {
  margin-bottom: 6px;
}
.rs-link-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a9aab;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.rs-link-more:hover { color: #2f7fd6; }
.rs-attend-tip {
  font-size: 12px;
  color: #8a9aab;
  margin: 0 0 10px;
}
.rs-attend-wrap {
  max-height: 420px;
  border: 0;
  border-radius: 0;
}
.rs-attend-table {
  table-layout: auto;
}
.rs-attend-table th,
.rs-attend-table td {
  text-align: center;
  padding: 11px 10px;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
  color: #3a4a5a;
}
.rs-attend-table th {
  background: #f5f7fa;
  color: #5a6b7d;
  font-weight: 500;
}
.rs-attend-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
  color: #243447;
}
.rs-attend-table tbody tr:last-child td { border-bottom: 0; }
/* 默认（非股票页）绿涨红跌保留；股票盘面见 .is-stock */
.rs-up { color: #1f9d5a !important; font-weight: 600; }
.rs-down { color: #e04545 !important; font-weight: 600; }
.rs-flat { color: #8a9aab !important; }

/* —— 股票盘面：A股习惯 红涨绿跌 —— */
.rs-dash.is-stock {
  --stk-up: #e53935;
  --stk-down: #1b8a4a;
  --stk-flat: #8a9aab;
  --stk-bg: #0b1a2e;
  background:
    linear-gradient(180deg, #0c1f38 0%, #122a45 90px, #e8eef5 90px, #e8eef5 100%);
}
.rs-dash.is-stock .rs-up { color: var(--stk-up) !important; }
.rs-dash.is-stock .rs-down { color: var(--stk-down) !important; }
.rs-dash.is-stock .rs-c-up { background: var(--stk-up); }
.rs-dash.is-stock .rs-c-down { background: var(--stk-down); }
.rs-dash.is-stock .rs-lg-win { background: #3d9e6f; }

.rs-ticker {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px;
  background: #0a1628;
  border-bottom: 1px solid #1e3a5f;
}
.rs-tick {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 4px;
  background: #132a45;
  border: 1px solid #1e3a5f;
  cursor: pointer;
  text-align: center;
  color: #c5d4e8;
  transition: background 0.15s, box-shadow 0.15s;
}
.rs-tick:hover { border-color: #3a6ea5; }
.rs-tick.is-on { box-shadow: inset 0 0 0 1px #3d9e6f; }
.rs-tick.is-view { outline: 1px solid #4a90e8; }
.rs-tick .t-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rs-tick .t-price {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rs-tick .t-dual {
  display: grid;
  gap: 2px;
  margin-top: 3px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: left;
}
.rs-tick .t-dual .tg { color: #3d9e6f; font-weight: 700; }
.rs-tick .t-dual .tb { color: #5a9ce8; font-weight: 700; }
.rs-tick .t-chg {
  margin-top: 2px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.rs-tick.is-up .t-price,
.rs-tick.is-up .t-chg { color: var(--stk-up, #e53935); }
.rs-tick.is-down .t-price,
.rs-tick.is-down .t-chg { color: var(--stk-down, #1b8a4a); }
.rs-track-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.rs-track-pill.is-g {
  color: #146c3a;
  background: rgba(31, 157, 90, 0.14);
}
.rs-track-pill.is-b {
  color: #1f4f9c;
  background: rgba(74, 144, 232, 0.16);
}
.rs-tick.flash-up { animation: rsFlashUp 0.7s ease; }
.rs-tick.flash-down { animation: rsFlashDown 0.7s ease; }
@keyframes rsFlashUp {
  0% { background: rgba(229, 57, 53, 0.35); }
  100% { background: #132a45; }
}
@keyframes rsFlashDown {
  0% { background: rgba(27, 138, 74, 0.35); }
  100% { background: #132a45; }
}

.rs-stock-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 12px;
  margin: 12px 16px 0;
  align-items: stretch;
}
.rs-dash.is-stock .rs-card-chart { margin: 0; }
.rs-board-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rs-board-card { flex: 1; min-height: 0; }
.rs-board-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  max-height: 160px;
  overflow: auto;
}
.rs-board-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  font-size: 13px;
  border-bottom: 1px solid #eef1f5;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.rs-board-list li:hover { background: #f5f8fb; }
.rs-board-list .b-rank { color: #8a9aab; font-size: 12px; }
.rs-board-list .b-name { font-weight: 600; color: #243447; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-board-list .b-price { min-width: 64px; text-align: right; }
.rs-board-list .b-pct { min-width: 72px; text-align: right; font-weight: 700; }
.rs-board-empty {
  padding: 16px 12px;
  text-align: center;
  color: #8a9aab;
  font-size: 12px;
}

.rs-quote-table th {
  background: #1a3354 !important;
  color: #c5d4e8 !important;
  border-color: #2a4a72 !important;
}
.rs-quote-table td {
  font-variant-numeric: tabular-nums;
}
.rs-quote-table tbody tr {
  cursor: pointer;
}
.rs-quote-table tbody tr.is-run {
  background: rgba(27, 138, 74, 0.06);
}
.rs-quote-table tbody tr:hover { background: #eef5ff; }
.rs-quote-table .rs-rec-high { color: #c62828; font-weight: 700; }
.rs-quote-table .rs-rec-mid { color: #e65100; font-weight: 600; }
.rs-quote-table .rs-rec-low { color: #6d757d; font-weight: 600; }
.rs-quote-table .rs-sustain {
  color: #0d47a1;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .rs-stock-main { grid-template-columns: 1fr; }
  .rs-ticker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rs-ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) {
  .rs-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .rs-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-mid-row { grid-template-columns: 1fr; }
  .runstatus-codes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rs-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runstatus-codes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-dash-head { flex-direction: column; align-items: flex-start; }
  .rs-dash-head-right { flex-wrap: wrap; }
}

/* ?? panels ?? */
.panels {
  flex: 1;
  min-height: 0;
  background: #fff;
  position: relative;
}

.panel {
  display: none;
  height: 100%;
  padding: 0;
  color: #666;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
.panel:not(.active) {
  content-visibility: hidden;
}

.panel.active {
  display: block;
  content-visibility: visible;
}

.panel:not([data-panel="plans"]):not([data-panel="codes"]):not([data-panel="bet1"]):not([data-panel="money"]):not([data-panel="collect"]):not([data-panel="runstatus"]).active {
  padding: 16px;
}

.panel[data-panel="money"].active {
  display: flex;
  flex-direction: column;
  padding: 0;
  color: #000;
}

.money-table-wrap {
  height: 100%;
  overflow: auto;
  background: #fff;
}

#moneyGrid {
  width: 100%;
  table-layout: fixed;
}

#moneyGrid th:nth-child(1),
#moneyGrid td:nth-child(1) { width: 50%; }
#moneyGrid th:nth-child(2),
#moneyGrid td:nth-child(2) { width: 50%; }

#moneyGrid td.money-edit {
  padding: 0;
}

#moneyGrid td.money-edit input {
  width: 100%;
  height: 22px;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0 6px;
}

#moneyGrid tr.selected td.money-edit input {
  color: #fff;
}

.scheme-side {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid #c0c0c0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.scheme-side-head {
  padding: 5px 10px;
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  border-bottom: 1px solid #c0c0c0;
  color: #222;
}

.scheme-side-list {
  flex: 1;
  overflow: auto;
}

.scheme-side-item {
  padding: 5px 10px;
  border-bottom: 1px solid #c5daf0;
  cursor: default;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scheme-side-item:hover:not(.selected) {
  background: #f5f9fc;
}

.scheme-side-item.selected {
  background: #0078d7;
  color: #fff;
}

.money-main {
  flex: 1;
  padding: 12px 16px;
  color: #333;
  overflow: auto;
}

.money-main-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.money-main-tip {
  margin-bottom: 6px;
  color: #0078d7;
}

.money-main-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.recharge-box {
  border: 1px solid #c0c0c0;
  background: #fff;
  max-width: 520px;
}

.recharge-grid {
  width: 100%;
}

.recharge-grid th {
  text-align: left;
}

.recharge-cell {
  padding: 0 !important;
}

.recharge-cell input {
  width: 100%;
  height: 26px;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  padding: 0 8px;
}

.recharge-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #ddd;
  background: #f7f7f7;
}

.recharge-status {
  color: #666;
}

.plans-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plans-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #c0c0c0;
  background: #f5f5f5;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.plans-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.plans-title { color: #222; white-space: nowrap; }
.plans-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 方案页开奖条：与投注1同源，略紧凑以免挤掉右侧按钮 */
.plans-draw-strip { gap: 8px; }
.plans-draw-strip .draw-strip-period {
  min-width: 84px;
  font-size: 14px;
  padding: 0 8px;
}
.plans-draw-strip .draw-sq {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.plans-draw-strip .draw-strip-countdown {
  min-width: 64px;
  height: 30px;
  font-size: 14px;
  padding: 0 10px;
}
.plans-runtime {
  margin-left: 4px;
  color: #146c2e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plans-wrap:not(.plans-running) .plans-runtime {
  color: #666;
}
.plans-code { display: flex; align-items: center; gap: 4px; color: #333; }
.plans-code select {
  height: 22px;
  border: 1px solid #adadad;
  background: #fff;
  font: inherit;
}
.btn-start {
  min-width: 64px;
  background: linear-gradient(180deg, #e8ffe8 0%, #c8f0c8 100%);
  border-color: #2e8b57;
  color: #146c2e;
}

.btn-start:hover:not(:disabled) {
  background: linear-gradient(180deg, #d8ffd8 0%, #b0e8b0 100%);
}

.btn-restart {
  min-width: 80px;
  background: linear-gradient(180deg, #e8f4ff 0%, #c8e0f8 100%);
  border-color: #3a7ebd;
  color: #1a5a8a;
}

.btn-restart:hover:not(:disabled) {
  background: linear-gradient(180deg, #d8ecff 0%, #b0d4f0 100%);
}

.btn-stop {
  min-width: 64px;
  background: linear-gradient(180deg, #ffe8e8 0%, #f0c8c8 100%);
  border-color: #c44;
  color: #a22;
}

.btn-stop:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffd8d8 0%, #e8b0b0 100%);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}


.plans-running-flag {
  color: #2e8b57;
  font-weight: bold;
  margin-left: 2px;
}
.plans-running-flag[hidden] {
  display: none !important;
}

#planGrid th.th-seq,
#planGrid td.cell-seq {
  width: 40px;
  min-width: 36px;
  max-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #445;
}
#planGrid th:nth-child(2),
#planGrid td:nth-child(2) { width: 120px; }
#planGrid td.cell-g {
  background: #d9f5d9;
  text-align: center;
  min-width: 36px;
  border-right: 1px solid #b7dfb7;
}
#planGrid td.cell-b {
  background: #d6ebf8;
  text-align: center;
  min-width: 36px;
  border-left: 1px solid #b3d4ea;
}
#planGrid td.cell-g.cell-active {
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #3d9e5a;
}
#planGrid td.cell-b.cell-active {
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #3a7ebd;
}
#planGrid tr.selected td.cell-g {
  background: #8fd49a;
  color: #fff;
}
#planGrid tr.selected td.cell-b {
  background: #7eb6d9;
  color: #fff;
}
/* ?????????????????????????????/???????? */
#planGrid.plans-track-g .cell-b,
#planGrid.plans-track-g thead .th-b {
  opacity: 0.32;
  filter: grayscale(0.35);
}
#planGrid.plans-track-b .cell-g,
#planGrid.plans-track-b thead .th-g {
  opacity: 0.32;
  filter: grayscale(0.35);
}
#planGrid.plans-track-g .cell-g,
#planGrid.plans-track-b .cell-b {
  font-weight: 600;
}
/* 当前筛选排序列高亮（主指标 + 主序轨） */
#planGrid thead th.sort-col-active {
  color: #1a6bb5;
  box-shadow: inset 0 -2px 0 #1a6bb5;
  font-weight: 700;
  cursor: pointer;
}
#planGrid thead th[data-sort-key] {
  cursor: pointer;
}
#planGrid thead th.sort-track-active {
  outline: 2px solid #1a6bb5;
  outline-offset: -2px;
  font-weight: 700;
}
#planGrid td.balance-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#planGrid td.share-cell {
  padding: 0;
}
#planGrid td.share-cell input {
  width: 100%;
  height: 22px;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0 6px;
  text-align: right;
}
#planGrid tr.selected td.share-cell input {
  color: #fff;
}

.bet-banner {
  flex-shrink: 0;
  padding: 4px 10px;
  background: #f0f5fa;
  border-bottom: 1px solid #c0c0c0;
  color: #333;
}

.bet1-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pred-card {
  flex-shrink: 0;
  margin: 8px 10px 0;
  padding: 10px 12px 12px;
  border: 1px solid #c8d4e0;
  border-radius: 6px;
  background: #e8e8e8;
  color: #222;
}

.pred-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.pred-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pred-title {
  font-size: 13px;
  font-weight: bold;
  color: #1a4d80;
}

.pred-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.draw-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.draw-strip-main {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #333;
  background: #f3f3f3;
  overflow: hidden;
}

.draw-strip-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0 10px;
  background: #e0e0e0;
  border-right: 1px solid #333;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.draw-strip-nums {
  display: inline-flex;
  align-items: stretch;
}

.draw-sq {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.draw-sq:last-child {
  border-right: none;
}

.draw-sq.dark-text {
  color: #111;
}

.draw-strip-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #333;
  background: #fff;
  color: #a33;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.bet1-tables-split {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 8px;
  margin: 6px 8px 8px;
}

.bet1-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0;
  contain: layout paint style;
}

.bet1-pane-label {
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.bet1-pane-green {
  border-color: #7cbc7c;
}
.bet1-pane-green .bet1-pane-label {
  background: #d9f5d9;
  color: #1e5c1e;
  border-bottom: 1px solid #7cbc7c;
}
.bet1-pane-green .bet-grid th {
  background: #3d9e5a;
  border-color: #6bb87a;
}

.bet1-pane-blue {
  border-color: #6a9fc0;
}
.bet1-pane-blue .bet1-pane-label {
  background: #d6ebf8;
  color: #1a4a6a;
  border-bottom: 1px solid #6a9fc0;
}
.bet1-pane-blue .bet-grid th {
  background: #2b79d4;
  border-color: #7aa7d9;
}

.bet1-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  /* 不用 contain:strict（含 size）：大表就地改单元格时易整块重绘闪白 */
  contain: layout paint;
}

#betGrid1a.bet-grid,
#betGrid1b.bet-grid {
  border-collapse: collapse;
  background: #fff;
}

#betGrid1a.bet-grid th,
#betGrid1b.bet-grid th {
  color: #fff;
  font-weight: normal;
  text-align: center;
  padding: 4px 6px;
  position: sticky;
  top: 0;
  z-index: 1;
}

#betGrid1a.bet-grid td,
#betGrid1b.bet-grid td {
  border: 1px solid #b7d0ea;
  text-align: center;
  padding: 3px 6px;
  background: #fff;
  color: #111;
}

#betGrid1a.bet-grid tr.selected td {
  background: #3d9e5a;
  color: #fff;
}
#betGrid1b.bet-grid tr.selected td {
  background: #2b79d4;
  color: #fff;
}

#betGrid1a.bet-grid tr:not(.selected):hover td {
  background: #eaf8ea;
}
#betGrid1b.bet-grid tr:not(.selected):hover td {
  background: #eaf3fc;
}

.panel[data-panel="bet1"] {
  display: none;
  flex-direction: column;
}

.panel[data-panel="bet1"].active {
  display: flex;
}

#planGrid tbody tr:not(.empty) {
  cursor: pointer;
}
#planGrid tbody tr:not(.empty) td.cell-seq {
  font-weight: 600;
  color: #556;
}
#planGrid tbody tr:not(.empty) td:nth-child(2) {
  font-weight: 700;
}
.bet-grid th:nth-child(2),
.bet-grid td:nth-child(2) { width: 12%; }
.bet-grid th:nth-child(3),
.bet-grid td:nth-child(3) { width: 7%; }
.bet-grid th:nth-child(4),
.bet-grid td:nth-child(4) { width: 22%; }
.bet-grid th:nth-child(5),
.bet-grid td:nth-child(5) { width: 8%; }
.bet-grid th:nth-child(6),
.bet-grid td:nth-child(6) { width: 10%; }
.bet-grid th:nth-child(7),
.bet-grid td:nth-child(7) { width: 8%; }
.bet-grid th:nth-child(8),
.bet-grid td:nth-child(8) { width: 8%; }
.bet-grid th:nth-child(9),
.bet-grid td:nth-child(9) { width: 10%; }
.bet-grid th:nth-child(10),
.bet-grid td:nth-child(10) { width: 8%; }

.grid th:first-child,
.grid td:first-child {
  width: auto;
}

#planGrid th:nth-child(1),
#planGrid td:nth-child(1) {
  width: 40px;
}
#planGrid th:nth-child(2),
#planGrid td:nth-child(2) {
  width: 100px;
}

/* ?? ??????? ?? */
.codes-layout {
  display: flex;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.panel[data-panel="codes"].active {
  display: flex;
  flex-direction: column;
  padding: 0;
  color: #000;
}

.codes-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.codes-toolbar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #c0c0c0;
  background: #fafafa;
  flex-shrink: 0;
}

.codes-hint {
  margin: 0 12px 6px;
  color: #c00;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.codes-recharge {
  margin: 8px 10px 10px;
  max-width: none;
  flex-shrink: 0;
}

.codes-split {
  display: flex;
  flex: 1;
  min-height: 120px;
  gap: 0;
  background: #fff;
  min-width: 0;
}

.codes-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #c0c0c0;
  padding: 8px 10px 10px;
}

.codes-split-single .codes-pane {
  border-right: none;
  max-width: 560px;
}

.codes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  min-height: 28px;
}

.codes-title {
  font-size: 13px;
  color: #222;
  font-weight: normal;
}

.codes-actions {
  display: flex;
  gap: 6px;
}

.btn {
  appearance: none;
  font: inherit;
  padding: 2px 12px;
  min-width: 72px;
  height: 24px;
  border: 1px solid #adadad;
  border-radius: 2px;
  background: linear-gradient(180deg, #f8f8f8 0%, #e6e6e6 100%);
  color: #000;
  cursor: default;
}

.btn:hover {
  background: linear-gradient(180deg, #fff 0%, #eee 100%);
  border-color: #0078d7;
}

.btn-sync {
  min-width: 120px;
  background: linear-gradient(180deg, #e8f4ff 0%, #cfe6ff 100%);
  border-color: #0078d7;
  color: #004e8c;
}

.btn-sync:hover {
  background: linear-gradient(180deg, #dff0ff 0%, #b7dbff 100%);
}

.btn-clear-codes {
  background: linear-gradient(180deg, #fff5f5 0%, #ffe0e0 100%);
  border-color: #d9534f;
  color: #a02828;
}

.btn-clear-codes:hover {
  background: linear-gradient(180deg, #ffeaea 0%, #ffd0d0 100%);
  border-color: #c9302c;
}

.codes-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #a0a0a0;
}

.codes-grid th:nth-child(1),
.codes-grid td:nth-child(1) { width: 18%; }
.codes-grid th:nth-child(2),
.codes-grid td:nth-child(2) { width: 28%; }
.codes-grid th:nth-child(3),
.codes-grid td:nth-child(3),
.codes-grid th:nth-child(4),
.codes-grid td:nth-child(4) { width: 27%; }

.codes-grid td {
  padding: 0;
}

.codes-grid input {
  width: 100%;
  height: 22px;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0 6px;
  text-align: left;
}

.codes-grid tr.selected input {
  color: #fff;
}

.codes-grid tr.selected input::selection {
  background: rgba(255,255,255,.35);
}

/* ?? DataGridView style ?? */
.grid-wrap {
  position: relative;
  height: 100%;
  overflow: auto;
  background: #fff;
}

.grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  position: relative;
  z-index: 1;
}

.grid th,
.grid td {
  border: 1px solid #b8d0e8;
  height: 22px;
  padding: 0 6px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.grid th {
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  font-weight: normal;
  color: #222;
  position: sticky;
  top: 0;
  z-index: 3;
  border-color: #c0c0c0 #c0c0c0 #a0a0a0 #c0c0c0;
  box-shadow: inset 0 1px 0 #fff;
}

/* ???????? + ??????? .grid th? */
#planGrid thead th {
  text-align: center !important;
  background: #2b79d4;
  color: #fff;
  border-color: #7aa7d9;
  box-shadow: none;
}

.grid th:first-child,
.grid td:first-child {
  width: 88px;
}

.grid tbody tr {
  background: #fff;
  cursor: default;
}

.grid tbody tr:hover:not(.selected) {
  background: #f5f9fc;
}

.grid tbody tr.selected,
.grid tbody tr.selected:hover {
  background: #0078d7;
  color: #fff;
}

.grid tbody tr.selected td {
  border-color: #0060b0;
  color: #fff;
}

/* light blue grid lines like screenshot */
.grid td {
  border-color: #c5daf0;
}

.grid tbody tr.empty td {
  height: 22px;
}

.grid-filler {
  display: none;
}

.panel[data-panel="collect"].active {
  display: flex;
  flex-direction: column;
  padding: 0;
  color: #000;
}

.collect-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.collect-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #c0c0c0;
  background: #f3f7fb;
  flex-shrink: 0;
}

.collect-title {
  font-weight: bold;
  color: #1a4d80;
}

.collect-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collect-status {
  color: #336699;
  font-size: 12px;
}

.collect-meta {
  padding: 6px 12px;
  font-size: 12px;
  color: #444;
  border-bottom: 1px solid #dde8f2;
  flex-shrink: 0;
}

.collect-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* ?? auth gate ?? */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(236, 233, 216, 0.92), rgba(210, 220, 230, 0.95)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(0, 0, 0, 0.03) 11px,
      rgba(0, 0, 0, 0.03) 12px
    );
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-card {
  width: min(380px, calc(100vw - 32px));
  padding: 28px 26px 24px;
  background: #f7f5ee;
  border: 1px solid #8a9a7a;
  box-shadow: 0 10px 28px rgba(40, 50, 30, 0.18);
}

.auth-brand {
  font: 700 28px/1.1 "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  color: #2a3d1f;
  letter-spacing: 0.08em;
}

.auth-lead {
  margin: 10px 0 18px;
  color: #4a5540;
  font-size: 12px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #b8c4a8;
}

.auth-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 16px 8px;
  cursor: pointer;
  font: inherit;
  color: #556048;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab.active {
  color: #1f3314;
  border-bottom-color: #3d6b2e;
  font-weight: 600;
}

.auth-form label {
  display: block;
  margin-bottom: 10px;
  color: #333;
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  border: 1px solid #9aaa8a;
  background: #fff;
  font: inherit;
}

.auth-form .btn {
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
}

.auth-error {
  margin-top: 10px;
  color: #a12a2a;
  font-size: 12px;
}

.user-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 4px 0;
  align-self: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 22px;
  padding: 0 10px;
  text-decoration: none;
  background: linear-gradient(180deg, #e8f4ff 0%, #cfe6ff 100%);
  border: 1px solid #0078d7;
  color: #004e8c;
  font: inherit;
  cursor: pointer;
}

.btn-download:hover {
  background: linear-gradient(180deg, #dff0ff 0%, #b7dbff 100%);
  color: #003866;
}

.user-name {
  color: #1a4d80;
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appRoot[hidden] {
  display: none !important;
}


/* ????????1 ?????? */
.hist-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 8px 10px 10px;
  box-sizing: border-box;
}
.hist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.hist-title {
  font-weight: 600;
  margin-right: 8px;
}
.hist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hist-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.hist-tables-split {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 8px;
}
.hist-tables-split .hist-table-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.hist-tables-split .bet1-pane-label {
  flex-shrink: 0;
}
.hist-tables-split .hist-grid {
  width: 100%;
}
.hist-grid th {
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.hist-tables-split .bet1-pane-green .hist-grid th {
  background: #3d9e5a;
}
.hist-tables-split .bet1-pane-blue .hist-grid th {
  background: #2b79d4;
}
.hist-grid tr.hist-pending td {
  background: #fff8e6;
}


#planGrid thead tr.plan-mode-row th {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 4px;
  white-space: nowrap;
}
#planGrid th.th-g {
  background: #3d9e5a !important;
  color: #fff;
  border-color: #6bb87e;
}
#planGrid th.th-b {
  background: #2b79d4 !important;
  color: #fff;
  border-color: #7aa7d9;
}
