.cms-special-mode > .list-card,
.cms-special-mode > .form-card {
  display: none !important;
}
.cms-special-mode .cms-tabs .el-tabs__active-bar {
  display: none !important;
}
.cms-special-mode .cms-tabs .el-tabs__item.is-active {
  position: relative;
  color: #409eff;
}
.cms-special-mode .cms-tabs .el-tabs__item.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #409eff;
}
.cms-special-panel {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.cms-special-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}
.cms-special-head h3 {
  margin: 0;
  color: #172033;
  font-size: 18px;
}
.cms-special-head span,
.cms-special-message {
  color: #909399;
  font-size: 13px;
}
.cms-special-panel label {
  display: block;
  margin: 16px 0 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}
.cms-special-title,
.cms-special-content {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  color: #303133;
  font: inherit;
  outline: none;
}
.cms-special-title {
  height: 40px;
  padding: 0 12px;
}
.cms-special-content {
  min-height: 420px;
  max-height: 620px;
  overflow-y: auto;
  padding: 12px;
  line-height: 1.7;
  background: #fff;
  white-space: normal;
}
.cms-special-title:focus,
.cms-special-content:focus {
  border-color: #409eff;
}
.cms-special-content:empty::before {
  color: #a8abb2;
  content: attr(data-placeholder);
  pointer-events: none;
}
.cms-special-content p {
  margin: 0 0 8px;
}
.cms-special-preview {
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
  padding: 20px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  color: #303133;
  line-height: 1.8;
  background: #fafafa;
}
.cms-special-preview p {
  margin: 0 0 10px;
}
.cms-special-drawer-save {
  margin: 18px 0 28px 80px;
}
.cms-rich-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #dcdfe6;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f7f8fa;
}
.cms-rich-toolbar + .cms-special-content {
  border-radius: 0 0 6px 6px;
}
.cms-rich-toolbar button,
.cms-rich-toolbar select {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  color: #303133;
  background: #fff;
  cursor: pointer;
}
.cms-rich-toolbar button:hover,
.cms-rich-toolbar select:hover {
  color: #409eff;
  border-color: #409eff;
}
.cms-special-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.cms-special-actions button {
  padding: 9px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #409eff;
  cursor: pointer;
}
.cms-special-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.cms-special-error {
  color: #f56c6c;
}
.reason-text[data-evidence-rendered="1"],
.detail-row span[data-evidence-rendered="1"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.evidence-reason {
  white-space: pre-wrap;
}
.evidence-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.evidence-gallery a {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #f5f7fa;
}
.evidence-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#finance-report-tooltip {
  position: fixed;
  z-index: 99999;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  color: #fff;
  font-size: 13px;
  line-height: 1.8;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
#finance-report-tooltip.visible { opacity: 1; transform: translateY(0); }
#finance-report-tooltip > div { display: flex; justify-content: space-between; gap: 24px; }
#finance-report-tooltip .report-tip-title {
  display: block;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
}
#finance-report-tooltip span { color: #cbd5e1; }
#finance-report-tooltip b { font-weight: 600; color: #fff; }
.bar-chart .bar-item { cursor: pointer; outline: none; }
.bar-chart .bar-item:hover .bar,
.bar-chart .bar-item:focus .bar { filter: brightness(0.88); box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.16); }
.report-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 2px 12px 0;
  color: #64748b;
  font-size: 12px;
}
.report-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.report-chart-legend i { width: 9px; height: 9px; border-radius: 2px; }
.report-chart-legend i.income { background: #409eff; }
.report-chart-legend i.refund { background: #f56c6c; }
.report-chart-legend i.commission { background: #e6a23c; }
.bar-chart .grouped-bar-item {
  display: grid;
  grid-template-columns: repeat(3, minmax(4px, 12px));
  grid-template-rows: 168px auto;
  align-items: end;
  justify-content: center;
  column-gap: 3px;
}
.bar-chart .grouped-bar-item .report-bar-col {
  height: 168px;
  display: flex;
  align-items: flex-end;
}
.bar-chart .grouped-bar-item .report-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.bar-chart .grouped-bar-item .report-bar-income { background: #409eff; }
.bar-chart .grouped-bar-item .report-bar-refund { background: #f56c6c; }
.bar-chart .grouped-bar-item .report-bar-commission { background: #e6a23c; }
.bar-chart .grouped-bar-item .bar-label { grid-column: 1 / -1; text-align: center; }
.bar-chart .grouped-bar-item:hover .report-bar,
.bar-chart .grouped-bar-item:focus .report-bar { filter: brightness(0.9); transform: translateY(-2px); }
#member-balance-tool-button {
  position: fixed; top: 72px; right: 28px; z-index: 1800;
  height: 34px; padding: 0 16px; border: 0; border-radius: 5px;
  color: #fff; background: #409eff; box-shadow: 0 5px 16px rgba(64,158,255,.25); cursor: pointer;
}
#member-balance-tool-dialog { display: none; position: fixed; inset: 0; z-index: 99999; }
#member-balance-tool-dialog.visible { display: block; }
.member-balance-mask { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.member-balance-panel { position: absolute; top: 50%; left: 50%; width: 480px; max-width: calc(100vw - 32px); transform: translate(-50%,-50%); background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(15,23,42,.25); }
.member-balance-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid #ebeef5; font-size: 16px; }
.member-balance-head button { border: 0; background: none; color: #909399; font-size: 24px; cursor: pointer; }
.member-balance-body { padding: 20px; }
.member-balance-body label { display: block; margin: 12px 0 7px; color: #303133; font-size: 14px; font-weight: 600; }
.member-balance-body input,.member-balance-body select,.member-balance-body textarea { box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1px solid #dcdfe6; border-radius: 5px; outline: none; font: inherit; }
.member-balance-body input:focus,.member-balance-body select:focus,.member-balance-body textarea:focus { border-color: #409eff; }
.member-balance-body textarea { min-height: 76px; resize: vertical; }
.member-search-row { display: flex; gap: 8px; }
.member-search-row button { flex: 0 0 72px; border: 0; border-radius: 5px; color: #fff; background: #409eff; cursor: pointer; }
.member-current-balance { margin-top: 10px; padding: 10px 12px; border-radius: 5px; background: #f5f7fa; color: #606266; }
.member-current-balance b { color: #e6a23c; }
.member-balance-error { min-height: 20px; margin-top: 8px; color: #f56c6c; font-size: 13px; }
.member-balance-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid #ebeef5; }
.member-balance-actions button { padding: 8px 18px; border: 1px solid #dcdfe6; border-radius: 5px; background: #fff; cursor: pointer; }
.member-balance-actions button.primary { border-color: #409eff; color: #fff; background: #409eff; }
#member-inline-balance-panel {
  display: none; position: fixed; z-index: 3200; box-sizing: border-box;
  padding: 14px 20px 16px; border: 1px solid #ebeef5; border-radius: 8px;
  background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.16);
}
#member-inline-balance-panel.visible { display: block; }
.inline-balance-title { margin-bottom: 9px; color: #606266; font-size: 13px; }
.inline-balance-row { display: flex; gap: 10px; }
.inline-balance-row input,.inline-balance-row button,#member-inline-balance-panel textarea { box-sizing: border-box; padding: 8px 11px; border: 1px solid #dcdfe6; border-radius: 5px; font: inherit; }
.inline-balance-row input { flex: 1; }
.inline-balance-row button { flex: 0 0 96px; border-color: #409eff; color: #fff; background: #409eff; cursor: pointer; }
#member-inline-balance-panel textarea { width: 100%; min-height: 54px; margin-top: 10px; resize: vertical; }

.member-page .buyer-meta[data-member-balance]::after {
  content: "余额 ¥" attr(data-member-balance);
  display: block;
  margin-top: 3px;
  color: #e6a23c;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.member-page .detail-head[data-member-balance]::after {
  content: "余额 ¥" attr(data-member-balance);
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 14px;
  color: #b26a00;
  background: #fff6e5;
  border: 1px solid #ffe2ad;
  font-size: 13px;
  font-weight: 600;
}
.member-page .op-group { flex-wrap: wrap; row-gap: 5px; }
.member-page .op-balance { color: #e6a23c !important; cursor: pointer; }

.admin-enhance-notice {
  position: fixed;
  z-index: 100000;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 330px;
  padding: 16px 18px;
  box-sizing: border-box;
  border: 1px solid #d9f0e2;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 32px rgba(24, 39, 75, .16);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s ease;
  color: #253044;
}
.admin-enhance-notice.visible { opacity: 1; transform: translateY(0); }
.admin-enhance-notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #19b56b;
  font-size: 19px;
  font-weight: 700;
}
.admin-enhance-notice strong { display: block; margin-bottom: 3px; font-size: 15px; }
.admin-enhance-notice p { margin: 0; color: #6f7888; font-size: 13px; line-height: 20px; }
.admin-enhance-notice.is-error { border-color: #f8d7da; }
.admin-enhance-notice.is-error .admin-enhance-notice-icon { background: #f05a67; }
.inline-balance-hint { margin-top: 7px; color: #909399; font-size: 12px; }
.inline-balance-hint b { color: #e6a23c; }
.inline-balance-error { min-height: 18px; margin-top: 4px; color: #f56c6c; font-size: 12px; }
