:root {
  --mf-accent: #409eff;
  --mf-accent-dark: #337ecc;
  --mf-accent-light: #66b1ff;
  --mf-accent-bg: #ecf5ff;
  --mf-accent-border: #b3d8ff;
  --mf-primary: #409eff;
  --mf-primary-dark: #337ecc;
  --mf-primary-light: #66b1ff;
  --mf-primary-muted: #409eff;
  --mf-primary-bg: #ecf5ff;
  --mf-primary-bg-light: #f0f7ff;
  --mf-primary-border: #b3d8ff;
  --mf-green: #409eff;
  --mf-green-dark: #337ecc;
  --mf-green-sidebar-active: rgba(64, 158, 255, 0.14);
  --mf-sidebar: #2c333e;
  --mf-sidebar-hover: #3d4654;
  --mf-sidebar-active: #66b1ff;
  --mf-bg: #f0f2f5;
  --mf-card-radius: 0;
  --mf-shadow-sm: none;
  --mf-shadow-md: none;
  --mf-topbar-h: 68px;
  --mf-chrome-h: var(--mf-topbar-h);
}

body.mf-app {
  min-height: 100vh;
  background: var(--mf-bg);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
}

.mf-shell {
  display: block;
  min-height: calc(100vh - var(--mf-chrome-h));
}

.mf-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 0;
  line-height: 1.4;
}
.mf-tag--grey {
  background: #f4f4f5;
  color: #909399;
  border: 1px solid #e9e9eb;
}
.mf-order-no-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--mf-primary-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mf-order-no-btn:hover {
  color: var(--mf-primary-dark);
}

/* 订单列表：筛选工具条（标签与控件同一行） */
.mf-orders-toolbar {
  padding-top: 4px;
  padding-bottom: 12px;
}
.mf-orders-toolbar-form {
  row-gap: 8px;
  column-gap: 10px;
}
.mf-orders-toolbar__field {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.mf-orders-toolbar__field--q {
  flex: 1 1 200px;
  min-width: min(100%, 220px);
  max-width: 360px;
}
.mf-orders-toolbar__field--q .mf-input {
  flex: 1 1 auto;
  min-width: 0;
}
.mf-orders-toolbar__lbl {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
  font-weight: 500;
}
.mf-orders-toolbar__select {
  min-width: 96px;
  max-width: 120px;
}
.mf-orders-toolbar__date {
  width: 132px;
  min-width: 132px;
}
.mf-orders-toolbar .mf-input--sm,
.mf-orders-toolbar .mf-select.mf-input--sm {
  min-height: 32px;
  font-size: 13px;
}

.mf-topbar {
  background-color: var(--mf-accent);
  background-image: none;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: none;
  border-bottom: none;
}

.mf-topbar-inner {
  display: flex;
  align-items: stretch;
  min-height: var(--mf-topbar-h);
  gap: 0;
  padding: 0 10px 0 12px;
  box-sizing: border-box;
}

.mf-topbar-brand {
  flex-shrink: 0;
  padding-right: 10px;
  align-self: center;
}

.mf-topbar-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mf-topbar-actions {
  flex-shrink: 0;
  align-self: center;
  padding-left: 8px;
}

.mf-logo {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.mf-logo-yin {
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.mf-logo--custom {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}
.mf-logo--custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 顶栏 Logo：透明底，与蓝色顶栏一体 */
body.mf-app .mf-topbar .mf-logo {
  background: transparent;
}
body.mf-app .mf-topbar .mf-logo-yin {
  border-color: transparent;
}
body.mf-app .mf-topbar .mf-logo--custom {
  background: transparent;
}

.mf-login-page .mf-logo--custom.mf-logo--login {
  width: 72px;
  height: 72px;
}

body.mf-app .mf-topbar .mf-logo--custom {
  width: 48px;
  height: 48px;
}

body.mf-app .mf-topbar .mf-logo {
  width: 48px;
  height: 48px;
  font-size: 1.55rem;
}

.mf-topbar-user-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.mf-system-logo-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border: 1px solid #ebeef5;
  padding: 6px;
  background: #fafafa;
}

body.mf-app .mf-dashboard-trend__chart {
  width: 100%;
  height: 300px;
  min-height: 260px;
}
body.mf-app .mf-dashboard-trend .mf-panel__body {
  border-top: none;
}

.mf-brand-title {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

@media (max-width: 575.98px) {
  .mf-brand-title {
    font-size: 0.95rem;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.mf-topbar-actions .mf-topbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.2rem 0.35rem;
  min-width: 44px;
  opacity: 0.95;
}

.mf-topbar-actions .mf-topbar-item:hover {
  opacity: 1;
  background: transparent;
  border-radius: 0;
}

body.mf-app .mf-topbar-actions .mf-topbar-item:hover,
body.mf-app .mf-topbar-actions .mf-dropdown__trigger:hover,
body.mf-app .mf-topbar-actions .mf-dropdown.is-open > .mf-dropdown__trigger {
  background: transparent !important;
  border-radius: 0 !important;
}

.mf-topbar-label {
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
}

.mf-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 0;
  padding: 0 4px;
}

.mf-nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  color: #fff;
  padding: 0 14px;
  border-radius: 0;
  text-decoration: none;
  font-size: 14px;
  margin: 0;
  transition: background 0.22s ease, color 0.22s ease;
  text-align: center;
  white-space: nowrap;
  align-self: stretch;
  font-weight: 500;
}

.mf-nav-link span {
  white-space: nowrap;
  line-height: 1.2;
}

.mf-nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mf-nav-link.active {
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 #fff;
}

.mf-nav-link i {
  font-size: 1.2rem;
  opacity: 1;
  width: auto;
  text-align: center;
}

/* 顶栏内导航 Font Awesome（提高饱和度，更易辨认） */
.mf-nav-link .mf-nav-fa {
  font-size: 1.2rem;
  width: auto;
  text-align: center;
  flex-shrink: 0;
  opacity: 1;
}
.mf-nav-fa--dashboard { color: #00e5c7; }
.mf-nav-fa--pos { color: #ffeb3b; }
.mf-nav-fa--wallet { color: #69ff98; }
.mf-nav-fa--members { color: #ff80ab; }
.mf-nav-fa--memberadd { color: #40c4ff; }
.mf-nav-fa--orders { color: #ffe066; }
.mf-nav-fa--ledger { color: #b388ff; }
.mf-nav-fa--report { color: #82b1ff; }
.mf-nav-fa--system { color: #ffb74d; }
.mf-nav-fa--products { color: #ff8a80; }
.mf-nav-link:hover .mf-nav-fa {
  filter: brightness(1.08);
}
.mf-nav-link.active .mf-nav-fa {
  filter: brightness(1.15) saturate(1.1);
  opacity: 1;
}

.mf-main {
  min-width: 0;
  min-height: 0;
  background: var(--mf-bg);
  width: 100%;
}
/* 会员消费页：主列至少一屏高，便于工作区纵向铺满（不影响其它后台页） */
.mf-shell > .mf-main:has(> .mf-content.mf-content--pos) {
  min-height: calc(100vh - var(--mf-chrome-h));
}

/* 会员消费：顶栏+导航下主区占满剩余视口，仅 .mf-content--pos 内纵向滚动 */
body.mf-app:has(.mf-content.mf-content--pos) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
body.mf-app:has(.mf-content.mf-content--pos) > .mf-topbar {
  flex-shrink: 0;
}
body.mf-app:has(.mf-content.mf-content--pos) > .mf-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-shell > .mf-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-main > .mf-content.mf-content--pos {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-page--fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-page--fill .mf-pos-wrap,
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-page--fill .mf-pos-left {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-main-split {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  overflow: hidden;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-main-split__col--search {
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  min-width: 0;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-workspace-top {
  flex: 0 0 auto;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-fill-area--checkout-form {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-pos-main-split__col--checkout {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* 列表筛选行：输入框与查询/重置/新增 底部对齐且同一行（避免子项 min-width 与 flex-wrap 换行） */
@media (min-width: 768px) {
  .mf-row.mf-toolbar-row {
    flex-wrap: nowrap;
    align-items: flex-end;
  }
  .mf-row.mf-toolbar-row > .mf-col {
    min-width: 0;
  }
  .mf-row.mf-toolbar-row .mf-input,
  .mf-row.mf-toolbar-row .mf-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
.mf-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
}
.mf-toolbar-actions .mf-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.mf-toolbar-actions__spacer {
  min-width: 8px;
}
.table-mf thead th {
  background: #f5f6f8;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid #e9ecef;
}
.mf-pos-page .mf-pos-cart-empty-row td {
  padding: 0;
  vertical-align: middle;
  border-bottom: 1px solid #ebeef5;
}

.mf-pos-page .mf-pos-cart-empty {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #90a4ae;
  font-size: 14px;
  line-height: 1.65;
  padding: 28px 16px 32px;
  box-sizing: border-box;
}

.mf-pos-page .mf-pos-cart-empty__line1 {
  font-size: 15px;
  letter-spacing: 0.03em;
}

.mf-pos-page .mf-pos-cart-empty__line2 {
  margin-top: 8px;
  font-size: 13px;
  color: #b0bec5;
}

/* 收银台主区内边距收紧（覆盖 layout 内联 padding） */
.mf-main .mf-content.mf-content--pos {
  padding: 4px 8px 14px !important;
}

/* 会员消费（无商品栏）：主区限制在视口内，内部面板滚动 */
.mf-pos-page--fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.mf-pos-page--fill .mf-pos-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mf-pos-page--fill .mf-pos-left {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
}

.mf-pos-page--fill .mf-pos-fill-area {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  border: 1px dashed #c5cae9;
  background: linear-gradient(180deg, #fafbfd 0%, #eef2f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  box-sizing: border-box;
}

.mf-pos-page--fill .mf-pos-fill-area--checkout,
.mf-pos-page--fill .mf-pos-fill-area--checkout-form {
  min-height: 0;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: transparent;
  align-items: stretch;
  justify-content: flex-start;
}

.mf-pos-page--fill .mf-pos-fill-area__inner {
  text-align: center;
  max-width: 480px;
}

.mf-pos-page--fill .mf-pos-fill-area__title {
  font-size: 15px;
  font-weight: 600;
  color: #546e7a;
  margin: 0 0 10px;
}

/* 会员消费：余额 / 次数 分段切换 */
.mf-pos-seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid #dcdfe6;
  background: #fff;
  margin-bottom: 8px;
}
.mf-pos-seg__btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 0.45rem 1.1rem;
  border: none;
  background: #fff;
  color: #606266;
  transition: background 0.2s ease, color 0.2s ease;
}
.mf-pos-seg__btn + .mf-pos-seg__btn {
  border-left: 1px solid #ebeef5;
}
.mf-pos-seg__btn:hover {
  background: #f5f7fa;
  color: #303133;
}
.mf-pos-seg__btn.active {
  background: var(--mf-green);
  color: #fff;
  font-weight: 600;
}
.mf-pos-seg__btn.active:hover {
  background: var(--mf-green-dark);
  color: #fff;
}

.mf-pos-mismatch-hint {
  font-size: 13px;
  color: #e65100;
  margin-top: 6px;
  line-height: 1.45;
}

/* 底部收银台：在双栏网格内纵向铺满，键盘行随剩余高度变高 */
.mf-pos-page--fill .mf-pos-fill-area--checkout {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 6px 6px 10px;
  margin-top: 4px;
  background: transparent;
  border: none;
}
.mf-pos-fill-area--checkout > .mf-pos-inline-checkout {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.mf-pos-inline-checkout.mf-panel {
  overflow: hidden;
}
.mf-pos-inline-checkout {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dcdfe6;
  background: #fff;
  overflow: hidden;
}
/* 内联收银台：左栏信息 + 右栏支付方式与键盘（参考常见 POS） */
.mf-pos-inline-checkout .mf-panel__header {
  background: var(--mf-green);
  color: #fff;
  padding: 6px 10px;
  border-bottom: none;
}
.mf-pos-inline-checkout .mf-panel__header .mf-fw-bold {
  color: #fff;
}
.mf-pos-inline-checkout .mf-panel__body {
  padding: 4px 6px 6px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mf-pos-inline-checkout .mf-checkout-mode-line {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}
/* 收银台内：仅支付方式 + 键盘 + 确认（消费金额等在左栏「消费信息」） */
.mf-pos-inline-checkout__sheet {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 10px 12px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
.mf-pos-inline-checkout__sheet--tools-only {
  grid-template-columns: 1fr;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 520px) {
  .mf-pos-inline-checkout__sheet:not(.mf-pos-inline-checkout__sheet--tools-only) {
    grid-template-columns: 1fr;
  }
}
.mf-pos-inline-checkout__col--pay {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #ebeef5;
  padding: 10px 10px 12px;
  box-sizing: border-box;
}
.mf-pos-inline-checkout__col--tools-only {
  background: transparent;
  border: none;
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
}
.mf-pos-inline-checkout__pay-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}
.mf-pos-inline-checkout__keypad-wrap {
  margin-top: 6px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 左栏：消费信息（与右侧收银台同风格） */
.mf-pos-main-split__col--search {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
}
.mf-pos-fill-area--checkout-form {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  overflow: visible;
}
.mf-pos-fill-area--checkout-form > .mf-pos-checkout-form-panel {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.mf-pos-checkout-form-panel {
  border: 1px solid #dcdfe6;
  background: #fff;
  overflow: visible;
}
.mf-pos-checkout-form-panel .mf-panel__header,
.mf-pos-checkout-form__header {
  background: var(--mf-green);
  color: #fff;
  padding: 6px 10px;
  border-bottom: none;
}
.mf-pos-checkout-form-panel .mf-panel__header .mf-fw-bold,
.mf-pos-checkout-form__title {
  color: #fff;
  font-size: 16px;
}
.mf-pos-checkout-form-panel .mf-checkout-mode-line {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}
.mf-pos-checkout-form-body {
  padding: 8px 10px 12px;
  flex: 0 0 auto;
  overflow: visible;
  display: block;
}
.mf-pos-checkout-form-flow {
  display: block;
}
.mf-pos-checkout-form-hero {
  background: #f5f9ff;
  border: 1px solid #d9ecff;
  padding: 8px 10px;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.mf-pos-checkout-form-hero__lbl {
  display: block;
  font-size: 12px;
  color: #606266;
  margin-bottom: 4px;
  font-weight: 600;
}
.mf-pos-checkout-form-hero__input {
  font-size: 22px;
  font-weight: 700;
  text-align: right;
  padding: 8px 10px;
  border: 1px solid #c6e2ff;
  background: #fff;
  color: #303133;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.mf-pos-checkout-form-hero__input:focus {
  border-color: var(--mf-green);
  outline: none;
}
.mf-pos-checkout-form-remark {
  margin-bottom: 6px;
  flex-shrink: 0;
}
.mf-pos-checkout-form-remark__input {
  min-height: 48px;
  max-height: 72px;
  resize: vertical;
}
.mf-pos-checkout-form-summary {
  margin-top: 8px;
  background: #fafbfd;
  border: 1px solid #ebeef5;
  padding: 6px 8px 8px;
}
.mf-pos-checkout-form-duebar .mf-checkout-due-left strong {
  font-size: 22px;
}
.mf-pos-checkout-form-payinput {
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  padding: 10px 12px;
  border: 1px solid #ffe58f;
  background: #fffdf5;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.mf-pos-panel--checkout-form .mf-checkout-rows {
  border-top: none;
  padding-top: 0;
}
.mf-pos-panel--checkout-form .mf-checkout-rowline {
  margin-bottom: 0;
}
.mf-pos-panel--checkout-form .mf-pos-checkout-form-disc {
  padding: 4px 0 8px;
}
.mf-pos-panel--checkout-form .mf-checkout-disc {
  width: 132px;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}
.mf-pos-checkout-form-duebar {
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid #ebeef5;
  border-left: none;
  border-right: none;
  background: #fff;
  font-size: 14px;
}
.mf-pos-checkout-form-paybox {
  margin-top: 6px;
}
.mf-pos-checkout-form-paybox .mf-checkout-payfield-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #606266;
  margin-bottom: 4px;
}
.mf-pos-panel--checkout-form .mf-checkout-times-flow__info {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.mf-pos-page--compact .mf-pos-checkout-form-body {
  padding: 6px 8px 8px;
}
.mf-pos-page--compact .mf-pos-checkout-form-hero {
  padding: 8px 10px;
  margin-bottom: 6px;
}
.mf-pos-page--compact .mf-pos-checkout-form-hero__input {
  font-size: 20px;
  padding: 6px 8px;
}
.mf-pos-page--compact .mf-pos-checkout-form-duebar .mf-checkout-due-left strong {
  font-size: 20px;
}
.mf-pos-page--compact .mf-pos-checkout-form-payinput {
  font-size: 18px;
  padding: 8px 10px;
}

.mf-pos-checkout-form-title {
  margin-top: 0;
  color: #606266;
  letter-spacing: 0.02em;
}
.mf-pos-inline-checkout .mf-pay-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}
/* 支付方式外层保留卡片边框；图标区单独去线、透明底 */
.mf-pos-inline-checkout .mf-pay-tile {
  min-height: 56px;
  padding: 4px 2px 2px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 0;
  box-shadow: none !important;
}
.mf-pos-inline-checkout .mf-pay-tile:hover:not(:disabled) {
  border-color: #bdbdbd;
  background: #fafafa;
}
.mf-pos-inline-checkout .mf-pay-tile.pay-btn.active {
  border: 2px solid var(--mf-accent);
  background: var(--mf-accent-bg);
}
.mf-pos-inline-checkout .mf-pay-tile__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 2rem;
}
.mf-pos-inline-checkout .mf-pay-tile__icon--balance,
.mf-pos-inline-checkout .mf-pay-tile__icon--scan,
.mf-pos-inline-checkout .mf-pay-tile__icon--other {
  background: transparent !important;
  color: #424242;
}
.mf-pos-inline-checkout .mf-pay-tile__icon--img-wrap {
  border: none !important;
  background: transparent !important;
}
.mf-pos-inline-checkout .mf-pay-tile__icon .mf-pay-tile__img {
  width: 48px;
  height: 48px;
  max-width: 100%;
  max-height: 100%;
}
/* 收银台：参考 POS 键盘 — 右侧删除占两行 + 黄色确定占两行 */
.mf-pos-inline-checkout .mf-keypad--pos-confirm {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(48px, 1fr));
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__btn {
  height: 100%;
  min-height: 48px;
  font-size: clamp(18px, 2.2vmin, 26px);
  font-weight: 600;
  padding: 0 6px;
  box-sizing: border-box;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r1c1 {
  grid-column: 1;
  grid-row: 1;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r1c2 {
  grid-column: 2;
  grid-row: 1;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r1c3 {
  grid-column: 3;
  grid-row: 1;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--del {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 2vmin, 22px);
  font-weight: 600;
  color: #424242;
  background: #fff;
  border: 1px solid #dcdfe6;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--del:hover {
  background: #f5f7fa;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r2c1 {
  grid-column: 1;
  grid-row: 2;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r2c2 {
  grid-column: 2;
  grid-row: 2;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r2c3 {
  grid-column: 3;
  grid-row: 2;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r3c1 {
  grid-column: 1;
  grid-row: 3;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r3c2 {
  grid-column: 2;
  grid-row: 3;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r3c3 {
  grid-column: 3;
  grid-row: 3;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--ok {
  grid-column: 4;
  grid-row: 3 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: clamp(18px, 2.4vmin, 26px);
  font-weight: 700;
  color: #1a1a1a;
  background: #ffc107;
  border: 1px solid #e2a200;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--ok:hover:not(:disabled) {
  background: #ffb300;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--ok:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__ok-hint {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r4c1 {
  grid-column: 1;
  grid-row: 4;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r4c2 {
  grid-column: 2;
  grid-row: 4;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__cell--r4c3 {
  grid-column: 3;
  grid-row: 4;
}
/* 实体键盘输入金额时，对应数字键短暂高亮 */
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__btn.mf-keypad__btn--lit {
  transition: background 0.04s ease, box-shadow 0.04s ease;
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__btn--lit:not(.mf-keypad__btn--ok):not(.mf-keypad__btn--del) {
  background: #e3f2fd;
  box-shadow: inset 0 0 0 2px var(--mf-primary-muted);
}
.mf-pos-inline-checkout .mf-keypad--pos-confirm .mf-keypad__btn--del.mf-keypad__btn--lit {
  background: #fce4ec;
  box-shadow: inset 0 0 0 2px #c2185b;
}
.mf-pos-inline-checkout.mf-checkout-inline--times {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.mf-checkout-times-flow {
  margin-bottom: 6px;
}
.mf-checkout-times-flow__info {
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 0;
}
.mf-pos-inline-checkout .mf-checkout-times-flow__info {
  padding: 8px 10px;
  margin-bottom: 6px;
}
.mf-pos-panel--checkout-form .mf-checkout-times-flow__info {
  padding: 8px 10px;
  margin-bottom: 6px;
}

.mf-pos-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 收银台：两栏共撑满一行，取消右侧 max-width 避免宽屏右侧留白 */
.mf-pos-page .mf-pos-wrap {
  width: 100%;
  align-items: stretch;
}

.mf-pos-page .mf-pos-left {
  flex: 1.15 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mf-pos-page .mf-pos-right {
  flex: 1 1 0;
  min-width: 260px;
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 1200px) {
  .mf-pos-page .mf-pos-wrap {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    min-height: calc(100vh - var(--mf-chrome-h) - 16px);
  }

  .mf-pos-page .mf-pos-right .mf-pos-product-grid {
    flex: 1 1 auto;
    min-height: 160px;
    align-content: start;
  }
}

/* 无商品「会员消费」页：覆盖上方通用规则，避免 .mf-pos-left flex:1.15 撑满视口把查询/订单顶出可视区 */
.mf-pos-page.mf-pos-page--fill .mf-pos-wrap {
  min-height: 0;
}
@media (min-width: 1200px) {
  .mf-pos-page.mf-pos-page--fill .mf-pos-wrap {
    min-height: 0;
  }
}
.mf-pos-page.mf-pos-page--fill .mf-pos-left {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
}
.mf-pos-page.mf-pos-page--fill .mf-pos-left > .mf-pos-main-split {
  flex: 1 1 auto;
  min-height: 0;
}
.mf-pos-panel--member {
  flex-shrink: 0;
  min-width: 0;
}
.mf-pos-panel--member .mf-panel__body {
  min-width: 0;
}

/* 会员消费：左侧「查询 + 订单」与右侧「收银台」并排 */
.mf-pos-main-split {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 6px 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.mf-pos-main-split__col--checkout {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.mf-pos-main-split .mf-pos-fill-area--checkout {
  margin-top: 0;
  padding: 4px 2px 8px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
/* 并排后不再吸附整块查询区（避免遮挡右侧收银台） */
.mf-pos-main-split .mf-pos-workspace-top {
  position: static;
  z-index: auto;
  padding-bottom: 0;
  margin-bottom: 0;
  background: transparent;
}
@media (max-width: 768px) {
  .mf-pos-main-split {
    grid-template-columns: 1fr;
  }
}

/* 购物车面板：表体区域 flex 增高，明细少时下方留白；多时内部滚动 */
.mf-pos-page .mf-pos-left > .mf-panel.mf-pos-cart-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.mf-pos-page .mf-pos-left > .mf-panel.mf-pos-cart-panel .mf-pos-cart-table-wrap {
  flex: 1 1 auto;
  min-height: 200px;
  overflow-x: auto;
  overflow-y: auto;
  background: #fff;
}

.mf-pos-page .mf-pos-left > .mf-panel.mf-pos-cart-panel .mf-panel__body {
  flex-shrink: 0;
}

/* 收银台：卡片间距收紧 */
.mf-pos-page--compact .mf-panel.mf-mb-3 {
  margin-bottom: 4px !important;
}
.mf-pos-page--compact .mf-panel.mf-mb-2 {
  margin-bottom: 4px !important;
}
.mf-pos-page--compact .mf-mt-3 {
  margin-top: 4px !important;
}
.mf-pos-page--compact .mf-mt-2 {
  margin-top: 4px !important;
}
.mf-pos-page--compact .mf-pos-footer-btns.mf-mt-3 {
  margin-top: 6px !important;
}
.mf-pos-page--compact .mf-panel__body {
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 8px;
  padding-right: 8px;
}
.mf-pos-page--compact .mf-form-item.mf-mb-2 {
  margin-bottom: 4px !important;
}
.mf-pos-page--compact .mf-pos-seg {
  margin-bottom: 4px;
}
.mf-pos-page--compact .mf-pos-main-split {
  gap: 4px 6px;
}
.mf-pos-page--compact .mf-pos-wrap.mf-gap-3 {
  gap: 6px !important;
}

.mf-pos-member-placeholder {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.mf-pos-member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 8px;
  align-items: stretch;
  min-width: 0;
  margin-bottom: 8px;
}
.mf-pos-member-layout__tabs {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.mf-pos-member-layout__tabs .mf-pos-seg {
  margin-bottom: 0;
}
.mf-pos-member-layout__search {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.mf-pos-member-layout__profile {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  min-height: 88px;
}
.mf-pos-member-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ebeef5;
  background: #f8fbff;
  padding: 6px 8px;
  height: 100%;
  min-height: 88px;
  box-sizing: border-box;
}
.mf-pos-member-card__empty {
  text-align: center;
  line-height: 1.5;
  font-size: 12px;
}
.mf-pos-member-card__empty .lbl {
  display: block;
  color: #78909c;
}
.mf-pos-member-card__empty .val {
  display: block;
  font-weight: 600;
  color: #90a4ae;
}
.mf-pos-member-card__body {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.mf-pos-member-card__body.mf-hidden {
  display: none !important;
}
.mf-pos-member-card__empty.mf-hidden {
  display: none !important;
}
.mf-pos-member-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mf-pos-member-search-row .mf-input {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 280px;
}
.mf-pos-member-search-row .mf-btn {
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mf-pos-member-card:has(.mf-pos-member-card__body:not(.mf-hidden)) {
  justify-content: flex-start;
}
.mf-pos-member-card__avatar-wrap {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}
.mf-pos-member-card__avatar {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
}
.mf-pos-member-card__avatar.mf-is-broken {
  display: none;
}
.mf-pos-member-card__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.mf-pos-member-card__line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.mf-pos-member-card__line .lbl {
  flex: 0 0 auto;
  color: #909399;
}
.mf-pos-member-card__line .val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-pos-member-info {
  border: 1px solid #ebeef5;
  border-radius: 0;
  padding: 6px 8px;
  background: #f8fbff;
}

.mf-pos-member-placeholder .lbl {
  color: #78909c;
  font-size: 12px;
}

.mf-pos-member-placeholder .val {
  font-weight: 600;
  color: #90a4ae;
  letter-spacing: 0.05em;
}

/* 会员信息：卡号/姓名/手机/余额/次数 同一行 */
.mf-pos-member-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.mf-pos-member-row::-webkit-scrollbar {
  height: 4px;
}
.mf-pos-member-item {
  flex: 0 0 auto;
  white-space: nowrap;
}
.mf-pos-member-item .lbl,
.mf-pos-member-item .mf-text-muted {
  margin-right: 4px;
}

.mf-category-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.35rem;
  padding-bottom: 6px;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.mf-category-scroll::-webkit-scrollbar {
  height: 4px;
}

.mf-chip {
  flex: 0 0 auto;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}

.mf-chip:hover {
  border-color: var(--mf-green);
  color: var(--mf-green-dark);
}

.mf-chip.active {
  background: var(--mf-accent-bg);
  border-color: var(--mf-accent);
  color: var(--mf-accent-dark);
  font-weight: 600;
}

/* 收银商品区：三列网格，间距紧凑 */
.mf-pos-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
@media (max-width: 1199px) {
  .mf-pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .mf-pos-product-grid {
    grid-template-columns: 1fr;
  }
}

.mf-product-card {
  cursor: pointer;
  border-radius: var(--mf-card-radius);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
  height: 100%;
  position: relative;
}

.mf-product-card:hover:not(.mf-product-card--posrow) {
  border-color: #cfd8dc;
  background: #fafafa;
}

/* 横向卡片：左图右文（与参考 ERP 一致） */
.mf-product-card--posrow {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 76px;
}

.mf-product-card--posrow:hover {
  border-color: #e0e0e0;
  background: #fff;
}

.mf-product-card__media {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  background: #eceff1;
  border-right: 1px solid #e8e8e8;
}

.mf-product-card--posrow .tag {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-size: 10px;
  padding: 1px 4px;
  line-height: 1.3;
  border: 1px solid currentColor;
  background: #fff;
  font-weight: 600;
}

.mf-product-card--posrow .tag.service {
  color: var(--mf-sidebar-active);
  border-color: var(--mf-accent-border);
}

.mf-product-card--posrow .tag.goods {
  color: #455a64;
  border-color: #90a4ae;
}

.mf-product-card--posrow .tag.package {
  color: #00695c;
  border-color: #4db6ac;
}

.mf-product-card__ph {
  height: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
}

.mf-product-card__img {
  width: 100%;
  height: 100%;
  min-height: 76px;
  object-fit: cover;
  display: block;
}

.mf-product-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px 6px 10px;
  background: #fff;
}

.mf-product-card__main {
  flex: 1;
  min-width: 0;
}

.mf-product-card--posrow .name {
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.mf-product-card--posrow .price-row {
  font-size: 12px;
  margin-top: 4px;
}

.mf-product-card--posrow .price-row .sale {
  color: #e53935;
  font-weight: 600;
}

.mf-product-card--posrow .price-row .mem {
  color: #fb8c00;
}

.mf-product-card__stock-wrap {
  align-self: flex-end;
  margin-top: 4px;
}

.mf-product-card--posrow .stock {
  font-size: 11px;
  color: var(--mf-primary-muted);
  font-weight: 500;
}

.mf-pos-search-wrap {
  position: relative;
}

.mf-pos-search-wrap .mf-input {
  padding-right: 72px;
  border-radius: 6px;
}

.mf-pos-search-wrap .btn-search-inner {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--mf-green);
  color: #fff;
  font-size: 13px;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.mf-pos-footer-btns .mf-btn--lg {
  min-width: 120px;
}

@media (max-width: 1199.98px) {
  .mf-pos-page .mf-pos-wrap {
    flex-direction: column;
  }
  .mf-pos-page .mf-pos-right {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --mf-topbar-h: 60px;
  }
  .mf-topbar-inner {
    padding: 0 6px 0 8px;
  }
  .mf-brand-title {
    display: none;
  }
  .mf-nav-link span {
    display: none;
  }
  .mf-nav-link {
    padding: 0 11px;
  }
  .mf-nav-link .mf-nav-fa {
    font-size: 1.35rem;
  }
  .mf-topbar-label {
    display: none;
  }
  .mf-topbar-actions .mf-topbar-item {
    min-width: 36px;
  }
}

.mf-checkout-modal .keypad-btn {
  min-height: 44px;
}

/* ---------- 收银台弹窗（参考云上铺布局） ---------- */
.mf-checkout-modal__body {
  padding: 16px 20px 20px;
}
.mf-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .mf-checkout-layout {
    grid-template-columns: 1fr;
  }
}
.mf-checkout-rows {
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.mf-checkout-rowline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.mf-checkout-rowline .lbl {
  color: #909399;
  font-size: 13px;
}
.mf-checkout-amt {
  font-size: 18px;
  font-weight: 700;
}
.mf-checkout-disc {
  width: 120px;
  text-align: right;
}
.mf-checkout-duebar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.mf-checkout-due-left strong {
  font-size: 22px;
  margin-left: 6px;
}
.mf-checkout-due-right {
  color: #e53935;
  font-size: 14px;
}
.mf-checkout-due-right strong {
  font-size: 16px;
  margin-left: 4px;
}
.mf-checkout-payfield {
  margin-top: 14px;
}
.mf-checkout-payfield-lbl {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 6px;
}
.mf-checkout-payinput {
  font-size: 20px;
  font-weight: 600;
  text-align: right;
  padding: 10px 12px;
  border-radius: 6px;
}
.mf-pay-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mf-pay-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 8px 4px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.mf-pay-tile:hover:not(:disabled) {
  border-color: #bdbdbd;
}
.mf-pay-tile:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mf-pay-tile.pay-btn.active {
  border: 2px solid var(--mf-accent);
  background: var(--mf-accent-bg);
}
.mf-pay-tile--spacer {
  visibility: hidden;
  min-height: 0;
  border: none;
  padding: 0;
  pointer-events: none;
}
.mf-pay-tile__icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.mf-pay-tile__icon--cash {
  background: #fff8e1;
  color: #f57c00;
}
.mf-pay-tile__icon--balance {
  background: #eceff1;
  color: #546e7a;
}
.mf-pay-tile__icon--union {
  background: #e3f2fd;
  color: var(--mf-primary-dark);
}
.mf-pay-tile__icon--scan {
  background: #f3e5f5;
  color: #7b1fa2;
}
.mf-pay-tile__icon--wechat {
  background: #07c160;
  position: relative;
}
.mf-pay-tile__icon--wechat::before,
.mf-pay-tile__icon--wechat::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 9px;
}
.mf-pay-tile__icon--wechat::before {
  left: 7px;
}
.mf-pay-tile__icon--wechat::after {
  right: 7px;
}
.mf-pay-tile__icon--alipay {
  background: #1677ff;
  color: #fff;
}
.mf-alipay-zhi {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.mf-pay-tile__icon--other {
  background: #fafafa;
  color: #757575;
}
.mf-pay-tile__icon--img-wrap {
  background: transparent;
  border: none;
  overflow: visible;
}
.mf-pay-tile__icon .mf-pay-tile__img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.mf-pay-tile__txt {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}
.mf-pay-tile__key {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  color: #9e9e9e;
  font-weight: 500;
}
.mf-keypad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.mf-keypad__btn {
  min-height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  font-family: inherit;
}
.mf-keypad__btn:hover {
  background: #f5f5f5;
}
.mf-keypad__btn--note {
  font-size: 13px;
  font-weight: 600;
  color: var(--mf-primary-muted);
  background: #f5f9ff;
}
.mf-keypad__btn--danger {
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
  background: #ffebee;
}
.mf-checkout-footer {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-end;
}
.mf-checkout-footer .mf-checkout-confirm {
  flex: 1;
  min-width: 0;
}
.mf-kbd-hint {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 400;
  margin-left: 4px;
}

/* 主内容区：面板横向铺满可用宽度 */
body.mf-app .mf-content .mf-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ---------- 全局丝滑过渡（页面/导航/卡片） ---------- */
/* ---------- 全局丝滑过渡（页面/导航/卡片） ---------- */
@keyframes mf-page-enter {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
body.mf-app .mf-main > .mf-content {
  animation: mf-page-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mf-btn {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.15s ease;
}
.mf-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.mf-panel {
  transition: border-color 0.2s ease;
}
.mf-dropdown__menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  body.mf-app .mf-main > .mf-content {
    animation: none;
  }
  .mf-btn,
  .mf-panel {
    transition: none;
  }
}

/* ---------- 全局直角、无阴影（所有组件） ---------- */
body.mf-app,
body.mf-app *,
.mf-login-page,
.mf-login-page *,
.mf-install-wrap,
.mf-install-wrap * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.mf-app .mf-nav-link {
  border-radius: 0 !important;
}

/* Toast：无描边、透明图标（登录页 + 后台统一） */
body.mf-app .mf-toast,
.mf-login-page .mf-toast {
  border: none !important;
}
body.mf-app .mf-toast__icon,
.mf-login-page .mf-toast__icon {
  background: transparent !important;
}

body.mf-app .mf-panel {
  margin-bottom: 12px;
}

/* 面板：无描边 */
body.mf-app .mf-panel,
body.mf-app .mf-stat-card {
  border: none !important;
}

body.mf-app .mf-modal__box {
  border: 1px solid #dcdfe6;
}

body.mf-app .mf-confirm__box {
  border: 1px solid #ebeef5;
}

/* 主内容区内边距 */
body.mf-app .mf-main > .mf-content {
  padding: 16px 20px 24px !important;
}

/* ---------- 仪表盘彩色统计卡（参考 ERP 大屏） ---------- */
body.mf-app .mf-stat-dashboard {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  body.mf-app .mf-stat-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  body.mf-app .mf-stat-dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
body.mf-app .mf-stat-tile {
  position: relative;
  border: none;
  border-radius: 0 !important;
  padding: 12px 12px 30px;
  min-height: 98px;
  color: #fff;
  overflow: hidden;
  box-shadow: none !important;
}
body.mf-app .mf-stat-tile__label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
body.mf-app .mf-stat-tile__value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02em;
}
/* 昨日 / 上月对比（参考数据大屏小字） */
body.mf-app .mf-stat-tile__compare {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  opacity: 0.86;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
body.mf-app .mf-stat-tile__icon {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 1.8rem;
  opacity: 0.2;
  line-height: 1;
}
body.mf-app .mf-stat-tile--sky {
  background: #42a5f5;
}
body.mf-app .mf-stat-tile--indigo {
  background: #5c6bc0;
}
body.mf-app .mf-stat-tile--green {
  background: #66bb6a;
}
body.mf-app .mf-stat-tile--orange {
  background: #ffa726;
}
body.mf-app .mf-stat-tile--violet {
  background: #ab47bc;
}
body.mf-app .mf-stat-tile--amber {
  background: #fb8c00;
}

/* ---------- 会员充值 / 钱包页 ---------- */
.mf-wallet-tabs .mf-wallet-tab {
  border: 1px solid #dcdfe6;
  background: #fff;
  padding: 8px 18px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  margin: 0;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 0;
}
.mf-wallet-tabs .mf-wallet-tab.active {
  background: var(--mf-accent);
  border-color: var(--mf-accent);
  color: #fff;
  font-weight: 600;
}
.mf-wallet-money.mf-input-group .mf-input-group__prepend,
.mf-wallet-money.mf-input-group .mf-input-group__append {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  background: #f5f7fa;
  font-size: 13px;
  color: #606266;
  flex-shrink: 0;
}
.mf-wallet-money.mf-input-group .mf-input-group__prepend {
  border-right: 0;
}
.mf-wallet-money.mf-input-group .mf-input-group__append {
  border-left: 0;
}
.mf-wallet-money.mf-input-group .mf-input {
  flex: 1;
  min-width: 0;
  border-radius: 0;
}

/* 会员注销等：搜索区居中、每项独占一行 */
.mf-member-search-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 12px;
  width: 100%;
}
.mf-member-search-stack__label {
  width: 100%;
  margin: 0;
  font-size: 14px;
  color: #606266;
}
.mf-member-search-stack__input {
  width: 100%;
  box-sizing: border-box;
}
.mf-member-search-stack__btn {
  width: 100%;
  max-width: 200px;
  justify-content: center;
}

/* 会员注销 / 会员充值：搜索页白色卡片纵向铺满 */
body.mf-app:has(.mf-member-cancel-page) .mf-main > .mf-content,
body.mf-app:has(.mf-member-recharge-page) .mf-main > .mf-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--mf-chrome-h));
  box-sizing: border-box;
}
.mf-member-cancel-page,
.mf-member-recharge-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}
.mf-member-cancel-page > .mf-alert,
.mf-member-recharge-page > .mf-alert {
  flex-shrink: 0;
}
.mf-member-cancel-panel,
.mf-member-recharge-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}
.mf-member-cancel-panel > .mf-panel__body,
.mf-member-cancel-panel__body,
.mf-member-recharge-panel > .mf-panel__body,
.mf-member-recharge-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}
.mf-member-cancel-panel__body--top,
.mf-member-recharge-panel__body--top {
  justify-content: flex-start;
  align-items: stretch;
  padding: 20px 24px 24px;
}
.mf-member-cancel-stage,
.mf-member-recharge-stage {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.mf-member-cancel-page .mf-member-search-stack,
.mf-member-recharge-page .mf-member-search-stack {
  flex-shrink: 0;
  margin-bottom: 0;
}
.mf-member-recharge-detail__heading {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}
.mf-member-recharge-detail__grid {
  margin-bottom: 0;
}
.mf-member-cancel-detail {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.mf-member-cancel-detail__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  text-align: center;
}
.mf-member-cancel-detail__grid {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #ebeef5;
  background: #fafafa;
}
.mf-member-cancel-detail__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f5;
}
.mf-member-cancel-detail__row:last-child {
  border-bottom: none;
}
.mf-member-cancel-detail__row--full {
  grid-template-columns: 1fr;
}
.mf-member-cancel-detail__row--full dt {
  margin-bottom: 4px;
}
.mf-member-cancel-detail__row dt {
  margin: 0;
  font-size: 13px;
  color: #909399;
  font-weight: 500;
}
.mf-member-cancel-detail__row dd {
  margin: 0;
  font-size: 14px;
  color: #303133;
  word-break: break-word;
}
.mf-member-cancel-detail__actions {
  padding-top: 4px;
}
.mf-member-cancel-pick {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.mf-member-cancel-pick__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mf-member-cancel-pick__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #dcdfe6;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mf-member-cancel-pick__item:hover {
  border-color: var(--mf-accent);
  background: var(--mf-accent-bg);
}
.mf-member-cancel-pick__name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.mf-member-cancel-pick__meta {
  font-size: 13px;
  color: #606266;
  line-height: 1.4;
}

/* 登录/安装页（无 mf-app 包裹） */
.mf-login-page .mf-panel,
.mf-login-page .mf-input,
.mf-login-page .mf-btn,
.mf-login-page .mf-alert,
.mf-login-page .mf-logo,
.mf-login-page .mf-logo-yin,
.mf-install-wrap .mf-panel,
.mf-install-wrap .mf-input,
.mf-install-wrap .mf-btn,
.mf-install-wrap .mf-alert {
  border-radius: 0 !important;
}

/* ---------- 登录页（白底 + 左图右表单，与 gb 一致） ---------- */
.mf-login-page.mf-login-page--cloud {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
}

.mf-login-cloud {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mf-login-cloud__header {
  flex-shrink: 0;
  background: #fff;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
  padding: 18px clamp(16px, 3vw, 40px) 12px;
}

.mf-login-cloud__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.mf-login-cloud__header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mf-login-cloud__header-utils {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.mf-login-cloud__util {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #606266;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mf-login-cloud__util:hover {
  color: var(--mf-accent);
}

.mf-login-cloud__util .bi {
  font-size: 1.15rem;
}

.mf-login-cloud__logo--img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.mf-login-cloud__logo--mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 0;
  font-size: 1.85rem;
  color: #fff;
  background: var(--mf-accent);
}

.mf-login-cloud__header-title {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
}

.mf-login-cloud__hero {
  position: relative;
  flex: 1;
  background: #fff;
  padding: 24px 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-login-cloud__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  min-height: 420px;
}

.mf-login-cloud__visual {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: linear-gradient(145deg, #f7fbff 0%, #eef6ff 100%);
}

.mf-login-cloud__visual-img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.mf-login-cloud__card {
  flex: 0 0 400px;
  width: 400px;
  max-width: 100%;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 32px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.mf-login-cloud__tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #eef1f5;
  padding: 0 36px;
}

.mf-login-cloud__tab {
  display: inline-block;
  padding: 22px 4px 14px;
  margin-right: 28px;
  font-size: 16px;
  color: #909399;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: default;
  user-select: none;
}

.mf-login-cloud__tab.is-active {
  color: var(--mf-accent);
  font-weight: 600;
  border-bottom-color: var(--mf-accent);
}

.mf-login-cloud__form {
  padding: 28px 36px 0;
  flex: 1;
}

.mf-login-cloud__field {
  margin-bottom: 8px;
}

.mf-login-cloud__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-bottom: 1px solid #e4e7ed;
  border-radius: 0;
  padding: 14px 0 10px;
  background: transparent;
  transition: border-color 0.15s ease;
}

.mf-login-cloud__input-wrap:focus-within {
  border-bottom-color: var(--mf-accent);
  box-shadow: none;
}

.mf-login-cloud__input-wrap > .bi {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #c0c4cc;
}

.mf-login-cloud__input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: #303133;
  outline: none;
  border-radius: 0 !important;
}

.mf-login-cloud__input::placeholder {
  color: #c0c4cc;
}

.mf-login-cloud__remember-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 18px 0 22px;
}

.mf-login-cloud__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  user-select: none;
}

.mf-login-cloud__remember input {
  width: 14px;
  height: 14px;
  accent-color: var(--mf-accent);
  cursor: pointer;
}

.mf-login-cloud__submit {
  width: 100%;
  border: none;
  border-radius: 0;
  background: var(--mf-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.mf-login-cloud__submit:hover {
  background: var(--mf-accent-dark);
}

.mf-login-cloud__submit:active {
  transform: translateY(1px);
}

.mf-login-cloud__footer {
  flex-shrink: 0;
  background: #fff;
  border-top: none;
  padding: 8px 20px 24px;
}

.mf-login-cloud__copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #c0c4cc;
}

@media (max-width: 900px) {
  .mf-login-cloud__header-utils {
    display: none;
  }

  .mf-login-cloud__hero-inner {
    flex-direction: column;
    max-width: 420px;
    min-height: 0;
  }

  .mf-login-cloud__visual {
    flex: 0 0 auto;
    min-height: 200px;
    padding: 24px;
  }

  .mf-login-cloud__visual-img {
    max-height: 220px;
  }

  .mf-login-cloud__card {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .mf-login-cloud__hero {
    padding: 16px 12px 32px;
  }

  .mf-login-cloud__tabs,
  .mf-login-cloud__form {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ---------- 营收报表：四卡横向 ---------- */
.mf-report-revenue-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.mf-report-revenue-cards__item {
  min-width: 0;
  height: 100%;
}
@media (max-width: 1100px) {
  .mf-report-revenue-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .mf-report-revenue-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 营收报表：支付方式入口 ---------- */
.mf-report-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.mf-report-pay-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #ebeef5;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.mf-report-pay-cell:hover {
  border-color: var(--mf-green, #67c23a);
  background: #f9fff5;
}
.mf-report-pay-cell__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.mf-report-pay-cell__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #606266;
}
.mf-report-pay-cell__icon .bi {
  font-size: 1.35rem;
  line-height: 1;
}
.mf-report-pay-cell__icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.mf-report-pay-cell__name {
  font-weight: 600;
  color: #303133;
  font-size: 14px;
  min-width: 0;
}
.mf-report-pay-cell__amt {
  font-size: 1.2rem;
  font-weight: 600;
  color: #67c23a;
  margin-top: 8px;
}
.mf-report-pay-cell__cnt {
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}
.mf-report-pay-cell__hint {
  font-size: 11px;
  color: #c0c4cc;
  margin-top: 8px;
}

/* 营收报表：周期按钮与自定义日期同一行 */
.mf-report-pay-toolbar__controls {
  justify-content: flex-end;
}
.mf-report-custom-inline {
  margin: 0;
}
.mf-report-custom-inline__lbl-txt {
  white-space: nowrap;
}
.mf-input-icon-date {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.mf-input-icon-date .bi {
  position: absolute;
  left: 8px;
  font-size: 0.95rem;
  color: #909399;
  pointer-events: none;
  z-index: 1;
}
.mf-input-icon-date .mf-input {
  padding-left: 28px;
  min-width: 148px;
}
