/* 统一移动端壳 — 底栏导航 + 资金余额 */
.m-unified-app.m-app--with-nav {
  padding-bottom: calc(112px + var(--m-safe-bottom));
}

.m-unified-app.m-app--with-nav.m-app--detail {
  padding-bottom: calc(128px + var(--m-safe-bottom));
}

/* OA 审批底栏：抬至底栏导航之上，避免挡住内容且与现场作业条一致 */
.m-unified-app .m-bar {
  bottom: calc(56px + var(--m-safe-bottom));
  z-index: 35;
}

.m-unified-app.m-app--with-nav.m-app--detail.m-app--oa-action {
  padding-bottom: calc(180px + var(--m-safe-bottom));
}

.m-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: var(--m-surface);
  border-top: 1px solid var(--m-border);
  padding-bottom: var(--m-safe-bottom);
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
}

.m-bottom-nav__btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px 6px;
  font-size: 11px;
  color: var(--m-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.m-bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
}

.m-nav-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.m-tab {
  position: relative;
}

.m-tab-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: middle;
  text-align: center;
}

.m-tab-badge.hidden {
  display: none;
}

.m-bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.m-bottom-nav__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.m-bottom-nav__btn--active {
  color: var(--m-brand);
  font-weight: 600;
}

.m-bottom-nav__btn--active .m-bottom-nav__icon {
  color: var(--m-brand);
}

.m-bottom-nav__label {
  line-height: 1.2;
}

.m-cash-meta {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--m-muted);
}

.m-cash-total {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--m-surface);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.m-cash-total span {
  display: block;
  font-size: 22px;
  margin-top: 4px;
  color: var(--m-brand);
}

.m-cash-strip {
  background: var(--m-surface);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.m-cash-strip__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.m-cash-strip__name {
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-cash-strip__amt {
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.m-cash-strip__pct {
  font-size: 12px;
  color: var(--m-muted);
  margin-bottom: 6px;
}

.m-cash-strip__track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.m-cash-strip__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0369a1, #0ea5e9);
  border-radius: 3px;
}
