/* 盛和塾济南16班 班费记账 —— 样式 */
:root {
  --bg: #F7F4F1;
  --card: #FFFFFF;
  --ink: #20191A;
  --ink-2: #4A4144;
  --sub: #8A7F82;
  --line: #EDE4E2;
  --red: #9E2B25;
  --red-2: #B8453C;
  --red-soft: #FBE9E7;
  --gold: #B9902B;
  --green: #2E7D5B;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(70, 40, 35, .06);
  --shadow-lg: 0 10px 30px rgba(70, 40, 35, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
input[type="date"] { -webkit-appearance: none; appearance: none; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 110px; }

/* ---------- 顶部 ---------- */
.topbar {
  padding: 18px 0 0;
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, #B8453C, #8C231E);
  color: #fff; font-size: 15px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(158, 43, 37, .28);
}
.brand .t1 { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.brand .t2 { font-size: 11px; color: var(--sub); margin-top: 1px; }

/* ---------- 余额卡 ---------- */
.hero {
  margin-top: 16px;
  border-radius: 20px;
  padding: 20px 20px 16px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(201, 162, 39, .30) 0%, rgba(201, 162, 39, 0) 55%),
    linear-gradient(150deg, #A9302A 0%, #8B241F 60%, #7A1D19 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(139, 36, 31, .26);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.hero .lbl { font-size: 12px; opacity: .82; letter-spacing: 1px; }
.hero .bal { font-size: 38px; font-weight: 700; letter-spacing: -.5px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.hero .bal small { font-size: 16px; font-weight: 500; opacity: .85; margin-right: 2px; }
.hero .sub { font-size: 12px; opacity: .78; }
.hero .stats { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.hero .stat {
  flex: 1; background: rgba(255, 255, 255, .13); border-radius: 12px;
  padding: 9px 12px; backdrop-filter: blur(4px);
}
.hero .stat .k { font-size: 11px; opacity: .82; }
.hero .stat .v { font-size: 17px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- 提示条 ---------- */
.notice {
  margin-top: 12px; border-radius: 12px; padding: 10px 14px;
  font-size: 13px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5;
}
.notice.warn { background: #FFF4E5; color: #8A5000; border: 1px solid #F6E2C4; }
.notice.info { background: var(--red-soft); color: #8C231E; border: 1px solid #F3D6D2; }
.notice.ok { background: #EAF5EF; color: #1F6247; border: 1px solid #D2E9DD; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 14px; overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px 0;
}
.card-hd h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.card-hd .more { font-size: 12px; color: var(--sub); }
.card-bd { padding: 12px 16px 16px; }

/* ---------- 列表行 ---------- */
.rec { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.rec:last-child { border-bottom: 0; }
.rec .ico {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px;
  display: grid; place-items: center; font-size: 15px;
  background: var(--red-soft); color: var(--red);
}
.rec.out .ico { background: #F3F0EE; color: #6F6366; }
.rec .mid { flex: 1; min-width: 0; }
.rec .t { font-size: 14.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.rec .d { font-size: 12px; color: var(--sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec .amt { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec .amt.in { color: var(--red); }
.rec .amt.out { color: var(--ink); }
.badge {
  font-size: 10px; padding: 2px 6px; border-radius: 6px;
  background: #F0EAE8; color: var(--sub); font-weight: 500;
}
.badge.att { background: #EEF4F0; color: var(--green); }

.empty { text-align: center; color: var(--sub); font-size: 13px; padding: 28px 10px; line-height: 1.9; }
.empty .big { font-size: 26px; display: block; margin-bottom: 6px; opacity: .35; }

/* ---------- 筛选 ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.seg { display: flex; background: #F0EAE8; border-radius: 11px; padding: 3px; flex: 1; }
.seg button {
  flex: 1; padding: 8px 0; border-radius: 9px; font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: .18s;
}
.seg button.on { background: #fff; color: var(--red); font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.monthbar {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 12px 0 4px; font-size: 15px; font-weight: 700;
}
.monthbar button {
  width: 32px; height: 32px; border-radius: 10px; background: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center; font-size: 15px; color: var(--ink-2);
}
.monthbar button:disabled { opacity: .35; }

/* ---------- 表单 ---------- */
.field { padding: 13px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 7px; letter-spacing: .4px; }
.field .inp {
  width: 100%; border: 0; outline: none; padding: 2px 0; background: transparent;
  font-size: 15.5px; font-weight: 500;
}
.field .inp::placeholder { color: #BDB2B4; font-weight: 400; }
.amount-wrap { display: flex; align-items: baseline; gap: 6px; }
.amount-wrap .cur { font-size: 20px; font-weight: 700; color: var(--red); }
.amount-wrap input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 32px; font-weight: 700; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums; color: var(--ink); width: 100%;
}
.amount-wrap input::placeholder { color: #DCD2D3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  background: #F4EFED; color: var(--ink-2); border: 1px solid transparent;
  transition: .15s; white-space: nowrap;
}
.chip.on { background: var(--red-soft); color: var(--red); border-color: #EBC9C4; font-weight: 700; }
.chip.sm { padding: 6px 11px; font-size: 12.5px; }

.hint { font-size: 11.5px; color: var(--sub); margin-top: 7px; line-height: 1.6; }
.hint.red { color: var(--red); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: #F2EDEB; color: var(--ink-2); transition: .15s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: linear-gradient(145deg, #B8453C, #8C231E); color: #fff; box-shadow: 0 6px 16px rgba(158, 43, 37, .25); }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn.wide { width: 100%; }
.btn.danger { background: #FDECEA; color: #B3261E; }
.btn[disabled] { opacity: .45; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .inner {
  max-width: 560px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(5, 1fr); align-items: center; height: 60px;
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: #A99EA0; padding-top: 4px;
}
.tabbar button .ic { font-size: 19px; line-height: 1; }
.tabbar button.on { color: var(--red); font-weight: 700; }
.tabbar .fab {
  width: 52px; height: 52px; border-radius: 18px; margin-top: -22px;
  background: linear-gradient(145deg, #B8453C, #8C231E); color: #fff;
  font-size: 26px; font-weight: 300; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(158, 43, 37, .34);
  border: 3px solid #fff;
}

/* ---------- 底部弹出层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(30, 18, 16, .38); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: var(--bg); border-radius: 22px 22px 0 0;
  max-height: 92vh; max-height: 92dvh; transform: translateY(102%);
  visibility: hidden; overflow: hidden;
  transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility 0s .28s;
  display: flex; flex-direction: column; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.sheet.on { transform: translateY(0); visibility: visible; transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility 0s 0s; }
.sheet .hd {
  padding: 16px 18px 10px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.sheet .hd h2 { margin: 0; font-size: 16px; font-weight: 700; }
.sheet .hd .close { font-size: 22px; color: var(--sub); line-height: 1; padding: 0 4px; }
.sheet .bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 18px 18px; -webkit-overflow-scrolling: touch; }
.sheet .ft {
  padding: 12px 18px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #fff; display: flex; gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 附件 ---------- */
.atts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.att {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #F2EDEB; border: 1px solid var(--line);
}
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att .x {
  position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; display: grid; place-items: center;
}
.att.add {
  display: grid; place-items: center; color: var(--sub); font-size: 22px;
  border: 1px dashed #D9CCCA; background: #FBF8F7;
}
.att .fname { font-size: 9px; color: var(--sub); padding: 4px; word-break: break-all; line-height: 1.3; }

/* ---------- 图片查看 ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 6, 5, .94);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.viewer.on { display: flex; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.viewer .nav {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 13px; opacity: .8;
}

/* ---------- 详情 ---------- */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--sub); font-size: 13px; flex: 0 0 auto; }
.kv .v { text-align: right; font-weight: 500; word-break: break-all; }
.detail-amt { text-align: center; padding: 18px 0 6px; }
.detail-amt .n { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-amt .s { font-size: 12px; color: var(--sub); margin-top: 4px; }

/* ---------- 公示表 ---------- */
.pub-doc { background: #fff; border-radius: 12px; padding: 18px 16px; box-shadow: var(--shadow); font-size: 12.5px; }
.pub-title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.pub-sub { text-align: center; font-size: 11px; color: var(--sub); margin-top: 4px; }
.pub-line { height: 2px; background: var(--red); margin: 10px 0 12px; opacity: .85; }
.pub-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.pub-sum div { background: #FAF6F4; border-radius: 8px; padding: 8px 6px; text-align: center; }
.pub-sum .k { font-size: 10px; color: var(--sub); }
.pub-sum .v { font-size: 13px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pub-h { font-size: 12px; font-weight: 700; margin: 12px 0 6px; color: var(--red); }
table.mini { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.mini th { background: #FBF3F1; color: #7A4B46; font-weight: 600; padding: 6px 5px; text-align: left; border-bottom: 1px solid #EEDDDA; }
table.mini td { padding: 6px 5px; border-bottom: 1px solid #F4EBE9; vertical-align: top; }
table.mini td.num, table.mini th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mini tr.total td { font-weight: 700; background: #FCF8F6; }
.pub-foot { margin-top: 14px; display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); }

.bars { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.bar-row { font-size: 12px; }
.bar-row .l { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--ink-2); }
.bar-row .track { height: 7px; border-radius: 4px; background: #F2EAE8; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #C0564C, #9E2B25); }

/* ---------- 名单 ---------- */
.mem-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mem { padding: 8px 12px; border-radius: 10px; background: #F4EFED; font-size: 13.5px; border: 1.5px solid transparent; display: flex; gap: 6px; align-items: center; }
.mem.on { background: var(--red-soft); border-color: #E4B7B1; color: var(--red); font-weight: 600; }
.mem small { font-size: 10.5px; color: var(--sub); font-weight: 400; }
.mem.on small { color: #A85750; }
.mem.paid { opacity: .55; }
.mem.off { background: #F0EDEC; color: #9A8D8B; text-decoration: line-through; }
.mem.off small { color: #B0A4A2; }

/* ---------- 小组与组员 ---------- */
.gstat {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  background: #FAF6F5; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 6px; margin-bottom: 14px;text-align: center;
}
.gstat > div { display: flex; flex-direction: column; gap: 2px; }
.gstat b { font-size: 19px; font-weight: 700; color: var(--red); letter-spacing: .5px; }
.gstat span { font-size: 10.5px; color: var(--sub); }
.gstat > div.bad b { color: #B3261E; }

.grp { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.grp-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #FAF6F5; border-bottom: 1px solid var(--line);
}
.grp-hd .gn { font-size: 14px; font-weight: 700; color: var(--ink); }
.grp-hd .gc { font-size: 11px; color: var(--sub); background: #EFE7E5; padding: 1px 7px; border-radius: 8px; }
.grp-hd .gact { margin-left: auto; display: flex; gap: 2px; }
.grp-hd .gact button {
  border: 0; background: none; font-size: 11.5px; color: #7A6B69;
  padding: 4px 7px; border-radius: 7px; cursor: pointer; font-weight: 500;
}
.grp-hd .gact button:first-child { color: var(--red); font-weight: 600; }
.grp-hd .gact button:last-child { color: #A8463F; }
.grp-hd .gact button:active { background: #EFE3E1; }
.grp-bd { padding: 4px; }
.mrow {
  display: flex; align-items: center; width: 100%; text-align: left;
  border: 0; background: none; padding: 9px 10px; border-radius: 10px; cursor: pointer;
}
.mrow:active { background: #F6EFEE; }
.mrow .mn { font-size: 14px; color: var(--ink); }
.mrow .mn i { font-style: normal; font-size: 10.5px; color: var(--sub); margin-left: 6px; background: #F2EBEA; padding: 1px 6px; border-radius: 6px; }
.mrow .mn i.nf { color: #fff; background: #C08A86; }
.mrow .ar { margin-left: auto; color: #CFC2C0; font-size: 16px; }
.gempty { padding: 12px; text-align: center; font-size: 12px; color: #BDB2B0; }
.gbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- 报表 ---------- */
.seg2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: #F4EDEB; border-radius: 12px; padding: 4px; margin: 0 0 12px;
}
.seg2 button {
  border: 0; background: none; padding: 9px 4px; border-radius: 9px;
  font-size: 13px; color: var(--sub); cursor: pointer; transition: .2s;
}
.seg2 button.on { background: #fff; color: var(--red); font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.rtab-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.rtab { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 100%; }
.rtab th {
  font-size: 11px; font-weight: 600; color: var(--sub); text-align: left;
  padding: 6px 6px; border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
.rtab td { padding: 7px 6px; border-bottom: 1px solid #F4EEEB; color: var(--ink); vertical-align: top; }
.rtab td:first-child { white-space: nowrap; }
.rtab .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtab .dim { color: #9C908D; }
.rtab .in { color: var(--red); }
.rtab .out { color: #2E7D5B; }
.rtab tr.l1 td { font-weight: 600; }
.rtab tr.l2 td { font-size: 11.5px; color: #6E625F; padding-left: 18px; background: #FCFAF9; }
.rtab tr.total td { font-weight: 700; border-top: 1.5px solid var(--line); border-bottom: 0; background: #FBF6F5; }

.ckrow {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  padding: 14px 0 4px; font-size: 13.5px; color: var(--ink); cursor: pointer;
}
.ckrow input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; flex: none; }
.ckrow i { flex-basis: 100%; font-style: normal; font-size: 11.5px; color: var(--sub); padding-left: 26px; margin-top: -2px; }

.minfo { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.minfo .mav {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #C0564C, #9E2B25); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600;
}
.minfo .mmeta { min-width: 0; }
.minfo .mnm { font-size: 17px; font-weight: 700; color: var(--ink); }
.minfo .msub { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.minfo .tag { margin-left: auto; font-size: 11px; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.minfo .tag.on { background: #EAF3EC; color: #3E6B4A; }
.minfo .tag.off { background: #F0EDEC; color: #8C807E; }

.progress { height: 6px; border-radius: 3px; background: #F0E8E6; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #C9A227, #9E2B25); border-radius: 3px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 14px);
  background: rgba(38, 24, 22, .93); color: #fff; padding: 10px 18px; border-radius: 12px;
  font-size: 13.5px; z-index: 120; opacity: 0; transition: .24s; pointer-events: none; max-width: 80vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 打印 ---------- */
#printRoot { display: none; }
@media print {
  body { background: #fff; }
  .wrap, .tabbar, .sheet, .sheet-mask, .toast, .viewer, .topbar { display: none !important; }
  #printRoot { display: block !important; }
  #printRoot .doc { color: #000; font-size: 11pt; }
  @page { size: A4; margin: 14mm 15mm; }
}


/* ---------- 确认弹窗 ---------- */
.dlg-mask {
  position: fixed; inset: 0; z-index: 70; background: rgba(30, 18, 16, .45);
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.dlg-mask.on { opacity: 1; pointer-events: auto; }
.dlg {
  position: fixed; z-index: 71; left: 50%; top: 50%; width: min(86vw, 330px);
  background: #fff; border-radius: 18px; padding: 20px 18px 14px;
  box-shadow: 0 22px 54px rgba(40, 20, 18, .26);
  opacity: 0; pointer-events: none; transform: translate(-50%, -46%) scale(.96);
  transition: opacity .18s, transform .18s;
}
.dlg.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.dlg h3 { margin: 0 0 9px; font-size: 16px; font-weight: 700; color: var(--ink); }
.dlg p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--sub); white-space: pre-wrap; }
.dlg .ft { display: flex; gap: 10px; margin-top: 20px; }
.dlg .ft .btn { flex: 1 1 0; }
.dlg .btn.danger { background: #B3261E; color: #fff; box-shadow: 0 6px 16px rgba(179, 38, 30, .24); }

/* ---------- 台账多选管理 ---------- */
.rec .pick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #D9CCCA; display: grid; place-items: center;
  align-self: center; color: transparent; font-size: 12px; line-height: 1;
}
.rec.picked .pick { background: var(--red); border-color: var(--red); color: #fff; }
.rec.picked { background: #FBF3F2; }
.mgbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 62;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 -6px 20px rgba(40, 20, 18, .07);
  max-width: 560px; margin: 0 auto;
}
.mgbar .cnt { font-size: 13px; color: var(--sub); flex: 1; }
.mgbar .btn { padding: 10px 16px; font-size: 13.5px; border-radius: 10px; }

body.selmode .tabbar { display: none; }
body.selmode .wrap { padding-bottom: 96px; }
