.report-container {
    width: 100%;
    max-width: 1600px;
}

.report-summary > [class*="col-"] {
    display: flex;
}

.report-summary .card {
    width: 100%;
    overflow-wrap: anywhere;
}

.report-summary .card-body {
    min-width: 0;
}

.report-algorithms,
.report-algorithm {
    min-width: 0;
    overflow-wrap: anywhere;
}

.report-algorithm .table-responsive {
    max-width: 100%;
    margin-bottom: .75rem;
}

.report-algorithm .table-responsive table {
    white-space: nowrap;
}

.report-algorithm mjx-container[display="true"] {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .25rem 0 .75rem;
}

.report-algorithm .bk-root {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .report-heading {
        padding: 0 !important;
    }

    .report-heading .container-fluid {
        padding: 1rem 0 !important;
    }

    .report-heading .display-5 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .report-heading .fs-4 {
        max-width: 100%;
        font-size: 1rem !important;
        overflow-wrap: anywhere;
    }

    .report-algorithms {
        padding: .75rem;
    }

    .report-algorithm h1.card-title {
        font-size: 1.65rem;
    }

    #algoTab {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    #algoTab .nav-link {
        white-space: nowrap;
    }
}

.report-container .equation {
    margin: 1rem 0;
    text-align: center;
}

.report-container .equation img {
    max-width: 100%;
    height: auto;
}

.report-container h3 {
    margin-top: 1.5rem;
    font-size: 1.35rem;
}

.report-container h4 {
    margin-top: 1rem;
    font-size: 1rem;
}

.report-container .report-calculation {
    margin: .6rem 0;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.report-container .results {
    border-left: 3px solid #2b657e;
    padding: .3rem .8rem;
    margin: 1rem 0;
}

.report-container .optimal-path {
    background-color: #d7efdd;
    font-weight: bold;
}

.report-container .notation th:first-child,
.report-container .notation td:first-child {
    width: 6rem;
}

.report-container .plot {
    max-width: 100%;
    overflow-x: auto;
}

.report-container .endnote {
    margin: 1rem 0;
    color: #526271;
}

@media print {
    .report-algorithms > .tab-pane {
        display: block !important;
        opacity: 1 !important;
        break-before: page;
    }

    #algoTab {
        display: none;
    }
}
