/* 生鲜店账本 · 手机优先视觉样式 */
:root {
  --brand: #14805A;
  --brand-d: #0E5C40;
  --brand-l: #E8F5EE;
  --brand-grad: linear-gradient(135deg, #0F6B48 0%, #17855B 52%, #24A06E 100%);
  --income: #0B9A68;
  --expense: #D95345;
  --amber: #C9830B;
  --blue: #2E6FD9;
  --ink: #17241E;
  --ink-2: #435249;
  --muted: #8B9A91;
  --line: #E7ECE8;
  --bg: #F4F7F4;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(16, 50, 34, .05), 0 1px 2px rgba(16, 50, 34, .04);
  --shadow-lg: 0 16px 44px rgba(9, 40, 26, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
input, select, button, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  display: inline-block; width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--income); }
.down { color: var(--expense); }
.ok { color: var(--income); }
.warn { color: var(--amber); }
.bad { color: var(--expense); font-weight: 700; }
.muted { color: var(--muted); font-size: 12px; font-weight: 400; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ================= 登录 ================= */
.login-wrap {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 22px;
  background:
    radial-gradient(760px 480px at 12% -12%, #1E9A6B 0%, transparent 62%),
    radial-gradient(680px 500px at 108% 108%, #063C29 0%, transparent 58%),
    #0B4E37;
}
.login-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.login-glow-a {
  width: 320px; height: 320px; top: -120px; right: -110px;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, .045);
}
.login-glow-b {
  width: 210px; height: 210px; bottom: -80px; left: -70px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
.login-card {
  position: relative; width: 100%; max-width: 390px;
  background: rgba(255, 255, 255, .975);
  border-radius: 26px; padding: 30px 26px 24px;
  box-shadow: 0 24px 60px rgba(3, 26, 16, .34);
  animation: fadeUp .4s ease both;
}
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 17px;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(20, 128, 90, .3);
}
.brand-mark .ico { width: 29px; height: 29px; stroke-width: 1.7; }
.brand-text b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-d); }
.brand-text span { display: block; font-size: 10px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.login-card h1 { text-align: center; font-size: 23px; font-weight: 750; margin: 24px 0 4px; letter-spacing: -.02em; }
.login-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 26px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.btn-login {
  height: 50px; margin-top: 20px; border-radius: 14px;
  background: var(--brand-grad); color: #fff;
  justify-content: space-between; padding: 0 20px;
  box-shadow: 0 10px 24px rgba(15, 92, 64, .28);
  font-size: 15px; letter-spacing: .12em;
}
.btn-login .ico { width: 18px; height: 18px; }
.login-hint { text-align: center; font-size: 11px; color: var(--muted); margin-top: 16px; }
.login-foot { position: relative; margin-top: 22px; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .04em; }

/* ================= 输入 / 按钮 ================= */
.ipt {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #FAFCFB; outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
}
.ipt::placeholder { color: #AEBAB2; }
.ipt:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(20, 128, 90, .11); }
.ipt:disabled { background: #F3F6F4; color: var(--muted); }
.ipt-num { font-variant-numeric: tabular-nums; }
.ipt-lg { font-size: 27px; padding: 12px 14px; font-weight: 750; letter-spacing: -.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border: none; border-radius: 12px;
  font-weight: 650; background: #EFF3F0; color: var(--ink);
  transition: transform .06s, box-shadow .16s, opacity .16s;
}
.btn .ico { width: 16px; height: 16px; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; margin: 8px 0; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 12px rgba(15, 92, 64, .18); }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); box-shadow: none; }
.btn-sm { padding: 9px 13px; font-size: 12.5px; border-radius: 10px; }
.btn-sm .ico { width: 14px; height: 14px; }
.btn-xs { padding: 5px 11px; font-size: 11.5px; border-radius: 8px; }
.btn-danger { background: #FCEDEB; color: var(--expense); }
.btn-income { background: #E8F7EF; color: var(--income); }
.btn-expense { background: #FCEDEB; color: var(--expense); }
.btn-transfer { background: #EAF1FD; color: var(--blue); }
.btn-withdraw { background: #FDF2DF; color: var(--amber); }
.btn-close { margin: 6px 0 12px; padding: 15px; font-size: 15px; border-radius: 15px; }
.btn-close .ico { width: 18px; height: 18px; }

.icon-btn {
  width: 34px; height: 34px; flex-shrink: 0; border: 1.5px solid var(--line);
  border-radius: 11px; background: #fff; color: var(--ink-2);
  display: grid; place-items: center;
}
.icon-btn .ico { width: 17px; height: 17px; }
.icon-btn-primary { background: var(--brand-l); border-color: #CFE9DA; color: var(--brand-d); }

/* ================= 顶部 / 导航 ================= */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 236, 232, .9);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-logo {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--brand-grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(15, 92, 64, .22);
}
.topbar-logo .ico { width: 20px; height: 20px; }
.topbar-title { font-weight: 750; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 8px 3px 3px;
}
.user-avatar {
  width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.user-chip-name { font-size: 12px; font-weight: 600; }

.tag { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.tag-boss { background: #FDF0D8; color: #A66C08; }
.tag-staff { background: #E7EDFD; color: #3B53B0; }
.tag-ok { background: #DFF4E8; color: var(--income); }
.tag-off { background: #F0F2F0; color: var(--muted); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(16, 50, 34, .05);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 9px; font-size: 10.5px;
  color: var(--muted); cursor: pointer; user-select: none; position: relative;
  transition: color .16s;
}
.tab .ico { width: 21px; height: 21px; stroke-width: 1.85; }
.tab.active { color: var(--brand); font-weight: 700; }
.tab.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}

.page { padding: 15px 14px 96px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 750; font-size: 14.5px; margin: 22px 0 11px; letter-spacing: -.01em;
}
.section-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); flex-shrink: 0; }

/* ================= 日期栏 ================= */
.date-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 7px 9px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.date-nav {
  width: 32px; height: 32px; border: none; border-radius: 10px;
  background: #F2F6F3; color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0;
}
.date-nav .ico { width: 17px; height: 17px; }
.date-pick { flex: 1; min-width: 0; border: none; background: transparent; text-align: center; font-size: 14.5px; font-weight: 650; outline: none; }
.month-label { flex: 1; text-align: center; font-weight: 750; font-size: 15.5px; letter-spacing: .01em; }
.btn-today { flex-shrink: 0; }

/* ================= 利润主卡 ================= */
.hero {
  position: relative; overflow: hidden; border-radius: 21px;
  padding: 20px 19px 17px; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 12px 30px rgba(12, 82, 56, .24);
  animation: fadeUp .3s ease both;
}
.hero-negative { background: linear-gradient(135deg, #7B2E27 0%, #A84437 55%, #C2594A 100%); box-shadow: 0 12px 30px rgba(120, 42, 34, .24); }
.hero::before {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); right: -76px; top: -104px;
}
.hero::after {
  content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  right: -30px; bottom: -70px;
}
.hero-label { position: relative; font-size: 11.5px; letter-spacing: .12em; opacity: .82; }
.hero-value { position: relative; font-size: 37px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin: 3px 0 0; font-variant-numeric: tabular-nums; }
.hero-value small { font-size: 19px; font-weight: 600; opacity: .8; margin-right: 2px; }
.hero-tag {
  position: relative; display: inline-block; margin-top: 9px;
  font-size: 10.5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.17); letter-spacing: .02em;
}
.hero-meta {
  position: relative; display: flex; margin-top: 17px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-meta > div { flex: 1; min-width: 0; }
.hero-meta > div + div { border-left: 1px solid rgba(255,255,255,.16); padding-left: 14px; }
.hero-meta span { display: block; font-size: 10.5px; opacity: .76; margin-bottom: 2px; }
.hero-meta b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ================= 三渠道卡片（微信 / 支付宝 / 现金） ================= */
.chan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chan-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 11px 11px; box-shadow: var(--shadow);
  animation: fadeUp .3s ease both;
}
.chan-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; margin-bottom: 9px; }
.chan-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.chan-wechat .chan-dot { background: #22B573; }
.chan-alipay .chan-dot { background: #3B82F6; }
.chan-cash .chan-dot { background: #F0A020; }
.chan-bank .chan-dot { background: #8B5CF6; }
.chan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.chan-row span { white-space: nowrap; flex-shrink: 0; }
.chan-row b { font-size: 11.5px; color: var(--ink); font-weight: 650; white-space: nowrap; }
.chan-row b.up { color: var(--income); }
.chan-row b.down { color: var(--expense); }
.chan-row.chan-total { margin-top: 2px; margin-bottom: 0; }
.chan-row.chan-total span { color: var(--ink-2); font-weight: 600; }
.chan-row.chan-total b { font-size: 13px; font-weight: 750; color: var(--brand-d); }
.chan-sep { height: 1px; background: var(--line); margin: 8px 0; }

.net-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 9px; }
.net-item { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 10px 8px; text-align: center; box-shadow: var(--shadow); }
.net-item span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.net-item b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 15px 0 11px; }
.action-row .btn { flex-direction: column; gap: 6px; padding: 12px 2px; border-radius: 14px; font-size: 12px; font-weight: 700; }
.action-row .btn .ico { width: 21px; height: 21px; stroke-width: 2; }

/* ================= 导出条 ================= */
.export-strip {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 14px; box-shadow: var(--shadow); margin: 12px 0;
  animation: fadeUp .3s ease both;
}
.es-head { display: flex; align-items: center; gap: 11px; }
.es-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center;
}
.es-icon .ico { width: 20px; height: 20px; }
.es-text { flex: 1; min-width: 0; }
.es-text b { display: block; font-size: 13.5px; font-weight: 700; }
.es-text span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.es-actions { display: flex; gap: 8px; margin-top: 12px; }
.es-actions .btn { flex: 1; }
.export-strip-slim { margin-top: 18px; }
.export-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--brand-l); color: var(--brand-d);
  border-radius: 12px; padding: 11px 12px; font-size: 12px; line-height: 1.5;
  margin: 4px 0 2px;
}
.export-note .ico { width: 15px; height: 15px; margin-top: 2px; }

.closed-banner {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: #E4F5EB; color: var(--brand-d); padding: 13px 14px;
  border-radius: 14px; margin: 12px 0; font-weight: 650; font-size: 13.5px;
}
.closed-banner .ico { width: 18px; height: 18px; }
.closed-diff { font-size: 12px; opacity: .85; margin-right: auto; font-weight: 500; }

/* ================= 流水列表 ================= */
.tx-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.tx-item { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.tx-item:last-child { border-bottom: none; }
.tx-item:active { background: #F5F9F6; }
.tx-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.tx-icon .ico { width: 19px; height: 19px; stroke-width: 2; }
.tx-income { background: #E4F6EC; color: var(--income); }
.tx-expense { background: #FCECEA; color: var(--expense); }
.tx-transfer { background: #E8F0FC; color: var(--blue); }
.tx-withdrawal { background: #FDF1DC; color: var(--amber); }
.tx-main { flex: 1; min-width: 0; }
.tx-line1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-line1 b { font-size: 13.5px; font-weight: 700; }
.tx-chip { font-size: 10.5px; background: #F1F5F2; padding: 2px 7px; border-radius: 6px; color: var(--ink-2); }
.tx-cat { font-size: 10.5px; background: #FDF2DD; color: #A66C08; padding: 2px 7px; border-radius: 6px; }
.tx-line2 { font-size: 11px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-note { margin-right: 8px; color: var(--ink-2); }
.tx-amt { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.empty { text-align: center; color: var(--muted); padding: 34px 0; font-size: 13px; }
.empty .ico { width: 28px; height: 28px; opacity: .5; }
.empty p { margin-top: 8px; }

/* ================= 日结 ================= */
.close-guide { background: #EAF3FD; border: 1px solid #D7E7F9; border-radius: 14px; padding: 13px 14px; margin-bottom: 13px; }
.guide-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #24558F; margin-bottom: 8px; }
.guide-step:last-child { margin-bottom: 0; }
.guide-step i {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: #2E6FD9; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
}
.close-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  border-left: 3px solid var(--brand); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.close-card.chan-alipay { border-left-color: #3B82F6; }
.close-card.chan-cash { border-left-color: #F0A020; }
.close-card.chan-bank { border-left-color: #8B5CF6; }
.close-card:not(.chan-wechat):not(.chan-alipay):not(.chan-cash):not(.chan-bank) { border-left-color: var(--line); }
.close-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.close-head.plain { margin-bottom: 9px; }
.close-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; }
.close-row > span { color: var(--ink-2); }
.close-row b { font-size: 15px; font-weight: 700; }
.close-row .ipt { margin: 0; width: 155px; max-width: 55%; text-align: right; padding: 9px 12px; }

/* ================= 日历 ================= */
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 17px;
  padding: 11px; box-shadow: var(--shadow);
}
.cal-head { text-align: center; font-size: 10.5px; color: var(--muted); padding: 3px 0 6px; font-weight: 600; }
.cal-cell {
  min-height: 54px; border-radius: 10px; padding: 5px 2px; text-align: center;
  cursor: pointer; position: relative; background: #F6F9F7; border: 1px solid transparent;
  transition: transform .1s;
}
.cal-cell:active { transform: scale(.94); }
.cal-blank { background: transparent; cursor: default; }
.cal-has { background: #fff; border-color: var(--line); }
.cal-closed { background: #E4F5EB; border-color: #C6E9D4; }
.cal-diff { background: #FFF2D6; border-color: #F7DEA8; }
.cal-today { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal-day { font-size: 12.5px; font-weight: 650; }
.cal-net { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cal-dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.cal-legend { display: flex; gap: 17px; justify-content: center; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-closed { background: var(--brand); }
.dot-diff { background: #E9B33C; }
.dot-today { background: #7FC7A4; }

/* ================= 统计 ================= */
.stat-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 9px; }
.stat-hero-item { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 13px 8px; text-align: center; box-shadow: var(--shadow); }
.stat-hero-item span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.stat-hero-item b { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-hero-item.hero-cell { background: var(--brand-l); border-color: #CFE9DA; }
.stat-hero-item.hero-cell b { color: var(--brand-d); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.stat-cell { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 11px 8px; text-align: center; box-shadow: var(--shadow); }
.stat-cell span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.stat-cell b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; border-collapse: collapse; box-shadow: var(--shadow); font-size: 13.5px; }
.tbl th { background: #F6F9F7; padding: 11px 12px; text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.tbl td { padding: 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl th:not(:first-child), .tbl td:not(:first-child) { text-align: right; }
.bar-list { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 14px; box-shadow: var(--shadow); }
.bar-item { margin-bottom: 12px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.bar-track { height: 8px; background: #EFF3F0; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--brand-grad); transition: width .4s ease; }
.bar-down { background: linear-gradient(90deg, #E98A7C, #D95345); }

/* ================= 我的 ================= */
.me-card { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 16px; box-shadow: var(--shadow); }
.me-avatar { width: 52px; height: 52px; border-radius: 17px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 750; flex-shrink: 0; }
.me-info { flex: 1; min-width: 0; }
.me-info b { display: block; font-size: 16.5px; font-weight: 750; }
.me-info .muted { display: block; margin-top: 2px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.panel .ipt { margin-bottom: 11px; }
.panel .btn { margin-bottom: 0; }
.user-item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.user-avatar-sm { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.user-info { flex: 1; min-width: 0; }
.user-info b { display: block; font-size: 13.5px; }
.user-info .muted { display: inline-block; margin-right: 6px; font-size: 11px; }
.user-ops { display: flex; gap: 6px; flex-shrink: 0; }
.btn-logout { margin-top: 24px; }

/* ================= 弹层 ================= */
.mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 28, 18, .5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 520px; background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 -14px 44px rgba(8, 32, 20, .18);
  animation: sheetIn .26s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes sheetIn { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
.grabber { width: 38px; height: 4px; border-radius: 4px; background: #DCE5DE; margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-title { font-size: 18px; font-weight: 750; letter-spacing: -.01em; text-align: left; }
.sheet-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sheet-head .icon-btn { margin-top: 2px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 18px; }
.sheet-btns .btn { flex: 1; padding: 14px; border-radius: 13px; }

.seg { display: flex; gap: 2px; background: #EFF3F0; border-radius: 13px; padding: 4px; margin-bottom: 18px; }
.seg-item { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; font-size: 13px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .16s, color .16s; }
.seg-item.on { background: #fff; color: var(--brand-d); box-shadow: 0 2px 8px rgba(16, 50, 34, .1); font-weight: 750; }

.form-row { display: block; margin-bottom: 14px; }
.form-row > label { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.form-row > .muted { display: block; padding: 4px 0; }
.form-row .ipt { width: 100%; }
.chan-pick { display: flex; gap: 8px; width: 100%; }
.chan-opt { flex: 1; min-width: 0; text-align: center; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 12.5px; transition: background .14s, border-color .14s; }
.chan-opt.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); font-weight: 750; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(9, 34, 22, .94); color: #fff; padding: 12px 20px;
  border-radius: 14px; z-index: 99; font-size: 13.5px; max-width: 84vw;
  white-space: pre-line; text-align: center; box-shadow: var(--shadow-lg);
  animation: toastIn .22s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ================= 安全与口径提示 ================= */
.weak-banner {
  display: flex; align-items: center; gap: 9px; margin: 10px 14px 0;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: #FFF4D9; border: 1px solid #F3D894; color: #8A5A00; font-size: 12px; font-weight: 600;
}
.weak-banner .ico { width: 17px; height: 17px; flex-shrink: 0; }
.weak-banner span { flex: 1; }
.weak-x { background: none; border: none; color: inherit; padding: 2px; display: grid; place-items: center; opacity: .65; }
.weak-x .ico { width: 14px; height: 14px; }
.hero-basis {
  float: right; font-size: 9.5px; font-weight: 600; letter-spacing: 0;
  background: rgba(255,255,255,.16); padding: 2px 7px; border-radius: 20px; opacity: .9;
}
.basis-note {
  font-size: 10.5px; line-height: 1.6; color: var(--muted);
  background: #F0F5F1; border-radius: 10px; padding: 8px 11px; margin: 9px 0 4px;
}
.panel .basis-note { margin: 0 0 11px; }
.date-nav:disabled { opacity: .32; cursor: not-allowed; }

/* ================= 三渠道 / 利润口径 / 固定成本 ================= */
.chan-cards { grid-template-columns: repeat(3, 1fr); gap: 7px; }
.chan-card { padding: 10px 8px; }
.chan-row { font-size: 10px; gap: 2px; }
.chan-row b { font-size: 11px; }
.chan-row.chan-total b { font-size: 12.5px; }

.cash-profit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #F0F5F1; border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 12px; margin: 0 0 4px; font-size: 11px; color: var(--muted);
}
.cash-profit-bar b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.fixed-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 13px; margin: 12px 0; box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
}
.fixed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fixed-title { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: 14px; }
.fixed-title .ico { width: 18px; height: 18px; color: var(--brand); stroke-width: 1.9; }
.fixed-card .basis-note { margin: 0 0 11px; }
.fixed-item { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.fixed-item .ipt-name { flex: 1; min-width: 0; }
.fixed-item .ipt-num { width: 108px; flex: none; }
.fixed-del {
  width: 30px; height: 34px; flex: none; display: grid; place-items: center;
  background: #FEE2E2; color: var(--red); border: none; border-radius: 10px; cursor: pointer;
}
.fixed-del .ico { width: 14px; height: 14px; }
.btn-add-fixed { margin: 2px 0 11px; }
.fixed-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 9px; }
.fixed-sum > div { background: #F4F9F6; border-radius: 10px; padding: 8px 10px; }
.fixed-sum span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.fixed-sum b { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.fixed-paid { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin: 0 0 11px; }

/* 月度提现汇总卡 */
.withdraw-card { border-top-color: var(--amber); }
.withdraw-card .fixed-title .ico { color: var(--amber); }
.withdraw-card .tbl { margin: 2px 0 10px; font-size: 12.5px; }
.withdraw-card .tbl th { padding: 9px 10px; }
.withdraw-card .tbl td { padding: 10px; }
.withdraw-card .fixed-paid:last-child { margin-bottom: 0; }

.dir-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; width: 100%; }
.dir-pick .chan-opt { min-width: 0; font-size: 11.5px; padding: 10px 4px; }
.cat-ops { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-fixed-on { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.check-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.check-line input { width: 15px; height: 15px; accent-color: var(--brand); }

/* ================= 渠道/原因选择换行自适应 ================= */
.chan-pick { flex-wrap: wrap; }
.chan-opt { flex: 1 1 auto; min-width: 70px; padding-left: 8px; padding-right: 8px; }
.reason-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.reason-pick .chan-opt { flex: 0 1 auto; min-width: 84px; padding: 8px 12px; font-size: 12px; }

/* ================= 管理工具 ================= */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 4px; box-shadow: var(--shadow); color: var(--ink);
}
.tool-btn .ico { width: 22px; height: 22px; color: var(--brand); stroke-width: 1.8; margin-bottom: 2px; }
.tool-btn b { font-size: 12px; }
.tool-btn span { font-size: 10px; color: var(--muted); }

/* ================= 长列表弹层（日志/回收站/分类） ================= */
.sheet-tall { max-height: 86vh; }
.log-list, .cat-list { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.log-item { position: relative; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.log-line1 { display: flex; align-items: center; gap: 7px; font-size: 12px; flex-wrap: wrap; }
.log-line1 b { font-size: 12.5px; }
.log-line1 .muted { font-size: 10.5px; margin-left: auto; }
.log-line2 { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; padding-right: 54px; }
.trash-restore { position: absolute; right: 0; bottom: 9px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cat-list .empty, .log-list .empty { padding: 22px 0; }

@media (max-width: 370px) {
  .tool-grid { gap: 5px; }
  .tool-btn { padding: 11px 2px; }
  .tool-btn span { font-size: 9px; }
  .chan-opt { min-width: 62px; font-size: 11.5px; }
}

  .user-chip-name { display: none; }
  .hero-value { font-size: 32px; }
  .action-row { gap: 6px; }
  .chan-card { padding: 10px 8px; }
}
@media (min-width: 720px) {
  .page { max-width: 720px; margin: 0 auto; }
  .topbar { padding: 11px 24px; }
  .tabbar { max-width: 720px; left: 50%; transform: translateX(-50%); border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: none; }
  .mask { align-items: center; }
  .sheet { border-radius: 24px; max-width: 520px; max-height: 84vh; padding-bottom: 22px; animation: fadeUp .22s ease both; }
  .hero-value { font-size: 44px; }
  .tx-item:hover { background: #F5F9F6; }
}

/* ================= 日结三态与现金营业额核定 ================= */
.pending-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #FDF3DF; border: 1px solid #F3DCAA; color: #8A5B08;
  padding: 12px 14px; border-radius: 14px; margin: 12px 0;
}
.pending-banner .ico { width: 18px; height: 18px; flex-shrink: 0; }
.pb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-text b { font-size: 13px; font-weight: 700; }
.pb-text span { font-size: 11.5px; opacity: .85; }
.lock-note {
  font-size: 11.5px; color: #8A5B08; background: #FDF3DF;
  border: 1px solid #F3DCAA; padding: 8px 11px; border-radius: 10px; margin-bottom: 9px;
}
.audit-card { border-left-color: #B45309; }
.audit-card .audit-note { margin: 9px 0 0; }
.review-actions { margin: 10px 0; }
