See ==>>
calibre user guide: E-book conversion - in particular the Format Tips section.
If you want something that will (with effort) map the MS Word/Libre Office style definitions to CSS have a look at the
Sigil DOCX Import plugin
There's also the
Toxaris's eBook Tools MS Word add-in - I use some of its features regularly, but not it's HTML or EPUB creation features.
BR