/*body {
    background-color: #b9e8ff;
}*/

@media only screen and (max-width: 800px) {
    .no-more-tables table,
    .no-more-tables thead,
    .no-more-tables tbody,
    .no-more-tables th,
    .no-more-tables td,
    .no-more-tables tr {
        display: block;
    }

    .no-more-tables thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .no-more-tables tr {
        border: 1px solid #ccc;
    }

    .no-more-tables td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: right;
    }

    .no-more-tables td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .no-more-tables td:before {
        content: attr(data-title);
    }
}

.no-more-tables table {
    width: 100%;
}

.no-more-tables td, th {
    text-align: right;
    /*white-space: nowrap;*/
}

.no-more-tables td.numeric,
.no-more-tables th.numeric {
    text-align: right;
}

.breadcrumb-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-y: auto;
}

li.breadcrumb-item {
    white-space: nowrap;
    /*display: inline-block;*/
    /*float: none;*/
}


.modern-map {
    /* 1. Базовая высота, чтобы карта никогда не схлопывалась (аналог твоего if targetHeight > 420) */
    min-height: 420px;

    /* 2. Современная магия: берем 100% видимого экрана и вычитаем шапку/отступы (твои 225px) */
    height: calc(100dvh - 225px);

    /* 3. Ограничитель для гигантских мониторов, чтобы карта не стала высотой в 2 метра */
    max-height: 800px;
}
