/* Regra comum: tabelas podem crescer, palavras não são cortadas para caber. */
body table {
    table-layout: auto !important;
    max-width: none
}

body table :is(th, td),
body table :is(th, td) * {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important
}

body table :is(th, td) {
    white-space: normal
}

body table .numeric {
    white-space: nowrap
}

.site-table-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin-block: 18px;
    overscroll-behavior-inline: contain
}

.site-table-scroll>table {
    width: 100%
}

.site-table-scroll:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px
}

/* Espaços de preenchimento não dependem de caracteres sublinhados. */
.table-fill-area {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 2.8rem;
    padding: .5rem .6rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface-soft) 45%, var(--surface));
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
    text-align: left;
    white-space: normal
}

.table-fill-area>span {
    font-style: italic;
    white-space: nowrap !important
}

.pop-writing-space:has(.table-fill-area) {
    border: 0;
    min-height: 0;
    line-height: normal
}

.pop-writing-space>.table-fill-area {
    min-height: 7rem
}

.report-document {
    overflow-x: auto
}

@media screen {
    .document-paper {
        width: min(210mm, 100%);
        max-width: 100%;
        min-width: 0
    }

    .document-paper .math-inline {
        display: inline-block;
        max-width: 100%;
        overflow-x: auto;
        vertical-align: middle
    }
}

.document-paper .full-law-text p:has(>img) {
    text-indent: 0 !important
}

.document-paper .full-law-text p>img {
    display: block;
    max-width: 100%;
    height: auto
}

@media print {
    .site-table-scroll {
        overflow: visible;
        max-width: none;
        margin-block: 12pt
    }

    .report-document {
        overflow: visible
    }

    body table {
        table-layout: auto !important;
        max-width: 100%
    }

    body table :is(th, td) {
        padding: 4pt
    }

    body table:has(tr>:nth-child(7)) {
        font-size: 7pt
    }

    .table-fill-area {
        min-height: 10mm;
        padding: 0;
        background: transparent !important;
        border: 0;
        border-radius: 0
    }

    .table-fill-area>span {
        display: none !important
    }

    .pop-writing-space>.table-fill-area {
        min-height: 30mm
    }
}
