﻿/* ===========================
   PRINT STYLES FOR DOCFX PDF
   =========================== */

/* Nastavení stránky */
@page {
    size: A4 portrait;
    margin-top: 25mm;
    margin-bottom: 20mm;
    margin-left: 25mm;
    margin-right: 15mm;
}

/* Stylování obsahu při tisku */
@media print {

    /* Skrytí UI */
    header,
    nav,
    .toc,
    .toc-offcanvas,
    .actionbar,
    .affix,
    footer,
    .next-article,
    .contribution,
    .search,
    #search-results,
    .navbar,
    .offcanvas,
    .offcanvas-body,
    .offcanvas-header {
        display: none !important;
    }

    /* HTML/BODY */
    html,
    body {
        background: white !important;
        color: black !important;
        font-family: Arial, sans-serif !important;
        font-size: 11pt;
        line-height: 1.45;
        width: 100%;
        height: auto;
        overflow: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hlavní obsah */
    .content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Text */
    article {
        font-size: 11pt;
        line-height: 1.45;
        color: black !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
    }

    /* Nadpisy */
    h1, h2, h3, h4, h5, h6 {
        font-family: Arial, sans-serif !important;
        font-weight: bold;
        color: #003366 !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Odstavce */
    p {
        margin: 0 0 10pt 0 !important;
    }

    /* Obrázky */
    img,
    svg {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important; /* důležité */
    }

    /* Tabulky */

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 10pt 0 14pt 0 !important;
        font-size: 10pt !important;
        page-break-inside: avoid !important;
    }

    th,
    td {
        border: none !important;
        padding: 5pt 7pt !important;
        vertical-align: top !important;
    }

    th {
        background: #e6eef7 !important;
        color: #000 !important;
        font-weight: bold !important;
    }

    tr:nth-child(even) td {
        background: #f8f8f8 !important;
    }

    /* Code */
    pre,
    code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        page-break-inside: avoid !important; /* důležité */
    }

    /* Odkazy */
    a {
        color: dodgerblue !important;
        text-decoration: none !important;
        font-weight: bold !important;
    }

    /* Efekty */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Ztenčení čar v Mermaid diagramech pro PDF */
    .mermaid svg path,
    .mermaid svg line,
    .mermaid svg polygon,
    .mermaid svg polyline {
        stroke-width: 1px !important;
    }

    /*.mermaid svg {
        max-height: 500px !important;
        width: auto !important;
        text-align: center !important;
    }*/
}
