/* ******************************
       Dialogové okno
********************************* */

/* Modal Header */
.dialog-header {
    padding: 8px 16px 0;
    min-height: 26px;
    background-image:url('../images/lista.png');
    /*background-size: unset 36px;*/
    background-position-x: center;
    background-repeat:no-repeat;
    color: white;
    font-weight: bold;
    cursor: grab;
}

.dialog-header:active {
    cursor: grabbing;
}

/* Modal Body */
.dialog-body {
    /*display: inline-block;*/
    border: none;
    /*width: 90%;
    height: 90%;*/
    padding: 2px 0;
    /*background-color: #c8c8ff;*/
}

/* Modal Footer */
.dialog-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 22px;
    font-weight: bold;
    border: black thin;
    margin: -6px;
}

.dialog-content {
    position: absolute;
    background-color: #fefefe;
    padding: 0;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    font-family: Tahoma, sans-serif;
    font-weight: normal;
    font-size: 10pt;
}

.close:hover,
.close:focus {
    color: rgb(200, 200, 255);
    text-decoration: none;
    cursor: pointer;
}

.dialog-title {
    position: absolute;
    top: 0;
    left: 10px;
    right: 30px;
    line-height: 30px
}

/* ******************************
         Modální okno
******************************* */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
     height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    /*background-color: rgb(0,0,0);  Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    display: inline-block;
    padding: 0;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* Add Animation */
@keyframes animatetop {
    from {opacity: 0}
    to {opacity: 1}
}

/*
Legenda
 */

.legendLayer {
    font-family: sans-serif;
    font-size: 10pt;
}

/*
    Záložky
*/
/* Panel se záložkami */
.tabButtonPane {
    position: relative;
    overflow: hidden;
    border: none;
    background-color: rgba(242, 242, 242, 0.8);
    vertical-align: bottom;
    display: flex;
    flex-direction: row
}

/* Tlačítka */
.tabButtonPane button {
    background:inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 10px;
    transition: 0.3s;
    color: #7c7cd4;
    font-weight: bold;
}

/* Change background color of buttons on hover */
.tabButtonPane button:hover {
    background-color: #dbdbff;
    text-decoration: underline;
}

/* Create an active/current tablink class */
.tabButtonPane button.active {
    background-color: rgb(184, 204, 228);
    color: #3e3ea0;
    cursor: inherit;
}

/* Panel s obsahem */
.tabContentPane {
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(250, 250, 250, 0.8);
}

.tabContentPane iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.selectedButton {
    border: thin solid green;
    background-color: rgba(0, 255, 0, 0.5);
}

/* Text */
h1 {
    font-family: Tahoma, sans-serif;
    font-weight: bold;
    font-size: 12pt;
}

h2 {
    font-family: Tahoma, sans-serif;
    font-weight: bold;
    font-size: 10pt;
    margin-bottom: 5px;
}

p {
    margin-top: 2px;
    margin-bottom: 2px;
    font-family: Tahoma, sans-serif;
    font-weight: normal;
    font-size: 10pt;
}

table {
    font-family: Tahoma, sans-serif;
    font-weight: normal;
    font-size: 10pt;
    padding: 5px 10px;
    border-spacing: 5px 2px;
}

/* Detail */
div.detail {
    position: relative;
    display:flex;
    flex-direction: row;
}

table.detail {
    margin-bottom: 10px;
    table-layout: auto;
    width: auto;
}

table.detail tr:nth-child(odd) {
    background: rgba(240,240,255,0.5);
}

div.selected {
    border: thin solid lightgray;
    box-shadow: 5px 10px 18px lightgray;
}

img.selected {
    border: thin solid gray;
    box-shadow: 0 0 18px rgb(0,0,200);
}

td.name {
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
    margin-right: 10px;
    width: fit-content;
}

td.value {
    position: relative;
    width: 100%
}

.tableValue {
    position:absolute;
    top:0;
    left:0;
    word-break: break-word;
    height: 100%;
    overflow: hidden;
    padding-left: 2px;
    padding-right: 2px;
    border: solid thin transparent;
}

.tableValue:hover {
    max-height: 90px;
    height: inherit;
    overflow: auto;
    background-color: white;
    z-index: 10;
    border: solid thin black;
}

.buttonToMap {
    width: 30px;
    height: 30px;
    background: white url('../images/zoomandselect.png') no-repeat center;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
}

.buttonOkolniParcely {
    display: none;
}

div.selected > .buttonOkolniParcely {
    display: inherit;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 50px;
    background: white url('../images/okolniparc.png') no-repeat top center;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
    padding-top: 30px;
}

.buttonDetail {
    width: 30px;
    height: 30px;
    background: white url('../images/info2.gif') no-repeat center;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
}

.buttonInfo {
    width: 30px;
    height: 30px;
    background: white url('../images/info24.png') no-repeat center !important;
    margin-bottom: 5px;
    border-width: thin;
    border-radius: 4px;
}

div.detailButtons {
    display: flex;
    flex-direction: column;
    padding: 2px;
}

/*
     Vyčkávací panel
*/

div.loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(200,200,200,0.8);
    visibility: hidden;
}

div.spinner {
    position: relative;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    border-top: 16px solid blue;
    border-right: 16px solid #6464ff;
    border-bottom: 16px solid #c8c8ff;
    border-left: 16px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

input:invalid {
    border: solid 1px red;
}

input:valid {
    border: solid 1px green;
}

.tooltipContainer {
    position: relative;
}

.errTooltip {
    visibility: hidden;
    width: 120px;
    background-color: #f31739;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.topPosition {
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
}

.rightPosition {
    top: -5px;
    left: 100%;
    margin-left: 5px;
}

.errTooltip::after {
    content: "";
    position: absolute;
    border-width: 5px;
    border-style: solid;
}

.topPosition::after {
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-color: #f31739 transparent transparent transparent;
}

.rightPosition::after {
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-color: transparent #f31739 transparent transparent;
}

.tooltipContainer:hover .errTooltip {
    visibility: visible;
    opacity: 1;
}