@charset "UTF-8";

@page :left {
    margin: 8mm 16mm 8mm 12mm;
}
@page :right {
    margin: 8mm 12mm 8mm 16mm;
}
@page {
    counter-increment: page;
}
body {
    margin: 0;
    -epub-writing-mode: vertical-rl ! important;
    -cssj-direction-mode: logical;
}
div.toc-entry p {
    margin: 0;
    text-indent: 1em;
}
div.toc-entry div.pagebreak {
    page-break-before: always;
}

#left-nombre,
#right-nombre {
    display: block;
    -cssj-direction-mode: physical;
    bottom: -4mm;
    width: 8mm;
    font-size: 2.5mm;
    line-height: 8mm;
}
#left-nombre {
    -cssj-page-content: nombre-left left;
    left: -9mm;
}
#right-nombre {
    -cssj-page-content: nombre-right right;
    right: -9mm;
}
#left-nombre .heading,
#right-nombre .heading {
    display: inline-block;
    line-height: 1;
    margin-bottom: 1.5em;
}
#left-nombre .heading:before,
#right-nombre .heading:before {
    content: -cssj-heading(1);
}
#left-nombre .page,
#right-nombre .page{
    display: inline-block;
    writing-mode: horizontal-tb;
    width: 8mm;
    font-size: 3mm;
    line-height: 1;
    text-align: center;
}
#left-nombre .page:before,
#right-nombre .page:before {
    content: counter(page);
}

div.toc-entry {
    clear: all;
    page-break-after: always;
}
div.toc-entry,
div.toc-entry table {
    text-align: justify;
    font-family: serif;
    widows: 1;
    orphans: 1;    
}
div.toc-entry div.section {
    margin-left: 4em;
    font-size: 14pt;
    font-family: sans-serif;
    line-height: 1.2;
}
div.toc-entry div.section div.label {
    margin-left: -2em;
    margin-top: 1em;
    margin-bottom: 0.8em;
    page-break-after: avoid;
    position: relative;
}
div.toc-entry div.section div.label:after {
    content: ' ';
    display: Block;
    border-bottom: 0.3mm solid Black;
    position: relative;
    bottom: .65em;
    margin-right: 1em;
}
div.toc-entry div.section div.label span.text {
    position: relative;
    background-color: White;
    z-index: 1;
    padding-right: 1em;
}
div.toc-entry div.section div.label a {
    position: absolute;
    right: 0;
}

div.toc-entry div.section div.item {
    clear: both;
    font-size: 10pt;
    font-family: serif;
    line-height: 1.8;
}

div.toc-entry div.section a:after {
    -epub-writing-mode: horizontal-tb;
    font-size: 9pt;
    font-family: serif;
    content: -cssj-page-ref(attr(href), page);
}
div.toc-entry div.section div.item a {
    margin-left: 1em;
}
div.toc-entry div.section a,
div.toc-entry div.section a:link {
    color: Black;
}