@media print {
    .is-hidden-print { display: none !important; }

    .section,
    .container.is-fluid { padding: 0!important; }

    body { font-size: .8em!important; }

    #copiador { display: none!important; }

    table p { page-break-inside:avoid; }

    #folha-rosto { display: block!important; page-break-after: always; }
    #folha-rosto img,
    #folha-rosto h1 { margin-top: 30%; }
    #folha-rosto .center { display: block; margin-left: auto; margin-right: auto; width: 50%; }

    .section h1.title { display: none; }

    .quebra-anterior { page-break-before: always; }
}

@media screen {
    table.tabela { margin-top: 48px; }
}

thead { display: table-header-group; }

th { background-color: #999; }

table.tabela td { vertical-align: middle; text-align: center; }
table.tabela td.texto { text-align: left; }
table.tabela tr.grupo td { font-weight: bold; }
table.tabela thead th { text-align: center!important; }

table.completo th:nth-child(1) { width: 5%; }
table.completo th:nth-child(2) { width: 14%; }
table.completo th:nth-child(3) { width: 14%; }
table.completo th:nth-child(4) { width: 4%; }
table.completo th:nth-child(5) { width: 4%; }
table.completo th:nth-child(6) { width: 6.5%; }
table.completo th:nth-child(7) { width: 6.5%; }
table.completo th:nth-child(8) { width: 4%; }
table.completo th:nth-child(9) { width: 41.99%; }

table.resumo tr.grupo td:nth-child(1) { width: 14%; }
table.resumo tr.grupo td:nth-child(2) { width: 14%; }
table.resumo tr.grupo td:nth-child(3) { width: 4%; }
table.resumo tr.grupo td:nth-child(4) { width: 26.59%; }
table.resumo tr.grupo td:nth-child(5) { width: 6.5%; }
table.resumo tr.grupo td:nth-child(6) { width: 12%; }
table.resumo tr.grupo td:nth-child(7) { width: 22.9%; }

td[colspan],
table.resumo th,
table.completo th,
table.resumo td,
table.completo td,
table.regras th { text-align: center!important; }

table.completo td:first-child { cursor: default; }

table.resumo tr:not(.grupo) td:nth-child(4),
table.resumo tr:not(.grupo) td:nth-child(1),
table.completo td:last-child { text-align: left!important; }

td[rowspan]{ vertical-align: middle; }

.grupo { background-color: #ccc; }

.grupo-choice { background-color: #999; }

.message-body p { margin: .5em 0; }

.sumario { margin-bottom: 48px; }

.sub-cabecalho { background-color: #ddd; }

#folha-rosto { display: none; }

table.resumo td { vertical-align: middle; }

table.resumo td.tree-node {
    position: relative;
    vertical-align: middle;
}

table.resumo .tree-continuacao,
table.resumo .tree-ramo {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    pointer-events: none;
}

table.resumo .tree-continuacao { transform: translateX(-2px); }

table.resumo .tree-continuacao,
table.resumo .tree-ramo.continua::before,
table.resumo .tree-ramo.ultimo::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2px;
    border-left: 1px solid #888;
}

table.resumo .tree-ramo.ultimo::before { bottom: 50%; }

table.resumo .tree-ramo::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -2px;
    width: .375em;
    border-top: 1px solid #888;
}