What I am noticing is that there are four individual models that are used to describe the logic of a financial report:
This narrative provides a suscinct overview of all four models in one document.
To implement all this within XBRL, see this document Method for Implementation of a Standard Business Report Using XBRL, page 34, section Physical Implementation Model. Note that this provides references to numerous other documents that are helpful in implementing all this.
Here is an actual implementation which is currently the best example implementation that I have, FRF for SMEs Ontology. (This blog post provides additional information on the FRF for SMEs implementation. This page has detailed information about four other implementations: US GAAP, IFRS, XASB, and IPSAS.)
Note that if you leave out the "Accounting equation" model, then all of this same stuff works for general business reports.
Here is a summary of example implementations of all five of these reporting schemes (US GAAP, IFRS, XASB, IPSAS, FRF for SMEs).
This document, Guide to Building an Expert System for Creating Financial Reports, is helpful in using all the above information for building software applications for creating or otherwise working with financial reports.