:root {
  --bg: #eef4f2;
  --card: #ffffff;
  --line: #d8e5e1;
  --text: #1f3430;
  --muted: #5b7771;
  --brand: #0f7868;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: radial-gradient(circle at top, #f6fbfa 0%, var(--bg) 50%, #e8f0ee 100%);
  color: var(--text);
}

/* ===== 登录页 ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  overflow: hidden;
}

.login-overlay.show {
  display: flex;
}

/* 背景层 */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a3a35 0%, #0d5f58 35%, #0e7a6a 70%, #2db895 100%);
  background-size: 200% 200%;
  animation: bgShift 18s ease-in-out infinite;
}

.login-bg-gradient::before,
.login-bg-gradient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.login-bg-gradient::before {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #d7f15d, transparent 70%);
}

.login-bg-gradient::after {
  width: 600px;
  height: 600px;
  bottom: -180px;
  right: -180px;
  background: radial-gradient(circle, #2db895, transparent 70%);
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* 球场线条 */
.login-bg-court {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  height: 130%;
  opacity: 0.7;
  pointer-events: none;
}

/* 背景静态网球拍装饰 */
.bg-racket {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.18));
}

.racket-tl {
  top: -60px;
  left: -80px;
  width: 320px;
  height: 580px;
  transform: rotate(-28deg);
  opacity: 0.85;
}

.racket-br {
  bottom: -100px;
  right: -80px;
  width: 280px;
  height: 500px;
  transform: rotate(155deg);
  opacity: 0.55;
}

@media (max-width: 768px) {
  .racket-tl {
    width: 220px;
    height: 400px;
    top: -40px;
    left: -90px;
  }
  .racket-br {
    width: 200px;
    height: 360px;
    bottom: -80px;
    right: -90px;
  }
}

/* 登录卡片（毛玻璃） */
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 38px 36px 32px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(5, 30, 28, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: grid;
  gap: 22px;
  color: #ffffff;
  animation: cardIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 品牌区 */
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-logo svg {
  width: 40px;
  height: 40px;
}

.brand-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* 输入区 */
.login-fields {
  display: grid;
  gap: 14px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px 0 46px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.field:focus-within {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(215, 241, 93, 0.6);
  box-shadow: 0 0 0 4px rgba(215, 241, 93, 0.18);
}

.field-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.field-icon svg {
  width: 100%;
  height: 100%;
}

.field input {
  flex: 1;
  width: 100%;
  height: 100%;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.4px;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* 自动填充背景修复（Chrome / Edge / Safari）
   transparent 在 Chrome 上无效，必须用实色 inset 阴影 */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active,
.field input:autofill {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: inset 0 0 0 1000px #0d3c37 !important;
  box-shadow: inset 0 0 0 1000px #0d3c37 !important;
  background-color: #0d3c37 !important;
  caret-color: #ffffff !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* 登录按钮 */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  margin-top: 4px;
  background: linear-gradient(135deg, #d7f15d 0%, #b1d739 100%);
  color: #0d3a34;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(215, 241, 93, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(215, 241, 93, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: brightness(1.05);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn svg {
  width: 18px;
  height: 18px;
}

/* 提示 */
.login-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7f15d;
  box-shadow: 0 0 8px rgba(215, 241, 93, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.login-tip code {
  padding: 1px 6px;
  background: rgba(215, 241, 93, 0.18);
  color: #d7f15d;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* 移动端 */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 22px 24px;
  }
  .brand-text h1 { font-size: 18px; }
  .brand-text p  { font-size: 10px; letter-spacing: 1.5px; }
}

.topbar {
  position: relative;
  overflow: hidden;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0d5f58 0%, #0e7a6a 50%, #2db895 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.topbar > .brand,
.topbar > .login-box {
  position: relative;
  z-index: 2;
}

.topbar-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.racket {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.24;
}

.racket-back {
  right: 40px;
  top: 6px;
  transform: rotate(24deg);
}

.racket-front {
  right: 160px;
  top: 56px;
  transform: rotate(-18deg);
  opacity: 0.16;
}

.racket-head {
  position: relative;
  width: 88px;
  height: 116px;
  border: 4px solid rgba(255, 255, 255, 0.46);
  border-radius: 50% 50% 46% 46%;
}

.racket-head.small {
  width: 68px;
  height: 90px;
  border-width: 3px;
}

.racket-handle {
  width: 10px;
  height: 70px;
  margin-top: -3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.racket-handle.short {
  height: 50px;
}

.racket-grid {
  position: absolute;
  background: rgba(255, 255, 255, 0.28);
}

.racket-grid-v1,
.racket-grid-v2 {
  top: 14px;
  bottom: 14px;
  width: 2px;
}

.racket-grid-v1 {
  left: 26px;
}

.racket-grid-v2 {
  right: 26px;
}

.racket-grid-h1,
.racket-grid-h2 {
  left: 14px;
  right: 14px;
  height: 2px;
}

.racket-grid-h1 {
  top: 39px;
}

.racket-grid-h2 {
  bottom: 39px;
}

.tennis-ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4ffb8 0%, #d7f15d 48%, #b1d739 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.38);
}

.ball-large {
  right: 18px;
  bottom: 16px;
  width: 28px;
  height: 28px;
}

.ball-small {
  right: 244px;
  top: 20px;
  width: 16px;
  height: 16px;
  opacity: 0.78;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.topbar p {
  margin: 6px 0 0;
  opacity: 0.9;
}

.login-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 8px 10px;
}

#logoutBtn {
  height: 30px;
  padding: 0 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.login-meta {
  display: grid;
  gap: 2px;
}

.login-meta strong {
  font-size: 14px;
}

.login-meta span {
  font-size: 12px;
  opacity: 0.92;
}

.shell {
  height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 220px 1fr;
}

.sidebar {
  border-right: 1px solid #d8e6e2;
  background: #f7fbfa;
  padding: 12px;
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-item {
  height: 40px;
  border: 1px solid #c9ddd7;
  border-radius: 10px;
  background: #fff;
  color: #2d504a;
  text-align: left;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
}

.menu-item.active {
  border-color: #0f7868;
  background: #e9f6f2;
  color: #0f7868;
  font-weight: 700;
}

.content-area {
  overflow: auto;
  padding: 16px;
  min-height: 0;
}

.content-area.dashboard-static {
  overflow: hidden;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-view.active {
  display: block;
  height: 100%;
}

.dashboard-view.active > .panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 44, 39, 0.08);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-head.compact h3 {
  margin: 0;
  font-size: 16px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.orders-view.active {
  display: block;
  height: 100%;
}

.orders-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
}

.orders-panel .panel-head,
.orders-panel .orders-search-form,
.orders-panel .pagination-bar {
  margin: 0;
}

.orders-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.orders-search-form .filters {
  margin-bottom: 0;
}

.orders-search-form .actions {
  align-self: end;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.metric-item {
  border: 1px solid #d9e8e3;
  background: #f4fbf8;
  border-radius: 10px;
  padding: 10px;
}

.metric-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-item strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.dashboard-board {
  margin-top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(180px, 0.92fr);
  gap: 12px;
  min-height: 0;
}

.dashboard-toolbar {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-tab {
  background: #eef5f3;
  border: 1px solid #c7dad4;
  color: #2f4f49;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-tab.active {
  background: #0f7868;
  border-color: #0f7868;
  color: #ffffff;
}

.dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.btn-icon svg {
  width: 14px;
  height: 14px;
}

.dashboard-current-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dashboard-pill {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9e8e3;
  background: linear-gradient(180deg, #f9fcfb 0%, #f1f7f5 100%);
}

.dashboard-pill span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.dashboard-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: #193733;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 12px;
  min-height: 0;
}

.dashboard-card {
  border: 1px solid #d9e8e3;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  min-height: 0;
  overflow: hidden;
}

.dashboard-charts .dashboard-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-charts .dashboard-card:first-child {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.dashboard-card-head h3 {
  margin: 0;
  font-size: 16px;
  color: #20413b;
}

.dashboard-card-head span {
  font-size: 12px;
  color: var(--muted);
}

.dashboard-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #45635d;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.is-total,
.chart-bar.is-total {
  background: #6b8afd;
}

.legend-dot.is-completed,
.chart-bar.is-completed {
  background: #18a57b;
}

.legend-dot.is-pending,
.chart-bar.is-pending {
  background: #f2a93b;
}

.legend-dot.is-cancelled,
.chart-bar.is-cancelled {
  background: #dd6b6b;
}

.chart-bar.is-revenue {
  background: linear-gradient(180deg, #0f7868 0%, #39a28f 100%);
}

.dashboard-chart {
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 2px 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.chart-group {
  min-width: 52px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
}

.chart-group.single {
  min-width: 68px;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.chart-bars {
  min-height: 118px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  padding: 0 2px;
}

.chart-bars.multi {
  gap: 5px;
}

.chart-bars.single {
  gap: 0;
}

.chart-bar {
  width: 10px;
  min-height: 2px;
  border-radius: 999px 999px 0 0;
}

.chart-bars.single .chart-bar {
  width: 24px;
}

.chart-value,
.chart-label {
  text-align: center;
  font-size: 12px;
  color: #5b7771;
}

.chart-value {
  font-weight: 700;
  color: #21453f;
}

.dashboard-table-wrap table {
  min-width: 860px;
}

.dashboard-table-wrap {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.dashboard-view.active > .panel > .panel-head,
.dashboard-view.active > .panel > #dashboardMetrics,
.dashboard-view.active > .panel > .dashboard-board {
  margin: 0;
}

.profile-card {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f4fbf8;
  border: 1px solid #d2e8e1;
}

.consumption-list {
  margin-top: 12px;
}

.consumption-summary {
  margin-bottom: 14px;
}

.consumption-search-form {
  margin-bottom: 14px;
  align-items: end;
}

.form {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.form-inline {
  grid-template-columns: 1fr auto;
  align-items: end;
}

label {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  height: 36px;
  border: 1px solid #c9ddd7;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

button {
  height: 36px;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

button.has-icon,
.slot-date-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button.secondary {
  background: #eef5f3;
  border: 1px solid #c7dad4;
  color: #2f4f49;
}

button.warn {
  background: #fce9e9;
  border: 1px solid #e2b8b8;
  color: #8c3838;
}

button.danger {
  background: #c84f4f;
}

.venue-list {
  padding: 16px;
  border: 1px solid #d8e7e2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(245, 250, 248, 0.8);
}

.venue-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e7e2;
  margin-bottom: 12px;
}

.venue-list-head h3 {
  margin: 0;
  font-size: 16px;
  color: #24433d;
}

.venue-list-head span {
  font-size: 13px;
  color: var(--muted);
}

.venue-editor {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe1dc;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfb 0%, #f1f7f5 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.venue-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e7e2;
}

.venue-editor-head h3 {
  margin: 0;
  font-size: 16px;
  color: #24433d;
}

.venue-editor-head span {
  font-size: 13px;
  color: var(--muted);
}

.venue-form-panel {
  margin-top: 12px;
}

.venue-editor-form {
  gap: 14px;
}

.venue-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.venue-editor-full {
  grid-column: 1 / -1;
}

.venue-courts-block {
  padding-top: 12px;
  border-top: 1px dashed #d7e7e2;
}

.venue-editor-actions {
  padding-top: 12px;
  border-top: 1px dashed #d7e7e2;
  justify-content: flex-end;
}

.venue-slot-panel {
  margin-top: 18px;
  height: calc(100vh - 136px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.price-input {
  width: 120px;
}

.table-wrap {
  overflow: auto;
}

.orders-table-wrap {
  min-height: 0;
  border: 1px solid #d8e5e1;
  border-radius: 12px;
  background: transparent;
  padding: 8px;
}

.orders-table {
  min-width: 0;
  table-layout: fixed;
}

.orders-table th,
.orders-table td {
  padding: 8px 6px;
  font-size: 12px;
  vertical-align: top;
  word-break: break-word;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
  width: 15%;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
  width: 15%;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
  width: 14%;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
  width: 8%;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
  width: 22%;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
  width: 8%;
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
  width: 18%;
}

.orders-table .actions {
  gap: 4px;
}

.orders-table .actions button {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.customer-list {
  padding: 16px;
  border: 1px solid #d8e7e2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(245, 250, 248, 0.8);
}

.customer-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e7e2;
  margin-bottom: 12px;
}

.customer-list-head h3 {
  margin: 0;
  font-size: 16px;
  color: #24433d;
}

.customer-list-head span {
  font-size: 13px;
  color: var(--muted);
}

.customer-search-form {
  margin-bottom: 14px;
  align-items: end;
}

.customer-search-actions {
  align-self: end;
}

.panel-head .actions {
  justify-content: flex-end;
}

.customer-form-panel {
  margin-top: 12px;
}

.customer-editor {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe1dc;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfb 0%, #f1f7f5 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.customer-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e7e2;
}

.customer-editor-head h3 {
  margin: 0;
  font-size: 16px;
  color: #24433d;
}

.customer-editor-head span {
  font-size: 13px;
  color: var(--muted);
}

.customer-editor-form {
  gap: 14px;
}

.customer-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field-card {
  padding: 12px;
  border: 1px solid #d8e7e2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.field-card input,
.field-card select {
  margin-top: 2px;
}

.customer-editor-actions {
  padding-top: 12px;
  border-top: 1px dashed #d7e7e2;
  justify-content: flex-end;
}

.account-list {
  padding: 16px;
  border: 1px solid #d8e7e2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(245, 250, 248, 0.8);
}

.account-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e7e2;
  margin-bottom: 12px;
}

.account-list-head h3 {
  margin: 0;
  font-size: 16px;
  color: #24433d;
}

.account-list-head span {
  font-size: 13px;
  color: var(--muted);
}

.account-editor {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe1dc;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfb 0%, #f1f7f5 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.account-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e7e2;
}

.account-editor-head h3 {
  margin: 0;
  font-size: 16px;
  color: #24433d;
}

.account-editor-head span {
  font-size: 13px;
  color: var(--muted);
}

.account-editor-form {
  margin-top: 12px;
  gap: 14px;
}

.account-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.account-editor-full {
  grid-column: 1 / -1;
}

.account-editor-actions {
  padding-top: 12px;
  border-top: 1px dashed #d7e7e2;
  justify-content: flex-end;
}

.import-tip {
  margin: 10px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  border-bottom: 1px solid #e3efec;
  text-align: left;
  padding: 8px;
  font-size: 13px;
}

th {
  color: #35534d;
  background: #f6fbfa;
}

.table-empty {
  text-align: center;
  color: #607a74;
  padding: 20px 8px;
}

.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-bar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 13px;
  color: var(--muted);
}

.pagination-actions {
  justify-content: flex-end;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.status.unpaid { background: #fff3df; color: #8b5a16; }
.status.pending { background: #e8f7f2; color: #116f60; }
.status.completed { background: #e9efed; color: #405550; }
.status.cancelled { background: #f8ecec; color: #9a4949; }
.status.open { background: #e8f7f2; color: #116f60; }
.status.closed { background: #f1f1f1; color: #525f5a; }

.filters {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.slot-panel {
  margin-top: 14px;
}

.venue-slot-panel.is-hidden,
.venue-slot-price-panel.is-hidden,
.venue-editor.is-hidden,
.venue-editor-grid.is-hidden,
.venue-courts-block.is-hidden {
  display: none;
}

.slot-hint {
  margin: 0;
  font-size: 13px;
  color: #607a74;
}

.slot-date-title {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.slot-date-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-date-item {
  min-width: 84px;
  height: auto;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #c9ddd7;
  background: #ffffff;
  color: #2f4f49;
  display: grid;
  gap: 2px;
  text-align: center;
}

.slot-date-label {
  gap: 6px;
}

.slot-date-label .btn-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.slot-date-label .btn-icon svg {
  width: 12px;
  height: 12px;
}

.slot-date-item small {
  font-size: 12px;
  opacity: 0.88;
}

.slot-date-item.active {
  border-color: #0f7868;
  background: #e9f6f2;
  color: #0f7868;
  font-weight: 700;
}

.slot-matrix-wrap {
  margin-top: 0;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid #d8e5e1;
  background: #f3f7f5;
  padding: 6px;
  overflow: auto;
}

.slot-matrix-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 4px;
}

.slot-matrix-table th,
.slot-matrix-table td {
  border: none;
  padding: 0;
  background: transparent;
}

.slot-time-head {
  width: 90px;
  text-align: center;
  font-weight: 700;
  color: #2e4742;
}

.slot-court-status {
  margin-left: 8px;
  font-size: 12px;
  color: #0f7868;
}

.slot-time-col {
  text-align: center;
  font-weight: 700;
  color: #435c56;
  vertical-align: top;
  padding-top: 12px;
}

.slot-cell {
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid #d7dfdc;
  background: #ffffff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
}

.slot-cell-text {
  font-weight: 700;
  color: #3b5350;
}

.slot-cell-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #9bc8bf;
  background: #e9f6f2;
  color: #0f7868;
}

.slot-cell.is-open {
  background: #eef8f5;
  border-color: #cae3db;
}

.slot-cell.is-locked {
  background: #eceff0;
  border-color: #d5dbdd;
}

.slot-cell.is-closed {
  background: #f2f2f2;
  border-color: #dedede;
}

.slot-cell.is-booked {
  background: #f6ecec;
  border-color: #ecd0d0;
}

.slot-cell.is-expired {
  background: #efefef;
  border-color: #dddddd;
}

.slot-cell.is-booked .slot-cell-btn {
  display: none;
}

.slot-hint-secondary {
  font-size: 12px;
  color: #6b7a78;
  margin: 4px 0 12px;
}

.slot-selection-popover {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid #c7ddd7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(17, 44, 39, 0.18);
  backdrop-filter: blur(8px);
}

.slot-selection-summary {
  font-size: 13px;
  color: #435c56;
  font-weight: 700;
}

.slot-selection-actions {
  flex-wrap: wrap;
}

.slot-matrix-wrap.is-selection-mode {
  border-color: #9bc8bf;
  box-shadow: inset 0 0 0 1px rgba(15, 120, 104, 0.08);
}

.slot-matrix-wrap.is-selection-mode .slot-cell[data-selectable="true"] {
  cursor: crosshair;
  user-select: none;
}

.slot-cell.is-selected {
  border-color: #0f7868;
  box-shadow: inset 0 0 0 2px rgba(15, 120, 104, 0.22);
}

.slot-price-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #e3e9e7;
  background: #f7fafa;
}

.slot-price-cell.is-customized {
  background: #fff7e9;
  border-color: #f0d6a1;
}

.slot-price-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cfd9d6;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
}

.slot-price-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.slot-cell-btn-secondary {
  border-color: #d5cbb9;
  background: #f2ead9;
  color: #8a6a23;
}

.slot-price-table th .slot-court-status {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6f807c;
  margin-top: 2px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(20, 30, 28, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: min(90vw, 460px);
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.toast.centered {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.toast.show {
  opacity: 1;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-art {
    opacity: 0.72;
  }

  .racket-back {
    right: -6px;
    top: 12px;
  }

  .racket-front {
    right: 82px;
    top: 72px;
  }

  .ball-small {
    right: 136px;
    top: 24px;
  }

  .shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .content-area.dashboard-static {
    overflow: auto;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #d8e6e2;
  }

  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-inline {
    grid-template-columns: 1fr;
  }

  .orders-view.active {
    height: auto;
  }

  .dashboard-view.active {
    height: auto;
  }

  .dashboard-view.active > .panel {
    height: auto;
    display: block;
    overflow: visible;
  }

  .orders-panel {
    height: auto;
    display: block;
    overflow: visible;
  }

  .orders-search-form {
    grid-template-columns: 1fr;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .dashboard-board {
    grid-template-rows: none;
  }

  .dashboard-card,
  .dashboard-table-wrap,
  .dashboard-chart {
    overflow: visible;
    height: auto;
  }

  .orders-search-form .actions {
    justify-content: flex-start;
  }

  .orders-table-wrap {
    overflow: auto;
  }

  .orders-table {
    min-width: 760px;
    table-layout: auto;
  }

  .venue-slot-panel {
    height: auto;
    display: block;
    overflow: visible;
  }

  .topbar h1 {
    font-size: 22px;
  }
}

/* 场馆背景图编辑器 */
.venue-bg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.venue-bg-label {
  font-weight: 600;
  color: #2a3a37;
  font-size: 14px;
}

.venue-bg-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.venue-bg-preview {
  flex: 1;
  min-height: 140px;
  border-radius: 10px;
  border: 1px dashed #c9d4d1;
  background: #f4f8f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.venue-bg-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-bg-empty {
  color: #99a6a3;
  font-size: 13px;
}

.venue-bg-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
  min-width: 140px;
}

.venue-bg-actions button {
  white-space: nowrap;
}

.venue-bg-hint {
  margin: 0;
  color: #6f807c;
  font-size: 12px;
}

/* 操作日志页面 */
.op-log-table th,
.op-log-table td {
  font-size: 13px;
  vertical-align: top;
}

.op-log-table td:nth-child(5) {
  max-width: 360px;
}

.op-log-table .table-empty {
  text-align: center;
  color: #6f807c;
  padding: 24px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.pagination-info {
  color: #6f807c;
  font-size: 13px;
}

/* ───── 权限管理页 ───── */
.perm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.perm-roles {
  border: 1px solid #e3ece9;
  border-radius: 12px;
  padding: 14px;
  background: #fbfdfc;
}
.role-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-item {
  border: 1px solid #e3ece9;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.role-item:hover {
  border-color: #9bd0c2;
}
.role-item.active {
  border-color: #2f9e7e;
  box-shadow: 0 0 0 2px rgba(47, 158, 126, .15);
}
.role-item-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.role-item-name {
  font-weight: 600;
  color: #234b43;
}
.role-item-code {
  font-size: 12px;
  color: #8aa39c;
}
.role-item-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.role-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5f2;
  color: #5d7a72;
}
.role-tag.builtin {
  background: #fff3da;
  color: #a9772a;
}
.role-tag.full {
  background: #e3f4ec;
  color: #2f9e7e;
}
.perm-config {
  border: 1px solid #e3ece9;
  border-radius: 12px;
  padding: 18px;
}
.perm-config-head {
  margin-bottom: 14px;
}
.perm-config-head h3 {
  margin: 0 0 4px;
  color: #234b43;
}
.perm-config-head span {
  font-size: 13px;
  color: #8aa39c;
}
.perm-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.perm-matrix {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.perm-group {
  border: 1px solid #eef3f1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfdfc;
}
.perm-group-title {
  font-weight: 600;
  color: #2f6f60;
  margin-bottom: 10px;
}
.perm-group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
}
.perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3d564f;
  cursor: pointer;
}
.perm-check input {
  width: 16px;
  height: 16px;
  accent-color: #2f9e7e;
}
@media (max-width: 900px) {
  .perm-layout {
    grid-template-columns: 1fr;
  }
}

/* ── 场馆共享 modal ── */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.share-modal {
  background: var(--card);
  border-radius: 12px;
  width: 540px;
  max-width: 96vw;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share-modal-head h3 { margin: 0; font-size: 1.1rem; }
.share-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted, #888);
  line-height: 1;
  padding: 0 4px;
}
.share-modal-hint {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted, #888);
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 12px;
}
.share-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.share-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.share-account-select {
  flex: 1;
  min-width: 0;
}
.share-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}
.share-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #cfdedb;
  border-radius: 6px;
  font-size: .9rem;
}
.share-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cfdedb;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(24, 51, 47, 0.12);
  z-index: 30;
}
.share-cand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: .88rem;
  color: #223b37;
}
.share-cand-item:hover {
  background: #eaf6f2;
}
.share-cand-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .72rem;
  color: #ffffff;
  flex-shrink: 0;
}
.share-cand-badge-ACCOUNT {
  background: #0f7868;
}
.share-cand-badge-CUSTOMER {
  background: #b5722a;
}
.share-cand-label {
  font-weight: 600;
  color: #18332f;
}
.share-cand-sub {
  color: #6a827d;
  font-size: .8rem;
}
.share-search-empty {
  padding: 10px 12px;
  color: #8ba39d;
  font-size: .85rem;
}
.share-selected-tag {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #245b52;
}
.share-editable-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: .85rem;
  color: #35534d;
  cursor: pointer;
}
.share-editable-check input {
  width: auto;
  height: auto;
  margin: 0;
}
.share-list-wrap {
  overflow-x: auto;
}
/* 覆盖全局 table { min-width: 900px } —— 弹窗内表格随容器宽度自适应 */
.share-list-wrap table {
  min-width: 0;
  width: 100%;
}
.share-list-wrap th:last-child,
.share-list-wrap td:last-child {
  width: 80px;
  text-align: right;
}

/* 广告管理 */
.ad-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}
.ad-list-wrap {
  overflow-x: auto;
}
.ad-row-thumb {
  width: 80px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  background: #eef2f0;
}
.ad-form-wrap {
  background: #f9fcfb;
  border: 1px solid #d8e6e1;
  border-radius: 10px;
  padding: 14px;
  align-self: start;
}
.ad-form .field-card {
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #e3efec;
}
.ad-form label {
  display: block;
  font-size: 13px;
  color: #35534d;
  margin-bottom: 6px;
}
.ad-form input[type="text"],
.ad-form input[type="number"],
.ad-form input[type="datetime-local"],
.ad-form select {
  width: 100%;
}
.ad-image-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ad-image-preview {
  width: 120px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f0;
}
.ad-image-actions {
  display: flex;
  gap: 8px;
}
.ad-link-row {
  display: flex;
  gap: 8px;
}
.ad-link-row select { flex: 0 0 130px; }
.ad-link-row input { flex: 1; }
.hint-text {
  color: #607a74;
  font-size: 12px;
}
@media (max-width: 980px) {
  .ad-layout { grid-template-columns: 1fr; }
}

/* ====== 对账告警页 ====== */
.menu-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 9px;
  background: #d83838;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}
.badge-warn { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #fdf2f2; color: #c83838; font-size: 12px; font-weight: 600; border: 1px solid #f1c3c3; }
.badge-ok   { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #e9f6f2; color: #0f7868; font-size: 12px; font-weight: 600; border: 1px solid #bfe1d3; }
.badge-mute { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #f0f2f1; color: #6f807c; font-size: 12px; font-weight: 600; border: 1px solid #d6dcd9; }
#reconciliationTable code { font-size: 12px; background: #f4f6f5; padding: 2px 6px; border-radius: 4px; }

/* ===== 对账页：工具栏 ===== */
.reconciliation-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin: 12px 0 8px;
  background: #f7faf9;
  border: 1px solid #e4ebe8;
  border-radius: 10px;
}
.rc-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rc-group.rc-actions { margin-left: auto; }
.rc-label {
  font-size: 13px;
  color: #5b6c67;
  font-weight: 500;
  white-space: nowrap;
}
.rc-sep { color: #9aa8a3; font-size: 13px; }
.rc-input {
  padding: 7px 10px;
  border: 1px solid #cfd9d5;
  border-radius: 6px;
  font-size: 13px;
  color: #2a3833;
  background: #fff;
  min-height: 32px;
  line-height: 1.2;
}
.rc-input:focus {
  outline: none;
  border-color: #2a8773;
  box-shadow: 0 0 0 2px rgba(42, 135, 115, 0.15);
}
.rc-hint {
  font-size: 12px;
  color: #8a9a95;
  margin-left: 4px;
}
.rc-hint-warn { color: #c83838; font-weight: 600; }
.rc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #3a4a45;
  cursor: pointer;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #cfd9d5;
  border-radius: 6px;
  user-select: none;
}
.rc-check input { margin: 0; }
.rc-check:hover { border-color: #2a8773; }

/* ===== 对账页：标题与子分组 ===== */
.section-subtitle { margin: 22px 0 10px; font-size: 14px; color: #3a4a45; font-weight: 600; }
.rc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.rc-filter-inline { display: inline-flex; align-items: center; gap: 8px; }

/* ===== 对账页：表格 ===== */
.rc-table { font-size: 13px; }
.rc-table code { font-size: 12px; background: #f0f4f3; color: #2a3833; padding: 2px 8px; border-radius: 4px; }
.rc-table .rc-amt { font-variant-numeric: tabular-nums; text-align: right; font-family: 'JetBrains Mono', Menlo, Consolas, monospace; }
.rc-table .rc-bad { color: #c83838; font-weight: 700; }
.rc-table .rc-yes { color: #2a8773; font-weight: 600; }
.rc-table .rc-no  { color: #9aa8a3; }
.rc-table .rc-msg { font-size: 11px; color: #c83838; margin-top: 4px; word-break: break-all; }
.rc-table td.empty, #reconciliationTable td.empty { text-align: center; color: #99a8a3; padding: 28px 0; font-size: 13px; }

/* ===== 客户充值弹窗 ===== */
.rc-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.rc-modal.open { opacity: 1; pointer-events: auto; }
.rc-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 36, 32, 0.45);
  backdrop-filter: blur(2px);
}
.rc-modal-panel {
  position: relative;
  width: min(460px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}
.rc-modal.open .rc-modal-panel { transform: translateY(0) scale(1); }
.rc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f1;
}
.rc-modal-head h3 { margin: 0; font-size: 15px; color: #2a3833; font-weight: 600; }
.rc-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #99a8a3;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.rc-modal-close:hover { background: #f0f4f3; color: #4b5e58; }
.rc-modal-body { padding: 18px 20px 20px; }

.rc-customer-card {
  background: #f7faf9;
  border: 1px solid #e4ebe8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.rc-customer-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2d29;
  margin-bottom: 4px;
}
.rc-customer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6f807c;
}
.rc-customer-balance strong {
  color: #2a8773;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rc-field { display: block; margin-bottom: 14px; }
.rc-field-label {
  display: block;
  font-size: 13px;
  color: #4b5e58;
  margin-bottom: 6px;
  font-weight: 500;
}
.rc-field-label em {
  color: #c83838;
  font-style: normal;
  margin-left: 2px;
}
.rc-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2d29;
  box-sizing: border-box;
}
.rc-field input[type="text"]:focus {
  outline: none;
  border-color: #2a8773;
  box-shadow: 0 0 0 3px rgba(42, 135, 115, 0.12);
}

.rc-amount-input {
  display: flex;
  align-items: center;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rc-amount-input:focus-within {
  border-color: #2a8773;
  box-shadow: 0 0 0 3px rgba(42, 135, 115, 0.12);
}
.rc-currency {
  padding: 0 10px 0 14px;
  font-size: 18px;
  color: #2a8773;
  font-weight: 600;
}
.rc-amount-input-deduct .rc-currency { color: #c83838; }
.rc-amount-input-deduct:focus-within {
  border-color: #c83838;
  box-shadow: 0 0 0 3px rgba(200, 56, 56, 0.12);
}
.rc-preview-deduct {
  background: #fdf2f2;
  border-color: #f1c3c3;
  color: #c83838;
}
.rc-amount-input input {
  flex: 1;
  border: none;
  padding: 12px 12px 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2d29;
  font-variant-numeric: tabular-nums;
  outline: none;
  background: transparent;
}

.rc-quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: -4px 0 16px;
}
.rc-quick-amounts button {
  padding: 8px 0;
  border: 1px solid #d6dcd9;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: #3a4a45;
  cursor: pointer;
  transition: all 0.12s;
}
.rc-quick-amounts button:hover {
  border-color: #2a8773;
  color: #2a8773;
  background: #f0f8f5;
}

.rc-preview {
  background: #f0f8f5;
  border: 1px dashed #a8d5c7;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #2a8773;
  text-align: center;
}
.rc-preview strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.rc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.rc-modal-actions button {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== 客户钱包流水抽屉 ===== */
.rc-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rc-drawer.open { opacity: 1; pointer-events: auto; }
.rc-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(34, 56, 50, 0.35);
}
.rc-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(900px, 92vw);
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.rc-drawer.open .rc-drawer-panel { transform: translateX(0); }
.rc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #e4ebe8;
}
.rc-drawer-head h3 { margin: 0; font-size: 15px; color: #2a3833; }
.rc-drawer-body { padding: 18px 22px; overflow: auto; flex: 1; }

/* ===== 余额统计：顶部汇总卡 ===== */
.wallet-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
}
.wallet-summary-card {
  background: #f7faf9;
  border: 1px solid #e4ebe8;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet-summary-card.emphasized {
  background: #fff8e8;
  border-color: #f5d99a;
}
.ws-label { font-size: 12px; color: #6f807c; }
.ws-value { font-size: 20px; color: #1f2d29; font-weight: 700; font-variant-numeric: tabular-nums; }
.ws-sub { font-size: 11px; color: #99a8a3; }
