.md-typeset__table {
    min-width: 100%;
}

.md-typeset table:not([class]) {
    display: table;
}

.icon-red {
    color: #FF2B0A;
}

.icon-orange {
    color: #FF9000;
}

.icon-green {
    color: #33AA66;
}

.inline-img {
    max-height: 20px !important; /* Restrict the height of inline images */
    width: auto !important;  /* Maintain aspect ratio */
}

.admonition .inline-img,
table .inline-img {
    max-height: 18px !important; /* Restrict the height of inline images in admonition boxes and tables */
    width: auto !important;  /* Maintain aspect ratio */
}

@media print {
    body {
        font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }

    h1, h2, h3 {
        border: none !important;
        margin-left: 0.5mm !important;
    }

    h4, h5, h6 {
        margin-left: 2mm !important;
    }

    h1{
        font-size: 20pt !important;
        text-transform: none !important;
        font-weight: normal !important;
    }

    h2{
        font-size: 18pt !important;
        text-transform: none !important;
        font-weight: normal !important;
    }

    h3{
        font-size: 16pt !important;
        text-transform: none !important;
        font-weight: normal !important;
    }

    h4{
        font-size: 14pt !important;
        text-transform: none !important;
        font-weight: normal !important;
    }

    h5{
        font-size: 13pt !important;
        text-transform: none !important;
        font-weight: normal !important;
    }

    h6{
        font-size: 12pt !important;
        text-transform: none !important;
        font-weight: normal !important;
    }

    .md-typeset, article#doc-toc li, .admonition, code, table {
        font-size: 10pt !important;
    }

    .admonition {
        margin-left: 2mm !important;
    }

    .admonition-title::before {
        left: 12px !important;
        top: 12px !important;
    }

    article p:not([class^="admonition"])  {
        /* margin-left: 7px !important; */
        margin-left: 2mm !important;
    }

    article ol {
        margin-left: 8mm !important;
    }

    article ul {
        margin-left: 6mm !important;
    }

    article table, ol {
        page-break-before: auto !important;
        page-break-inside: auto !important;
    }

    #doc-cover h1 {
        font-size: 32pt !important;
    }

    #doc-cover h2 {
        font-size: 22pt !important;
    }

    #doc-cover .logo {
        margin: auto;
        width: 250px !important;
        height: 250px !important;
    }

    address {
        font-style: normal;
        text-align: left;
    }

    #doc-back_cover {
        page: last_page !important;
    }

    table {
        border-collapse: collapse !important;
        margin-left: 2mm !important;
    }

    th, tr, td {
        border: 1px solid black !important;
    }

    .md-typeset table:not([class]) {
        width: 98%;
        table-layout: fixed
    }

    .md-typeset table:not([class]) td.p-w33 {
        width: 33%;
        padding: 0.5mm;
    }

    .md-typeset table:not([class]) td.p-w20 {
        width: 20%;
        padding: 0.5mm;
    }

    .md-typeset figure img {
        margin: 0 auto;
    }

    article ol li figure img {
        display: block !important;
        max-width: calc(100% - 4mm) !important; /* total padding 2mm each side */
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 2mm !important;
        padding-right: 2mm !important;
    }

    .admonition figure img {
        margin: 0 auto !important;
        padding-left: 2mm !important;
        padding-right: 2mm !important;
    }

    .inline-img {
        max-height: 10pt !important; /* Restrict the height of inline images */
        width: auto !important;  /* Maintain aspect ratio */
    }

    .admonition .inline-img,
    table .inline-img {
        max-height: 9pt !important; /* Restrict the height of inline images in admonition boxes and tables */
        width: auto !important;  /* Maintain aspect ratio */
    }

}

@page {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    margin: 25mm 15mm 25mm 15mm !important;

    @top-right {
        font-size: 8pt !important;
        margin-right: 4mm !important;
    }

    @bottom-center {
        content: none !important;
        font-size: 8pt !important;
    }

    @bottom-right {
        content: ''counter(page)'/'counter(pages)'' !important;
        font-size: 8pt !important;
        margin-right: 4mm !important;
    }
}

@page: first {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;

    @top-right {
        content: none !important;
    }

    @bottom-center {
        content: none !important;
    }

    @bottom-right {
        content: none !important;
    }
}

@page last_page {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;

    @top-right {
        content: none !important;
        font-size: 8pt !important;
    }

    @bottom-left {
        content: 'Copyright © 2025 Qvest Stream GmbH' !important;
        font-size: 8pt !important;
    }
}