* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: "Segoe UI", sans-serif; background: #f0f2f5; color: #333; }
.hidden { display: none !important; }
.login-box { max-width: 360px; margin: 120px auto; background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.login-box input { width: 100%; margin: 8px 0; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.login-box button { width: 100%; margin-top: 12px; padding: 10px; background: #1677ff; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.agreement-gate { position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; padding:32px 16px; background:rgba(15,23,42,.46); }
.agreement-gate-box { width:min(760px,100%); max-height:calc(100vh - 64px); overflow:auto; border:1px solid #e5e7eb; border-radius:8px; background:#fff; box-shadow:0 16px 50px rgba(15,23,42,.22); }
.agreement-gate-header { padding:24px 28px 18px; border-bottom:1px solid #edf0f4; }
.agreement-gate-header span { color:#1677ff; font-size:12px; }.agreement-gate-header h2 { margin:7px 0; font-size:21px; }.agreement-gate-header p { margin:0; color:#777; font-size:13px; }
.agreement-gate-content { max-height:45vh; margin:20px 28px; padding:18px; overflow:auto; border:1px solid #e5e7eb; background:#fafafa; color:#444; font-size:14px; line-height:1.8; white-space:pre-wrap; }
.agreement-mobile,.agreement-check { display:flex; align-items:flex-start; gap:10px; margin:16px 28px; font-size:14px; }.agreement-mobile { flex-direction:column; }.agreement-mobile input { width:100%; padding:10px; border:1px solid #ddd; border-radius:4px; }
.agreement-check input { margin-top:3px; }.agreement-gate-actions { display:flex; justify-content:flex-end; gap:10px; padding:16px 28px; border-top:1px solid #edf0f4; background:#fafafa; }.agreement-gate-actions .btn { min-width:120px; padding:10px 16px; }
.租户条款页面 .agreement-gate-content { max-height:none; margin:20px 0; }
.租户条款页面操作 { display:flex; justify-content:flex-end; padding-top:4px; }
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 148px;
  height: 100vh;
  background: #102a43;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.brand {
  padding: 18px 10px 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  line-height: 1.3;
}
.sidebar nav { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; padding: 6px 0; }
.sidebar nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  transition: background .15s ease, color .15s ease;
}
.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f5222d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.menu-badge-clickable {
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.sidebar a.active .menu-badge-clickable:hover,
.sidebar a:hover .menu-badge-clickable:hover {
  box-shadow: 0 0 0 2px rgba(255,255,255,.45);
}
.sidebar a.active .menu-badge,
.sidebar a:hover .menu-badge {
  background: #fff;
  color: #f5222d;
}
.sidebar a.active, .sidebar a:hover { background: #1677ff; color: #fff; }
.logout {
  margin: 10px 12px 14px;
  padding: 7px 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.72);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
}
main { flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid #eee; flex-shrink: 0; }
.topbar h1 { margin: 0; font-size: 18px; font-weight: 600; color: #333; }
.topbar button { padding: 8px 16px; background: #1677ff; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.content { flex: 1; min-height: 0; padding: 20px 24px; overflow-y: auto; overflow-x: hidden; }
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  color: #999;
  font-size: 14px;
}
.page-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e8e8e8;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: page-spin 0.7s linear infinite;
}
@keyframes page-spin { to { transform: rotate(360deg); } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card b { display: block; font-size: 28px; margin-top: 8px; color: #1677ff; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 13px; }
th { background: #fafafa; }
.toolbar { margin-bottom: 12px; display: flex; gap: 8px; }
.toolbar input { padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.btn { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; background: #1677ff; color: #fff; font-size: 12px; }
.btn.warn { background: #fa8c16; }
.btn.ok { background: #52c41a; }
.table-wrap { overflow: auto; }
.table-wrap-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.table-wrap-page.table-wrap-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
.table-wrap table th,
.table-wrap table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 13px; vertical-align: middle; background: #fff; }
.table-wrap table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 0 #f0f0f0;
}
.table-wrap table tbody tr:hover td { background: #fafafa; }
.table-wrap-scroll { overflow-x: auto; overflow-y: visible; max-width: 100%; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); -webkit-overflow-scrolling: touch; }
.admin-data-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  -webkit-overflow-scrolling: touch;
}
.admin-data-table-wrap table.data-table-wide {
  width: max-content;
  min-width: 100%;
}
.order-table-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.order-table-scroll {
  flex: 1;
  min-width: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}
.order-table-actions-col {
  flex-shrink: 0;
  width: 132px;
  min-width: 132px;
  border-left: 1px solid #f0f0f0;
  box-shadow: -6px 0 12px rgba(0,0,0,.06);
  background: #fff;
}
.order-actions-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.order-actions-table th,
.order-actions-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
  background: #fff;
  white-space: nowrap;
}
.order-actions-table th {
  background: #fafafa;
  font-weight: 600;
  height: 41px;
  box-sizing: border-box;
}
.member-table-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 140px;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 330px);
  min-height: 0;
  max-height: calc(100vh - 330px);
  overflow: hidden;
  border: 1px solid var(--admin-line, #e8ecf2);
  border-radius: var(--admin-radius, 10px);
  background: #fff;
  box-shadow: var(--admin-shadow, 0 8px 24px rgba(26,40,70,.06));
}
.member-table-identity-col {
  min-width: 228px;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #eef1f5;
  background: #fff;
  box-shadow: 8px 0 14px rgba(15,23,42,.08);
  z-index: 2;
}
.member-table-scroll {
  min-width: 0;
  min-height: 0;
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.member-table-scroll table.data-table-wide {
  width: max-content;
  min-width: 100%;
}
.member-table-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.member-table-scroll::-webkit-scrollbar-track {
  border-radius: 6px;
  background: #eef1f5;
}
.member-table-scroll::-webkit-scrollbar-thumb {
  min-width: 48px;
  border: 2px solid #eef1f5;
  border-radius: 6px;
  background: #9aa4b4;
}
.member-table-scroll::-webkit-scrollbar-thumb:hover { background: #7b8697; }
.member-table-actions-col {
  min-width: 140px;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid #eef1f5;
  background: #fff;
  box-shadow: -8px 0 14px rgba(15,23,42,.08);
}
.member-actions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.member-identity-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.member-data-table th,
.member-data-table td,
.member-identity-table th,
.member-identity-table td,
.member-actions-table th,
.member-actions-table td {
  height: 65px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f5;
  box-sizing: border-box;
  white-space: nowrap;
  vertical-align: middle;
}
.member-data-table th,
.member-data-table td { min-width: 96px; }
.member-data-table thead th,
.member-identity-table thead th,
.member-actions-table thead th {
  height: 49px;
  background: #fbfcfe;
  color: #7b8697;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.member-identity-table th:first-child,
.member-identity-table td:first-child { width: 36px; min-width: 36px; max-width: 36px; text-align: center; padding-left: 8px; padding-right: 8px; }
.member-identity-table th:nth-child(2),
.member-identity-table td:nth-child(2) { width: 72px; }
.member-identity-table th:last-child,
.member-identity-table td:last-child { width: 120px; }
.member-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  background: #f8fafc;
}
.member-batch-bar.is-collapsed { display: none; }
.users-toolbar-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.users-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.users-toolbar-filters label {
  color: #666;
  font-size: 13px;
  white-space: nowrap;
}
.users-toolbar-filters select,
.users-toolbar-filters input[type="text"] {
  height: 36px;
  padding: 0 11px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.users-toolbar-filters input[type="text"] { min-width: 160px; }
.users-toolbar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f3f7;
}
.users-toolbar-actions-left,
.users-toolbar-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-batch-summary {
  margin-right: 4px;
  color: #4b5563;
  font-size: 13px;
}
.member-batch-bar .btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.member-identity-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.member-actions-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.member-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fbfcfe;
}
.member-data-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
.member-actions-table .table-action-cell { overflow: visible; text-align: center; }
.member-actions-table .order-more-wrap { display: inline-block; overflow: visible; }
.member-identity-table tbody tr:hover td,
.member-actions-table tbody tr:hover td { background: #f8faff; }
.order-action-cell .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cell-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.table-hint { font-size: 12px; color: #999; }
table.data-table-wide { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
table.data-table-wide th, table.data-table-wide td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 13px; white-space: nowrap; vertical-align: middle; background: #fff; }
table.data-table-wide th { background: #fafafa; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.列表列宽手柄 { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 4; }
.列表列宽手柄:hover, .列表列宽手柄:active { background: rgba(37, 99, 235, .28); }
th[data-column-key] { position: relative; }
table.data-table-wide th[data-column-key] { position: sticky; }
.通用列表工具栏 { margin-bottom: 8px; }
.table-toolbar.列选择工具栏 {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}
/* 订单操作列已拆到右侧固定栏，保留旧类名兼容其它表格 */
table.data-table-wide .col-sticky-action {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 112px;
  padding: 10px 10px;
  background: #fff;
  box-shadow: -6px 0 10px rgba(0,0,0,.06);
  border-left: 1px solid #f0f0f0;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
table.data-table-wide thead .col-sticky-action { background: #fafafa; z-index: 5; }
table.data-table-wide tbody tr:hover td { background: #fafafa; }
table.data-table-wide tbody tr:hover .col-sticky-action { background: #fafafa; }
table.data-table-wide tbody tr.row-menu-open {
  position: relative;
  z-index: 60;
}
table.data-table-wide tbody tr.row-menu-open .col-sticky-action {
  z-index: 61;
  overflow: visible;
}
.table-action-cell .order-more-wrap { display: inline-block; position: relative; }
.order-more-wrap.is-open { z-index: 62; }
.table-action-cell .order-more-btn { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.status-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.status-tag.tag-default { color: #666; background: #f5f5f5; }
.status-tag.tag-warning { color: #d46b08; background: #fff7e6; }
.status-tag.tag-orange { color: #fa541c; background: #fff2e8; }
.status-tag.tag-processing { color: #1677ff; background: #e6f4ff; }
.status-tag.tag-purple { color: #722ed1; background: #f9f0ff; }
.status-tag.tag-cyan { color: #08979c; background: #e6fffb; }
.status-tag.tag-success { color: #389e0d; background: #f6ffed; }
.status-tag.tag-buy { color: #1677ff; background: #e6f4ff; }
.status-tag.tag-sell { color: #cf1322; background: #fff1f0; }
.col-picker-wrap { position: relative; }
.col-picker-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 12px; }
.col-picker-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #333; }
.col-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; max-height: 280px; overflow: auto; }
.col-picker-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; user-select: none; }
.col-picker-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 8px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; }
.tab.active { background: #1677ff; color: #fff; border-color: #1677ff; }
.form-panel { background: #fff; padding: 20px; border-radius: 8px; max-width: 720px; }
.settings-page { padding-bottom: 88px; }
.settings-floating-actions {
  position: fixed;
  right: 32px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--admin-line, #e8edf5);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .12);
  backdrop-filter: blur(8px);
}
.settings-floating-actions .btn.ok { min-width: 120px; }
.client-theme-field { margin: 18px 0 4px; }
.client-theme-native-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.client-theme-label { margin-bottom: 9px; color: #333; font-size: 13px; font-weight: 600; }
.client-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-theme-card { overflow: hidden; border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; transition: border-color .16s, box-shadow .16s; }
.client-theme-card.selected { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .09); }
.client-theme-select { position: relative; display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.client-theme-swatch { display: grid; width: 70px; height: 58px; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-radius: 9px; background: #f5f5f5; }
.client-theme-swatch i { display: block; border-radius: 4px; background: #fff; }
.client-theme-swatch i:first-child { grid-column: 1 / -1; height: 18px; }
.client-theme-swatch-default { background: #f6e2e2; }
.client-theme-swatch-default i:first-child { background: #f45d5c; }
.client-theme-swatch-default i:nth-child(2) { background: #fff; }
.client-theme-swatch-default i:nth-child(3) { background: #ffe4e4; }
.client-theme-swatch-jade { background: #f0eee7; }
.client-theme-swatch-jade i:first-child { background: #1f6b5c; }
.client-theme-swatch-jade i:nth-child(2) { background: #fffefa; }
.client-theme-swatch-jade i:nth-child(3) { background: #d8e9e2; }
.client-theme-copy { min-width: 0; flex: 1; }
.client-theme-copy strong { display: block; color: #263246; font-size: 14px; }
.client-theme-copy small { display: block; margin-top: 5px; color: #7b8697; font-size: 11px; line-height: 1.45; }
.client-theme-check { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1px solid #d7dde7; border-radius: 50%; color: transparent; font-size: 12px; }
.client-theme-card.selected .client-theme-check { border-color: #1677ff; color: #fff; background: #1677ff; }
.client-theme-preview-btn { width: calc(100% - 24px); margin: 0 12px 12px; color: #1677ff; border-color: #cfe0ff; background: #f4f8ff; }
.form-row { margin-bottom: 14px; }
.form-row > label:not(.switch) { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
.form-row input:not([type="checkbox"]):not([type="hidden"]),
.form-row textarea,
.form-row select { width: 100%; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.form-row input[type="hidden"] { display: none; }
.form-row input[type="time"] { cursor: pointer; }
.weekday-picker-row { position: relative; }
.weekday-picker { position: relative; }
.weekday-picker-display { min-height: 40px; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: pointer; }
.weekday-picker-display:hover { border-color: #1677ff; }
.weekday-placeholder { color: #bbb; font-size: 13px; }
.weekday-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #e6f4ff; color: #1677ff; border-radius: 4px; font-size: 12px; }
.weekday-tag button { border: none; background: transparent; color: #1677ff; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.weekday-picker-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 10px; }
.weekday-quick { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.weekday-options { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.weekday-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: none; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; color: #333; text-align: left; }
.weekday-option:hover { background: #f5f5f5; }
.weekday-option.active { background: #e6f4ff; color: #1677ff; }
.weekday-check { display: inline-flex; width: 16px; justify-content: center; font-weight: 700; color: #1677ff; }
.open-date-picker-row { position: relative; }
.open-date-picker { position: relative; }
.open-date-picker-display { min-height: 40px; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: pointer; }
.open-date-picker-display:hover { border-color: #1677ff; }
.open-date-placeholder { color: #bbb; font-size: 13px; }
.open-date-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #e6f4ff; color: #1677ff; border-radius: 4px; font-size: 12px; }
.open-date-tag button { border: none; background: transparent; color: #1677ff; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.open-date-picker-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 10px; }
.open-date-quick { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.open-date-options { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow: auto; }
.open-date-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: none; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; color: #333; text-align: left; }
.open-date-option:hover { background: #f5f5f5; }
.open-date-option.active { background: #e6f4ff; color: #1677ff; }
.open-date-option.today { font-weight: 600; }
.open-date-check { display: inline-flex; width: 16px; justify-content: center; font-weight: 700; color: #1677ff; }

.app-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(0, 0, 0, .78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 10000;
  font-size: 14px;
  max-width: min(90vw, 420px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  line-height: 1.5;
  white-space: pre-wrap;
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.boot-error {
  max-width: 560px;
  margin: 48px auto;
  padding: 24px 28px;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  background: #fff2f0;
  color: #434343;
}
.boot-error h3 {
  margin: 0 0 12px;
  color: #cf1322;
  font-size: 18px;
}
.boot-error p {
  margin: 0 0 10px;
  line-height: 1.6;
}
.boot-error-hint {
  color: #8c8c8c;
  font-size: 13px;
}
.boot-error .btn { margin-top: 8px; }
.form-row small { display: block; margin-top: 4px; color: #999; font-size: 12px; }
.field-hint { margin: 6px 0 0; color: #999; font-size: 12px; line-height: 1.5; }
.hint-inline { color: #999; font-size: 12px; }
.static-text { margin: 0; padding: 8px 0; color: #333; }
.split-modal-content { min-width: 0; }
.split-modal-tip strong { flex: 0 0 auto; }
.split-source-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
}
.split-source-info { flex: 1; min-width: 0; }
.split-source-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}
.split-source-name > span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e6f4ff;
  color: #1677ff;
  font-size: 12px;
}
.split-source-name > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-source-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 5px; }
.split-source-meta > span { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.split-source-meta em { color: #999; font-size: 12px; font-style: normal; }
.split-source-meta strong { color: #333; font-size: 13px; font-weight: 500; }
.split-source-info small { color: #999; font-size: 12px; }
.split-items-row { margin-bottom: 0; }
.split-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.split-section-head > label { flex: 0 0 auto; color: #555; font-weight: 500; }
.split-table-wrap { overflow-x: auto; }
.split-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.split-table th, .split-table td { border: 1px solid #e8e8e8; padding: 6px 8px; text-align: left; vertical-align: middle; }
.split-table input { width: 100%; padding: 6px 8px; border: 1px solid #d9d9d9; border-radius: 4px; }
.split-image-col { width: 142px; min-width: 142px; }
.split-action-col { width: 120px; min-width: 120px; }
.split-row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.split-image-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.split-image-cell .split-image-preview {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.split-image-cell .split-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-image-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.split-image-hint {
  font-size: 11px;
  color: #999;
  line-height: 1.3;
  text-align: center;
}
.split-original-image {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-original-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}
.split-remain {
  margin: 0;
  padding: 6px 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
}
.split-remain strong.ok { color: #52c41a; }
.split-remain strong.warn { color: #fa8c16; }
.split-remain strong.error { color: #ff4d4f; }
.split-table-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.split-table-actions small { margin: 0; }
@media (max-width: 600px) {
  .split-modal-content .split-modal-tip { align-items: flex-start; flex-direction: column; gap: 3px; }
  .split-source-card { align-items: flex-start; }
  .split-source-meta { flex-direction: column; gap: 4px; }
  .split-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .split-table-actions { align-items: flex-start; flex-direction: column; }
}
.help-content {
  color: #434343;
  font-size: 14px;
  line-height: 1.7;
}
.help-content p { margin: 0 0 10px; }
.help-content p:last-child { margin-bottom: 0; }
.help-content strong { color: #389e0d; }
.trade-status-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trade-order-link { font-size: 12px; color: #1677ff; text-decoration: none; }
.trade-order-link:hover { text-decoration: underline; }
.user-link { color: #1677ff; text-decoration: none; }
.user-link:hover { text-decoration: underline; }
.text-muted { color: #999; }
.btn.split-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
  border-color: #d9d9d9;
}
.btn.split-disabled[data-reason] {
  position: relative;
}
.btn.split-disabled[data-reason]::after {
  content: attr(data-reason);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: 320px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 6px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.btn.split-disabled[data-reason]:hover::after,
.btn.split-disabled[data-reason]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
.split-modal-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.inline-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; white-space: nowrap; }
.listing-switch-cell { display: inline-flex; align-items: center; white-space: nowrap; }
.listing-switch-cell .switch { margin: 0; }
.form-row-listing { align-items: center; }
.form-row-listing .form-listing-control { flex: 1; min-width: 0; }
.form-row-hint { margin-top: -8px; }
.form-row-hint small { color: #999; line-height: 1.6; }
.inline-switch input { width: 15px; height: 15px; margin: 0; accent-color: #52c41a; }
.inline-switch span { color: #555; font-size: 13px; }
.section-tip { margin: 8px 0 0; color: #999; font-size: 12px; }
.split-modal-tip.ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.loot-subarea-banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.loot-subarea-banner.ok { background: #e6f4ff; border: 1px solid #91caff; color: #0958d9; }
.loot-subarea-banner.warn { background: #fff7e6; border: 1px solid #ffd591; color: #d46b08; }
.loot-subarea-desc { color: inherit; opacity: 0.85; }
.loot-open-tag, .loot-closed-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.loot-open-tag { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.loot-closed-tag { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.loot-goods-hint {
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}
.loot-goods-table-wrap { max-height: 58vh; overflow: auto; margin-bottom: 10px; border: 1px solid #f0f0f0; border-radius: 6px; }
.loot-goods-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}
.loot-goods-table th,
.loot-goods-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  vertical-align: top;
  text-align: left;
  background: #fff;
}
.loot-goods-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
}
.loot-goods-table .loot-col-id { width: 48px; }
.loot-goods-table .loot-col-image { width: 72px; }
.loot-goods-table .loot-col-name { width: 10%; }
.loot-goods-table .loot-col-price { width: 64px; }
.loot-goods-table .loot-col-shelf { width: 64px; }
.loot-goods-table .loot-col-order { width: 64px; }
.loot-goods-table .loot-col-order-status { width: 80px; }
.loot-goods-table .loot-col-loot { width: 80px; }
.loot-goods-table .loot-col-reason { width: 22%; }
.loot-goods-table .loot-col-actions { width: 140px; }
.loot-goods-filter .filter-row { flex-wrap: nowrap; }
.loot-goods-filter .filter-row input[type="text"] { min-width: 140px; flex: 0 1 180px; }
.loot-cell {
  display: flex;
  align-items: center;
  min-height: 40px;
  line-height: 1.5;
}
.loot-cell-reason {
  align-items: flex-start;
  min-height: 0;
  color: #666;
  word-break: break-word;
  white-space: normal;
}
.loot-cell-name {
  align-items: flex-start;
  word-break: break-all;
  white-space: normal;
}
.loot-cell-image { min-height: 0; line-height: 0; }
.loot-cell-image .thumb-wrap { width: 48px; height: 48px; }
.loot-cell-actions {
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.loot-goods-pager { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.loot-goods-filter { margin-bottom: 10px; }
.loot-page-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.loot-page-empty {
  padding: 48px 20px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}
.loot-page-empty .btn { margin-top: 12px; }
.loot-goods-page-table {
  max-height: none;
  min-height: 360px;
}
.loot-goods-page-table .loot-goods-table {
  min-width: 1100px;
}
.form-static { margin: 0; padding: 8px 0; color: #333; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; padding: 6px 0; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.money-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.money-form-row > .money-form-label {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.money-status-group {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.money-status-opt {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 8px 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  font-weight: 400;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.money-status-opt + .money-status-opt { border-left: none; }
.money-status-opt:first-child { border-radius: 4px 0 0 4px; }
.money-status-opt:last-child { border-radius: 0 4px 4px 0; }
.money-status-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.money-status-opt:has(input:checked) {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
  z-index: 1;
}
.money-log-toolbar { gap: 8px; align-items: center; }
.money-log-filter { margin-right: 8px; color: #666; }
.money-panel { display: flex; flex-direction: column; gap: 16px; }
.money-panel-adjust { gap: 20px; }
.money-balance-card {
  padding: 20px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7f6 0%, #fff 55%);
  border: 1px solid #ffe0dd;
  text-align: center;
}
.money-balance-label { font-size: 13px; color: #888; margin-bottom: 8px; }
.money-balance-value { font-size: 32px; font-weight: 700; color: #ed5a55; line-height: 1.2; letter-spacing: 0.5px; }
.money-balance-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 14px;
  font-size: 12px;
  color: #666;
}
.money-text { font-variant-numeric: tabular-nums; }
.money-plus { color: #52c41a; font-weight: 600; }
.money-minus { color: #ff4d4f; font-weight: 600; }
.money-panel-section { border: 1px solid #eee; border-radius: 8px; padding: 12px 14px; background: #fafafa; }
.money-panel-title { margin: 0 0 12px; font-size: 14px; color: #333; }
.money-panel-user { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 13px; color: #555; }
.money-panel-user strong { color: #ed5a55; }
.money-panel-filter { margin-bottom: 12px; background: #fff; }
.money-panel-table { max-height: 320px; overflow: auto; }

.filter-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-row label {
  color: #666;
  font-size: 13px;
  white-space: nowrap;
}
.filter-row select,
.filter-row input[type="text"],
.filter-row .date-range-display {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
}
.filter-row input[type="text"] { min-width: 180px; }
.filter-sep { color: #999; }

/* 用户操作记录条件较多，使用独立栅格保持字段和操作区在不同宽度下仍清晰对齐。 */
.用户业务记录筛选区 { padding: 16px 18px; }
.用户业务记录筛选网格 {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) repeat(3, minmax(180px, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.用户业务记录筛选项 { min-width: 0; }
.用户业务记录筛选项 > label {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}
.用户业务记录筛选项 > input,
.用户业务记录筛选项 > select,
.用户业务记录筛选项 > .date-range-picker { width: 100%; }
.用户业务记录筛选项 > input,
.用户业务记录筛选项 > select,
.用户业务记录筛选项 .date-range-display {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 7px 10px;
  border: 1px solid #d9dfe8;
  border-radius: 4px;
  background-color: #fff;
  color: #344054;
  font-size: 13px;
}
.用户业务记录筛选项 .date-range-display { min-width: 0; padding-right: 30px; }
.用户业务记录筛选项 > input:focus,
.用户业务记录筛选项 > select:focus {
  border-color: #1677ff;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, .1);
}
.用户业务记录时间筛选项 { grid-column: span 2; }
.用户业务记录筛选操作 {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.用户业务记录筛选操作 .btn { min-width: 64px; margin: 0; }

@media (max-width: 1280px) {
  .用户业务记录筛选网格 { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
}
@media (max-width: 900px) {
  .用户业务记录筛选网格 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .用户业务记录短筛选项 { min-width: 0; }
}
@media (max-width: 600px) {
  .用户业务记录筛选区 { padding: 14px; }
  .用户业务记录筛选网格 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .用户业务记录时间筛选项 { grid-column: auto; }
  .用户业务记录筛选操作 { justify-content: stretch; }
  .用户业务记录筛选操作 .btn { flex: 1; }
}
.date-range-picker { position: relative; display: inline-block; }
.date-range-display {
  min-width: 240px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.date-range-display:hover { border-color: #1677ff; }
.date-range-display.date-range-placeholder { color: #bbb; }
.date-range-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.date-range-panel-inner { display: flex; min-width: 560px; }
.date-range-presets {
  width: 120px;
  border-right: 1px solid #f0f0f0;
  padding: 8px 0;
  max-height: 340px;
  overflow-y: auto;
  flex-shrink: 0;
}
.date-range-preset {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.date-range-preset:hover { background: #f5f5f5; color: #1677ff; }
.date-range-main { flex: 1; padding: 12px 16px 16px; min-width: 0; }
.date-range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.date-range-header-text {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
.date-range-header-nav { display: flex; gap: 2px; }
.date-range-header-nav button,
.date-range-header-nav-right button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  line-height: 1;
}
.date-range-header-nav button:hover { background: #f5f5f5; color: #1677ff; }
.date-range-calendars { display: flex; gap: 24px; }
.date-range-month { flex: 1; min-width: 0; }
.date-range-month-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.date-range-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.date-range-weekdays span {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 4px 0;
}
.date-range-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}
.date-range-day {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 32px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  border-radius: 0;
  padding: 0;
  z-index: 1;
}
.date-range-day.outside { color: #ccc; cursor: default; }
.date-range-day:not(.outside):hover { color: #1677ff; }
.date-range-day.in-range::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 24px;
  margin-top: -12px;
  background: #e6f4ff;
  z-index: -1;
}
.date-range-day.range-start.in-range::before { left: 50%; border-radius: 4px 0 0 4px; }
.date-range-day.range-end.in-range::before { right: 50%; border-radius: 0 4px 4px 0; }
.date-range-day.range-start.range-end.in-range::before { left: 25%; right: 25%; border-radius: 4px; }
.date-range-day.range-start:not(.outside),
.date-range-day.range-end:not(.outside) {
  background: #1677ff;
  color: #fff;
  border-radius: 4px;
  z-index: 2;
}
.date-range-day.range-start.in-range:not(.range-end) { border-radius: 4px 0 0 4px; }
.date-range-day.range-end.in-range:not(.range-start) { border-radius: 0 4px 4px 0; }
.order-filter-panel .btn { margin-left: 4px; }

/* 操作日志只保留高频条件，并根据可用宽度自然换行，优先把纵向空间留给审计表格。 */
.操作日志精简筛选 {
  padding: 12px 14px;
  margin-bottom: 10px;
}
.操作日志筛选网格 {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(120px, .65fr) minmax(180px, 1fr) minmax(130px, .7fr) minmax(250px, 1.25fr) auto;
  align-items: end;
  gap: 10px 12px;
}
.操作日志筛选项 {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: #667085;
  font-size: 12px;
}
.操作日志筛选项 > input,
.操作日志筛选项 > select,
.操作日志筛选项 > .date-range-picker,
.操作日志筛选项 .date-range-display {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.操作日志筛选项 > input,
.操作日志筛选项 > select,
.操作日志筛选项 .date-range-display {
  height: 36px;
  padding: 7px 10px;
  border: 1px solid #d9dfe8;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.操作日志时间筛选项 .date-range-display { padding-right: 30px; }
.操作日志筛选操作 { display: flex; align-items: center; gap: 8px; height: 36px; }
.操作日志筛选操作 .btn { height: 36px; margin-left: 0; }

@media (max-width: 1280px) {
  .操作日志筛选网格 { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .操作日志筛选操作 { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .操作日志筛选网格 { grid-template-columns: 1fr; }
  .操作日志筛选操作 .btn { flex: 1; }
}

.multi-filter {
  position: relative;
  min-width: 180px;
}
.multi-filter-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 32px;
  width: 100%;
  padding: 4px 28px 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.multi-filter-display:hover { border-color: #1677ff; }
.multi-filter-placeholder { color: #999; }
.multi-filter-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 12px;
  pointer-events: none;
}
.multi-filter-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: #f0f5ff;
  color: #1677ff;
  font-size: 12px;
  line-height: 20px;
}
.multi-filter-tag-remove {
  cursor: pointer;
}
.multi-filter-tag-remove:hover {
  background: #d6e4ff;
}
.multi-filter-tag-x {
  margin-left: 2px;
  font-size: 13px;
  line-height: 1;
  opacity: .75;
}
.multi-filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.multi-filter-quick {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.multi-filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.multi-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.multi-filter-option:hover { border-color: #91caff; }
.multi-filter-option.active { font-weight: 600; }
.multi-filter-check {
  width: 14px;
  color: #1677ff;
  font-size: 12px;
}
.multi-filter-option.tab-os-0 { color: #666; background: #fafafa; }
.multi-filter-option.tab-os-1 { color: #d46b08; background: #fff7e6; }
.multi-filter-option.tab-os-2 { color: #1677ff; background: #e6f4ff; }
.multi-filter-option.tab-os-3 { color: #722ed1; background: #f9f0ff; }
.multi-filter-option.tab-os-4 { color: #08979c; background: #e6fffb; }
.multi-filter-option.tab-os-5 { color: #fa541c; background: #fff2e8; }
.multi-filter-option.tab-os-6 { color: #389e0d; background: #f6ffed; }

.order-card-list {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}
.order-card-columns,
.order-card-body {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 100px 100px 120px 120px minmax(190px, 1.6fr) 100px;
  align-items: center;
  gap: 12px;
}
.order-card-columns {
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}
.matched-pay-columns,
.matched-pay-body {
  grid-template-columns: minmax(200px, 2.4fr) 130px 130px 130px 110px;
}
.order-card {
  border-bottom: 1px solid #f0f0f0;
}
.order-card:last-child { border-bottom: none; }
.order-card-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
  font-size: 12px;
}
.order-card-no { color: #333; }
.order-card-body {
  padding: 14px 16px;
}
.order-card-empty {
  padding: 48px 16px;
  text-align: center;
  color: #999;
}
.order-goods-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.order-goods-name {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  word-break: break-all;
}
.order-money {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.order-money.fee { color: #1677ff; }
.order-user-cell { font-size: 13px; line-height: 1.5; }
.订单拆分说明 { display: grid; gap: 2px; font-size: 12px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.order-user-name { color: #333; }
.order-user-mobile { color: #999; font-size: 12px; }
.order-more-wrap { position: relative; display: inline-block; }
.order-more-btn { background: #fff; color: #1677ff; border: 1px solid #d9d9d9; }
.order-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
}
.order-more-menu.order-more-menu-floating {
  position: fixed;
  z-index: 10050;
}
.order-more-wrap.is-open .order-more-menu { z-index: 200; }
.order-more-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: #fff;
  text-align: left;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.order-more-item:hover { background: #f5f5f5; color: #1677ff; }
.order-more-item.danger { color: #ff4d4f; }
.order-more-item.danger:hover { background: #fff1f0; color: #ff4d4f; }
.order-more-item.disabled { color: #bbb; cursor: not-allowed; }
.order-more-item.disabled:hover { background: transparent; color: #bbb; }

.subarea-time-control { position: relative; display: inline-flex; align-items: center; }
.subarea-time-form-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.subarea-time-quick { display: none; white-space: nowrap; }
.subarea-time-control:focus-within .subarea-time-quick,
.subarea-time-control.is-open .subarea-time-quick,
.subarea-time-form-control:focus-within .subarea-time-quick { display: inline-flex; }
.subarea-time-control .subarea-time-quick {
  position: fixed;
  z-index: 2147483000;
  min-width: 104px;
  padding: 6px 0;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.subarea-time-quick-btn {
  padding: 2px 5px;
  border: 1px solid #d9e2f2;
  border-radius: 4px;
  background: #f7faff;
  color: #3567a8;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
}
.subarea-time-quick-btn:hover { border-color: #1677ff; color: #1677ff; background: #eef5ff; }
.subarea-time-control .subarea-time-quick-btn {
  width: 100%;
  padding: 7px 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}
.subarea-time-control .subarea-time-quick-btn:hover { background: #f5f8ff; color: #1677ff; }
.table-wrap-page:has(.subarea-time-control),
.table-wrap-scroll:has(.subarea-time-control),
.admin-data-table-wrap:has(.subarea-time-control) {
  /* 快捷菜单使用 fixed 定位，表格仍需独立横向滚动，避免手机端时间列被裁切。 */
  overflow: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table:has(.subarea-time-control),
table:has(.subarea-time-control) { overflow: visible; }
.subarea-time-form-row .subarea-time-quick { margin-top: 5px; flex-basis: 100%; }
.order-more-empty { color: #bbb; }

@media (max-width: 1100px) {
  .order-card-columns { display: none; }
  .order-card-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .order-card-body > div::before {
    display: block;
    margin-bottom: 4px;
    color: #999;
    font-size: 12px;
  }
  .order-card-body .col-goods::before { content: '商品信息'; }
  .order-card-body .col-price::before { content: '订单金额'; }
  .order-card-body .col-fee::before { content: '上架费'; }
  .order-card-body .col-buyer::before { content: '买家'; }
  .order-card-body .col-seller::before { content: '卖家'; }
  .order-card-body .col-status::before { content: '订单状态'; }
  .order-card-body .col-action::before { content: '操作'; }
}

.fee-weekday-form-row > label { align-self: flex-start; padding-top: 8px; }
.fee-weekday-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  flex: 1;
}
.fee-weekday-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fee-weekday-item label {
  margin: 0;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}
.fee-weekday-item input[type=number] {
  width: 64px;
  padding: 6px 8px;
}
.fee-weekday-unit {
  font-size: 13px;
  color: #999;
}
.fee-weekday-form-row small {
  flex-basis: 100%;
  margin-top: 4px;
}
.order-rule-row > label { width: 120px; }
.order-rule-block { flex: 1; min-width: 0; }
.order-rule-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.order-rule-text {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
.order-rule-inline input[type=number] {
  width: 88px;
  padding: 6px 8px;
}
.order-rule-block small {
  display: block;
  margin-top: 6px;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}
.order-card-body .col-status {
  min-width: 0;
}
.order-inline-select {
  width: 100%;
  min-width: 168px;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}
.order-inline-select:focus {
  outline: none;
}
.order-inline-select.os-0 { color: #666; background: #f5f5f5; border-color: #d9d9d9; }
.order-inline-select.os-1 { color: #d46b08; background: #fff7e6; border-color: #ffd591; }
.order-inline-select.os-2 { color: #1677ff; background: #e6f4ff; border-color: #91caff; }
.order-inline-select.os-3 { color: #722ed1; background: #f9f0ff; border-color: #d3adf7; }
.order-inline-select.os-4 { color: #08979c; background: #e6fffb; border-color: #87e8de; }
.order-inline-select.os-5 { color: #fa541c; background: #fff2e8; border-color: #ffbb96; }
.order-inline-select.os-6 { color: #389e0d; background: #f6ffed; border-color: #b7eb8f; }
.order-inline-select.lc-closed { color: #666; background: #f5f5f5; border-color: #d9d9d9; }
.order-inline-select.lc-pending { color: #d46b08; background: #fff7e6; border-color: #ffd591; }
.order-inline-select.lc-listed { color: #389e0d; background: #f6ffed; border-color: #b7eb8f; }
.order-inline-select.lc-timeout { color: #cf1322; background: #fff1f0; border-color: #ffa39e; }
.order-inline-select.os-0:focus,
.order-inline-select.os-1:focus,
.order-inline-select.os-2:focus,
.order-inline-select.os-3:focus,
.order-inline-select.os-4:focus,
.order-inline-select.os-5:focus,
.order-inline-select.os-6:focus,
.order-inline-select.lc-closed:focus,
.order-inline-select.lc-pending:focus,
.order-inline-select.lc-listed:focus,
.subarea-inline-input {
  width: 100%;
  min-width: 96px;
  max-width: 132px;
  padding: 4px 6px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.subarea-inline-input:focus {
  border-color: #1677ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}
.subarea-inline-date { min-width: 128px; max-width: 148px; }

.order-inline-select.lc-timeout:focus {
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}
.order-loot-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  border-radius: 3px;
  background: #fff7e6;
  color: #d48806;
  border: 1px solid #ffd591;
}
.order-listing-hint {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.order-listing-hint.loot { color: #d48806; }
.order-listing-hint.sold { color: #999; }
.section { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.section h3 { margin: 0 0 12px; font-size: 15px; color: #1677ff; }
.form-actions { margin-top: 16px; }
.edit-table { width: 100%; margin-bottom: 8px; }
.edit-table input { width: 100%; padding: 6px; border: 1px solid #ddd; border-radius: 4px; }
.empty { padding: 40px; text-align: center; color: #999; background: #fff; border-radius: 8px; }
td.empty { text-align: center; color: #999; padding: 24px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-box { background: #fff; border-radius: 8px; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.modal-box.modal-box-lg { max-width: min(960px, calc(100vw - 32px)); width: min(960px, calc(100vw - 32px)); }
.modal-box.modal-box-xl {
  max-width: calc(100vw - 24px);
  width: calc(100vw - 24px);
  max-height: 92vh;
}
.modal.modal-loot-goods { padding: 12px; align-items: flex-start; padding-top: 24px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close { border: none; background: transparent; font-size: 24px; cursor: pointer; color: #999; line-height: 1; }
.modal-body { padding: 20px; overflow: auto; }
.modal-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 8px; }
.confirm-text { margin: 0; font-size: 14px; line-height: 1.7; color: #555; }
.actions { display: flex; flex-wrap: wrap; gap: 4px; }
.btn.danger { background: #ff4d4f; }
.danger-zone {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #ffccc7;
}
.danger-zone-tip {
  margin: 0 0 12px;
  color: #666;
  line-height: 1.7;
  font-size: 13px;
}
.danger-zone-tip code {
  background: #fff1f0;
  color: #cf1322;
  padding: 0 4px;
  border-radius: 3px;
}
.btn.sm { padding: 4px 8px; font-size: 11px; }
.btn.sm.active { background: #0958d9; }
.btn.disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.assign-user-search { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.assign-user-search label { white-space: nowrap; color: #555; font-size: 14px; }
.assign-user-search input { flex: 1; min-width: 200px; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 4px; }
.assign-user-table-wrap { max-height: 360px; overflow: auto; border: 1px solid #f0f0f0; border-radius: 4px; }
.assign-user-table { margin: 0; }
.assign-user-table th, .assign-user-table td { font-size: 13px; vertical-align: middle; }
.assign-user-table tbody tr { cursor: pointer; }
.assign-user-table tbody tr.selected { background: #e6f4ff; }
.user-picker-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.user-picker-search input {
  flex: 1;
  min-width: 180px;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}
.user-picker-field .user-picker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.user-picker-display {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  word-break: break-all;
}
.user-picker-field small,
.form-hint { display: block; margin-top: 6px; color: #999; font-size: 12px; line-height: 1.5; }
.form-row-static .form-static-block { flex: 1; min-width: 0; }
.form-row-static .form-static { margin: 0; padding: 8px 12px; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px; }
.assign-goods-panel { display: flex; flex-direction: column; gap: 12px; }
.assign-goods-summary {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  align-items: center;
}
.assign-goods-thumb { flex-shrink: 0; }
.assign-goods-meta { min-width: 0; flex: 1; }
.assign-goods-name { font-weight: 600; font-size: 14px; color: #303133; margin-bottom: 4px; word-break: break-all; }
.assign-goods-sub { font-size: 12px; color: #909399; line-height: 1.5; word-break: break-all; }
.assign-goods-tip { margin: 0; font-size: 12px; color: #909399; line-height: 1.6; }
.assign-goods-table-wrap { max-height: 320px; }
.assign-goods-clear { display: flex; justify-content: flex-start; }
.assign-platform-row td { background: #fcfcfc; }
.assign-platform-row.selected td { background: #e6f4ff; }
.assign-user-name { line-height: 1.4; }
.assign-user-mobile { font-size: 12px; color: #999; line-height: 1.4; }
.assign-avatar { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; display: block; }
.assign-avatar.placeholder { display: flex; align-items: center; justify-content: center; background: #f56c6c; color: #fff; font-size: 16px; font-weight: 600; }
.member-cell { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.member-cell:hover .member-name { color: var(--primary, #409eff); }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.member-avatar.placeholder { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f56c6c; color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.member-info { min-width: 0; line-height: 1.4; }
.member-name { font-size: 13px; font-weight: 500; color: #303133; }
.member-mobile { font-size: 12px; color: #909399; }
.profit-summary { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; margin-bottom: 12px; background: #f0f9eb; border: 1px solid #e1f3d8; border-radius: 6px; font-size: 14px; flex-shrink: 0; }
.profit-summary-sub { font-size: 12px; color: #909399; margin-left: 8px; }
.modal-body:has(.money-panel-profit) { overflow: hidden; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.money-panel-profit { flex: 1; min-height: 0; max-height: calc(90vh - 140px); }
.money-panel-profit .money-panel-section { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.money-panel-profit .money-panel-filter { flex-shrink: 0; margin-bottom: 10px; }
.profit-panel-table-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.profit-panel-table-wrap { flex: 1; min-height: 0; max-height: 52vh; overflow: auto; border: 1px solid #f0f0f0; border-radius: 6px; background: #fff; -webkit-overflow-scrolling: touch; }
.profit-panel-table { width: 100%; border-collapse: collapse; border-radius: 0; overflow: visible; }
.profit-panel-table th,
.profit-panel-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 13px; vertical-align: middle; background: #fff; }
.profit-panel-table th { position: sticky; top: 0; z-index: 2; background: #fafafa; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 0 #f0f0f0; }
.profit-panel-table tbody tr:hover td { background: #fafafa; }
.user-goods-cell { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.user-goods-cell .table-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #f5f5f5; }
.addr-cell { white-space: normal; max-width: 360px; line-height: 1.5; word-break: break-all; }
.user-addr-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.user-addr-item { background: #f7f8fa; border-radius: 6px; padding: 8px 10px; }
.user-addr-head { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-addr-detail { margin-top: 4px; font-size: 12px; color: #606266; line-height: 1.5; word-break: break-all; }
.form-static.muted { color: #909399; }
.assign-pagination { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  flex-wrap: wrap;
  font-size: 13px;
}
.list-pg-total { color: #666; }
.list-pg-size select { margin-left: 4px; padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; }
.list-pg-info { color: #666; }
.list-pg-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.list-pg-btn { background: #f5f5f5; color: #333; }
.list-pg-btn:hover:not(:disabled) { background: #e8e8e8; }
.list-pg-btn.active { background: #1677ff; color: #fff; }
.list-pg-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.order-card-list + .list-pagination { margin-top: 0; border-top: 1px solid #f0f0f0; border-radius: 0 0 8px 8px; box-shadow: none; }

/* Dashboard */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash-panel { background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dash-panel-title { padding: 16px 20px 0; font-size: 14px; font-weight: 600; color: #333; }
.dash-realtime-body { display: flex; padding: 20px; gap: 48px; flex-wrap: wrap; }
.dash-realtime-group { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 280px; }
.dash-icon-circle { width: 56px; height: 56px; border-radius: 50%; background: #5cadff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; flex-shrink: 0; }
.dash-icon-chart { font-size: 26px; line-height: 1; }
.dash-realtime-metrics { display: flex; gap: 48px; flex-wrap: wrap; }
.dash-metric-label { font-size: 13px; color: #999; margin-bottom: 6px; }
.dash-metric-value { font-size: 28px; font-weight: 600; color: #333; line-height: 1.2; }
.dash-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dash-stat-card { background: #fff; border-radius: 4px; padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dash-stat-icon { width: 48px; height: 48px; border-radius: 50%; background: #e8f4ff; color: #5cadff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-stat-label { font-size: 13px; color: #999; margin-bottom: 4px; }
.dash-stat-value { font-size: 24px; font-weight: 600; color: #333; }
.dash-pending { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 20px; }
.dash-pending-item { text-align: center; }
.dash-pending-label { font-size: 13px; color: #999; margin-bottom: 10px; }
.dash-pending-value { font-size: 28px; font-weight: 600; color: #f5222d; }
@media (max-width: 1100px) {
  .dash-row { grid-template-columns: repeat(2, 1fr); }
  .dash-pending { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .dash-row { grid-template-columns: 1fr; }
  .dash-pending { grid-template-columns: 1fr; }
  .dash-realtime-metrics { gap: 24px; }
}

/* Images */
.thumb-wrap {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
  background: #f5f5f5;
}
.thumb-wrap.thumb-lg { width: 64px; height: 64px; }
.thumb-wrap.thumb-56 { width: 56px; height: 56px; }
.thumb-wrap.thumb-40 { width: 40px; height: 40px; }
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.table-cell-image {
  width: 60px;
  padding: 8px 10px !important;
  vertical-align: middle;
  line-height: 0;
}
table td.table-cell-image .img-empty { line-height: 1.4; display: inline-block; }
.img-empty { color: #bbb; font-size: 12px; }
.image-field .image-input-wrap { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.image-preview { width: 120px; height: 120px; border: 1px dashed #d9d9d9; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fafafa; }
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-actions { display: flex; flex-direction: column; gap: 8px; }
.picker-modal { z-index: 1300; }
.modal.picker-open .modal-footer { visibility: hidden; }
.picker-footer { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.picker-footer-actions { display: flex; gap: 8px; margin-left: auto; }
.picker-hint { font-size: 13px; color: #888; }
.picker-toolbar { display: flex; gap: 8px; padding: 0 20px 12px; flex-wrap: wrap; align-items: center; }
.picker-toolbar input[type=text] { min-width: 160px; flex: 1; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; padding: 0 20px 12px; max-height: 55vh; overflow: auto; }
.picker-item { border: 2px solid #e8e8e8; border-radius: 6px; padding: 8px; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; position: relative; user-select: none; }
.picker-item:hover { border-color: #1677ff; box-shadow: 0 2px 8px rgba(22,119,255,.15); }
.picker-item.checked { border-color: #1677ff; background: #f0f7ff; box-shadow: 0 0 0 2px rgba(22,119,255,.15); }
.picker-item.selected { border-color: #52c41a; box-shadow: 0 0 0 2px rgba(82,196,26,.2); }
.picker-item.checked.selected { border-color: #52c41a; background: #f6ffed; }
.picker-check { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px 4px; pointer-events: none; }
.picker-thumb { cursor: pointer; }
.picker-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; display: block; background: #f5f5f5; }
.picker-item img.img-broken { object-fit: contain; padding: 20px; opacity: .35; }
.picker-item-name { margin-top: 6px; font-size: 11px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item-meta { display: flex; margin-top: 4px; flex-direction: column; gap: 2px; font-size: 11px; color: #999; line-height: 1.35; }
.picker-item-time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.picker-item-size { display: inline-block; }
.picker-rename-btn {
  margin-top: 6px; width: 100%; padding: 2px 0; border: none; background: transparent;
  color: #1677ff; font-size: 11px; cursor: pointer;
}
.picker-rename-btn:hover { text-decoration: underline; }
.picker-empty { grid-column: 1 / -1; text-align: center; color: #999; padding: 40px 0; }
.attachment-toolbar { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.attachment-toolbar input[type=text] { min-width: 180px; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; }
.attachment-summary { margin-left: auto; color: #888; font-size: 13px; }
.attachment-page-grid { padding: 0; max-height: none; }
.attachment-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.picker-pagination { padding: 0 20px 8px; }
.picker-pagination .list-pagination { margin: 0; border: none; box-shadow: none; padding: 8px 0 0; }
.btn.danger { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.btn.danger:hover { background: #ff7875; }

/* Shelf switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.form-row .switch { margin-bottom: 0; font-weight: normal; }
.switch input[type="checkbox"] { opacity: 0; width: 0; height: 0; position: absolute; padding: 0; border: none; margin: 0; }
.switch-slider {
  position: relative; width: 40px; height: 22px; background: #ccc; border-radius: 22px; transition: background .2s; flex-shrink: 0;
}
.switch-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input[type="checkbox"]:checked + .switch-slider { background: #52c41a; }
.switch input[type="checkbox"]:checked + .switch-slider::before { transform: translateX(18px); }
.switch-label { font-size: 13px; color: #666; min-width: 28px; }
.switch-readonly { cursor: default; opacity: 0.92; }
.switch-readonly .switch-slider { cursor: not-allowed; }

/* 通知配置使用独立业务样式，保证弹窗字段纵向排列并限制在舒适阅读宽度。 */
.modal-box.modal-box-lg:has(.通知机器人表单) { width: min(680px, calc(100vw - 32px)); max-width: 680px; }
.通知机器人表单 { display: flex; flex-direction: column; gap: 20px; }
.通知表单字段 { display: flex; flex-direction: column; gap: 8px; color: #1f2937; font-weight: 600; }
.通知表单字段 input { width: 100%; height: 42px; box-sizing: border-box; }
.通知表单字段 small { color: #8a94a6; font-size: 12px; font-weight: 400; line-height: 1.6; }
.通知事件区域 { margin: 0; padding: 16px; border: 1px solid #e3e8f0; border-radius: 10px; }
.通知事件区域 legend { padding: 0 8px; color: #1f2937; font-weight: 600; }
.通知事件区域 legend span { color: #8a94a6; font-size: 12px; font-weight: 400; }
.通知事件网格 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.通知事件卡 { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 12px; border: 1px solid #e3e8f0; border-radius: 8px; background: #f8fafc; cursor: pointer; }
.通知事件卡:has(input:checked) { border-color: #78b7a5; background: #f0faf7; }
.通知事件卡 input { margin: 3px 0 0; flex: 0 0 auto; accent-color: #15916f; }
.通知事件卡 span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.通知事件卡 strong { color: #253047; font-size: 13px; }
.通知事件卡 small { color: #8490a3; font-size: 11px; line-height: 1.5; }
.通知状态提示 { margin: -4px 0 0; padding: 10px 12px; border-radius: 8px; background: #f5f7fa; color: #6f7a8c; font-size: 12px; }
.通知状态开关 { margin: 0; }
.通知状态开关:has(input:disabled) { cursor: wait; opacity: .65; }
.通知链接 { color: #40516d; }

@media (max-width: 700px) {
  .通知事件网格 { grid-template-columns: 1fr; }
}

.form-row-rich .rich-editor-wrap {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.rich-editor {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  line-height: 1.6;
  font-size: 14px;
  outline: none;
}
.rich-editor img { max-width: 100%; height: auto; display: block; margin: 8px 0; }
.rich-editor-hidden { display: none !important; }

.oplog-detail .detail-grid p { margin: 0 0 8px; }
.oplog-changes { margin-top: 16px; }
.oplog-changes h4 { margin: 0 0 12px; font-size: 14px; }
.oplog-change-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafafa;
}
.oplog-change-label { font-weight: 600; margin-bottom: 10px; color: #333; }
.oplog-image-compare,
.oplog-text-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}
.oplog-image-box,
.oplog-text-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px;
  min-height: 80px;
}
.oplog-image-title,
.oplog-text-title {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.oplog-image-arrow,
.oplog-text-arrow {
  align-self: center;
  color: #999;
  font-size: 18px;
  padding-top: 24px;
}
.oplog-text-value {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.6;
}
.log-content {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.oplog-list-legacy .log-content { max-height: 120px; margin: 0; }

.oplog-lines { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.oplog-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.oplog-line-label {
  flex: 0 0 auto;
  font-weight: 600;
  color: #555;
}
.oplog-line-before { color: #888; word-break: break-all; }
.oplog-line-after { color: #1677ff; font-weight: 500; word-break: break-all; }
.oplog-line-arrow { color: #bbb; flex: 0 0 auto; }
.oplog-line-image .thumb-wrap,
.oplog-line-image .thumb { width: 40px; height: 40px; }
.oplog-line-legacy { color: #666; word-break: break-all; }
.oplog-summary { min-width: 320px; max-width: 760px; line-height: 1.5; }
.oplog-summary-title { color: #172033; font-weight: 600; margin-bottom: 3px; }
.oplog-summary-change { display: flex; align-items: baseline; gap: 6px; font-size: 13px; white-space: normal; }
.oplog-summary-label { color: #667085; min-width: 64px; }
.oplog-summary-before { color: #8a94a6; word-break: break-all; }
.oplog-summary-arrow { color: #98a2b3; flex: 0 0 auto; }
.oplog-summary-after { color: #1677ff; font-weight: 500; word-break: break-all; }
.oplog-summary-more { color: #98a2b3; font-size: 12px; margin-top: 2px; }
.oplog-upload-row { display: flex; align-items: center; gap: 10px; }
.oplog-upload-info { color: #344054; word-break: break-all; }
.thumb-wrap.thumb-error { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 48px; background: #f5f6f8; color: #98a2b3; text-decoration: none; }
.thumb-wrap.thumb-error::after { content: '图片暂不可预览'; font-size: 11px; white-space: nowrap; }

/* UI refresh: shared visual language for the production admin shell. */
:root {
  --admin-primary: #2563eb;
  --admin-primary-dark: #1d4ed8;
  --admin-ink: #172033;
  --admin-muted: #697386;
  --admin-line: #e8ecf2;
  --admin-canvas: #f5f7fb;
  --admin-nav: #111c35;
  --admin-radius: 10px;
  --admin-shadow: 0 8px 24px rgba(26, 40, 70, .06);
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--admin-canvas);
  color: var(--admin-ink);
  font-size: 14px;
}

button, input, select, textarea { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 2px; }

.login-box {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  margin: 12vh auto 0;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(25, 45, 88, .14);
  background: #fff;
}
.login-box h2 { margin: 0 0 24px; font-size: 24px; color: var(--admin-ink); }
.login-box input {
  height: 44px;
  margin: 8px 0;
  padding: 0 13px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  outline: 0;
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-box input:focus { border-color: #7ba4f8; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); background: #fff; }
.login-box button {
  height: 45px;
  margin-top: 16px;
  border-radius: 9px;
  background: var(--admin-primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.login-box button:hover { background: var(--admin-primary-dark); transform: translateY(-1px); }
.login-box {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  width: min(930px, calc(100vw - 32px));
  min-height: 540px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.login-intro {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  background: var(--admin-nav);
  color: #fff;
}
.login-intro::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 78px rgba(255, 255, 255, .025);
}
.login-logo-mark {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: #3b82f6;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(59, 130, 246, .35);
}
.login-intro h1 { margin: 54px 0 14px; font-size: 34px; line-height: 1.2; }
.login-intro p { max-width: 300px; margin: 0; color: #b9c7e3; line-height: 1.8; }
.login-points { display: grid; gap: 16px; margin-top: 44px; color: #dce6fa; }
.login-points > div { display: flex; align-items: center; gap: 10px; }
.login-points i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(82, 159, 255, .2); color: #91baff; font-style: normal; font-size: 12px; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 56px 54px; }
.login-eyebrow { color: var(--admin-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.login-form h2 { margin: 10px 0 8px; font-size: 27px; }
.login-hint { margin: 0 0 20px; color: var(--admin-muted); }
.login-form label { margin-top: 12px; color: var(--admin-ink); font-size: 13px; font-weight: 600; }
.login-form input { margin: 7px 0 0; }
.login-form button { width: 100%; }
.登录方式 { display:flex; gap:8px; margin:4px 0 6px; }
.login-form .登录方式 button { flex:1; margin:0; padding:10px 6px; border:1px solid #dce4f0; background:#f4f7fc; color:#52627b; box-shadow:none; }
.login-form .登录方式 button[aria-pressed="true"] { background:#eaf1ff; border-color:#99baff; color:#245bd6; }
.登录输入区域 { display:flex; flex-direction:column; }
.登录验证码行 { display:flex; gap:8px; align-items:stretch; margin-top:7px; }
.登录验证码行 input { flex:1; min-width:0; width:0; }
.login-form .登录验证码行 input { margin:0; }
.login-form .登录验证码行 button { width:112px; flex-shrink:0; margin:0; padding:10px 8px; font-size:13px; }
.登录短信提示 { font-size:12px; line-height:1.6; color:var(--admin-muted); margin:9px 0 0; }
.login-form button:disabled { opacity:.6; cursor:wait; }

.sidebar {
  width: 220px;
  flex-basis: 220px;
  padding: 20px 14px;
  background: var(--admin-nav);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 25px;
  font-size: 17px;
  letter-spacing: .02em;
  text-align: left;
}
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #3b82f6; color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 8px 18px rgba(59, 130, 246, .35); }
.brand-copy { display: block; min-width: 0; }
.brand-copy strong { display: block; color: #fff; line-height: 1.2; }
.brand-copy small { display: block; margin-top: 3px; color: #8391ad; font-size: 10px; font-weight: 500; }
.sidebar a {
  margin: 2px 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #afbad0;
  transition: background .2s, color .2s, transform .2s;
}
.sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(1px); }
.sidebar a.active { background: #2f6fed; color: #fff; box-shadow: 0 7px 14px rgba(27, 79, 184, .28); }
.nav-icon { width: 19px; flex: 0 0 19px; color: #91a5c8; font-size: 15px; text-align: center; }
.nav-label-text { min-width: 0; flex: 1; }
.sidebar a.active .nav-icon, .sidebar a:hover .nav-icon { color: #fff; }
.logout { margin: 15px 10px 0; padding: 9px; border-radius: 8px; color: #aebbd2; }
.logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-footer { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-profile { display: flex; align-items: center; gap: 10px; }
.admin-profile > span:last-child { min-width: 0; }
.admin-profile strong { display: block; color: #fff; font-size: 13px; }
.admin-profile small { display: block; margin-top: 3px; color: #7f8ba4; font-size: 11px; }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #dce9ff; color: #2352a3; font-size: 13px; font-weight: 700; }

.topbar { height: 70px; padding: 0 32px; border-bottom-color: var(--admin-line); }
.topbar-title { min-width: 0; }
.topbar-crumb { display: block; margin-bottom: 4px; color: #98a2b3; font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-admin { display: inline-flex; align-items: center; gap: 8px; color: #4c5668; font-size: 13px; }
.topbar h1 { font-size: 21px; color: var(--admin-ink); }
.topbar button { height: 36px; padding: 0 13px; border: 1px solid var(--admin-line); border-radius: 8px; background: #fff; color: #667085; }
.topbar button:hover { border-color: #b8c7e7; color: var(--admin-primary); }
.content { padding: 28px 32px 40px; }

.toolbar { align-items: center; gap: 12px; margin-bottom: 20px; }
.toolbar input, .toolbar select { height: 36px; padding: 0 11px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; }

/* 员工权限页按业务区块展开，角色与员工表保持并列层级，避免页面区块嵌套成多层卡片。 */
.员工权限页面 { display: grid; gap: 24px; }
.员工权限区块 { min-width: 0; }
.员工权限区块标题 { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.员工权限区块标题 h2 { margin: 0 0 4px; font-size: 18px; }
.员工权限区块标题 p { margin: 0; color: #7b8493; font-size: 13px; }
.员工权限角色说明 { display: block; margin-top: 4px; color: #8a93a1; font-size: 12px; }
.员工权限标签组 { display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; }
.员工权限标签组 span { padding: 3px 7px; border: 1px solid #dfe5ee; border-radius: 4px; background: #f7f9fc; color: #48566a; font-size: 12px; }
.员工权限操作 { display: flex; flex-wrap: wrap; gap: 6px; }
.员工权限锁定 { color: #8a93a1; font-size: 12px; }
.员工权限角色表单 { display: grid; gap: 14px; }
.员工权限角色表单 .form-row { margin: 0; }
.员工权限菜单 { margin: 0; padding: 14px; border: 1px solid #dfe5ee; border-radius: 6px; }
.员工权限菜单 legend { padding: 0 6px; color: #39465a; font-weight: 600; }
.员工权限菜单网格 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.员工权限菜单项 { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid #e7ebf1; border-radius: 4px; cursor: pointer; }
.员工权限菜单项:hover { border-color: var(--admin-primary); background: #f7faff; }
.员工权限菜单项 input { margin: 0; }
@media (max-width: 760px) {
  .员工权限区块标题 { align-items: stretch; flex-direction: column; }
  .员工权限菜单网格 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.btn { min-height: 36px; padding: 0 13px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; color: #556174; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.btn:hover { border-color: #9eb7ea; color: var(--admin-primary); transform: translateY(-1px); }
.btn.ok { background: #14966b; border-color: #14966b; color: #fff; }
.btn.ok:hover { background: #087a58; border-color: #087a58; color: #fff; }
.btn.warn { background: #d97706; border-color: #d97706; color: #fff; }
.btn.danger { background: #dc4545; border-color: #dc4545; color: #fff; }

.card, .dash-panel, .dash-stat-card, .table-wrap-page, .table-wrap-scroll, .admin-data-table-wrap,
.order-table-layout, .list-pagination { border: 1px solid var(--admin-line); border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); }
.card { padding: 20px; }
.cards, .dash-row { gap: 16px; }
.card b { color: var(--admin-primary); }
.table-wrap table th, .table-wrap table td, th, td { border-bottom-color: #eef1f5; }
.table-wrap table th, th { background: #fbfcfe; color: #7b8697; font-weight: 600; }
.table-wrap table tbody tr:hover td { background: #f8faff; }
.list-pagination { padding: 14px 20px; background: #fff; }
.list-pg-btn { min-height: 29px; border-radius: 7px; }
.list-pg-btn.active { background: var(--admin-primary); }

.modal { background: rgba(15, 23, 42, .45); }
.modal-box { border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .22); }
.modal-header { padding: 20px 24px; border-bottom-color: var(--admin-line); }
.modal-header h3 { font-size: 17px; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 15px 24px; background: #fbfcfe; border-top-color: var(--admin-line); }
.modal-close { width: 30px; height: 30px; border-radius: 8px; background: #f4f6f9; font-size: 20px; }

@media (max-width: 1100px) {
  .sidebar { width: 204px; flex-basis: 204px; }
  .topbar { padding: 0 24px; }
  .content { padding: 24px; }
  .settings-floating-actions { right: 16px; bottom: 16px; left: 16px; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .login-box { display: block; width: min(440px, calc(100vw - 24px)); min-height: 0; margin-top: 6vh; }
  .login-intro { padding: 30px 28px; }
  .login-intro h1 { margin: 30px 0 10px; font-size: 27px; }
  .login-intro p { max-width: none; }
  .login-points { display: none; }
  .login-form { padding: 30px 28px 34px; }
  .layout { display: block; overflow: auto; height: auto; min-height: 100vh; }
  .sidebar { width: 100%; height: auto; padding: 10px 12px; display: block; }
  .brand { padding: 5px 8px 12px; }
  .sidebar nav { display: flex; gap: 5px; overflow-x: auto; padding: 0 0 4px; }
  .sidebar a { white-space: nowrap; width: auto; margin: 0; }
  .sidebar-footer { display: none; }
  .topbar-admin { display: none; }
  main { height: auto; min-height: calc(100vh - 120px); overflow: visible; }
  .topbar { height: auto; min-height: 68px; padding: 14px 18px; }
  .topbar h1 { font-size: 19px; }
  .content { padding: 19px 14px 30px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .btn { width: auto; }
  .cards, .dash-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card, .dash-stat-card { padding: 15px; }
  .table-wrap-page, .table-wrap-scroll, .admin-data-table-wrap { border-radius: 9px; }
  .modal { max-height: calc(100vh - 24px); }
  .modal-header { padding: 17px 18px; }
  .modal-body { padding: 17px 18px; }
  .modal-footer { padding: 13px 18px; }
}

/* Collapsible navigation and consistently visible action columns. */
.brand { position: relative; }
.sidebar-collapse-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: transparent;
  color: #c8d5ed;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-collapsed .sidebar { width: 72px; flex-basis: 72px; padding-left: 10px; padding-right: 10px; }
.sidebar-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .brand-copy,
.sidebar-collapsed .sidebar .nav-label-text,
.sidebar-collapsed .sidebar-footer .admin-profile > span:last-child { display: none; }
.sidebar-collapsed .sidebar a { justify-content: center; padding-left: 8px; padding-right: 8px; }
.sidebar-collapsed .sidebar .nav-icon { width: auto; flex-basis: auto; }
.sidebar-collapsed .sidebar-footer { padding-left: 0; padding-right: 0; }
.sidebar-collapsed .admin-profile { justify-content: center; }
.sidebar-collapsed .logout { margin-left: 0; margin-right: 0; font-size: 0; }
.sidebar-collapsed .logout::after { content: '↪'; font-size: 17px; }
.菜单搜索 {
  display: flex;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  gap: 4px;
  margin: 0 2px 8px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  transition: border-color .15s, background .15s;
}
.菜单搜索:focus-within { border-color: rgba(147,184,255,.72); background: rgba(255,255,255,.08); }
.菜单搜索 button {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #91a5c8;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.菜单搜索 button:hover { color: #fff; }
.菜单搜索输入 {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
}
.菜单搜索输入::placeholder { color: #7f8ba4; }
.菜单搜索输入::-webkit-search-cancel-button { display: none; }
.菜单搜索清空[hidden] { display: none; }
.菜单列表 { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.菜单列表::-webkit-scrollbar { display: none; width: 0; height: 0; }
.菜单搜索空状态 { padding: 28px 10px; color: #7f8ba4; font-size: 12px; text-align: center; }
.sidebar-collapsed .菜单搜索 { justify-content: center; margin-left: 0; margin-right: 0; padding: 0; }
.sidebar-collapsed .菜单搜索输入,
.sidebar-collapsed .菜单搜索清空 { display: none; }
table.has-sticky-action .col-sticky-action {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 120px;
  width: 120px;
  padding-left: 10px;
  padding-right: 10px;
  background: #fff;
  box-shadow: -8px 0 14px rgba(15,23,42,.08);
  border-left: 1px solid #eef1f5;
  white-space: nowrap;
}
table.has-sticky-action thead .col-sticky-action { z-index: 5; background: #fbfcfe; }
table.has-sticky-action tbody tr:hover .col-sticky-action { background: #f8faff; }
.admin-data-table-wrap {
  max-height: calc(100vh - 330px);
  overflow: auto;
  scrollbar-gutter: stable;
}
.table-wrap-page,
.table-wrap-scroll {
  max-height: calc(100vh - 330px);
  overflow: auto;
  scrollbar-gutter: stable;
}
table thead th { position: sticky; top: 0; z-index: 2; }
.goods-table-sticky { max-height: calc(100vh - 300px); overflow: auto; }
.goods-table-sticky table { overflow: visible; border-radius: 0; }
.goods-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 7;
  background: #fafafa;
  box-shadow: 0 1px 0 #e8e8e8;
}
table thead th.col-sticky-action { z-index: 6; }
table.has-sticky-action.data-table-wide {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
table.has-sticky-action.data-table-wide th,
table.has-sticky-action.data-table-wide td { overflow: hidden; text-overflow: ellipsis; }
table.has-sticky-action .col-sticky-action {
  left: auto;
  right: 0;
  z-index: 4;
  box-shadow: -8px 0 14px rgba(15,23,42,.08);
  border-left: 1px solid #eef1f5;
}
table.has-sticky-action thead .col-sticky-action { z-index: 6; }

/* 操作列内的下拉按钮不能被 data-table-wide 的省略规则裁剪。 */
table.has-sticky-action.data-table-wide .col-sticky-action {
  width: 140px;
  min-width: 140px;
  overflow: visible;
  text-overflow: clip;
}
table.has-sticky-action.data-table-wide .col-sticky-action .table-action-cell,
table.has-sticky-action.data-table-wide .col-sticky-action .order-more-wrap {
  overflow: visible;
}

/* 操作日志列较多，数据区单独滚动，详情栏作为固定列留在内容区最右侧。 */
.operation-log-table-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(420px, calc(100vh - 300px), 760px);
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: #fff;
  box-shadow: var(--admin-shadow);
}
.operation-log-table-scroll {
  flex: 1;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.operation-log-table-scroll table {
  overflow: visible;
  border-radius: 0;
}
/* 操作日志必须以用户保存的列宽为准；固定布局阻止长摘要把已拖窄的列重新撑开。 */
.operation-log-table-scroll table.data-table-wide {
  table-layout: fixed;
}
.operation-log-table-scroll table.data-table-wide th[data-column-key],
.operation-log-table-scroll table.data-table-wide td[data-column-key] {
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}
.operation-log-table-scroll .列表列宽手柄 {
  right: 0;
  width: 12px;
}
.operation-log-table-scroll thead th,
.operation-log-actions-col thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #f7f8fa;
  box-shadow: 0 2px 0 #dde2e8;
}
.operation-log-table-scroll th[data-column-key="操作前"] {
  color: #5f6b7a;
  background: #f3f5f7;
}
.operation-log-table-scroll th[data-column-key="操作后"] {
  color: #176b4a;
  background: #edf8f2;
}
.operation-log-actions-col {
  flex: 0 0 120px;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid #eef1f5;
  box-shadow: -8px 0 14px rgba(15,23,42,.08);
  z-index: 4;
}
.operation-log-actions-col table {
  overflow: visible;
  border-radius: 0;
}
.operation-log-table-layout tbody tr,
.operation-log-table-layout tbody td {
  height: 52px;
  max-height: 52px;
  box-sizing: border-box;
}
.operation-log-actions-col th,
.operation-log-actions-col td {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
}

/* 前后值在同一行保持字段顺序一致，颜色只承担对比语义，不依赖颜色传达结果。 */
.操作日志对比列 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 90px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}
.操作日志对比项 {
  display: grid;
  grid-template-columns: minmax(58px, 88px) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 18px;
}
.操作日志对比字段 {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.操作日志对比值 {
  color: #344054;
  font-size: 12px;
  word-break: break-word;
}
.操作日志对比后 .操作日志对比值 { color: #176b4a; font-weight: 600; }
.操作日志对比更多 { color: #7b8697; font-size: 11px; }
.操作日志对比图片 .thumb-wrap,
.操作日志对比图片 .thumb { width: 40px; height: 40px; }

/* 会员列表固定会员编号、姓名，操作列继续固定在最右侧。 */
table.data-table-wide .col-sticky-left {
  position: sticky;
  z-index: 4;
  background: #fff;
  box-shadow: 6px 0 10px rgba(15,23,42,.04);
}
table.data-table-wide .col-sticky-left-1 { left: 0; min-width: 72px; }
table.data-table-wide .col-sticky-left-2 { left: 72px; min-width: 120px; }
table.data-table-wide thead .col-sticky-left { z-index: 7; background: #fbfcfe; }
table.data-table-wide tbody tr:hover .col-sticky-left { background: #f8faff; }

@media (max-width: 760px) {
  .client-theme-grid { grid-template-columns: 1fr; }
  .sidebar-collapse-btn { display: none; }
  .sidebar-collapsed .sidebar { width: 100%; flex-basis: auto; }
  .sidebar-collapsed .sidebar .nav-label-text,
  .sidebar-collapsed .brand-copy { display: inline; }
  .sidebar-collapsed .sidebar a { justify-content: space-between; }
}

/* 群聊管理 */
.admin-group-chat-page { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 140px); min-height: 420px; }
.admin-chat-list {
  flex: 1;
  overflow-y: auto;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
}
.admin-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 80%;
}
.admin-chat-msg.is-admin {
  margin-left: auto;
  flex-direction: row-reverse;
}
.admin-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
  background: #e8e8e8;
}
.admin-chat-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f56c6c;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.admin-chat-main { flex: 1; min-width: 0; }
.admin-chat-msg.is-admin .admin-chat-main { text-align: right; }
.admin-chat-meta { font-size: 12px; color: #888; margin-bottom: 4px; display: flex; gap: 8px; }
.admin-chat-msg.is-admin .admin-chat-meta { justify-content: flex-end; }
.admin-chat-body {
  display: inline-block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left;
  word-break: break-word;
}
.admin-chat-msg.is-admin .admin-chat-body { background: #e6f4ff; border-color: #91caff; }
.admin-chat-compose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.admin-chat-input {
  flex: 1;
  min-height: 64px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 8px 10px;
  resize: vertical;
}

/* 群聊发红包（微信风格） */
.admin-rp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.admin-rp-overlay.hidden { display: none; }
.admin-rp-phone {
  width: min(420px, 100%);
  max-height: min(92vh, 780px);
  background: #ededed;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.admin-rp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  background: #ededed;
}
.admin-rp-back {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #111;
  cursor: pointer;
}
.admin-rp-title { margin: 0; font-size: 17px; font-weight: 600; color: #111; }
.admin-rp-header-spacer { width: 40px; }
.admin-rp-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 24px;
}
.admin-rp-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.admin-rp-type-tab {
  border: none;
  border-radius: 6px;
  padding: 8px 2px;
  font-size: 12px;
  line-height: 1.3;
  color: #666;
  background: #fff;
  cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-rp-type-tab:hover { color: #e64340; }
.admin-rp-type-tab.is-active {
  color: #e64340;
  font-weight: 600;
  background: #fff5f5;
  box-shadow: inset 0 0 0 1.5px #e64340;
}
.admin-rp-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.admin-rp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #111;
}
.admin-rp-row:last-child { border-bottom: none; }
.admin-rp-row label { flex-shrink: 0; margin-right: 12px; }
.admin-rp-row input[type="number"],
.admin-rp-row input[type="text"] {
  flex: 1;
  border: none;
  text-align: right;
  font-size: 16px;
  outline: none;
  background: transparent;
  min-width: 0;
}
.admin-rp-row input::placeholder { color: #c8c8c8; }
.admin-rp-row.is-clickable { cursor: pointer; }
.admin-rp-row-value { color: #888; text-align: right; flex: 1; }
.admin-rp-row-value.has-value { color: #111; }
.admin-rp-row-chevron { color: #c8c8c8; margin-left: 6px; }
.admin-rp-row-static { color: #cfa068; font-weight: 500; }
.admin-rp-bless {
  width: 100%;
  min-height: 88px;
  border: none;
  resize: none;
  padding: 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
  font-family: inherit;
}
.admin-rp-bless-hint { text-align: right; padding: 0 16px 10px; font-size: 12px; color: #bbb; }
.admin-rp-designated { padding: 12px 16px 16px; }
.admin-rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; min-height: 28px; }
.admin-rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 13px;
}
.admin-rp-chip button {
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.admin-rp-amount-display {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  color: #111;
  margin: 28px 0 20px;
  letter-spacing: 1px;
}
.admin-rp-amount-display small { font-size: 28px; margin-right: 4px; }
.admin-rp-submit {
  display: block;
  width: calc(100% - 32px);
  margin: 0 auto;
  border: none;
  border-radius: 8px;
  background: #e64340;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
}
.admin-rp-submit:disabled { opacity: .55; cursor: not-allowed; }
.admin-rp-footnote {
  text-align: center;
  font-size: 12px;
  color: #b2b2b2;
  margin-top: 16px;
  line-height: 1.5;
}

/* 群聊指定领取人（微信通讯录风格） */
.admin-rp-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.admin-rp-contact-overlay.hidden { display: none; }
.admin-rp-contact-phone {
  width: min(420px, 100%);
  height: min(92vh, 780px);
  background: #ededed;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.admin-rp-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  background: #ededed;
  flex-shrink: 0;
}
.admin-rp-contact-search-wrap {
  padding: 0 12px 10px;
  background: #ededed;
  flex-shrink: 0;
}
.admin-rp-contact-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
}
.admin-rp-contact-search-icon { color: #b2b2b2; font-size: 16px; }
.admin-rp-contact-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  min-width: 0;
}
.admin-rp-contact-main {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.admin-rp-contact-list {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-rp-contact-section-title {
  padding: 4px 16px;
  font-size: 13px;
  color: #888;
  background: #ededed;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-rp-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: #fff;
}
.admin-rp-contact-item:active { background: #ececec; }
.admin-rp-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}
.admin-rp-contact-avatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: #c8c8c8;
}
.admin-rp-contact-name {
  font-size: 16px;
  color: #111;
  line-height: 1.35;
  word-break: break-all;
}
.admin-rp-contact-empty {
  padding: 48px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.admin-rp-contact-index {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  z-index: 2;
  padding: 4px 2px;
  user-select: none;
}
.admin-rp-contact-index button {
  border: none;
  background: transparent;
  font-size: 10px;
  line-height: 1.15;
  color: #576b95;
  padding: 1px 4px;
  cursor: pointer;
}
.admin-rp-contact-index button:hover { color: #111; }

/* 移动导航与账户菜单 */
.topbar-leading { display:flex; min-width:0; align-items:center; gap:12px; }
.mobile-nav-trigger,.mobile-nav-backdrop { display:none; }
.admin-account { position:relative; }
.topbar .admin-account-trigger { height:42px; padding:3px 7px 3px 5px; border-color:transparent; }
.topbar .admin-account-trigger:hover,.admin-account.menu-open .admin-account-trigger { border-color:var(--admin-line); background:#f8faff; }
.account-chevron { color:#98a2b3; font-size:14px; transition:transform .18s ease; }
.admin-account.menu-open .account-chevron { transform:rotate(180deg); }
.account-menu { position:absolute; z-index:1200; top:calc(100% + 8px); right:0; display:none; width:150px; padding:6px; border:1px solid var(--admin-line); border-radius:8px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.14); }
.admin-account.menu-open .account-menu { display:block; }
.topbar .account-menu button { display:flex; width:100%; height:38px; align-items:center; gap:9px; padding:0 11px; border:0; background:#fff; color:#c33b3b; text-align:left; }
.topbar .account-menu button:hover { border:0; background:#fff3f3; color:#ad2525; }

@media (max-width:760px) {
  /* 移动端使用同一个导航抽屉展示分组和子菜单，主内容始终占满屏幕。 */
  .layout { display:flex; flex-direction:column; height:100vh; min-height:100vh; overflow:hidden; }
  .layout .sidebar { position:fixed; z-index:1100; inset:0 auto 0 0; display:flex; width:min(82vw,280px); height:100vh; padding:18px 14px; transform:translateX(-105%); transition:transform .22s ease; box-shadow:12px 0 36px rgba(15,23,42,.22); }
  .layout.mobile-nav-open .sidebar { transform:translateX(0); }
  .layout .sidebar .brand { padding:4px 10px 18px; }
  .layout .sidebar .sidebar-collapse-btn { display:none; }
  .layout .sidebar nav { display:flex; overflow:hidden; padding:6px 0; }
  .layout .sidebar .菜单搜索输入 { display:block; }
  .layout .sidebar .菜单搜索清空:not([hidden]) { display:grid; }
  .layout .sidebar .菜单搜索 { justify-content:flex-start; padding:0 8px; }
  .layout .sidebar a { width:100%; margin:2px 0; padding:12px; white-space:normal; }
  .layout .sidebar-footer { display:block; }
  .mobile-nav-backdrop { position:fixed; z-index:1090; inset:0; width:100%; border:0; background:rgba(15,23,42,.45); }
  .mobile-nav-open .mobile-nav-backdrop { display:block; }
  .mobile-nav-trigger { display:grid; width:40px; height:40px; flex:0 0 40px; place-items:center; padding:0; font-size:20px; }
  .layout main { flex:1; width:100%; height:auto; min-height:0; overflow:hidden; }
  .layout .topbar { min-height:64px; padding:10px 12px; }
  .topbar-crumb { margin-bottom:2px; }
  .topbar-actions { gap:6px; }
  .topbar .admin-account-trigger { display:grid; width:40px; height:40px; padding:0; place-items:center; }
  .topbar .admin-account-trigger > span:not(.admin-avatar) { display:none; }
  .topbar .admin-account-trigger .admin-avatar { display:grid; }
  .layout .content { padding:14px; overflow-y:auto; }
  .layout.sidebar-collapsed .sidebar { width:min(82vw,280px); }
}

/* 子菜单在同一侧栏内纵向展开；背景和竖线只表达层级，不改变业务内容区宽度。 */
.sidebar .菜单列表 > a[aria-controls] {
  color: #f1f5fb;
  font-weight: 600;
}
.sidebar .菜单列表 > a[aria-controls].active {
  background: rgba(47,111,237,.16);
  color: #f8fbff;
  box-shadow: none;
}
.sidebar .菜单列表 > a[aria-controls]:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  transform: none;
}
.sidebar .菜单子项 {
  margin: 0 0 5px 10px;
  padding: 4px 4px 5px 8px;
  border-left: 1px solid rgba(147,184,255,.34);
  border-radius: 0 8px 8px 0;
  background: rgba(5,18,43,.22);
}
.sidebar .菜单子项[hidden] { display: none; }
.layout .sidebar .菜单子项 a {
  padding-left: 29px;
  color: #b8c5d9;
  font-size: 12px;
  font-weight: 400;
}
.layout .sidebar .菜单子项 a:hover {
  background: rgba(255,255,255,.055);
  color: #eaf1ff;
  transform: none;
}
.sidebar .菜单子项 a.active {
  background: rgba(47,111,237,.78);
  color: #fff;
  font-weight: 400;
  box-shadow: inset 3px 0 #93b8ff;
}
.sidebar .菜单箭头 { flex: 0 0 12px; text-align: center; transition: transform .15s ease; }
.sidebar [aria-expanded="true"] .菜单箭头 { transform: rotate(90deg); }
.sidebar a:focus-visible { outline: 2px solid #93b8ff; outline-offset: -2px; }
/* 桌面图标模式隐藏子项的层级背景和竖线；移动抽屉在后面的媒体规则中恢复完整层级。 */
.sidebar-collapsed .菜单子项, .sidebar-collapsed .菜单箭头 { display: none; }
@media (max-width:760px) {
  /* 桌面保存的图标模式不能隐藏移动抽屉中的文字和子菜单。 */
  .layout.sidebar-collapsed .sidebar .nav-label-text { display: block; }
  .layout.sidebar-collapsed .sidebar a { justify-content: space-between; }
  .layout.sidebar-collapsed .菜单子项:not([hidden]) { display: block; }
  .layout.sidebar-collapsed .菜单箭头 { display: block; }
}

/* 摘要在窄列下最多三行，避免 table 单元格内容撑破 112px 行高而错位详情按钮。 */
.商品日志摘要 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  max-height: 4.5em;
  overflow-wrap: anywhere;
}
.商品日志详情 { overflow-wrap: anywhere; }
.商品日志详情 h3 { margin: 24px 0 12px; }
.商品日志双列 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.商品日志双列 > section { padding: 14px; border: 1px solid #e5e7eb; border-radius: 8px; min-width: 0; }
.商品日志字段 { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.商品日志字段 > div { white-space: pre-wrap; }
.商品日志变化 { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.商品日志变化 small { display: block; color: #667085; margin-bottom: 6px; }
@media (max-width: 640px) {
  .商品日志双列 { grid-template-columns: minmax(0, 1fr); }
}

/* v3.6.0：后台采用左侧一级、顶部二级、第二行常用菜单的分层布局。 */
.layout .sidebar nav { display:flex; flex-direction:column; gap:5px; overflow-y:auto; padding:14px 0; }
.layout .sidebar nav > button { display:flex; width:100%; min-height:44px; align-items:center; gap:10px; padding:10px 12px; border:0; border-radius:7px; background:transparent; color:#e2e5e7; cursor:pointer; font:inherit; font-size:14px; text-align:left; }
.layout .sidebar nav > button:hover { color:#fff; background:#343c43; }
.layout .sidebar nav > button.active { color:#fff; background:#323a41; box-shadow:inset 3px 0 #20a53a; }
.layout .sidebar nav > button.active .nav-icon { color:#38b54a; }
.layout .sidebar nav > button:focus-visible { outline:2px solid #65b876; outline-offset:-2px; }
.layout .sidebar nav .nav-label-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.layout .sidebar nav .nav-icon { width:20px; flex:0 0 20px; color:#aeb5bb; text-align:center; }
.layout .topbar { min-height:66px; padding:0 28px; gap:18px; }
.topbar-leading { flex:1 1 auto; max-width:none; overflow:hidden; }
.顶部二级菜单 { display:flex; gap:25px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.顶部二级菜单 button { position:relative; display:flex; height:66px; flex:0 0 auto; align-items:center; gap:6px; padding:0 2px; border:0; border-radius:0; background:transparent; color:#687386; cursor:pointer; font:inherit; font-size:14px; white-space:nowrap; }
.顶部二级菜单 button:hover { border-color:transparent; color:#23823a; }
.顶部二级菜单 button[aria-current="page"] { color:#1d7b34; font-weight:600; }
.顶部二级菜单 button[aria-current="page"]::after { position:absolute; right:0; bottom:0; left:0; height:3px; border-radius:3px; background:#20a53a; content:''; }
.顶部二级菜单 button:focus-visible { outline:2px solid #65b876; outline-offset:-4px; }
.layout > main > .常用菜单 { order:0; min-height:48px; flex:0 0 auto; padding:7px 28px; border-bottom:1px solid var(--admin-line); background:#fff; }
.常用菜单标识 { color:#657167; font-weight:600; }
.常用菜单设置 { order:0; padding:6px 9px; border-color:#d7e1db; background:#fff; color:#287b52; }
.常用菜单列表 { order:1; }
.常用菜单更多 { order:2; }
.页面标题区 { flex:0 0 auto; padding:20px 28px 0; }
.页面标题区 h1 { margin:5px 0 0; color:var(--admin-ink); font-size:21px; }
.layout .content { padding-top:18px; }
.sidebar-collapsed .sidebar nav > button { justify-content:center; padding-right:8px; padding-left:8px; }
.sidebar-collapsed .sidebar nav .nav-label-text { display:none; }
@media (max-width:760px) {
  .layout .sidebar nav { overflow-y:auto; padding:8px 0; }
  .layout .sidebar nav > button { justify-content:flex-start; }
  .layout.sidebar-collapsed .sidebar nav .nav-label-text { display:block; }
  .layout .topbar { min-height:60px; padding:0 12px 0 62px; }
  .顶部二级菜单 { gap:18px; }
  .顶部二级菜单 button { height:60px; }
  .layout > main > .常用菜单 { min-height:48px; padding:7px 12px; }
  .页面标题区 { padding:16px 12px 0; }
  .layout .content { padding-top:14px; }
}
@media (max-width:560px) {
  .常用菜单标识 { display:inline; }
  .常用菜单设置 { font-size:12px; }
}

/* 常用按钮与折叠入口并排，展开后低频按钮也按一行排布，仅空间不足时换行。 */
.商品操作面板 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.商品操作面板 .商品常用操作 { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.商品更多工具 { position: relative; min-width: 0; }
.商品更多工具 > summary { display: list-item; width: fit-content; margin-left: 16px; cursor: pointer; }
.商品更多工具[open], .商品更多工具[open]::details-content, .商品更多工具[open] > .商品工具内容 { display: contents; }
.商品辅助操作 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.商品常用操作 .btn:disabled { opacity: .45; cursor: not-allowed; }

/* 场次工具与商品管理保持层级一致，随机入口默认折叠，窄屏按钮自动换行。 */
.场次操作面板 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5eaf1; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.场次常用操作, .场次辅助操作 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.场次更多工具 { min-width: 0; }
.场次更多工具 > summary { display: list-item; width: fit-content; margin-left: 16px; cursor: pointer; }
.场次更多工具[open], .场次更多工具[open]::details-content, .场次更多工具[open] > .场次辅助操作 { display: contents; }
.场次操作面板 .btn:disabled { opacity: .45; cursor: not-allowed; }

/* 会员页采用可伸缩单表：工具栏与分页占自然高度，剩余空间交给数据滚动区。 */
.content:has(.member-page) { padding: 18px 24px; overflow: hidden; display: flex; }
.member-page { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; width: 100%; }
.member-page .users-toolbar-card { flex: none; margin: 0; padding: 12px 16px; }
.users-toolbar-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.member-page .users-toolbar-tabs .btn { border: 0; border-radius: 0; background: transparent; color: #667085; padding: 0 12px 10px; }
.member-page .users-toolbar-tabs .btn.ok { background: transparent; color: #2563eb; box-shadow: inset 0 -2px #2563eb; font-weight: 600; }
.member-page .btn.ok { background: #2563eb; border-color: #2563eb; color: #fff; }
.member-page .btn.ok:hover { background: #1d4ed8; border-color: #1d4ed8; }
.member-page .users-toolbar-tabs .btn:hover { background: #f5f8ff; color: #2563eb; }
.member-page .users-toolbar-actions { padding-top: 10px; margin-top: 10px; flex-wrap: wrap; }
.member-page .users-toolbar-filters input { width: 175px; }
.member-page .member-batch-bar { margin: 0; flex: none; }
.member-page .list-pagination { flex: none; margin: 0; padding: 10px 14px; box-shadow: none; }
.member-grid-scroll { flex: 1; min-height: 120px; overflow: auto; border: 1px solid #e8ecf2; border-radius: 10px; background: #fff; scrollbar-width: thin; scrollbar-color: #b4bfce #f3f5f9; }
table.member-grid { border-collapse: separate; border-spacing: 0; overflow: visible; border-radius: 0; }
table.member-grid td { height: 64px; padding: 8px 12px; }
table.member-grid th { height: 44px; padding: 8px 12px; background: #f8fafc; }
table.member-grid .member-check-col { width: 36px; min-width: 36px; padding: 8px; text-align: center; }
/* 固定综合身份列和操作列，其余字段可横向滚动，列显隐与宽度偏好继续有效。 */
table.member-grid [data-column-key="real_name"] { position: sticky; left: 0; z-index: 3; background: #fff; box-shadow: 4px 0 8px rgba(15,23,42,.04); }
table.member-grid thead [data-column-key="real_name"] { z-index: 8; background: #f8fafc; }
table.member-grid thead .col-sticky-action { z-index: 8; background: #f8fafc; }
table.member-grid [data-column-key="money"], table.member-grid [data-column-key="profit"] { text-align: right; font-variant-numeric: tabular-nums; }
.member-summary { display: flex; align-items: center; gap: 10px; width: 200px; }
.member-summary .assign-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; object-fit: cover; }
.member-summary-copy { min-width: 0; line-height: 20px; }
.member-summary-copy > div { display: flex; gap: 6px; align-items: baseline; }
.member-summary-copy a, .member-summary-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.member-summary-copy small { color: #8490a2; font-size: 11px; max-width: 60px; }
.member-summary-copy > span { color: #8490a2; font-size: 12px; }
.member-grid .member-zero { color: #8490a2; }
.member-grid .status-tag { padding: 2px 8px; font-size: 12px; line-height: 20px; border-radius: 5px; }
.member-grid .tag-success { color: #17805b; background: #eaf7f0; }
.member-grid .tag-warning { color: #a66c15; background: #fff5e2; }
.member-grid .tag-danger { color: #c24141; background: #fef0f0; }
.member-grid .tag-muted { color: #7b8493; background: #f0f2f5; }
/* 导航统一一级字重；当前分组弱强调，当前页面强强调，子项以缩进和引导线辨识。 */
.layout .sidebar .菜单列表 > a { position: relative; min-height: 42px; margin: 3px 0; padding: 10px 12px; color: #c7d2e5; font-size: 14px; font-weight: 600; border-radius: 7px; }
.layout .sidebar .菜单列表 > a[aria-expanded="true"] { color: #f1f5fb; background: rgba(255,255,255,.045); }
.layout .sidebar .菜单列表 > a.active:not([aria-current="page"]) { color: #9fc0ff; background: rgba(47,111,237,.1); box-shadow: none; }
.layout .sidebar .菜单列表 a[aria-current="page"] { color: #fff; background: #2458af; box-shadow: inset 3px 0 #8bb7ff; }
.layout .sidebar .菜单子项 { margin: 2px 0 10px 23px; padding: 3px 0 3px 10px; background: transparent; border-left-color: #344460; border-radius: 0; }
.layout .sidebar .菜单子项 a { min-height: 36px; padding: 8px 12px; margin: 2px 0; font-size: 13px; font-weight: 400; color: #97a8c2; border-radius: 6px; }
.layout .sidebar .菜单列表 a:hover { transform: none; }
.layout .sidebar .nav-icon { opacity: .85; font-size: 16px; }
.layout .sidebar .菜单列表 > a[aria-current="page"] .nav-icon { opacity: 1; }
.layout .sidebar .menu-badge { font-size: 10px; min-width: 18px; }
/* 侧栏采用深灰中性色与绿色导航提示，仅作用于侧栏，保留主内容区的按钮配色。 */
.layout .sidebar { background: #3a4249; color: #e5e7eb; }
.layout .sidebar .brand { border-bottom-color: rgba(255,255,255,.1); }
.layout .sidebar .brand-mark { background: #20a53a; box-shadow: none; }
.layout .sidebar .brand-copy small,
.layout .sidebar .admin-profile small { color: #b0b6bc; }
.layout .sidebar .sidebar-collapse-btn { color: #d7dbdf; border-color: #596168; background: transparent; }
.layout .sidebar .sidebar-footer { border-top-color: rgba(255,255,255,.1); }
.layout .sidebar .admin-avatar { color: #e8f5eb; background: #4b5c50; }
.layout .sidebar .菜单搜索 { border-color: #596168; background: rgba(0,0,0,.06); }
.layout .sidebar .菜单搜索:focus-within { border-color: #65b876; background: rgba(0,0,0,.1); }
.layout .sidebar .菜单搜索输入 { color: #f0f2f3; }
.layout .sidebar .菜单搜索输入::placeholder,
.layout .sidebar .菜单搜索 button,
.layout .sidebar .菜单搜索空状态 { color: #b5bcc1; }
.layout .sidebar .菜单列表 > a { color: #e2e5e7; }
.layout .sidebar .菜单列表 > a[aria-expanded="true"],
.layout .sidebar .菜单列表 > a.active:not([aria-current="page"]) { color: #f3f5f4; background: #353d44; }
.layout .sidebar .菜单子项 { border-left-color: #596168; }
.layout .sidebar .菜单子项 a { color: #c0c6cb; }
.layout .sidebar .菜单列表 a:hover { color: #fff; background: #343c43; }
.layout .sidebar .菜单列表 a[aria-current="page"] { color: #fff; background: #323a41; box-shadow: inset 3px 0 #20a53a; }
.layout .sidebar .nav-icon { color: #aeb5bb; }
.layout .sidebar .菜单列表 > a.active .nav-icon,
.layout .sidebar .菜单列表 > a[aria-current="page"] .nav-icon { color: #38b54a; }
.layout .sidebar a:focus-visible { outline-color: #65b876; }
/* TODO: MVP后续版本优化：增加密度切换、常用筛选保存及会员详情抽屉。 */
@media (max-width: 760px) {
  .layout .content:has(.member-page) { padding: 10px; overflow-y: auto; display: block; }
  .member-page { min-height: 100%; }
  .member-page .users-toolbar-filters { display: grid; grid-template-columns: 64px minmax(0,1fr); }
  .member-page .users-toolbar-filters input, .member-page .users-toolbar-filters select { width: 100%; min-width: 0; }
  .member-grid-scroll { flex: none; height: 440px; }
  table.member-grid [data-column-key="real_name"] { position: static; box-shadow: none; }
  table.member-grid thead [data-column-key="real_name"] { position: sticky; top: 0; }
  .layout .sidebar .菜单子项 { margin-left: 23px; }
}

/* 项目版本由服务端填入；标题下独立一行，窄屏也完整显示。 */
/* 版本含提交与开发状态，窄屏允许换行，避免挤出后台标题。 */
.project-version { display:inline-block; max-width:100%; box-sizing:border-box; padding:3px 8px; border:1px solid #dbe6f6; border-radius:6px; background:#f3f7fd; color:#46638b; font-size:11px; font-weight:500; line-height:1.4; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }
.login-form > .project-version { align-self:flex-start; margin:0 0 16px; }
/* 品牌文字使用剩余宽度，版本独立一行；长名称换行，折叠按钮保留完整点击区域。 */
.brand { column-gap:8px; padding-left:4px; padding-right:4px; }
.brand-copy { flex:1; }
.品牌标题行 { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; white-space:normal; }
.品牌标题行 > strong { max-width:100%; overflow-wrap:anywhere; }
.品牌标题行 > .project-version { padding:2px 4px; color:#dbe8df; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); font-size:10px; letter-spacing:0; }
.sidebar-collapse-btn { flex:0 0 28px; }
/* 桌面收起后图标与展开按钮纵向排列，避免在窄侧栏内互相挤压。 */
@media (min-width:761px) {
  .sidebar-collapsed .brand { flex-direction:column; gap:10px; }
  .sidebar-collapsed .sidebar-collapse-btn { margin-left:0; }
}
/* 顶部标题增加版本行后允许自然撑高，防止固定高度挤压移动端内容。 */
.layout .topbar { height:auto; min-height:94px; padding-top:8px; padding-bottom:8px; }

/* 顶部第一行保留二级菜单和账号入口，常用菜单固定在独立第二行。 */
.layout .topbar { gap:20px; }
/* 二级菜单使用账号区之外的整行空间，窄屏仍由后续媒体查询收窄。 */
.topbar-leading { order:0; flex:1 1 0; max-width:none; }
.顶部二级菜单 { flex:1 1 auto; }
.topbar-actions { order:2; flex-shrink:0; }
.topbar-title h1,.topbar-crumb { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.常用菜单 { order:1; flex:1 1 0; min-width:0; display:flex; align-items:center; gap:8px; }
.常用菜单标识 { flex-shrink:0; color:#98a2b3; font-size:12px; }
.常用菜单列表 { display:flex; flex:1 1 0; min-width:0; gap:6px; overflow:hidden; }
/* 常用菜单已独立于顶部栏，按钮必须自行提供完整外观，不能再依赖 .topbar button。 */
.layout > main > .常用菜单 button { min-height:34px; flex-shrink:0; padding:0 12px; border:1px solid #d7e1db; border-radius:8px; background:#fff; color:#41594b; cursor:pointer; font:inherit; font-size:13px; transition:border-color .2s, color .2s, background .2s; white-space:nowrap; }
.layout > main > .常用菜单 button:hover { border-color:#8fc4a5; background:#f3faf5; color:#166448; }
.常用菜单列表 button { max-width:190px; overflow:hidden; text-overflow:ellipsis; }
.常用菜单 button[aria-current="page"] { color:#166448; border-color:#b8d8c8; background:#eaf5ee; font-weight:600; }
.常用菜单设置 { flex-shrink:0; }
.常用菜单更多 { position:relative; flex-shrink:0; }
.常用菜单更多[hidden] { display:none; }
.常用菜单更多 summary { list-style:none; cursor:pointer; border:1px solid var(--admin-line); border-radius:8px; padding:8px 10px; color:#667085; font-size:13px; white-space:nowrap; }
.常用菜单更多 summary::-webkit-details-marker { display:none; }
.常用菜单更多 summary::after { content:' ⌄'; }
.常用菜单下拉 { position:absolute; right:0; top:calc(100% + 8px); z-index:100; width:220px; max-width:calc(100vw - 36px); max-height:50vh; overflow:auto; display:flex; flex-direction:column; gap:4px; padding:8px; border:1px solid #e3e9e5; border-radius:12px; background:#fff; box-shadow:0 12px 35px #142b2026; }
.常用菜单下拉 button { text-align:left; white-space:normal; overflow-wrap:anywhere; height:auto; min-height:36px; }
/* 原生模态框提供焦点约束及 Escape 取消，候选与排序列表独立滚动。 */
.常用菜单弹窗 { width:760px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); box-sizing:border-box; padding:24px; border:1px solid #e3e9e5; border-radius:16px; color:#25372d; box-shadow:0 24px 80px #10271d40; }
.常用菜单弹窗::backdrop { background:#152c2266; }
.常用菜单弹窗 h2 { margin:0 0 8px; font-size:21px; }
.常用菜单弹窗 h3 { font-size:14px; margin:12px 0; }
.常用菜单说明 { color:#738178; font-size:13px; line-height:1.7; }
.常用菜单双栏 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.常用菜单双栏 section { min-width:0; }
.常用菜单搜索 { width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid #d7e1db; border-radius:8px; }
.常用菜单候选 { max-height:320px; overflow:auto; margin-top:8px; }
.常用菜单候选行 { display:flex; gap:9px; align-items:center; padding:10px 4px; font-size:13px; cursor:pointer; }
.常用菜单候选行 input { flex-shrink:0; accent-color:#287b52; }
.常用菜单排序 { max-height:370px; overflow:auto; }
.常用菜单排序行 { display:flex; align-items:center; gap:4px; padding:9px 0; border-bottom:1px solid #edf1ee; }
.常用菜单排序行 > span { flex:1; min-width:0; font-size:13px; overflow-wrap:anywhere; }
.常用菜单弹窗 button { padding:7px 9px; border:1px solid #d7e1db; border-radius:7px; background:#fff; color:#41594b; cursor:pointer; white-space:nowrap; }
.常用菜单弹窗 button:disabled { opacity:.35; cursor:default; }
.常用菜单操作 { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.常用菜单操作 button { min-width:76px; }
.常用菜单弹窗 .常用菜单保存 { background:#26764d; border-color:#26764d; color:#fff; }
.常用菜单 :focus-visible,.常用菜单弹窗 :focus-visible { outline:2px solid #26764d; outline-offset:2px; }
@media (max-width:1100px) {
  .layout .topbar { flex-wrap:wrap; gap:12px; }
  .topbar-leading { max-width:calc(100% - 110px); flex:1; }
  .常用菜单 { order:3; flex-basis:100%; padding-top:10px; border-top:1px solid #edf1ee; }
}
@media (max-width:560px) {
  .常用菜单弹窗 { padding:16px; }
  .常用菜单双栏 { grid-template-columns:1fr; gap:6px; }
  .常用菜单候选,.常用菜单排序 { max-height:180px; }
  .常用菜单标识 { display:none; }
}

/* 控制台复用日期范围组件；窄屏面板纵向排列，保留双月与快捷选项。 */
@media (max-width: 640px) {
  .控制台日期筛选 .date-range-picker { width: 100%; min-width: 0; }
  .控制台日期筛选 .date-range-display { min-width: 0; }
  .控制台日期筛选 .date-range-panel { width: 100%; box-sizing: border-box; }
  .控制台日期筛选 .date-range-panel-inner { min-width: 0; flex-direction: column; }
  .控制台日期筛选 .date-range-presets { width: auto; display: flex; flex-wrap: wrap; border-right: 0; }
  .控制台日期筛选 .date-range-preset { width: auto; }
  .控制台日期筛选 .date-range-calendars { flex-direction: column; }
  .控制台日期筛选 .date-range-header-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}

/* 窄屏仍明确显示“常用菜单”，添加按钮紧随其后。 */
@media (max-width:560px) {
  .layout > main > .常用菜单 .常用菜单标识 { display:inline; }
}

/* 后台列表共用紧凑筛选栏，字段整组换行，日期及快捷条件不再独占一行。 */
.layout .content { padding: 16px 20px 24px; }
.列表顶部工具栏 { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 6px; margin-bottom: 8px; padding: 8px 10px; background: #fff; border: 1px solid #e5eaf1; border-radius: 4px; }
.列表顶部工具栏 > .filter-panel { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
.列表顶部工具栏 .filter-row { display: contents; }
.列表顶部工具栏 .filter-row label { font-size: 12px; }
.列表筛选项 { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.列表顶部工具栏 .filter-row input[type="text"],
.列表顶部工具栏 .filter-row select,
.列表顶部工具栏 .filter-row .date-range-display,
.列表顶部工具栏 .multi-filter-display { min-width: 0; height: 30px; box-sizing: border-box; padding: 0 8px; font-size: 12px; }
.列表顶部工具栏 .filter-row input[type="text"] { width: 132px; }
.列表顶部工具栏 .filter-row select { max-width: 160px; }
.列表顶部工具栏 .multi-filter { min-width: 0; width: 150px; }
.列表顶部工具栏 .multi-filter-display { width: 100%; }
.列表顶部工具栏 .filter-row .date-range-display { width: 224px; }
.列表顶部工具栏 .order-status-quick { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.列表顶部工具栏 .order-filter-panel .btn { margin-left: 0; }
.列表顶部工具栏 > .toolbar,
.列表顶部工具栏 > .商品操作面板,
.列表顶部工具栏 > .场次操作面板 { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; padding: 0; border: 0; background: #fff; }
.列表顶部工具栏 .商品常用操作,
.列表顶部工具栏 .场次常用操作 { flex-wrap: nowrap; gap: 5px; margin: 0; }
.紧凑列表内容 > .toolbar { min-height: 40px; align-items: center; gap: 5px; margin-bottom: 8px; padding: 4px 6px; border: 1px solid #e5eaf1; border-radius: 8px; background: #fff; }
.紧凑列表内容 .toolbar .btn,
.列表顶部工具栏 .btn { min-height: 30px; padding: 0 10px; white-space: nowrap; }
.紧凑列表内容 .toolbar input,
.紧凑列表内容 .toolbar select { height: 32px; padding: 0 8px; font-size: 12px; }
.紧凑列表内容 .table-toolbar { min-height: 32px; margin-bottom: 5px; gap: 6px; }
.紧凑列表内容 table { font-size: 12px; }
.紧凑列表内容 table th,
.紧凑列表内容 table td,
.紧凑列表内容 .table-wrap table th,
.紧凑列表内容 .table-wrap table td { height: 36px; box-sizing: border-box; padding: 6px 10px; font-size: 12px; line-height: 17px; }
.紧凑列表内容 .admin-data-table-wrap,
.紧凑列表内容 .table-wrap-page,
.紧凑列表内容 .table-wrap-scroll { max-height: calc(100vh - 250px); }
.紧凑列表内容 .list-pagination { margin-top: 7px; padding: 8px 12px; }
/* 订单沿用现有操作与状态控件，商品、编号、时间合并为紧凑数据行；窄屏在列表内滚动。 */
.紧凑订单列表 { max-width: 100%; max-height: calc(100vh - 240px); overflow: auto; border-radius: 4px; }
.紧凑订单列表 .order-card-columns,
.紧凑订单列表 .order-card-body { display: grid; min-width: 1080px; box-sizing: border-box; grid-template-columns: minmax(340px, 2fr) 100px 76px 130px 130px minmax(160px, 1fr) 84px; gap: 6px; padding: 6px 10px; font-size: 12px; }
.紧凑订单列表 .order-card-columns { position: sticky; top: 0; z-index: 2; min-height: 36px; background: #f6f7f8; }
.紧凑订单列表 .order-card-body { min-height: 60px; }
.紧凑订单列表 .order-card:hover { background: #fafafa; }
.紧凑订单列表 .order-card-body > div::before { display: none; }
.紧凑订单列表 .order-card-body .col-goods { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 0 8px; }
.紧凑订单列表 .order-goods-cell { display: contents; }
.紧凑订单列表 .thumb-wrap { grid-row: 1 / 3; width: 40px; height: 40px; }
.紧凑订单列表 .order-goods-name { grid-column: 2; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.紧凑订单列表 .订单行信息 { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 8px; color: #8c8c8c; font-size: 11px; line-height: 16px; }
.紧凑订单列表 .订单行信息 > span { white-space: nowrap; }
.紧凑订单列表 .order-card-no { color: #666; }
.紧凑订单列表 .order-money,
.紧凑订单列表 .order-user-cell { font-size: 12px; }
.紧凑订单列表 .order-more-btn { min-height: 28px; padding: 3px 8px; font-size: 12px; }
.member-page .users-toolbar-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 7px 10px; overflow-x: auto; }
.member-page .users-toolbar-tabs { margin: 0; border: 0; white-space: nowrap; }
.member-page .users-toolbar-tabs .btn { min-height: 32px; padding: 0 9px; }
.member-page .users-toolbar-filters { flex-wrap: nowrap; gap: 6px; }
.member-page .users-toolbar-filters input[type="text"],
.member-page .users-toolbar-filters select { width: 128px; min-width: 112px; height: 32px; padding: 0 8px; font-size: 12px; }
.member-page .users-toolbar-actions { display: contents; }
.member-page .users-toolbar-actions-left,
.member-page .users-toolbar-actions-right { flex-wrap: nowrap; gap: 5px; white-space: nowrap; }
.member-page .member-batch-bar { min-height: 40px; padding: 5px 8px; }
.member-page table.member-grid td { height: 46px; padding: 6px 10px; }
.member-page table.member-grid th { height: 38px; padding: 6px 10px; }

@media (max-width: 760px) {
  .layout .content { padding: 10px 12px 22px; }
  .列表顶部工具栏 { align-items: stretch; flex-direction: column; }
  .列表顶部工具栏 > .filter-panel,
  .列表顶部工具栏 > .toolbar,
  .列表顶部工具栏 > .商品操作面板,
  .列表顶部工具栏 > .场次操作面板 { width: 100%; box-sizing: border-box; }
  .列表顶部工具栏 { padding: 8px; }
  .列表顶部工具栏 .列表筛选项 { flex: 1 1 240px; }
  .列表顶部工具栏 .列表筛选项 > label { flex: 0 0 84px; }
  .列表顶部工具栏 .列表筛选项 > input[type="text"],
  .列表顶部工具栏 .列表筛选项 > select,
  .列表顶部工具栏 .列表筛选项 > .date-range-picker,
  .列表顶部工具栏 .列表筛选项 > .multi-filter { flex: 1; width: 0; min-width: 0; max-width: none; }
  .列表顶部工具栏 .filter-row .date-range-display { width: 100%; }
  .紧凑订单列表 { max-height: calc(100vh - 180px); }
  .紧凑列表内容 > .toolbar { flex-direction: row; flex-wrap: wrap; }
  .member-page .users-toolbar-card { display: block; padding: 8px; overflow: visible; }
  .member-page .users-toolbar-tabs { margin-bottom: 7px; overflow-x: auto; }
  .member-page .users-toolbar-filters { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
  .member-page .users-toolbar-actions { display: flex; margin-top: 7px; padding-top: 7px; }
  .member-page .users-toolbar-actions-left,
  .member-page .users-toolbar-actions-right { flex-wrap: wrap; }
}

/* 商品筛选与操作共用一张卡片；字段成组换行，折叠内容不占顶部空间。 */
.商品综合工具栏 { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:8px; margin-bottom:8px; background:#fff; border:1px solid #e5eaf1; border-radius:8px; min-width:0; }
.商品综合工具栏 > .filter-panel, .商品综合工具栏 > .商品操作面板 { display:contents; }
.商品综合工具栏 .filter-row { display:flex; flex-wrap:wrap; gap:6px; margin:0; min-width:0; }
.商品综合工具栏 .filter-row label { font-size:12px; }
.商品综合工具栏 input[type="text"], .商品综合工具栏 select, .商品综合工具栏 .date-range-display { height:32px; min-width:0; box-sizing:border-box; padding:0 8px; font-size:12px; }
.商品综合工具栏 input[type="text"] { width:130px; }
.商品综合工具栏 select { max-width:150px; }
.商品综合工具栏 .商品常用操作 { display:contents; }
.商品综合工具栏 .btn { min-height:32px; padding:0 10px; margin:0; white-space:nowrap; }
.商品综合工具栏 .hint-inline { font-size:12px; }
.商品综合工具栏 .商品更多工具 { display:block; position:relative; }
.商品综合工具栏 .商品更多工具 > summary { display:list-item; list-style-position:inside; margin:0; line-height:30px; }
.商品综合工具栏 .商品更多工具[open]::details-content { display:block; }
.商品综合工具栏 .商品更多工具 > .商品工具内容 { display:none; }
.商品综合工具栏 .商品更多工具[open] > .商品工具内容 { display:block; position:absolute; z-index:30; right:0; top:calc(100% + 4px); padding:6px; background:#fff; border:1px solid #e5eaf1; border-radius:6px; box-shadow:0 4px 12px #0002; }
@media (max-width:760px) {
  .商品综合工具栏 .filter-row { flex:1 1 100%; }
  .商品综合工具栏 .hint-inline { display:none; }
}
/* 日志按业务与动作两层查询，列表只展示关键结果；窄屏横向滚动保留在表格内部。 */
.日志查询区 { min-width: 0; margin-bottom: 6px; }
.日志分类标签, .日志动作标签 { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.日志标签, .日志动作 { flex: 0 0 auto; border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 8px; padding: 9px 20px; cursor: pointer; }
.日志标签.active { color: #fff; background: #059669; border-color: #059669; }
.日志动作 { padding: 5px 14px; font-size: 13px; }
.日志动作.active { color: #047857; background: #ecfdf5; border-color: #6ee7b7; }
.日志查询区 .操作日志筛选网格 { grid-template-columns: minmax(180px,1.2fr) minmax(140px,1fr) minmax(230px,1.2fr) auto; }
.日志筛选底栏 { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-top:10px; }
.日志日期快捷 { display:flex; gap:6px; }
.日志更多筛选 summary { cursor:pointer; color:#64748b; }
.日志更多筛选 label { display:flex; align-items:center; gap:8px; margin-top:8px; }
.日志原商品 { white-space:normal; line-height:1.7; font-weight:500; }
.日志拆分结果 { white-space:normal; line-height:1.7; }
.日志子商品 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:380px; }
.日志拆分数量 { color:#047857; font-weight:600; }
.日志历史提示 { color:#b45309; font-size:13px; }
.日志查看全部 { border:0; padding:0; background:none; color:#2563eb; cursor:pointer; font-size:12px; }
.日志拆分详情布局 { display:grid; grid-template-columns:1fr 1.5fr; gap:20px; align-items:start; }
/* 日志采用紧凑的行内筛选；只作用于两个日志页，保留日期弹层和表格内部滚动。 */
.日志紧凑内容 .日志分类标签, .日志紧凑内容 .日志动作标签 { gap:4px; padding:0 0 6px; }
.日志紧凑内容 .日志标签, .日志紧凑内容 .日志动作 { padding:0 12px; height:30px; border-radius:4px; font-size:12px; }
.日志紧凑内容 .日志动作 { height:26px; }
.日志查询区 .filter-panel { padding:8px 10px; margin:0; border-radius:4px; }
.日志查询区 .操作日志筛选网格 { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.日志查询区 .操作日志筛选项 { flex-direction:row; align-items:center; gap:6px; white-space:nowrap; }
.日志查询区 .操作日志筛选项 > input { width:190px; }
.日志查询区 .操作日志时间筛选项 > .date-range-picker { width:224px; }
.日志查询区 .操作日志筛选项 > input, .日志查询区 .date-range-display,
.日志查询区 .操作日志筛选操作, .日志查询区 .操作日志筛选操作 .btn,
.日志紧凑内容 .登录记录筛选 input, .日志紧凑内容 .登录记录筛选 select,
.日志紧凑内容 .登录记录筛选 .date-range-display, .日志紧凑内容 .登录记录筛选 .btn { height:30px; min-height:30px; padding:0 8px; font-size:12px; }
.日志筛选底栏 { justify-content:flex-start; align-items:center; gap:10px; margin-top:6px; }
.日志日期快捷 .btn { height:24px; min-height:24px; padding:0 8px; font-size:12px; }
.日志更多筛选 { position:relative; font-size:12px; }
.日志更多筛选[open] > label { position:absolute; top:100%; right:0; z-index:20; margin:4px 0 0; padding:8px; white-space:nowrap; background:#fff; border:1px solid #e2e8f0; box-shadow:0 4px 12px #0002; }
.日志紧凑内容 .日志列表工具栏 { justify-content:flex-start; padding:0; margin:0 0 6px; }
.日志列表工具栏 .table-hint { margin-left:auto; }
.日志紧凑内容 .table-toolbar .btn { height:28px; min-height:28px; padding:0 8px; font-size:12px; }
.日志紧凑内容 > .登录记录筛选 { padding:8px 10px; border-radius:4px; min-height:0; }
.登录记录筛选 > label, .登录记录日期筛选 { display:flex; align-items:center; gap:6px; white-space:nowrap; font-size:12px; }
.登录记录筛选 input { width:160px; }
.登录记录日期筛选 .date-range-picker { min-width:0; width:224px; }
.登录记录日期筛选 .date-range-display { min-width:0; width:100%; box-sizing:border-box; }
.日志紧凑内容:has(.登录记录筛选) .table-wrap table td { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* 固定详情栏与数据行使用相同行高；长结果保留悬浮全文与详情入口，避免撑高整行。 */
.日志紧凑内容 .operation-log-table-layout td { padding:6px 10px; }
.日志紧凑内容 .operation-log-table-layout td > .日志原商品,
.日志紧凑内容 .operation-log-table-layout td > .商品日志摘要 { max-height:34px; line-height:17px; overflow:hidden; }
.日志紧凑内容 .日志拆分结果 { position:relative; height:34px; overflow:hidden; line-height:17px; padding-top:17px; box-sizing:border-box; }
.日志紧凑内容 .日志拆分结果 > small { position:absolute; top:0; left:0; font-size:12px; }
.日志紧凑内容 .日志查看全部 { position:absolute; top:0; right:0; background:#fff; line-height:17px; }
.日志紧凑内容 .日志子商品 { max-width:100%; }
.日志紧凑内容 .operation-log-actions-col { flex-basis:76px; width:76px; min-width:76px; max-width:76px; }
.日志紧凑内容 .operation-log-actions-col th, .日志紧凑内容 .operation-log-actions-col td { width:76px; min-width:76px; max-width:76px; }
.日志紧凑内容 .operation-log-actions-col .btn { height:26px; min-height:26px; padding:0 8px; font-size:12px; }
@media(max-width:760px) {
  .日志查询区 .操作日志筛选项 { flex:1 1 100%; }
  .日志查询区 .操作日志筛选项 > input, .日志查询区 .操作日志时间筛选项 > .date-range-picker { flex:1; width:0; }
  .日志紧凑内容 .登录记录筛选 { flex-direction:row; flex-wrap:wrap; }
  .登录记录筛选 > label, .登录记录日期筛选 { flex:1 1 100%; }
  .登录记录筛选 input, .登录记录日期筛选 .date-range-picker { flex:1; width:0; }
  .日志列表工具栏 .table-hint { display:none; }
}
@media(max-width:700px) {
  .日志查询区 .操作日志筛选网格 { grid-template-columns:1fr; }
  .日志查询区 .操作日志筛选操作 { justify-content:flex-start; }
  .日志标签 { padding:8px 14px; }
  .日志拆分详情布局 { grid-template-columns:1fr; }
  /* 手机筛选区较高时允许页面纵向滚动，保留能读到记录的数据区。 */
  .layout #content.content:has(> .operation-log-table-layout) { overflow-y:auto; }
  .layout #content.content > .operation-log-table-layout { flex:0 0 300px; min-height:300px; }
}
