/* 20230201-1642 */

/* headlines with counters - except for h1 */
body{counter-reset: section}
h2{counter-reset: sub-section}
h3{counter-reset: composite}
h4{counter-reset: detail}

h2:before{
 counter-increment: section;
 content: counter(section) " ";
}
h3:before{
 counter-increment: sub-section;
 content: counter(section) "." counter(sub-section) " ";
}
h4:before{
 counter-increment: composite;
 content: counter(section) "." counter(sub-section) "." counter(composite) " ";
}
h5:before{
 counter-increment: detail;
 content: counter(section) "." counter(sub-section) "." counter(composite) "." counter(detail) " ";
}

/* ordered lists counters */
/* Styles for formatting sub-ordered-list-items with 1.1., 1.1.1., etc.)*/
.sub_ordered_list ol {
    counter-reset: item;
    margin-left:-10px;
}
.sub_ordered_list ol > li {
    display: block;
}
.sub_ordered_list ol > li:before { 
    content: counters(item, ".") ". "; 
    counter-increment: item;
}

/* alternating row colours */
tr:nth-child(even) {
    background-color: #eee;
}

/* table row / column spacing */
table, tr, td {
    border-style: none;
    padding: 4px 8px;
    border-spacing: 0px 0px;
    border-width: 0px;
}

/* automated row numbers */
.row_num_table {
    counter-reset: row_num;
}
.row_num_table tr > td:first-child {
    counter-increment: row_num;
}
.row_num_table tr td:first-child::before {
    content: counter(row_num) ". ";;
    min-width: 1em;
    margin-right: 0.5em;
}