/* 保险团队展业工作台 · 样式
   桌面：左侧栏 + 主区；手机：底部标签栏
   —— 单文件、无框架、无外部字体 */

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --ink: #131c33;
  --ink-2: #5a6779;
  --ink-3: #8792a6;
  --line: #e6eaf2;
  --line-2: #eef1f7;

  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --brand-soft: #eef4ff;

  --ok: #0f9d76;
  --ok-soft: #e8f8f2;
  --warn: #d97706;
  --warn-soft: #fef4e6;
  --danger: #dc2626;
  --danger-soft: #fdeeee;
  --purple: #7c3aed;
  --purple-soft: #f3eeff;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 28, 51, .04), 0 10px 26px rgba(19, 28, 51, .06);
  --shadow-sm: 0 1px 2px rgba(19, 28, 51, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
.hidden { display: none !important; }
.grow { flex: 1; }

/* ---------------- 启动 / 登录 ---------------- */
.boot {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--ink-2); background: var(--bg); z-index: 90;
}
.spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #e8effe 0%, var(--bg) 55%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 360px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 30px 26px; text-align: center;
}
.login-logo {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.login-card h1 { font-size: 17px; margin-bottom: 6px; }
.login-sub { color: var(--ink-3); font-size: 12px; margin-bottom: 18px; }
.login-card input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; margin-bottom: 12px; outline: none;
}
.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.login-err { color: var(--danger); font-size: 12px; min-height: 18px; margin-top: 10px; }

/* ---------------- 布局 ---------------- */
.app { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
  padding: 18px 12px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 16px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-txt b { font-size: 14px; letter-spacing: .2px; }
.brand-txt small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; cursor: pointer;
  color: var(--ink-2); font-size: 13.5px; border: 0; background: none;
  text-align: left; width: 100%; transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-ico {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: var(--line-2); color: var(--ink-2);
}
.nav-item.on .nav-ico { background: var(--brand); color: #fff; }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: var(--danger-soft); color: var(--danger);
  padding: 1px 6px; border-radius: 20px;
}
.nav-badge.zero { background: var(--line-2); color: var(--ink-3); }

.side-foot {
  margin-top: auto; padding: 10px 6px 0; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.save-state { font-size: 11px; color: var(--ink-3); }

.main { min-width: 0; padding: 0 26px 48px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 20px 0 14px; margin-bottom: 4px;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(245, 247, 251, 0));
}
.topbar h2 { font-size: 19px; letter-spacing: .2px; }
.topbar p { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.top-actions { display: flex; gap: 8px; flex: none; }

.view { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- 通用控件 ---------------- */
.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 8px 13px; border-radius: 9px; font-size: 13px; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn:hover { border-color: #cfd8e8; background: var(--panel-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #1d55d0; border-color: #1d55d0; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel); }
.btn.danger { color: var(--danger); border-color: #f3cfcf; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.tiny { padding: 4px 8px; font-size: 11.5px; border-radius: 7px; }
.btn.nav { font-size: 16px; line-height: 1; padding: 7px 12px; color: var(--ink-2); }
.btn.block { width: 100%; justify-content: center; padding: 11px; }

input[type=text], input[type=date], input[type=number], input[type=password],
select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; background: var(--panel); outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
label.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-2); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
}
.card-head h3 { font-size: 14px; }
.card-head .sub { color: var(--ink-3); font-size: 11.5px; }
.card-body { padding: 0 16px 16px; }

.sec-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 6px 0 -4px; }

/* ---------------- 总览 KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi .lab { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 23px; font-weight: 700; letter-spacing: -.4px; margin-top: 6px; }
.kpi .val small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.kpi .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.kpi .hint.red { color: var(--danger); }
.kpi .hint.green { color: var(--ok); }
.kpi::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--brand); opacity: .85;
}
.kpi.k2::after { background: var(--ok); }
.kpi.k3::after { background: var(--warn); }
.kpi.k4::after { background: var(--purple); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 14px; align-items: start; }

/* ---------------- 待办行 ---------------- */
.todo-list { display: flex; flex-direction: column; }
.todo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 2px; border-bottom: 1px dashed var(--line-2);
}
.todo:last-child { border-bottom: 0; }
.chk {
  width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 6px;
  border: 1.5px solid #c9d3e4; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  color: transparent; font-size: 11px; line-height: 1;
}
.chk:hover { border-color: var(--brand); }
.chk.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.todo-main { min-width: 0; flex: 1; }
.todo-t { font-size: 13.5px; }
.todo.done .todo-t { color: var(--ink-3); text-decoration: line-through; }
.todo-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.todo-meta .od { color: var(--danger); font-weight: 600; }

/* ---------------- 标签 / 徽标 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 1.5px 7px; border-radius: 20px;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.tag.blue { background: var(--brand-soft); color: #1d4ed8; }
.tag.green { background: var(--ok-soft); color: #0b7f60; }
.tag.amber { background: var(--warn-soft); color: #a35b06; }
.tag.red { background: var(--danger-soft); color: #b91c1c; }
.tag.purple { background: var(--purple-soft); color: #6d28d9; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------------- 看板 ---------------- */
.board { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; align-items: flex-start; }
.col {
  flex: 1 1 185px; min-width: 185px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.col-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
.col-head b { font-size: 12.5px; }
.col-head .cnt { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.col-body { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }
.pcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 11px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .12s, transform .12s;
}
.pcard:hover { border-color: #bcd0f5; transform: translateY(-1px); }
.pcard-top { display: flex; align-items: flex-start; gap: 4px; }
.pcard-top h4 { flex: 1; min-width: 0; }
.pcard h4 { font-size: 13px; line-height: 1.45; }
.pcard .cli { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .row { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pcard .money { font-size: 12px; font-weight: 600; color: var(--brand-dark); }
.pcard .next { font-size: 11.5px; color: var(--ink-2); margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line-2); }
.pcard .next.od { color: var(--danger); }
.empty-col { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 12px 0; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--panel);
}
table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--panel-2); }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 数值列表头也要右对齐，否则数字会相对表头整体右移、对不齐 */
table.tbl th.num { text-align: right; }
.muted { color: var(--ink-3); }
.mini { font-size: 11.5px; }

/* ---------------- 行内删除按钮 ---------------- */
/* 原来只有浅灰文字 ×，太不显眼；改成有边框的圆形按钮，一眼能看出是可点的 */
.row-del {
  border: 1px solid var(--danger-soft); background: var(--danger-soft); color: var(--danger); cursor: pointer;
  font-size: 15px; font-weight: 600; line-height: 1; padding: 0; width: 24px; height: 24px;
  border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  transition: color .12s, background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.row-del:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.row-del:active { transform: scale(.94); }
td .row-del { width: 22px; height: 22px; font-size: 14px; }
th.act, td.act { width: 1%; text-align: center; white-space: nowrap; }

/* 表格最后一列「操作」里的按钮并排时留点缝 */
td .row-del + .row-del { margin-left: 4px; }

/* ---------------- 版本号 / 新版本提示 ---------------- */
.ver-tag {
  font-size: 10.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .2px;
  padding: 2px 6px; border-radius: 6px; background: var(--panel-2); flex: none;
}
.update-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 13px; color: #fff;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  box-shadow: 0 2px 10px rgba(30, 58, 138, .28);
}
.update-bar b { font-size: 13px; }
.update-bar span { opacity: .9; }
.update-bar .btn { margin-left: auto; background: #fff; color: #1e3a8a; border-color: #fff; font-weight: 700; }

/* ---------------- 团队 ---------------- */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.member { padding: 14px; }
.member-top { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.member-top b { font-size: 13.5px; }
.member-top small { display: block; color: var(--ink-3); font-size: 11.5px; }
.bar { height: 5px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.member .stat { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-2); margin-top: 9px; }
.member .stat b { font-variant-numeric: tabular-nums; }

/* ---------------- 备忘 ---------------- */
.memo-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; padding: 5px 11px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.memos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.memo { padding: 14px 15px; cursor: pointer; position: relative; }
.memo:hover { border-color: #bcd0f5; }
.memo h4 { font-size: 13.5px; padding-right: 44px; }
.memo .meta { display: flex; gap: 7px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.memo .body {
  font-size: 12.5px; color: var(--ink-2); margin-top: 9px; line-height: 1.65;
  white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.pin { position: static; font-size: 11px; color: var(--warn); }
/* 备忘卡片顶部：置顶标记在左，删除按钮在右 */
.memo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-bottom: 2px; }
.memo-top > span { flex: 1; }

/* ---------------- 收支 ---------------- */
.sum-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sum {
  padding: 13px 15px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sum .lab { font-size: 11.5px; color: var(--ink-3); }
.sum .val { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sum.income .val { color: var(--ok); }
.sum.expense .val { color: var(--warn); }
.sum.net .val { color: var(--brand-dark); }
.sum .val.neg { color: var(--danger); }

.cat-bars { display: flex; flex-direction: column; gap: 9px; }
.cat-bar { font-size: 12px; }
.cat-bar .top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cat-bar .track { height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.cat-bar .track > i { display: block; height: 100%; border-radius: 4px; }

/* 近 6 个月走势 */
.trend-row {
  display: grid; grid-template-columns: 50px 1fr 76px; gap: 9px;
  align-items: center; margin-bottom: 7px; font-size: 11.5px;
}
.trend-mo { color: var(--ink-3); white-space: nowrap; }
.trend-bars { display: flex; flex-direction: column; gap: 2px; }
.trend-bars i { display: block; height: 5px; border-radius: 3px; min-width: 2px; }
.trend-bars .inc { background: var(--ok); }
.trend-bars .exp { background: var(--warn); }
.trend-net { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ---------------- 空态 / 工具 ---------------- */
.empty {
  text-align: center; color: var(--ink-3); font-size: 12.5px;
  padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--panel-2);
}
.fab-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 月份切换整组不拆行，否则窄屏会把 ‹ 2026-10 › 拆成三行 */
.month-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.month-nav b { font-size: 14px; min-width: 88px; text-align: center; white-space: nowrap; }
.month-chips { display: flex; gap: 6px; flex: none; }
.quick-add { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
.quick-add input[type=text] { flex: 1; }

/* ---------------- 模态框 ---------------- */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .42); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh;
  background: var(--panel); border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 24, 40, .24);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head { display: flex; align-items: center; padding: 16px 18px 10px; }
.modal-head h3 { font-size: 15px; }
.modal-x {
  margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1;
  color: var(--ink-3); cursor: pointer; padding: 0 4px;
}
.modal-body { padding: 4px 18px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #131c33; color: #fff; font-size: 13px;
  padding: 10px 16px; border-radius: 10px; opacity: 0;
  transition: opacity .18s, transform .18s; pointer-events: none; z-index: 95;
  max-width: 86vw;
}
.toast.show { opacity: .96; transform: translate(-50%, 0); }

/* ---------------- 手机 ---------------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; padding-bottom: 64px; }
  .side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto;
    flex-direction: row; align-items: center; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); z-index: 60;
  }
  .brand, .side-foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-between; gap: 0; }
  .nav-item {
    flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px;
    font-size: 10.5px; text-align: center; align-items: center; border-radius: 9px;
  }
  .nav-ico { width: 22px; height: 22px; font-size: 11px; }
  .nav-badge { position: absolute; margin: 0; transform: translate(14px, -8px); font-size: 9px; padding: 0 4px; }
  .nav-item { position: relative; }
  .main { padding: 0 14px 28px; }
  .topbar { padding: 14px 0 10px; align-items: center; }
  .topbar h2 { font-size: 16px; }
  .top-actions .btn { padding: 6px 9px; font-size: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi .val { font-size: 19px; }
  .grid-2 { grid-template-columns: 1fr; }
  .sum-row { grid-template-columns: 1fr; }
  .col { flex: 0 0 84%; }
  .form-row { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; } /* iOS 不放大小 */
  .modal-card { max-height: 92vh; }

  /* 表格在手机上不压缩列宽，改为单元格内横向滑动，避免中文逐字竖排 */
  table.tbl { min-width: 520px; }
  table.tbl th, table.tbl td { padding: 8px 8px; white-space: nowrap; }
  table.tbl th:first-child, table.tbl td:first-child { white-space: normal; min-width: 96px; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
  /* 汇总表去掉次要两列后正好放得下，不必再滑动 */
  table.tbl.tbl-proj { min-width: 0; }
  .tbl-proj .col-opt { display: none; }

  .fab-row { gap: 6px; }
  .month-nav { gap: 4px; }
  .month-nav b { min-width: 0; flex: none; font-size: 13px; }
  .month-nav .btn.nav { padding: 6px 9px; font-size: 15px; }
  .fab-row .btn, .fab-row .chip { padding: 6px 9px; font-size: 12px; }
  .fab-row .grow { display: none; }
  .fab-row .btn.primary { margin-left: auto; }
}
