:root {
  --mf-green: #4caf50;
  --mf-green-dark: #43a047;
  --mf-green-sidebar-active: #2e7d32;
  --mf-sidebar: #2c333e;
  --mf-sidebar-hover: #3d4654;
  --mf-bg: #f4f4f4;
  --mf-card-radius: 0;
}

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: flex;
  align-items: stretch;
  min-height: calc(100vh - 50px);
}

.mf-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  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: #1976d2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mf-order-no-btn:hover {
  color: #1565c0;
}

/* 订单列表：筛选工具条（标签与控件同一行） */
.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: #21ca63;
  background-image: none;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mf-topbar-inner {
  min-height: 50px;
}

.mf-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  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: cover;
  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: 56px;
  height: 56px;
}

.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.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

@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: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.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: 8px;
  padding: 0 4px;
}

.mf-sidebar {
  width: 228px;
  min-height: calc(100vh - 50px);
  background: var(--mf-sidebar);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* 侧栏菜单区：左右无内边距，项背景铺满栏宽 */
.mf-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 0 12px;
}

.mf-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0 0 3px;
  transition: background 0.22s ease, color 0.22s ease;
}

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

.mf-nav-link:hover {
  background: var(--mf-sidebar-hover);
  color: #fff;
}

.mf-nav-link.active {
  background: var(--mf-green-sidebar-active);
  color: #fff;
  font-weight: 600;
}

.mf-nav-link i {
  font-size: 1.15rem;
  opacity: 0.95;
  width: 1.25rem;
  text-align: center;
}

/* 侧栏 Font Awesome：略小众图标 + 默认彩色，激活项变白 */
.mf-nav-link .mf-nav-fa {
  font-size: 1.05rem;
  width: 1.35rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 1;
}
.mf-nav-fa--dashboard { color: #5eead4; }
.mf-nav-fa--pos { color: #fcd34d; }
.mf-nav-fa--wallet { color: #86efac; }
.mf-nav-fa--ledger { color: #c4b5fd; }
.mf-nav-fa--members { color: #f9a8d4; }
.mf-nav-fa--memberadd { color: #7dd3fc; }
.mf-nav-fa--products { color: #fda4af; }
.mf-nav-fa--orders { color: #fde047; }
.mf-nav-fa--report { color: #93c5fd; }
.mf-nav-fa--system { color: #fdba74; }
.mf-nav-link:hover .mf-nav-fa {
  filter: brightness(1.12);
}
.mf-nav-link.active .mf-nav-fa {
  color: #fff !important;
  filter: none;
  opacity: 0.95;
}

.mf-main {
  min-width: 0;
  min-height: 0;
  background: var(--mf-bg);
}

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

/* 会员消费：顶栏下主区占满剩余视口，仅 .mf-content--pos 内纵向滚动（避免整页 flex 把收银台压扁 + .mf-panel overflow 裁切） */
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 {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-shell > .mf-main {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-main > .mf-tabstrip {
  flex-shrink: 0;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-main > .mf-content.mf-content--pos {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 列表筛选行：输入框与查询/重置/新增 底部对齐且同一行（避免子项 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;
}

.mf-tabstrip {
  min-height: 40px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding-top: 6px;
  padding-bottom: 6px;
}
.mf-tabstrip--main {
  flex-wrap: nowrap;
  min-width: 0;
}
.mf-tabstrip__scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.mf-tabstrip__scroll .mf-tab {
  flex-shrink: 0;
}

.mf-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mf-tab:hover {
  background: #f5f5f5;
  color: #333;
}

.mf-tab.active {
  background: #eceff1;
  color: #1b5e20;
  font-weight: 600;
  border-color: #e0e0e0;
  border-bottom: 1px solid #eceff1;
  margin-bottom: -1px;
}

.mf-tab-x {
  font-size: 16px;
  line-height: 1;
  opacity: 0.5;
  margin-left: 2px;
}

.mf-tab.active .mf-tab-x {
  opacity: 0.7;
}

.table-mf thead th {
  background: #f5f6f8;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid #e9ecef;
}

/* 收银购物车：无商品时占位（参考 ERP 居中灰字） */
.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;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.mf-app:has(.mf-content.mf-content--pos) .mf-main > .mf-tabstrip.mf-tabstrip--main {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* 会员消费（无商品栏）：按内容增高，由 .mf-content--pos 滚动，避免内部 flex:1 把底部收银台挤扁 */
.mf-pos-page--fill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

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

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

.mf-pos-page--fill .mf-pos-fill-area {
  flex: 1 1 auto;
  min-height: 160px;
  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__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: visible;
}
.mf-pos-inline-checkout {
  width: 100%;
  border: 1px solid #dcdfe6;
  background: #fff;
}
/* 内联收银台：左栏信息 + 右栏支付方式与键盘（参考常见 POS） */
.mf-pos-inline-checkout .mf-panel__header {
  background: var(--mf-green);
  color: #fff;
  padding: 8px 12px;
  border-bottom: none;
}
.mf-pos-inline-checkout .mf-panel__header .mf-fw-bold {
  color: #fff;
}
.mf-pos-inline-checkout .mf-panel__body {
  padding: 6px 8px 8px;
  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: 10px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* 左栏：消费信息（金额/备注/应收等） */
.mf-pos-panel--checkout-form .mf-checkout-rows {
  padding-top: 8px;
}
.mf-pos-panel--checkout-form .mf-checkout-duebar {
  margin-top: 4px;
  padding: 8px 0;
}
.mf-pos-panel--checkout-form .mf-checkout-payfield {
  margin-top: 4px;
}
.mf-pos-panel--checkout-form .mf-checkout-payinput {
  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: 72px;
  padding: 8px 4px 6px;
  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-green, #67c23a);
  background: #f1f8e9;
}
.mf-pos-inline-checkout .mf-pay-tile__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  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 #1976d2;
}
.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;
}

/* 收银台：两栏共撑满一行，取消右侧 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;
    /* 两栏同高，购物车区纵向撑满，有商品时表格外仍有留白（同参考 ERP） */
    min-height: calc(100vh - 124px);
  }

  .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: 0 0 auto;
  flex-grow: 0;
  flex-shrink: 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
}

/* 会员消费：左侧「查询 + 订单」与右侧「收银台」并排 */
.mf-pos-main-split {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
.mf-pos-main-split__col--search {
  align-self: start;
  min-width: 0;
}
.mf-pos-main-split__col--checkout {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.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: 6px !important;
}
.mf-pos-page--compact .mf-panel.mf-mb-2 {
  margin-bottom: 5px !important;
}
.mf-pos-page--compact .mf-mt-3 {
  margin-top: 6px !important;
}
.mf-pos-page--compact .mf-mt-2 {
  margin-top: 5px !important;
}
.mf-pos-page--compact .mf-pos-footer-btns.mf-mt-3 {
  margin-top: 8px !important;
}
.mf-pos-page--compact .mf-panel__body {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

.mf-pos-member-placeholder {
  border: 1px dashed #aad2ff;
  border-radius: 0;
  padding: 0.35rem 0.6rem;
  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: #e8f5e9;
  border-color: var(--mf-green);
  color: #1b5e20;
  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: #2e7d32;
  border-color: #81c784;
}

.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: #1976d2;
  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) {
  .mf-sidebar {
    width: 56px;
  }
  .mf-nav-link span {
    display: none;
  }
  .mf-nav-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .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-green);
  background: #f1f8e9;
}
.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: #1565c0;
}
.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: #1976d2;
  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,
  .mf-product-card {
    transition: none;
  }
}

/* ---------- 全局直角（扁平 ERP，无圆角） ---------- */
body.mf-app .mf-panel,
body.mf-app .mf-panel__body,
body.mf-app .mf-input,
body.mf-app .mf-textarea,
body.mf-app .mf-select,
body.mf-app .mf-btn,
body.mf-app .mf-table,
body.mf-app .mf-modal__box,
body.mf-app .mf-modal__close,
body.mf-app .mf-alert,
body.mf-app .mf-dropdown__menu,
body.mf-app .mf-tab,
body.mf-app .mf-product-card,
body.mf-app .mf-chip,
body.mf-app .mf-tag,
body.mf-app .mf-stat-card,
body.mf-app .mf-keypad__btn,
body.mf-app .mf-pay-tile,
body.mf-app .btn-search-inner,
body.mf-app .mf-toast,
body.mf-app .mf-confirm__box,
body.mf-app .mf-nav-link,
body.mf-app .mf-logo,
body.mf-app .mf-logo-yin,
body.mf-app .mf-badge,
body.mf-app .mf-toast__icon,
body.mf-app .mf-product-card .tag,
body.mf-app .mf-input-group .mf-input,
body.mf-app .mf-input-group .mf-btn,
body.mf-app .mf-input-group__prepend,
body.mf-app .mf-input-group__append,
body.mf-app .mf-pagination a,
body.mf-app .mf-pagination button,
body.mf-app .mf-checkout-payinput,
body.mf-app .mf-topbar-item,
body.mf-app .mf-pay-tile__icon,
body.mf-app .mf-pos-search-wrap .mf-input,
body.mf-app .mf-alipay-zhi {
  border-radius: 0 !important;
}

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

/* 扁平：卡片/模块无悬浮阴影 */
body.mf-app .mf-panel,
body.mf-app .mf-stat-card {
  box-shadow: none !important;
}
body.mf-app .mf-dropdown__menu {
  box-shadow: none !important;
}
body.mf-app .mf-modal__box {
  box-shadow: none !important;
  border: 1px solid #dcdfe6;
}
body.mf-app .mf-toast {
  box-shadow: none !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
body.mf-app .mf-confirm__box {
  box-shadow: none !important;
  border: 1px solid #ebeef5;
}

/* ---------- 仪表盘彩色统计卡（参考 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;
  padding: 12px 12px 30px;
  min-height: 98px;
  color: #fff;
  overflow: hidden;
  box-shadow: none;
}
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 #e0e0e0;
  background: #fff;
  padding: 8px 18px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  margin: 0;
}
.mf-wallet-tabs .mf-wallet-tab.active {
  background: #ff6633;
  border-color: #ff6633;
  color: #fff;
  font-weight: 600;
}
.mf-wallet-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) {
  .mf-wallet-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mf-wallet-amount-card {
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  line-height: 1.35;
}
.mf-wallet-amount-card .amt {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #e53935;
}
.mf-wallet-amount-card .gift {
  display: block;
  font-size: 12px;
  color: #78909c;
  margin-top: 4px;
}
.mf-wallet-amount-card.is-active {
  border-color: #ff6633;
  box-shadow: inset 0 0 0 2px #ff6633;
}
.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-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;
}

/* ---------- 登录页（绿底横幅 + 白卡片，参考云上铺风格） ---------- */
/* 覆盖 mf-ui.css 中 .mf-login-page 的居中+内边距+渐变底，否则整页会被挤在中间、样式错乱 */
.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: 1px solid #e8ecf0;
  padding: 12px clamp(16px, 4vw, 48px);
}

.mf-login-cloud__header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.mf-login-cloud__logo--img img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.mf-login-cloud__logo--mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #2ecc71 0%, #f1c40f 100%);
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.35);
}

.mf-login-cloud__header-title {
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
}

.mf-login-cloud__hero {
  position: relative;
  flex: 1;
  background: #2ecc71;
  background-image: radial-gradient(ellipse 120% 80% at 20% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 85% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px);
  padding-bottom: clamp(72px, 14vh, 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mf-login-cloud__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mf-login-cloud__hero-bg::before,
.mf-login-cloud__hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  background: #fff;
}

.mf-login-cloud__hero-bg::before {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  left: -8%;
}

.mf-login-cloud__hero-bg::after {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  bottom: 5%;
  left: 35%;
}

.mf-login-cloud__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.mf-login-cloud__pitch {
  flex: 1 1 320px;
  min-width: 0;
  color: #fff;
}

.mf-login-cloud__pitch-title {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mf-login-cloud__features {
  max-width: 420px;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
}

.mf-login-cloud__card {
  flex: 0 1 380px;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 28px 28px 26px;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(-56px, -8vh, -40px);
}

.mf-login-cloud__card-title {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 600;
  color: #3d4a5c;
}

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

.mf-login-cloud__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mf-login-cloud__input-wrap:focus-within {
  border-color: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.18);
}

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

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

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

.mf-login-cloud__remember-row {
  margin: 4px 0 18px;
}

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

.mf-login-cloud__remember input {
  width: 16px;
  height: 16px;
  accent-color: #2ecc71;
  cursor: pointer;
}

.mf-login-cloud__submit {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #f39c12;
  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: #e67e22;
}

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

.mf-login-cloud__footer {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(48px, 9vh, 72px) 16px 24px;
  background: #fff;
  border-top: 1px solid #eef1f4;
}

.mf-login-cloud__slogan {
  margin: 0 0 8px;
  font-size: 14px;
  color: #7f8c8d;
  font-style: italic;
}

.mf-login-cloud__copy {
  margin: 0;
  font-size: 12px;
  color: #a4a4a4;
}

@media (max-width: 767.98px) {
  .mf-login-cloud__hero {
    padding-bottom: clamp(48px, 10vh, 88px);
  }

  .mf-login-cloud__hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-login-cloud__card {
    max-width: none;
    margin-bottom: -32px;
  }

  .mf-login-cloud__footer {
    padding-top: 44px;
  }

  .mf-login-cloud__pitch-title {
    font-size: 1.35rem;
  }
}

/* ---------- 营收报表：四卡横向 ---------- */
.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;
}
