How do lender and rating agency attitudes affect capital structure? How does the firm’s internal condition affect its actual capital structure?

How does sales stability affect the target capital structure?
How do the types of assets used affect a firm’s capital structure?
How do taxes affect the target capital structure?
How do lender and rating agency attitudes affect capital structure?
How does the firm’s internal condition affect its actual capital
structure?
What is financial flexibility, and is it increased or decreased by a
high debt ratio?