.cashflow-swipe-row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  touch-action: pan-y;
}
.cashflow-front {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 64px;
  width: 100%;
  background: var(--surface);
  touch-action: pan-y;
  transition: transform 180ms ease;
}
.cashflow-swipe-row.is-dragging .cashflow-front { transition: none; user-select: none; }
.cashflow-swipe-row.is-dragging .cashflow-main { transition: none; }
.cashflow-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  padding-left: calc(10px + var(--cashflow-reveal, 0px));
  transition: padding-left 180ms ease;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
}
.cashflow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cashflow-current { flex: none; }
.cashflow-swipe-row.is-current .cashflow-main { color: var(--brand-deep); }
.cashflow-menu { flex: 0 0 44px; width: 44px; font-size: 1.75rem; color: var(--ink-2); }
.cashflow-menu:hover, .cashflow-menu[aria-expanded="true"] { background: var(--surface-2); }
.cashflow-actions {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  width: 192px;
  background: var(--surface-2);
}
.cashflow-actions[hidden] { display: none; }
.cashflow-actions[aria-hidden="true"] { pointer-events: none; }
.cashflow-action {
  width: 64px;
  flex: 0 0 64px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 650;
  touch-action: pan-y;
}
.cashflow-action .icon { width: 20px; height: 20px; }
.cashflow-action:hover { background: var(--border); }
.cashflow-action.cashflow-delete { color: var(--danger, #b42318); }
.cashflow-swipe-row button:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .cashflow-front, .cashflow-main { transition: none; }
}
