This is the 604th most frequent Latvian word.
visām
The Latvian word "visām" means "to all" (dative plural form of "all").
The word "visām" is in the dative plural form of "viss" (all), agreeing with "detaļām" (details). It indicates that attention was given to every detail.
Viņa pievērsa uzmanību visām detaļām.
She paid attention to all the details.
In this sentence, "visām" is again in the dative plural and specifies the group "dāmām" (ladies) to whom the flowers were gifted.
Viņš uzdāvināja ziedus visām dāmām.
He gave flowers to all the ladies.
Here, "visām" is in the dative plural form of "viss" and modifies "meitenēm" (girls), suggesting that suitable dresses were associated with each girl in this collective group.