/* cmsms stylesheet: ALFAC - Paged Table of content modified: Tuesday, July 22, 2025 5:11:19 PM */
@media print{

    #list-toc-generated{ list-style: none;}

#list-toc-generated .toc-element {
  break-inside: avoid;
}

    #list-toc-generated .toc-element a::after{
        content: " p. " target-counter(attr(href), page);
        float: right;
    }

    #list-toc-generated .toc-element-level-1{
        margin-top: 25px;
        font-weight: bold;
    }

    #list-toc-generated .toc-element-level-2{
        margin-left: 25px;
    }


    /* target-text(attr(href), before) doesn't work for now, replace with counters (see below)*/
    /* #list-toc-generated .toc-element a::before{
        content: target-text(attr(href), before);
    } */

    /* counters */

    #list-toc-generated{ 
        counter-reset: counterTocLevel1; 
    }

    #list-toc-generated .toc-element-level-1{ 
        counter-increment: counterTocLevel1; 
        counter-reset: counterTocLevel2; 
    }

    #list-toc-generated .toc-element-level-1::before{ 
        content: counter(counterTocLevel1) ". ";
        padding-right: 5px;
    }

    #list-toc-generated .toc-element-level-2{ 
        counter-increment: counterTocLevel2; 
    }

    #list-toc-generated .toc-element-level-2::before{ 
        content: counter(counterTocLevel1) ". " counter(counterTocLevel2) ". ";
        padding-right: 5px;
    }

    /*  leader() doesn't work for now, replace with the hack bellow */
    /* #list-toc-generated .toc-element a::after{
        content: leader('.') " " target-counter(attr(href), page);
        float: right;
    } */

    /* hack for leaders */

    #list-toc-generated{
        overflow-x: hidden;
    }

    #list-toc-generated .toc-element::after{
        content: "..............................................................................................................";
        float: left;
        width: 0;
        padding-left: 5px;
        letter-spacing: 10px;
color: var(--royal-blue);
    }

    #list-toc-generated .toc-element{
        display: flex; 
    }

    #list-toc-generated .toc-element a::after{
        position: absolute;
        right: 0;
        background-color: white;
        padding-left: 10px;
    }

    #list-toc-generated .toc-element a{
text-decoration: none;
        right: 0;
  color: var(--midnight-blue);
    }

} 

.toc-ignore {
  background: orange;
}

.toc-element-level-h4{
        margin-left: 60px;
    }

.toc-element-level-3{
        font-weight: normal;
        margin-left: 60px;
    }
