/* ============================================================
   IMPRESSÃO — ESTILO TIPO LIVRO PROFISSIONAL
   ============================================================ */

@media print {

    /* --------------------------------------------------------
       Layout base tipo livro
    -------------------------------------------------------- */
    body {
        font-size: 12pt !important;
        line-height: 1.45 !important;
        font-family: "Georgia", "Times New Roman", serif !important;
        color: #000 !important;
        margin: 20mm 15mm !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* --------------------------------------------------------
       Esconder elementos não imprimíveis
    -------------------------------------------------------- */
    header,
	.topbar,
	nav,
	.ym-searchform,
	.ym-noprint,
	#mobileMenuBtn,
.	mobile-menu-btn {
    display: none !important;
    visibility: hidden !important;
	}

    /* --------------------------------------------------------
       Cabeçalho / margens de página
    -------------------------------------------------------- */
    @page {
        margin: 20mm 15mm;
    }

    /* --------------------------------------------------------
       Títulos
    -------------------------------------------------------- */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        color: #000 !important;
        font-weight: bold !important;
        text-align: center !important;
    }

    h1 {
        font-size: 18pt !important;
        margin-bottom: 6mm !important;
    }

    h2 {
        font-size: 20pt !important;
        margin-bottom: 10mm !important;
    }

    h3 {
        font-size: 16pt !important;
        margin-bottom: 6mm !important;
    }

    /* --------------------------------------------------------
       Corpo do texto
    -------------------------------------------------------- */
    .textBody p,
    p {
        font-size: 12pt !important;
        margin-bottom: 4mm !important;
        orphans: 3;
        widows: 3;
    }

    ul, ol {
        margin: 0 0 4mm 6mm !important;
    }

    li {
        margin-bottom: 2mm !important;
    }

    a,
    a:visited {
        color: #000 !important;
        text-decoration: none !important;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
    }

    tr, td, th {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* --------------------------------------------------------
       Pesquisa — imprimir só os resultados quando ativado
    -------------------------------------------------------- */
     body.print-search-only header,
     body.print-search-only .topbar,
     body.print-search-only nav,
     body.print-search-only .ym-searchform,
     body.print-search-only .ym-noprint,
     body.print-search-only #mobileMenuBtn,
     body.print-search-only .mobile-menu-btn,
     body.print-search-only #contentArea,
     body.print-search-only #formSearch,
     body.print-search-only #searchActions,
     body.print-search-only .alignRight,
     body.print-search-only footer {
          display: none !important;
          visibility: hidden !important;
    }
    body.print-search-only main,
    body.print-search-only .ym-wrapper,
    body.print-search-only .ym-wbox {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    body.print-search-only #searchResults {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.print-search-only #searchResults .search-print-meta {
        display: block !important;
        margin-bottom: 8mm !important;
        text-align: left !important;
    }

    body.print-search-only #searchResults .search-print-meta h1 {
        text-align: left !important;
        font-size: 18pt !important;
        margin-bottom: 4mm !important;
    }

    body.print-search-only #searchResults .search-print-meta p {
        margin: 0 0 2mm 0 !important;
        font-size: 11pt !important;
    }

    body.print-search-only #searchResults .search-results {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.print-search-only #searchResults .search-result-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        border-bottom: 1px solid #999 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 0 0 4mm 0 !important;
        margin: 0 0 5mm 0 !important;
        background: transparent !important;
    }

    body.print-search-only #searchResults a,
    body.print-search-only #searchResults a:visited {
        color: #000 !important;
        text-decoration: none !important;
        font-weight: bold !important;
    }

    body.print-search-only #searchResults mark {
        background: #ddd !important;
        color: #000 !important;
        padding: 0 1px !important;
    }
}