/*
 * 总后台自有样式：只补官方 app.css 里没有的部分（滚动容器、表格微调、
 * 弹窗表单、分页、提示条、未开放占位）。配色沿用官方那套紫蓝 #535dd4。
 */
html, body { height: 100%; margin: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #f3f3f3;
  color: #2b2d3f;
  font-size: 14px;
}
[hidden] { display: none !important; }

/* -------------------------------------------------------------- 登录页 */
#login.login-page { position: fixed; inset: 0; }
.login-page .captcha-img {
  height: 36px; width: 90px; margin-right: 8px; border-radius: 2px; cursor: pointer;
}
.login-page .login-content .flex-lang .lang-globe {
  width: 22px; height: 22px; margin-left: 20px; flex: none;
}
.login-page .login-content .flex-lang .lang-title {
  padding-left: 12px;
}
.login-page .login-msg { color: #ff5252; font-size: 14px; min-height: 20px; margin-top: 10px; text-align: center; }

/* -------------------------------------------------------------- 侧边栏 */
.sidebar-scroll {
  height: calc(100% - 130px);
  overflow-y: auto;
  overflow-y: overlay;
  overflow-x: hidden;
}
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #4a4d7a; border-radius: 3px; }
.slide-bar-content .pwd-btn {
  margin: 10px auto; padding: 8px 0; text-align: center; cursor: pointer; border-radius: 6px;
  color: #fff; font-size: 13px; background: linear-gradient(270deg, #6d63de, #4e5bd3);
}
.slide-bar-content .overview-danger { color: #ff5252 !important; font-weight: 600; }
.slide-bar-content .el-submenu__title { cursor: pointer; }
.slide-bar-content .el-menu-item-text { cursor: pointer; }
.slide-bar-content .el-menu--inline .el-menu-item.is-active { color: #fff !important; }
.slide-bar-content .el-submenu > .el-menu--inline {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .2s ease;
}
.slide-bar-content .el-submenu.is-opened > .el-menu--inline {
  max-height: var(--submenu-height, 420px);
  opacity: 1;
}
.slide-bar-content .el-submenu__icon-arrow {
  transition: transform .3s ease;
}
.slide-bar-content .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  transform: rotate(180deg);
}
.route-progress {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #535dd4;
  box-shadow: 0 0 8px rgba(83, 93, 212, .65);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.route-progress.is-finished {
  opacity: 0 !important;
}
.route-page-enter-active,
.route-page-leave-active {
  transition: opacity .5s ease, transform .5s ease;
}
.route-page-enter {
  opacity: 0;
  transform: translateX(-30px);
}
.route-page-leave-to {
  opacity: 0;
  transform: translateX(30px);
}
.global-loading {
  position: fixed;
  z-index: 9998;
  top: 0;
  right: 0;
  bottom: 0;
  left: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}
.global-loading.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.global-loading__spinner {
  color: #535dd4;
  font-size: 38px;
}

/* ------------------------------------------------------------- 内容区 */
.app-container { padding: 16px 10px 40px; }
.tags-view-container[data-v-caf9a8e2] {
  box-sizing: border-box; height: 75px; padding: 0 20px;
  display: flex; align-items: center;
}
.tags-view-container[data-v-caf9a8e2] #tags { width: 100%; }
.agent-level p { font-weight: 700; }
.crumb-cur { color: #535dd4; font-size: 15px; font-weight: 700; }
.crumb-link {
  padding: 0; border: 0; background: transparent;
  color: #535dd4; font: inherit; font-weight: 700; cursor: pointer;
}
.crumb-link:hover { text-decoration: underline; }
.toolbar { display: flex; align-items: center; margin-bottom: 10px; }
.toolbar .search { margin-bottom: 0; margin-right: 12px; }

/* 表格：官方是 header/body 两张表，这里合成一张，保持相同视觉 */
.el-table.reset-table .el-table__body-wrapper { overflow-x: auto; }
.el-table.reset-table .el-table__body { width: 100%; min-width: 100%; table-layout: auto; }
.el-table.reset-table thead th.el-table__cell {
  background: #f5f6fb; color: #2b2d3f; font-weight: 600; border-bottom: 1px solid #dcdce5;
}
.el-table.reset-table td.el-table__cell,
.el-table.reset-table th.el-table__cell { padding: 8px 0; }
.el-table.reset-table .cell { white-space: nowrap; }
.el-table.reset-table .cell.is-center { text-align: center; }
.el-table .empty-cell { text-align: center; color: #909399; padding: 24px 0; }
.muted-cell { color: #b3b3bf; }
.tag-ok { color: #1aa053; }
.tag-bad { color: #e6473c; }
.row-ops { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
.row-ops .el-button { margin-left: 0 !important; }

/* 客户管理桌面布局 */
.customer-page { padding: 4px 10px 5px; }
.customer-page .customer-search-input { width: 200px; }
.customer-page .customer-table-wrap { border-color: #f5f5f5; }
.customer-page .customer-table { table-layout: auto; }
.customer-page .customer-table th,
.customer-page .customer-table td { vertical-align: middle; }
.customer-page .customer-table .th-line { border-bottom: 1px solid #f5f5f5; }
.customer-page .customer-table .default-table-no-data td {
  height: 180px; color: #909399; text-align: center !important;
}
.customer-page .customer-state-ok { color: rgba(0, 182, 19, 1); }
.customer-page .customer-state-bad { color: #f56c6c; }
.customer-page .customer-win-negative { color: #f56c6c; }
.customer-page .customer-row-ops { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.customer-page .customer-row-ops > :first-child { margin-left: 0; }
.customer-page .hierarchy-count-button {
  min-width: 26px; height: 26px; padding: 0 7px;
  border: 1px solid #dcdfe6; border-radius: 2px;
  background: #fff; color: #606266; cursor: pointer;
}
.customer-page .hierarchy-count-button:hover {
  color: #535dd4; border-color: #535dd4;
}
.customer-page .hierarchy-count-button.is-disabled {
  color: #606266; border-color: #dcdfe6; cursor: default;
}
.customer-page .pagination-content { padding-top: 30px; }
.customer-page .customer-pagination { display: flex; align-items: center; flex-wrap: wrap; }
.customer-page .customer-page-size {
  width: 100px; height: 28px; margin: 0 5px; padding: 0 24px 0 8px;
  border: 1px solid #dcdfe6; border-radius: 3px; outline: none;
  background: #fff; color: #606266; font-size: 13px;
}
.customer-page .customer-pagination button[disabled] {
  color: #c0c4cc; cursor: not-allowed;
}
.customer-page .customer-pagination .el-pagination__jump {
  display: inline-flex; align-items: center;
}
.customer-page .customer-pagination .el-pagination__editor {
  width: 50px; margin: 0 2px;
}
.customer-page .customer-pagination .el-pagination__editor .el-input__inner {
  height: 28px; padding: 0 3px; text-align: center;
}

/* -------------------------------------------------------------- 分页 */
.yx-pager { margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.yx-pager .el-pagination__total { margin-right: 8px; color: #606266; }
.el-pager-btn {
  min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid #dcdce5; background: #fff;
  border-radius: 4px; cursor: pointer; color: #2b2d3f; font-size: 13px;
}
.el-pager-btn:hover { color: #535dd4; }
.el-pager-btn.active { background: #535dd4; border-color: #535dd4; color: #fff; }
.el-pager-gap { color: #909399; padding: 0 2px; }

/* -------------------------------------------------------------- 弹窗 */
.v-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 2000; }
.yx-dialog {
  position: fixed; inset: 0; z-index: 2001;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 20px; overflow: hidden;
}
.yx-dialog .el-dialog {
  display: flex; flex-direction: column;
  max-width: 100%; max-height: 100%; margin: 0 !important;
}
.yx-dialog .el-dialog__body { min-height: 0; overflow: auto; font-size: 14px; }
.yx-dialog .el-form-item { display: flex; align-items: center; margin-bottom: 14px; }
.yx-dialog .el-form-item__label {
  width: 110px; padding-right: 12px; color: #1f2d3d; font-size: 13px;
  font-weight: 400; text-align: right;
}
.yx-dialog .el-form-item__content { flex: 1; display: flex; align-items: center; }
.yx-dialog .el-input { flex: 1; }
.yx-dialog .el-input__inner { font-size: 14px; }
.yx-dialog .form-tip { color: #909399; font-size: 13px; margin-left: 10px; white-space: nowrap; }
.yx-dialog .static-value { font-size: 14px; color: #2b2d3f; line-height: 1.8; }
.yx-dialog .el-input__inner.is-disabled { background: #f5f7fa; color: #b3b3bf; cursor: not-allowed; }
.yx-dialog .dialog-footer { text-align: right; }
.yx-content-dialog .el-dialog__body { padding-top: 8px; }
.yx-content-dialog .customer-table-wrap { margin: 0; }

.trade-page .agent-level { margin-bottom: 12px; }
.trade-search-content { margin-bottom: 0; }
.trade-search-content .el-form { display: flex; align-items: center; flex-wrap: wrap; }
.trade-search-content .trade-filter-item { display: flex; align-items: center; margin-right: 18px; }
.trade-search-content .el-form-item__label {
  padding-right: 8px; white-space: nowrap;
}
.trade-date-range {
  box-sizing: border-box; width: 360px; height: 32px;
  position: relative; display: flex; align-items: center;
  border: 1px solid #dcdfe6; border-radius: 4px; background: #fff;
}
.trade-date-range:focus-within { border-color: #535dd4; }
.trade-date-icon {
  width: 30px; color: #c0c4cc; line-height: 30px; text-align: center; cursor: pointer;
}
.trade-date-input {
  box-sizing: border-box; width: 150px; height: 30px; padding: 0 3px;
  border: 0; outline: 0; background: transparent; color: #606266;
  font: inherit; line-height: 30px;
  text-align: center;
}
.trade-date-separator { width: 12px; padding: 0; color: #909399; text-align: center; }
.trade-date-picker {
  position: absolute; top: 38px; left: 0; z-index: 20;
  display: flex; width: 680px;
  border: 1px solid #e4e7ed; border-radius: 4px; background: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
}
.trade-date-picker[hidden] { display: none; }
.trade-calendar-panel {
  box-sizing: border-box; width: 50%; padding: 16px;
}
.trade-calendar-left { border-right: 1px solid #e4e7ed; }
.trade-calendar-header {
  display: grid; grid-template-columns: 28px 28px 1fr 28px 28px;
  align-items: center; min-height: 28px; margin-bottom: 12px;
}
.trade-calendar-left .trade-calendar-title { grid-column: 3 / 6; }
.trade-calendar-right .trade-calendar-title { grid-column: 1 / 4; }
.trade-calendar-title {
  color: #303133; font-size: 16px; font-weight: 500; text-align: center;
}
.trade-calendar-arrow {
  width: 28px; height: 28px; padding: 0; border: 0;
  background: transparent; color: #303133; cursor: pointer;
}
.trade-calendar-arrow:hover { color: #535dd4; }
.trade-calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.trade-calendar-week {
  height: 32px; color: #606266; line-height: 32px; text-align: center;
  border-bottom: 1px solid #ebeef5;
}
.trade-calendar-day {
  height: 38px; padding: 0; border: 0;
  background: transparent; color: #606266; cursor: pointer;
}
.trade-calendar-day-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
}
.trade-calendar-day:not(.is-disabled):hover { color: #535dd4; }
.trade-calendar-day.is-other-month { color: #c0c4cc; }
.trade-calendar-day.is-disabled {
  background: #f5f7fa; color: #c0c4cc; cursor: not-allowed;
}
.trade-calendar-day.is-in-range { background: #f2f6fc; }
.trade-calendar-day.is-range-start .trade-calendar-day-number,
.trade-calendar-day.is-range-end .trade-calendar-day-number {
  border-radius: 50%; background: #535dd4; color: #fff;
}
.trade-member-input { width: 190px; }
.trade-updated-at { margin: -2px 0 10px; color: #19b867; font-size: 14px; }
.trade-page {
  box-sizing: border-box;
  height: calc(100vh - 201px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.trade-page > .customer-table-wrap {
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid #ebeef5;
}
.trade-page .customer-table { width: 100%; height: 100%; table-layout: fixed; }
.trade-page .customer-table.has-data { height: auto; }
.trade-page .customer-table th,
.trade-page .customer-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}
.trade-page .customer-table .default-table-no-data td {
  height: auto;
  font-size: 15px;
}
.trade-page .pagination-content {
  flex: none;
  max-width: 100%;
  padding-top: 12px;
  overflow: hidden;
}
.trade-page .customer-pagination { max-width: 100%; }
.logs-page {
  box-sizing: border-box;
  height: calc(100vh - 201px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.logs-page > .customer-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid #ebeef5;
}
.logs-page .pagination-content {
  flex: none;
  padding-top: 12px;
}
.trade-result-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trade-detail-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #409eff;
  font: inherit;
  cursor: pointer;
}
.trade-detail-link:hover { text-decoration: underline; }
.trade-money-positive { color: #409eff; }
.trade-money-negative { color: #f56c6c; }
.trade-status-ok { color: #409eff; }
.trade-status-pending { color: #909399; }
.trade-total-label { font-weight: 700; }

.winlose-page {
  box-sizing: border-box;
  height: calc(100vh - 201px);
  padding: 4px 10px 10px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #121429;
}
.winlose-page > .agent-level { margin-bottom: 10px; }
.winlose-filter-panel {
  position: relative;
  z-index: 20;
  margin-bottom: 4px;
}
.winlose-date-range { width: 360px; }
.winlose-date-picker { z-index: 50; }
.winlose-filter-item .el-form-item__content {
  display: flex;
  align-items: center;
  height: 32px;
  line-height: 32px;
}
.winlose-select {
  box-sizing: border-box;
  display: block;
  width: 125px;
  height: 32px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 30px;
  vertical-align: middle;
}
.category-game-type { width: 90px; }
.category-game-select { width: 110px; }
.winlose-round-input { box-sizing: border-box; width: 180px; height: 32px; }
.winlose-meta {
  margin: 1px 0 5px;
  color: #31c35a;
  line-height: 20px;
}
.winlose-trail {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 7px;
}
.winlose-trail-item { display: inline-flex; align-items: center; }
.winlose-trail-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #535dd4;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.winlose-trail-link:hover { text-decoration: underline; }
.winlose-trail-item i { margin: 0 5px; color: #535dd4; font-style: normal; }
.winlose-report-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow: auto;
  border: 0;
  border-radius: 5px;
}
.winlose-report-table {
  width: 100%;
  table-layout: auto;
  color: #17192b;
}
.winlose-report-table th,
.winlose-report-table td {
  height: 34px;
  box-sizing: border-box;
  padding: 6px 7px !important;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  text-align: center !important;
  white-space: nowrap;
}
.winlose-report-table th {
  background: linear-gradient(#f6f6f6, #e4e4e4);
  color: #111326;
  font-weight: 700;
}
.winlose-report-table tbody tr:nth-child(even) td { background: #f2f2f2; }
.winlose-report-table tfoot td {
  background: #dedede;
  font-weight: 400;
}
.winlose-report-table .default-table-no-data td {
  height: 130px;
  background: #fff;
  color: #606266;
  font-size: 15px;
}
.winlose-summary-table .winlose-report-table tbody td:nth-child(15),
.winlose-summary-table .winlose-report-table tfoot td:nth-child(11),
.winlose-child-table .winlose-report-table tbody td:nth-child(15),
.winlose-child-table .winlose-report-table tfoot td:nth-child(11),
.winlose-member-table .winlose-report-table tbody td:nth-child(12),
.winlose-member-table .winlose-report-table tfoot td:nth-child(8),
.winlose-category-table .winlose-report-table tbody td:nth-child(16),
.winlose-category-table .winlose-report-table tfoot td:nth-child(11),
.winlose-category-child-table .winlose-report-table tbody td:nth-child(16),
.winlose-category-child-table .winlose-report-table tfoot td:nth-child(11),
.winlose-category-member-table .winlose-report-table tbody td:nth-child(13),
.winlose-category-member-table .winlose-report-table tfoot td:nth-child(8) {
  background: #cfeaf7;
  border-bottom-color: #fff;
}
.winlose-total-label { text-align: center !important; }
.winlose-detail-link {
  padding: 2px 5px;
  border: 1px solid #b8becb;
  border-radius: 3px;
  background: linear-gradient(#fff, #e8e8e8);
  color: #535dd4;
  font: inherit;
  line-height: 16px;
  cursor: pointer;
}
.winlose-detail-link:hover { border-color: #535dd4; }
.winlose-positive { color: #0085ff; }
.winlose-negative { color: #f56c6c; }
.winlose-page .pagination-content {
  margin-top: -8px;
  padding: 0 0 12px;
}
.winlose-table-actions,
.winlose-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.winlose-table-actions { margin: -31px 0 7px; }
.winlose-detail-actions { margin: 0 0 10px; }
.winlose-export-button {
  height: 30px;
  padding: 0 13px;
  border: 1px solid #535dd4;
  border-radius: 3px;
  background: #535dd4;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.winlose-back-button {
  height: 30px;
  padding: 0 14px;
  border: 1px solid #535dd4;
  border-radius: 4px;
  background: #535dd4;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.winlose-detail-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.winlose-order-table .winlose-report-table { min-width: 1250px; }
.winlose-category-table .winlose-report-table,
.winlose-category-child-table .winlose-report-table { min-width: 1680px; }
.winlose-category-member-table .winlose-report-table { min-width: 1380px; }
.winlose-agent-rate {
  display: inline-block;
  max-width: 118px;
  white-space: normal;
  line-height: 16px;
}
@media (max-width: 1200px) {
  .winlose-date-range { width: 340px; }
  .winlose-report-table th,
  .winlose-report-table td { padding-right: 5px !important; padding-left: 5px !important; }
}

.live-betting-page {
  box-sizing: border-box;
  height: calc(100vh - 201px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.live-betting-page .agent-level { flex: none; margin-bottom: 12px; }
.live-search { flex: none; margin-bottom: 12px; }
.live-update-row,
.live-agent-row { display: flex; align-items: center; min-height: 36px; }
.live-update-row > span:first-child,
.live-search-label { color: #333; }
.live-updated-time { color: #47ba5a; font-weight: 600; }
.live-agent-input { width: 200px; margin-right: 10px; }
.live-refresh-button.is-loading { opacity: .65; cursor: wait; }
.live-table-content {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 3fr) minmax(130px, 1fr);
  gap: 20px;
  overflow: hidden;
}
.live-table-main {
  min-height: 0;
  overflow: hidden;
}
.live-table-main > .customer-table-wrap {
  height: 100%;
  overflow: auto;
}
.live-table-main .customer-table {
  width: 100%;
  min-width: 1380px;
  height: 100%;
  table-layout: fixed;
}
.live-table-main .customer-table.has-data { height: auto; }
.live-table-main .default-table-no-data td { height: auto; font-size: 15px; }
.live-table-main .customer-table th:last-child,
.live-table-main .customer-table td:last-child { width: 360px; }
.live-result-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-member-table { min-height: 0; overflow: hidden; }
.live-member-table > .customer-table-wrap { height: 100%; overflow: auto; }
.live-member-table .customer-table { min-width: 900px; }
.live-table-main .customer-table thead th,
.live-member-table .customer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f1f1f1, #d4d3d3);
}
.live-status.color_A,
.live-status.color_D,
.live-status.color_MC { color: red; }
.live-status.color_R { color: #00f; }
.live-status.color_S { color: green; }
.live-status.color_MCB,
.live-status.color_MCP { color: #f56c6c; }
.live-change-content { color: #606266; }
.live-change-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #f5f7fa;
}
.live-change-label { color: #303133; font-weight: 600; }
.live-change-history-title {
  margin-bottom: 10px;
  color: #303133;
  font-weight: 600;
}
.live-change-history {
  margin: 0;
  padding: 0;
  border: 1px solid #ebeef5;
  list-style-position: inside;
}
.live-change-history li {
  min-height: 34px;
  padding: 8px 12px;
  border-bottom: 1px solid #ebeef5;
  line-height: 22px;
  overflow-wrap: anywhere;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.live-change-history li:last-child { border-bottom: 0; }
.live-change-history-result { flex: 1; min-width: 0; }
.live-change-history-outcome { color: red; }
.live-change-history .btn-self-primary { flex: 0 0 auto; margin-top: 1px; }
.live-member-table .btn-self-primary.is-disabled {
  border-color: #dcdfe6 !important;
  background: #f5f7fa !important;
  color: #c0c4cc !important;
  cursor: not-allowed;
}
.live-change-empty {
  padding: 24px 0;
  border: 1px solid #ebeef5;
  color: #909399;
  text-align: center;
}

.customer-dialog-wrapper .customer-dialog {
  width: 75%;
  min-width: 760px;
  margin: 15vh auto 50px;
}
.customer-dialog-wrapper .el-dialog__header { padding: 20px 20px 12px; }
.customer-dialog-wrapper .el-dialog__body { padding: 8px 20px 0; color: #606266; }
.customer-dialog-wrapper .el-dialog__footer { padding: 10px 20px 16px; }
.customer-dialog-form { font-size: 14px; }
.customer-dialog-top,
.customer-dialog-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.customer-dialog-section {
  width: 49%;
  margin-bottom: 10px;
  padding-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 0 4px #dedfe3;
}
.customer-dialog-wide { width: 100%; }
.customer-dialog-title {
  position: relative;
  margin: 10px 0;
  padding-left: 10px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}
.customer-dialog-title::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 20px;
  background: #334a90;
  content: "";
  transform: translateY(-50%);
}
.customer-dialog-wrapper .customer-dialog-row {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 5px;
}
.customer-dialog-wrapper .customer-dialog-row .el-form-item__label {
  width: 110px;
  padding: 0 8px 0 10px;
  color: #1f2d3d;
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
}
.customer-dialog-wrapper .customer-dialog-row .el-form-item__content {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  line-height: 30px;
}
.customer-dialog-wrapper .customer-dialog-input {
  flex: 0 0 140px;
  width: 140px;
}
.customer-dialog-wrapper .customer-dialog-input .el-input__inner {
  height: 30px;
  border-radius: 0;
  line-height: 30px;
}
.customer-dialog-wrapper .customer-dialog-input.is-error .el-input__inner {
  border-color: #f56c6c;
}
.customer-dialog-agent { width: 100%; }
.customer-dialog-static { color: #606266; }
.customer-dialog-default-btn {
  height: 28px;
  margin: 0 10px;
  padding: 0 7px;
  border: 1px solid #dcdce5;
  background: #fff;
  color: #606266;
  font-size: 13px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}
.customer-dialog-help,
.customer-dialog-available {
  margin-left: 10px;
  font-size: 14px;
  line-height: 18px;
}
.customer-dialog-help { color: #67c23a; }
.customer-dialog-available { color: #67c23a; }
.customer-dialog-available-amount { color: #303133; }
.customer-dialog-error { margin-left: 10px; color: #f56c6c; font-size: 13px; }
.customer-dialog-random {
  display: flex;
  flex: 0 0 210px;
  align-items: center;
  margin-left: 10px;
}
.customer-dialog-random .el-input { width: 120px; }
.customer-dialog-random .el-input__inner {
  height: 30px;
  border-radius: 0;
  line-height: 30px;
}
.customer-dialog-random-btn {
  width: 80px;
  height: 30px;
  background: #334a90;
  color: #fff;
  font-size: 13px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}
.customer-dialog-note {
  margin: 8px 0;
  padding-left: 10px;
  color: #606266;
  font-size: 14px;
}
.customer-dialog-games,
.customer-dialog-balance,
.customer-dialog-points,
.customer-dialog-inline-row,
.customer-dialog-commission {
  display: flex;
  align-items: center;
  padding-left: 10px;
}
.customer-dialog-games { gap: 22px; margin: 10px 0; }
.customer-dialog-choice,
.customer-dialog-radio,
.customer-dialog-limit {
  display: inline-flex;
  align-items: center;
  color: #606266;
  cursor: pointer;
}
.customer-dialog-choice input,
.customer-dialog-radio input,
.customer-dialog-limit input {
  width: 14px;
  height: 14px;
  margin: 0 6px 0 0;
  accent-color: #334a90;
}
.customer-dialog-choice { cursor: default; pointer-events: none; }
.customer-dialog-points { min-height: 34px; margin-top: 6px; }
.customer-dialog-points > span:first-child { margin-right: 10px; }
.customer-dialog-points .customer-dialog-radio { margin-right: 10px; }
.customer-dialog-points .customer-dialog-input { margin-left: 4px; }
.customer-dialog-create-points .customer-dialog-input { margin-left: 0; }
.customer-dialog-inline-row { min-height: 34px; }
.customer-dialog-inline-row > span:first-child { width: 150px; }
.customer-dialog-inline-row .customer-dialog-input { margin: 0 10px; }
.customer-dialog-limit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 2px 15px 0;
}
.customer-dialog-limit { min-width: 0; white-space: nowrap; }
.customer-dialog-commission { min-height: 34px; }
.customer-dialog-commission > span:first-child { margin-right: 10px; }
.customer-dialog-commission .customer-dialog-input { width: 150px; flex-basis: 150px; }
.customer-dialog-parent-rate { margin-left: 10px; }
.customer-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; }
.customer-dialog-footer-btn,
.customer-dialog-submit {
  min-width: 50px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dcdce5;
  border-radius: 0;
  background: #fff;
  color: #606266;
  font-size: 13px;
  line-height: 26px;
  cursor: pointer;
}
.customer-dialog-submit {
  border-color: #334a90;
  background: #334a90;
  color: #fff;
}
@media (max-width: 900px) {
  .customer-dialog-wrapper .customer-dialog { width: 94%; min-width: 0; margin-top: 5vh; }
  .customer-dialog-section { width: 100%; }
}

/* ------------------------------------------------------------ 账户概览 */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ov-card {
  background: #fff; border: 1px solid #e6e8f5; border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, .04);
}
.ov-card.muted { opacity: .6; }
.ov-label { color: #909399; font-size: 13px; margin-bottom: 8px; }
.ov-value { color: #535dd4; font-size: 22px; font-weight: 700; }
.ov-note { grid-column: 1 / -1; color: #909399; font-size: 13px; }

/* ---------------------------------------------------------- 其他区块 */
.panel-card { background: #fff; border: 1px solid #e6e8f5; border-radius: 8px; padding: 20px; }
.flow-detail { margin-top: 18px; }
.flow-title { margin: 0 0 10px; font-size: 15px; color: #2b2d3f; }
.not-open {
  background: #fff; border: 1px solid #e6e8f5; border-radius: 8px; padding: 60px 20px; text-align: center;
}
.not-open-title { font-size: 18px; color: #2b2d3f; margin: 0 0 10px; }
.not-open-text { color: #909399; margin: 0; }
