/* ============================================================================
   家委会收支账簿 · 前端样式
   移动优先。家委会家长八成在手机上打开，桌面端只做宽度约束。
   不引 UI 框架：一是省 100KB+，二是这类工具不需要通用组件库。
   ========================================================================== */

:root {
  --brand: #146b5f;
  --brand-dark: #0d5349;
  --brand-soft: #e7f2f0;
  --accent: #c2761a;

  /* 账本语义色：收入绿、支出红（与股票行情的红涨绿跌无关，是记账通行习惯） */
  --income: #0f7b53;
  --income-soft: #e6f5ee;
  --expense: #c9332c;
  --expense-soft: #fdeceb;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --info: #1d4ed8;
  --info-soft: #eaf0fe;

  --text: #14191f;
  --text-2: #58626f;
  --text-3: #949ca8;
  --line: #e4e8ed;
  --line-2: #eef1f4;
  --bg: #f4f6f8;
  --surface: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.12);

  --header-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 金额、流水号等需要等宽对齐的场合 */
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

a {
  color: var(--brand);
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  /* 浏览器给 button 的默认边框和背景必须清掉：
     否则 .btn--plain / .btn--icon 这类"只有修饰类没有 .btn 基类"的按钮
     会带一圈灰边，在浅色卡片上非常显眼 */
  border: 0;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ------------------------------------------------------------------ 布局 */

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px calc(28px + var(--safe-bottom));
}

.page--narrow {
  max-width: 460px;
}

/* 顶部导航 */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hdr__back {
  width: 38px;
  height: 38px;
  margin-left: -4px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--text);
}

.hdr__back:active {
  background: var(--line-2);
}

.hdr__title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ------------------------------------------------------------------ 卡片 */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card + .card {
  margin-top: 12px;
}

.card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.card__body {
  padding: 14px 16px;
}

.card__ft {
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
}

/* 区块标题 */
.sect {
  margin: 20px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sect:first-child {
  margin-top: 0;
}

.sect__title {
  font-size: 14px;
  font-weight: 600;
}

.sect__hint {
  font-size: 12.5px;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ 余额英雄区 */

.hero {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #17695d 0%, #0e5147 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(13, 83, 73, 0.22);
}

.hero::after {
  /* 一道极淡的斜向高光，避免大块纯色显得廉价 */
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  pointer-events: none;
}

.hero__label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.74);
}

.hero__amount {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.hero__amount .cur {
  font-size: 20px;
  font-weight: 500;
  margin-right: 2px;
  opacity: 0.86;
}

.hero__split {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.hero__cell {
  flex: 1;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.11);
}

.hero__cell dt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__cell dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero__foot {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ 统计网格 */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  padding: 13px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat__label {
  font-size: 12.5px;
  color: var(--text-3);
}

.stat__value {
  margin-top: 3px;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat__value--in {
  color: var(--income);
}

.stat__value--out {
  color: var(--expense);
}

/* ------------------------------------------------------------------ 列表 */

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  color: inherit;
}

.rows > .row:last-child {
  border-bottom: 0;
}

.row--tap:active {
  background: #fafbfc;
}

.row__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
}

.row__icon--in {
  background: var(--income-soft);
  color: var(--income);
}

.row__icon--out {
  background: var(--expense-soft);
  color: var(--expense);
}

.row__main {
  flex: 1;
  min-width: 0;
}

.row__title {
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row__amt {
  flex: none;
  text-align: right;
  font-size: 15.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.row__amt--in {
  color: var(--income);
}

.row__amt--out {
  color: var(--expense);
}

.row__arrow {
  flex: none;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ 标签 */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--gray {
  background: var(--line-2);
  color: var(--text-2);
}

.tag--green {
  background: var(--income-soft);
  color: var(--income);
}

.tag--red {
  background: var(--expense-soft);
  color: var(--expense);
}

.tag--amber {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag--blue {
  background: var(--info-soft);
  color: var(--info);
}

.tag--brand {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--line-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  /* 按钮里出现折行会很难看（尤其底部操作栏被三等分时），一律不换行 */
  white-space: nowrap;
  transition: opacity 0.12s, background 0.12s;
}

.btn:active:not(:disabled) {
  opacity: 0.82;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--danger {
  background: var(--expense);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--plain {
  background: transparent;
  color: var(--brand);
  padding: 0 8px;
  height: 36px;
  font-size: 14px;
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}

/* 底部操作条：移动端拇指可达 */
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  margin: 16px -16px 0;
}

.actionbar .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ 表单 */

.field {
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field__label .req {
  color: var(--expense);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 107, 95, 0.1);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input--amount {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 8px 4px 10px;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
  letter-spacing: -0.01em;
}

.input--amount:focus {
  box-shadow: none;
  border-bottom-color: var(--brand);
}

.textarea {
  min-height: 76px;
  resize: vertical;
}

.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23949ca8' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.field__hint {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-3);
}

.field__error {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--expense);
}

/* 分段控件：收支方向、筛选 */
.segment {
  display: flex;
  padding: 3px;
  gap: 3px;
  background: var(--line-2);
  border-radius: 10px;
}

.segment__item {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.segment__item--on {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.segment__item--on.segment__item--in {
  color: var(--income);
}

.segment__item--on.segment__item--out {
  color: var(--expense);
}

/* 金额方向选择器：记账第一步，必须一眼看懂 */
.dirmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.dirmark--in {
  background: var(--income-soft);
  color: var(--income);
}

.dirmark--out {
  background: var(--expense-soft);
  color: var(--expense);
}

/* ------------------------------------------------------------------ 空状态 / 加载 */

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty__icon {
  margin-bottom: 10px;
  opacity: 0.5;
}

.empty__text {
  font-size: 14px;
}

.empty__sub {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-3);
}

.skeleton {
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 50%, #eef1f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------ 弹层 */

.mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 25, 31, 0.42);
  animation: fade 0.16s ease;
}

@media (min-width: 560px) {
  .mask {
    align-items: center;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  animation: slide-up 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: var(--safe-bottom);
}

@media (min-width: 560px) {
  .sheet {
    border-radius: 16px;
    margin: 20px;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(16px);
    opacity: 0.6;
  }
}

.sheet__hd {
  padding: 16px 16px 10px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet__bd {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.sheet__ft {
  padding: 12px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 10px;
}

.sheet__ft .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ 提示条 */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 88vw;
}

.toast {
  padding: 9px 15px;
  border-radius: 9px;
  background: rgba(24, 30, 37, 0.92);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.18s ease;
  text-align: center;
}

.toast--ok {
  background: #0f6b4f;
}

.toast--err {
  background: #b3271f;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* 内联提示（表单顶部的错误、状态说明） */
.alert {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.alert--info {
  background: var(--info-soft);
  color: #1e3a8a;
}

.alert--warn {
  background: var(--warn-soft);
  color: #7c4a08;
}

.alert--err {
  background: var(--expense-soft);
  color: #8f241f;
}

.alert--ok {
  background: var(--income-soft);
  color: #0b5c3e;
}

/* ------------------------------------------------------------------ 分页 / 杂项 */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}

.hr {
  height: 1px;
  background: var(--line-2);
  margin: 14px 0;
  border: 0;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
}

.kv__k {
  color: var(--text-3);
  flex: none;
}

.kv__v {
  text-align: right;
  color: var(--text);
  word-break: break-all;
}

.muted {
  color: var(--text-3);
}

.small {
  font-size: 12.5px;
}

.center {
  text-align: center;
}

.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.mt24 {
  margin-top: 24px;
}

.flex {
  display: flex;
}
.flex-gap {
  gap: 8px;
}
.between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.flex1 {
  flex: 1;
  min-width: 0;
}

/* 表格（成员、收缴名单） */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl th {
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  font-size: 12.5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 10px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 分享页（家长视角）不需要登录，样式略收敛 */
.share-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.share-brand {
  padding: 22px 18px;
  text-align: center;
}

.share-brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------ 附件（收据 / 发票） */

/* 固定 4 列，手机上一格约 72px：一屏能放下 6 张，
   又不会抢走金额和事由的注意力。用 auto-fill 会在大屏上撑成巨型方块。 */
.att-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.att {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line-2);
  overflow: hidden;
}

/* aspect-ratio 要 iOS Safari 15 才有，老机型退回 padding 撑正方形 */
@supports not (aspect-ratio: 1 / 1) {
  .att {
    height: 0;
    padding-bottom: 100%;
  }
}

.att__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 非图片（PDF）：不给缩略图，直接显示后缀，省一次下载 */
.att__ext {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  width: 100%;
  height: 100%;
  padding: 0;
}

.att--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1.5px dashed var(--line);
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px;
}

.att--add:active {
  background: var(--line-2);
}

.att__del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 50%;
  background: rgba(20, 25, 31, 0.62);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 进度 / 失败 / 取地址中，都盖在缩略图上，不额外占位 */
.att__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 25, 31, 0.46);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.att__veil--err {
  background: rgba(201, 51, 44, 0.74);
  font-size: 11px;
  font-weight: 500;
}

/* 流水行里的「收据 n」小标签：家长侧点开才签地址，不预加载 */.att-chip {
  flex: none;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 18px;
}

/* ------------------------------------------------------------------ 全屏看图 */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 10, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade 0.14s ease;
}

.viewer__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.viewer__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  color: #fff;
  font-size: 13px;
}

.viewer__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.85;
}

.viewer__btn {
  flex: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
}

/* ------------------------------------------------------------------ 收缴进度 */

/* 收缴率用一条细进度条表示：数字（已缴 12/40）比百分比更准，
   但进度条能让人一眼看出"还差不少"，两者一起给。 */
.bar {
  height: 5px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transition: width 0.3s ease;
}

/* 名单里的缴费勾选 */
.dues-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}

.dues-item:active {
  background: #fafbfc;
}

.dues-item__box {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  border: 1.6px solid var(--line);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.dues-item--paid .dues-item__box {
  background: var(--income);
  border-color: var(--income);
}

.dues-item__name {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dues-item--paid .dues-item__name {
  color: var(--text-2);
}
