After years of legislative and court battles, a Florida Senate panel approved a bill aimed at resolving a dispute about how juvenile-detention costs are shared between the state and counties.

The Senate Criminal and Civil Justice Appropriations Subcommittee unanimously approved a measure (SB 1322), filed by Sen. Jack Latvala, R-Clearwater, that would create a new cost-sharing formula while putting past quarrels to rest.