/* TODO:
  #externPanels

*/
@media (max-width: 1270px), (max-height: 500px) { /* 800px 400px*/

    html, body {
        height: 100%;
        margin: 0;
        padding: 0 !important;
        width: 100%;
    }

    body.tdBg06 { /*JP u aplikaci v IFrame zachovat odsazeni*/
        width: auto;
        height: auto;
        padding: 5px !important;
    }

    /* mapa */

    #MainDivOver {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
    }

    #MainDiv {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    #divMapInner {
        border: 0 none !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    /* TODO - tohle jeste uplne nefunguje, obrazek mapy je porad mensi, nez ve skutecnosti */
    #Map1, #Map2 {
        /*left: 0 !important;*/
        /*top: 0 !important;*/
        /*width: 100% !important; 
    height: 100% !important;*/
    }

    /* pravy panel s vrstvami */
    #seznam_vrstev {
        height: 100vh; /* IE fallback */
        height: calc(var(--vh, 1vh) * 100);
        left: auto !important;
        max-width: calc(100vw - 36px);
        pointer-events: none;
        right: 0;
        top: var(--header-height, 0px) !important;
        width: 340px !important;
    }

    #seznam_vrstev *:not(input) {
        box-sizing: border-box;
    }

    #seznam_vrstev > * {
        pointer-events: all;
    }

    #seznam_vrstev table {
        table-layout: fixed;
    }

    #tblseznam_vrstev {
        border: 0 none !important;
        box-shadow: gray -1px 0px 4px 2px;
        display: table !important;
        height: 100% !important;
        width: 100% !important;
    }

    #tblseznam_vrstev > tbody > tr:nth-child(3),
    #tblseznam_vrstev > tr:nth-child(3) {
        display: none;
    }

    #tblseznam_vrstev .tdBg06 {
        width: 100%;
    }

    #tblseznam_vrstev .tdBg08, #tblseznam_vrstev .tdBg09 {
        display: none;
    }

    #tblseznam_vrstev .bookscollapsed {
        position: fixed;
        left: auto;
        right: 8px;
        top: calc(var(--header-height, 0px) + 8px);
        width: 36px
    }

    #tblseznam_vrstev .books:not(.bookscollapsed) {
        display: none;
    }

    #BookLayers .BookLayers::after {
        content: "";
        background: no-repeat center center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 24 24' fill='white'> <path d='M 12 1 L 0 7 L 5 9.5 L 0 12 L 5 14.5 L 0 17 L 12 23 L 24 17 L 19 14.5 L 24 12 L 19 9.5 L 24 7 L 12 1 z M 6.6875 10.34375 L 12 13 L 17.3125 10.34375 L 20.59375 12 L 12 16.3125 L 3.40625 12 L 6.6875 10.34375 z M 6.6875 15.34375 L 12 18 L 17.3125 15.34375 L 20.59375 17 L 12 21.3125 L 3.40625 17 L 6.6875 15.34375 z'/> </svg>") !important;
    }

    #BookLegend .BookLegend::after {
        content: "";
        background: no-repeat center center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 1200 1200' fill='white'><svg xmlns='http://www.w3.org/2000/svg' version='1.1' x='0px' y='0px' viewBox='0 0 100 100'><g><path d='M35.7,27.2h58.5c1,0,1.8-0.8,1.8-1.8s-0.8-1.8-1.8-1.8H35.7c-1,0-1.8,0.8-1.8,1.8S34.7,27.2,35.7,27.2z'></path><path d='M94.1,47.3H35.7c-1,0-1.8,0.8-1.8,1.8s0.8,1.8,1.8,1.8h58.5c1,0,1.8-0.8,1.8-1.8S95.1,47.3,94.1,47.3z'></path><path d='M94.1,70.9H35.7c-1,0-1.8,0.8-1.8,1.8s0.8,1.8,1.8,1.8h58.5c1,0,1.8-0.8,1.8-1.8S95.1,70.9,94.1,70.9z'></path><path d='M22.7,39.7H7.5c-1,0-1.8,0.8-1.8,1.8v15.2c0,1,0.8,1.8,1.8,1.8h15.2c1,0,1.8-0.8,1.8-1.8V41.5   C24.4,40.5,23.6,39.7,22.7,39.7z'></path><path d='M7.1,34h15.6c0.6,0,1.2-0.3,1.5-0.9s0.3-1.2,0-1.8l-7.8-13.5c-0.3-0.5-0.9-0.9-1.5-0.9s-1.2,0.3-1.5,0.9L5.6,31.4   c-0.3,0.5-0.3,1.2,0,1.8S6.5,34,7.1,34z'></path><path d='M15.4,62.6c-5.5,0-10,4.5-10,10s4.5,10,10,10s10-4.5,10-10S20.9,62.6,15.4,62.6z'></path></g></svg></svg>") !important;
    }

    #BookPrint .BookPrint::after {
        content: "";
        background: no-repeat center center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 612 612' fill='white'><path d='M542.423,213.376h-57.535V32.386c0-9.448-7.659-17.108-17.108-17.108H144.22c-9.449,0-17.108,7.66-17.108,17.108v180.99     H69.579C31.212,213.376,0,244.588,0,282.955v183.955c0,38.364,31.212,69.576,69.579,69.576h54.233v43.129     c0,9.448,7.659,17.108,17.108,17.108h330.163c9.449,0,17.108-7.66,17.108-17.108v-43.13h54.233     c38.366,0,69.579-31.212,69.579-69.576V282.955C612,244.588,580.788,213.376,542.423,213.376z M577.784,466.911     c0,19.497-15.863,35.36-35.363,35.36h-54.233V362.875c0-9.449-7.659-17.108-17.108-17.108H140.919     c-9.449,0-17.108,7.659-17.108,17.108v139.395H69.579c-19.5-0.001-35.363-15.863-35.363-35.36V328.52h543.569V466.911z      M161.328,49.494h289.345v163.882H161.328V49.494z M34.216,282.955c0-19.499,15.863-35.363,35.363-35.363h472.844     c19.5,0,35.363,15.863,35.363,35.363v11.35H34.216V282.955z M453.974,562.507H158.027V379.982h295.947V562.507z'/><path d='M535.533,253.839c-4.505,0-8.91,1.825-12.104,5.018c-3.179,3.179-5.004,7.584-5.004,12.089s1.825,8.91,5.004,12.104     c3.193,3.179,7.599,5.004,12.104,5.004c4.491,0,8.91-1.825,12.089-5.004c3.193-3.193,5.018-7.599,5.018-12.104     s-1.823-8.91-5.018-12.089C544.443,255.664,540.025,253.839,535.533,253.839z'/><path d='M202.439,451.799h200.323c9.448,0,17.108-7.66,17.108-17.108c0-9.449-7.66-17.108-17.108-17.108H202.439     c-9.448,0-17.108,7.659-17.108,17.108C185.331,444.14,192.991,451.799,202.439,451.799z'/><path d='M202.439,524.907h93.581c9.449,0,17.108-7.66,17.108-17.108c0-9.448-7.659-17.108-17.108-17.108h-93.581     c-9.448,0-17.108,7.66-17.108,17.108C185.331,517.249,192.991,524.907,202.439,524.907z'/></svg>") !important;
    }

    #BookFind .BookFind::after {
        content: "";
        background: no-repeat center center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 70 70' fill='white'><path d='M66.829,51.329L56.593,41.093c1.479-3.56,2.248-7.387,2.248-11.282c0-16.222-13.198-29.42-29.421-29.42   C13.198,0.391,0,13.589,0,29.811c0,16.223,13.198,29.421,29.42,29.421c4.318,0,8.518-0.932,12.37-2.724l9.931,9.932   c2.019,2.019,4.701,3.13,7.556,3.13s5.539-1.112,7.557-3.132c2.016-2.015,3.127-4.698,3.127-7.553   C69.96,56.032,68.849,53.348,66.829,51.329z M62.588,62.198c-0.914,0.915-2.113,1.372-3.312,1.372s-2.397-0.457-3.313-1.372   L42.798,49.031c-3.794,2.646-8.403,4.201-13.378,4.201C16.485,53.232,6,42.746,6,29.811s10.485-23.42,23.42-23.42   s23.421,10.485,23.421,23.42c0,4.57-1.314,8.832-3.578,12.438l13.325,13.325C64.418,57.403,64.418,60.369,62.588,62.198z'/><path d='M29.42,13.061c-9.235,0-16.749,7.514-16.749,16.75s7.514,16.75,16.749,16.75c9.236,0,16.75-7.514,16.75-16.75   S38.656,13.061,29.42,13.061z M29.42,40.561c-5.927,0-10.749-4.822-10.749-10.75s4.822-10.75,10.749-10.75   c5.928,0,10.75,4.822,10.75,10.75S35.348,40.561,29.42,40.561z'/></svg>") !important;
    }

    #BookInfo .BookInfo::after {
        content: "";
        background: no-repeat center center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 490 490' fill='white'><g><path d='M245,490C109.9,490,0,380.1,0,245S109.9,0,245,0s245,109.9,245,245S380.1,490,245,490z M245,62C144.1,62,62,144.1,62,245     s82.1,183,183,183s183-82.1,183-183S345.9,62,245,62z'/></g><g><g><circle cx='241.3' cy='159.2' r='29.1'/></g><g><polygon points='285.1,359.9 270.4,359.9 219.6,359.9 204.9,359.9 204.9,321 219.6,321 219.6,254.8 205.1,254.8 205.1,215.9       219.6,215.9 263.1,215.9 270.4,215.9 270.4,321 285.1,321'/></g>	</g></svg>") !important;
    }

    #BookDraw .BookDraw::after {
        content: "";
        background: no-repeat center center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 503 503' fill='white'><path xmlns='http://www.w3.org/2000/svg' d='M130.169,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C138.847,486.908,134.968,483.029,130.169,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M182.237,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C190.915,486.908,187.036,483.029,182.237,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M78.102,483.029H60.746c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C86.78,486.908,82.901,483.029,78.102,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M26.034,483.029H8.678c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C34.712,486.908,30.833,483.029,26.034,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M442.576,483.029H425.22c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C451.254,486.908,447.375,483.029,442.576,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M494.644,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C503.322,486.908,499.443,483.029,494.644,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M390.508,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C399.186,486.908,395.307,483.029,390.508,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M338.441,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C347.119,486.908,343.24,483.029,338.441,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M286.373,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C295.051,486.908,291.172,483.029,286.373,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M234.305,483.029h-17.356c-4.799,0-8.678,3.879-8.678,8.678c0,4.799,3.879,8.678,8.678,8.678h17.356     c4.799,0,8.678-3.879,8.678-8.678C242.983,486.908,239.104,483.029,234.305,483.029z'/><path xmlns='http://www.w3.org/2000/svg' d='M446.763,23.707c-26.745-26.719-70.821-27.822-96.273-2.36l-13.781,13.781l98.174,98.174l13.798-13.789     c11.924-11.915,18.892-28.663,19.144-45.932c0.252-18.319-6.916-35.719-20.159-48.97L446.763,23.707z'/><path xmlns='http://www.w3.org/2000/svg' d='M324.436,47.398l-0.633,0.633l0.043,0.035l-13.043,13.225l9.19,9.19c1.388,0.391,2.725,0.998,3.81,2.091l73.641,73.633     c1.085,1.093,1.701,2.421,2.083,3.81l9.346,9.346l13.746-13.781L324.436,47.398z'/><path xmlns='http://www.w3.org/2000/svg' d='M10.859,469.691c1.198,0,2.412-0.252,3.558-0.764l154.025-69.354c0.903-0.408,1.675-0.989,2.378-1.649     c0.061-0.061,0.148-0.078,0.208-0.139L396.62,171.646l-24.585-24.576l-29.826,29.818c-1.692,1.692-3.914,2.543-6.135,2.543     c-2.222,0-4.434-0.85-6.135-2.543c-3.384-3.393-3.384-8.886,0-12.271l29.826-29.826l-24.55-24.55L237.9,207.564     c-1.701,1.692-3.914,2.543-6.135,2.543c-2.222,0-4.443-0.85-6.135-2.543c-3.393-3.393-3.393-8.886,0-12.271l97.315-97.323     l-24.333-24.324L71.96,303.378c-0.061,0.052-0.069,0.13-0.122,0.182c-0.66,0.703-1.232,1.475-1.631,2.386L2.927,457.49     c-1.458,3.298-0.738,7.142,1.814,9.676C6.398,468.814,8.611,469.691,10.859,469.691z M299.262,195.294l6.135-6.135     c3.393-3.393,8.886-3.393,12.271,0c3.393,3.384,3.393,8.878,0,12.271l-6.135,6.135L170.394,348.703     c-1.692,1.692-3.914,2.534-6.135,2.534c-2.213,0-4.434-0.842-6.135-2.534c-3.384-3.393-3.384-8.886,0-12.279L299.262,195.294z      M176.53,244.385l24.559-24.541c3.384-3.393,8.878-3.393,12.271,0c3.384,3.384,3.384,8.878,0,12.271l-6.135,6.127v0.009     l-18.415,18.406c-1.701,1.692-3.922,2.543-6.135,2.543c-2.222,0-4.443-0.85-6.144-2.543     C173.145,253.262,173.145,247.778,176.53,244.385z M121.147,303.508l32.534-34.408c3.28-3.497,8.782-3.636,12.271-0.339     c3.471,3.289,3.636,8.782,0.338,12.271l-32.534,34.408c-1.71,1.805-4.001,2.708-6.309,2.708c-2.143,0-4.287-0.79-5.962-2.369     C118.006,312.481,117.849,306.988,121.147,303.508z M83.78,318.148h32.516l-9.225,36.413c-0.764,3.02,0.139,6.205,2.369,8.366     c2.23,2.152,5.424,2.968,8.435,2.109l38.331-10.96v31.97l-82.935,37.341l-25.079-25.079L83.78,318.148z'/></svg>") !important;
    }

    #BookLayers, #BookLegend, #BookPrint, #BookFind, #BookInfo, #BookDraw {
        border-radius: var(--control-corner-radius);
        margin-top: 8px;
    }

    #BookLayers:first-child, #BookLegend:first-child, #BookPrint:first-child, #BookFind:first-child, #BookInfo:first-child, #BookDraw:first-child {
        margin-top: 0;
    }

    .BookLayers, .BookInfo, .BookFind, .BookLegend, .BookPrint, .BookDraw, .book0, .book1, .book2, .book3, .book4, .book5, .book0gray, .book1gray, .book2gray, .book3gray, .book4gray, .book5gray {
        background-color: var(--control-bg-color);
        height: 36px;
        width: 36px;
    }

    .book0gray > div::after, .book1gray > div::after, .book2gray > div::after, .book3gray > div::after, .book4gray > div::after, .book5gray > div::after,
    .book0 > div::after, .book1 > div::after, .book2 > div::after, .book3 > div::after, .book4 > div::after, .book5 > div::after {
        background-color: transparent !important;
        border: 0 none;
        height: 26px;
        left: 5px;
        top: 5px;
        transform: none;
        width: 26px;
    }

    #Innerseznam_vrstev {
        height: calc(100vh - 32px) !important; /* IE fallback */
        height: calc(var(--vh, 1vh) * 100 - 32px - var(--header-height, 0px)) !important; /* nad tim je jeste .tdBg02 s vyskou 32px*/
        padding: 8px;
        width: 100% !important;
    }

    #Innerseznam_vrstev.divObsahOkno {
        border: 0 none;
    }

    #Innerseznam_vrstev > div {
        height: 100%;
        margin: 0 !important;
        width: 100%;
    }

    #Innerseznam_vrstev > div .localizePanel,
    #Innerseznam_vrstev > div .divDrawContent {
        margin: 0;
    }

    /* scale bar */
    .scaleBar {
        display: none;
    }
    /* pan arrows*/
    .arrowPanel {
        display: none;
        height: 64px;
        left: 4px !important;
        top: 4px !important;
        width: 64px;
    }

    .divArrowLeft::after, .divArrowLeftOn::after,
    .divArrowRight::after, .divArrowRightOn::after,
    .divArrowUp::after, .divArrowUpOn::after,
    .divArrowDown::after, .divArrowDownOn::after {
        font-size: 20px;
    }
    /* VIP panel*/
    #VipPanel {
        align-items: start;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        left: 0 !important;
        /*padding: 0 52px 0 6px; /* vpravo jsou ovladaci tlacitka vrstev atp*/
        top: calc(var(--header-height, 0px) + 5px);
        width: 100% !important;
        padding-right: 38px;
    }

    #VipPanel > * {
        flex: 0 0 auto;
    }
    /* windows */
    .divOuterBox:not(#prehledova_mapa):not(#seznam_vrstev):not(#adresy), .divAlertBubblegray {
        bottom: 0;
        height: auto;
        left: 0 !important;
        max-height: calc(95% - var(--header-height, 0px));
        position: fixed;
        top: auto !important;
        right: 0;
    }

    .divTecky {
        display: none;
    }

    .divIcoMin, .divIcoMinOn, .divIcoMinoff, .divIcoOkno, .divIcoOknoOn, .divIcoOknooff, .divIcoClose, .divIcoCloseOn, .divIcoCloseoff, .divIcoMinVert, .divIcoMinVertOn, .divIcoMinVertoff, .OverviewScale, .OverviewScaleon {
        height: 32px;
        width: 32px;
    }

    .divIcoMin::after, .divIcoMinOn::after, .divIcoClose::after, .divIcoCloseOn::after, .divIcoOkno::after, .divIcoOknoOn::after, .divIcoMinVert::after, .divIcoMinVertOn::after, .OverviewScale::after, .OverviewScaleon::after {
        align-items: center;
        display: flex;
        font-size: 24px;
        justify-content: center;
    }

    .divIcoOkno, .divIcoOknoOn,
    .divOuterBox:not(#adresy):not(#menu_selector) .divIcoMin, .divOuterBox:not(#adresy):not(#menu_selector) .divIcoMinOn {
        display: none !important;
    }

    .divIcoMin::after, .divIcoMinOn::after, .divIcoMinVert::after, .divIcoMinVertOn::after {
        content: "\00D7"; /* prepsani minimalizacniho symbolu na krizek */
    }

    #seznam_vrstev .OverviewScaleon, #seznam_vrstev .OverviewScale {
        display: none;
    }

    .divOuterBox:not(#prehledova_mapa) > table > tr:nth-child(3), .divOuterBox:not(#prehledova_mapa) > table > tbody > tr:nth-child(3), .tdBg01, .tdBg04, .tdBg08, .tdBg09 {
        display: none;
    }

    .tdBg02 {
        height: 32px;
        text-align: left !important;
    }

    .tdBg02 .divNadpis, .tdBg02 .divNadpisLogin {
        align-items: center;
        display: inline-flex;
        height: 100%;
        left: auto !important;
        padding-left: 8px;
        position: relative;
        top: auto;
    }

    #seznam_vrstev .divNadpis::before {
        content: "▾";
        font-size: 20px;
        margin-right: 2px;
        transform: translateY(-1px);
    }

    #prehledova_mapa .divNadpis {
        left: 30px !important;
    }

    .overviewHideOnStart {
        display: none; /* init schovani po startu, pak uz tam className nikdy neni*/
    }

    #Innernews_win {
        height: calc(100vh - 60px) !important; /* IE fallback */
        height: calc(var(--vh, 1vh) * 100 - 60px) !important;
        padding: 12px 8px;
        width: auto !important;
    }

    #Innerqappl_win {
        width: 100vw !important;
    }

    #Innerpanel-help {
        max-height: calc(95vh - 32px); /* IE fallback */
        max-height: calc(var(--vh, 1vh) * 95 - 32px - var(--header-height, 0px));
        width: 100% !important;
    }
    /* menu neni bezne okno pres celou sirku od spodniho okraje*/
    #tblmenu_selector {
        bottom: 37px;
        margin-bottom: auto !important;
        margin-left: 11px; /* left 8 + margin 3 -> divTlacitkoMenu*/
    }

        #tblmenu_selector .tr1 {
            display: none;
        }

    #menu_selector .divMenuBgrOn .divTlacitkoMenu, #menu_selector .divMenuBgrOn .divTlacitkoMenuOn {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .tblOknoOkno:not(#tblprehledova_mapa), .tblOknoOknoon:not(#tblprehledova_mapa), .tblOknoAdresy, .tblOknoMenu {
        border: 0 none;
        position: relative;
        table-layout: fixed;
        width: 100%;
    }

    .tblOknoOkno *:not(input), .tblOknoOknoon *:not(input), .tblOknoAdresy *:not(input), .tblOknoMenu *:not(input) {
        box-sizing: border-box;
    }

    .tblOknoOkno:not(#tblprehledova_mapa) .tdBg02, .tblOknoOknoon:not(#tblprehledova_mapa) .tdBg02, .tblOknoAdresy .tdBg02, .tblOknoMenu .tdBg02 {
        width: 100vw;
    }

    .tblOknoOkno:not(#tblprehledova_mapa) .divObsahOkno, .tblOknoOknoon:not(#tblprehledova_mapa) .divObsahOkno, .tblOknoAdresy .divObsahOkno, .tblOknoMenu .divObsahOkno {
        height: auto !important;
        max-height: calc(95vh - 32px); /* IE fallback */
        max-height: calc(var(--vh, 1vh) * 95 - 32px - var(--header-height, 0px)); /* .divOuterBox - .tdbg2 */
        padding: 16px 12px;
    }

    .tblOknoOkno .divObsahOkno, .tblOknoOknoon .divObsahOkno, .tblOknoAdresy .divObsahOkno, .tblOknoMenu .divObsahOkno {
        width: 100% !important;
    }

    #Innermenu_selector {
        border-radius: var(--windows-border-radius);
        border-bottom-left-radius: 0;
        overflow: auto;
    }

    #menu_selector #Innermenu_selector .tblMenuText, #menu_selector #Innermenu_selector .tblMenuMenu {
        max-width: 320px;
    }

    #menu_selector #Innermenu_selector .tblMenuMenu td {
        padding-left: 12px;
        text-align: left;
    }

    #adresy {
        bottom: 80px;
        left: 0 !important;
        top: auto !important;
    }

    .divAdresyBgr, .divAdresyBgrOn {
        left: 8px;
        right: auto;
    }
    /* paticka */
    @keyframes slideOutDown {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(100%);
        }
    }

    #QuarterPanel {
        background: white;
        box-sizing: border-box;
        animation-delay: 3s;
        animation-duration: .6s;
        animation-name: slideOutDown;
        animation-iteration-count: 1;
        animation-timing-function: ease-in;
        animation-fill-mode: forwards;
        padding: 12px 16px;
        position: fixed;
        z-index: 4;
    }

    .QuarterPanelIn {
        white-space: normal;
    }
    /* hlavicka */
    #HeadPanel {
        background: rgba(255,255,255,.6);
        box-sizing: border-box;
        position: fixed;
        z-index: 4;
    }
    /* tools, menu*/
    .divTools, .divToolsQ {
        bottom: 8px !important;
        height: auto !important;
        padding-right: 26px; /* misto na LogoGeoMain */
        top: auto !important;
    }

    .divMenuBgr, .divMenuBgrOn, #menu_selector {
        bottom: 6px;
        left: 8px;
    }
    /* wattermark */
    .LogoGeoMain, .LogoGeoMainQ {
        background-image: url('../obrazy/GeovapLogoSmallVert.png');
        bottom: 20px;
        height: 97px;
        left: auto !important;
        right: 2px;
        top: auto !important;
        transform-origin: center;
        transform: rotate(180deg);
        width: 25px;
    }
    /* vyber temat */
    .divTheme {
        display: none;
    }

    /* inputy/checkboxy - prevzato z puvodniho "body2x" stylu */
    input[type="checkbox"].treeChck, .body2x input[type="radio"].treeChck {
        margin-top: -4px;
    }

    input[type="checkbox"], .body2x input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-left: 5px;
        margin-right: 3px;
    }

    .divPlus, .divMinus, .divMinusV, .divPlusV, .divL, .divE, .divT, .divInRightNode, .divInRightNodeLoc, .tdInNode {
        min-height: 30px;
    }

    /* z-index hell*/
    .divMenuBgr, .divMenuBgrOn {
        z-index: 1 !important;
    }

    #menu_selector {
        z-index: 3 !important;
    }

    #adresy {
        z-index: 2 !important;
    }

    #books {
        z-index: 1 !important;
    }

    #seznam_vrstev, #Innerseznam_vrstev {
        z-index: 3 !important;
    }

    .arrowPanel, .divArrowLeft, .divArrowLeftOn, .divArrowRight, .divArrowRightOn, .divArrowUp, .divArrowUpOn, .divArrowDown, .divArrowDownOn, .icoEarth, .icoEarthOn {
        z-index: 2 !important;
    }

    .divTools, .divToolsQ {
        z-index: 2;
    }

    .LogoGeoMain, .LogoGeoMainQ {
        z-index: 2;
    }

    /*JP*/
    #prehledova_mapa.respWin, #Nastroje.respWin {
        display: none !important;
    }

    @media (pointer: coarse) {
        .divElemStyle {
            padding: 5px 8px;
        }

        .MenuNode .MenuItemin, .MenuNode .MenuIteminon {
            padding: 6px 8px;
        }

        .vectorCircle {
            transform: scale(1.8);
            vector-effect: non-scaling-stroke;
        }
    }

    #detectResponsive {
        visibility: visible;
    }

    .stPanelMap {
        display: none;
    }

    .responziveQuarter {
        display: block;
    }
}

@media (max-width: 1270px) and (min-width: 600px), (max-height: 500px) and (min-width: 600px) { /*zmenšení šířky okna pokud šířka přesáhne limit(široké a nízké viewporty)*/
    #polygon {
        right: auto;
        width: 250px;
    }

    #gps {
        right: auto;
        width: 320px;
    }
}