/* ===== 资金记录时间线（全端） ===== */
.tx-timeline { margin-top: 4px; }

.tx-month {
  display: block;
  width: 100%;
  margin-bottom: 18px;
}

.tx-month-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  box-shadow: var(--shadow);
}

.tx-month-head:hover { border-color: var(--brand); }
.tx-month-title { flex: 1; min-width: 0; }
.tx-day-meta { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.tx-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.tx-month-body { margin-top: 10px; }

.tx-day { display: block; width: 100%; margin-bottom: 12px; }

.tx-day-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  text-align: left;
}

.tx-day-head:hover { background: var(--surface-2); color: var(--ink); }
.tx-day-title { flex: 1; min-width: 0; }
.tx-day-meta { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.tx-day-head .tx-chevron { min-width: 60px; min-height: 34px; padding: 0 10px; font-size: 13px; font-weight: 600; }

.tx-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  flex-shrink: 0;
}

.tx-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* hidden 属性会被 display:flex 盖掉，必须强制 */
.tx-items[hidden],
.tx-month-body[hidden] {
  display: none !important;
}

.tx-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 60px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.tx-item:hover { border-color: var(--border-strong); }
.tx-item .left { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.tx-item .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-item .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-item .right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.tx-item .amt {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx-item .amt.in { color: var(--up); }
.tx-item .amt.out { color: var(--down); }

/* 删除按钮加大，方便点 */
.tx-item .ops .btn,
.tx-del {
  min-height: 40px;
  min-width: 64px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 550;
}

.tx-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
  align-items: end;
}
.tx-filters .field { min-width: 0; }
.tx-filters .btn { min-height: 44px; }

@media (max-width: 768px) {
  .tx-filters { grid-template-columns: 1fr 1fr; }
  .tx-filters .btn { grid-column: 1 / -1; min-height: 48px; }
  .tx-month-head { min-height: 58px; font-size: 15px; }
  .tx-day-head { min-height: 50px; }
  .tx-chevron { min-width: 68px; min-height: 38px; font-size: 14px; }
  .tx-item { padding: 12px; }
  .tx-item .title { font-size: 14px; }
  .tx-item .amt { font-size: 14px; }
  .hold-metrics { grid-template-columns: 1fr !important; }
}
