.modal {
  display: none;
  position: fixed; 
  z-index: 100000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}
.open-content-div {
    text-align: center;
    vertical-align: middle;
    height: 95%;
}
.open-modal-content {
    background-color: white;
    opacity: 0.95;
    font-size: 11px;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    border: 1px solid #888;
    width: 80%;
    max-width: 80%;
    min-width: 80%;
    height: 80%;
    min-height: 150px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}         
.modal-content {
    background-color: white;
    opacity: 0.95;
    font-size: 11px;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    border: 1px solid #888;
    width: 300px;
    max-width: 300px;
    min-width: 150px;
    height: 320px;
    min-height: 150px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
.ol-popup-closer {
    color: black;
    float: right;
    font-size: 13px;
    font-weight: bold;
}
.ol-popup-closer:hover,
.ol-popup-closer:focus {
    color: #d90d2d;
    text-decoration: none;
    cursor: pointer;
}
.x-form-item-body{
    display: inline !important;
}
.author-panel {
    position: absolute;
    background: rgba(255,255,255,.5);
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 2px;
    border-radius: 2px;
    border: 0px solid #cccccc;
    bottom: 12px;
    left: 12px;
    color: rgb(0,60,136);
    font-size: 9px;
}
.spn-panel {
    position: absolute;
    opacity: 0.5;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 0px;
    border-radius: 0px;
    border: 0px solid #cccccc;
    bottom: 25px;
    left: 12px;
    width: 10%;
    max-width: 100px;
}
.imr-panel {
    position: absolute;
    opacity: 1.05;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 0px;
    border-radius: 0px;
    border: 0px solid #cccccc;
    top: 12px;
    right: 12px;
    width: 5%;
    max-width: 100px;
}
.iapn-panel {
    position: absolute;
    width: 30%;
    height: 44px;
    max-height: 44px;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.5);;
    opacity: 1;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding-left: 5px;
    border-radius: 4px;
    border: 0px solid #cccccc;
    top: 7px;
    left: 40px;
    display: flex;
    justify-content: center;
}
.iapn-panel:hover {
    background-color: rgba(255, 255, 255, 0.8);;
}
.iapn-svg {
    width: auto;
    height: auto;
}
.iapn-text{
    font: bold 11px Segoe UI;
    fill: #e0476e;
}
.spn-panel:hover {
    opacity: 0.8;
}
.stats-table{
    width: 100%;
    height: 100%;
    font-size: 10px;
    border-collapse: collapse;
    border-style: solid;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
    display: block;
}
.tdcheck{
    border-collapse: collapse;
    border-style: solid;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid #ddd;
    border-bottom: 0px;
    border-top: 0px;
    border-right: 0px;
    text-align: center;
    vertical-align: middle;
}
.tdgrupa{
    border-collapse: collapse;
    border-style: solid;
    border-left: 0px;
    border-bottom: 0px;
    border-top: 1px solid #ddd;
    border-right: 0px;
}
.stats-thead{
    white-space:nowrap;
    border-collapse: collapse;
    border-style: solid;
    border-color: white;
    border-width: 1px;
    background: lightgray;
    text-align: center;
    vertical-align: middle;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
}
.stats-tbody{
    width: 100%;
    height: 97%;
}
.buttons-division{
    width: 100%;
    max-height: 150px;
    border-collapse: collapse;
    border-style: solid;
    border-width: 1px;
    margin-bottom: 3px;
    overflow: auto;
    display: block;
}
.popup-table{
    width:100%;
    border-collapse: collapse;
    border-style: solid;
    background-color: white;
}
.popup-thead{
    width: 100%;
    display: table-header-group;
    text-align: center;
    background-color: lightgray;
}
.popup-tbody{
    min-width: 180px;
    max-height: 250px;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    overflow: auto;
}
 .ol-popup {
    position: absolute;
    background-color: white;
    opacity: 0.95;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 170px;
    font-size: 11px;
}
.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}
.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}
.mail-button {
    height: 20px;
    margin: -5px;
}
.c {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}
.titlep{
    margin:5px;
}
.ol-popup button{
    font-size: 11px;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
.smaller-button{
    width: 80% !important;
}
.yellowp{
    background-color:    #d8d038  !important;
    padding: 2px;
    margin:1px;
}
.greenp{
    background-color:    #2ed981  !important;
    padding: 2px;
    margin:1px;
}
.bluep{
    background-color:    #559cda  !important;
    padding: 2px;
    margin:1px;
}
.sgkp_legend_table{
    font-size: 8.5px;
}
.graycell{
    background-color: #999ea3;
    border: 1px solid #999ea3;
}
.bluecell{
    background-color: #559cda;
    border: 1px solid #559cda;
}
.greencell{
    background-color: #2ed981;
    border: 1px solid #2ed981;
}
.yellowcell{
    background-color: #d8d038;
    border: 1px solid #d8d038;
}
.yellowcell, .greencell, .bluecell, .graycell{
    opacity: 0.4;
    width:15%;
}
.valuecell{
    text-align: left;
    vertical-align: middle;
    padding-left: 2%;
    padding-right: 10%;
}
.x-grid-item-over .gray-row .x-grid-cell, .x-grid-item-selected .gray-row .x-grid-cell {
    background-color: #999ea3 !important;
}
.x-grid-item-over .blue-row .x-grid-cell, .x-grid-item-selected .blue-row .x-grid-cell {
    background-color: #559cda !important;
}
.x-grid-item-over .green-row .x-grid-cell, .x-grid-item-selected .green-row .x-grid-cell {
    background-color: #2ed981 !important;
}
.x-grid-item-over .yellow-row .x-grid-cell, .x-grid-item-selected .yellow-row .x-grid-cell {
    background-color: #d8d038 !important;
}
.gray-row .x-grid-cell {
    background-color: rgba(153, 158, 163, 0.3) !important;
}
.blue-row .x-grid-cell {
    background-color: rgba(85, 156, 218, 0.3) !important;
}
.green-row .x-grid-cell {
    background-color: rgba(46, 217, 129, 0.3) !important;
}
.yellow-row .x-grid-cell {
    background-color: rgba(216, 208, 56, 0.3) !important;
}
.loader {
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg);}
    100% { -webkit-transform: rotate(360deg);}
}
@keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}
.custom-button-style .x-btn-inner {
    font-weight: bold;          /* Pogrubienie tekstu */
    font-size: 16px;            /* Zwiększenie rozmiaru czcionki */
    color: #007bff;             /* Zmiana koloru tekstu na niebieski */
}

.custom-button-style .x-btn {
    background-color: #f0f0f0;  /* Kolor tła */
    border-radius: 5px;         /* Zaokrąglenie rogów */
    padding: 5px 10px;          /* Odstęp wewnętrzny */
}

.custom-button-style .x-btn-icon-el {
    margin-right: 5px;          /* Dodatkowy odstęp dla ikony */
}



.custom-toolbar {
    
    /*border-bottom: 2px solid #007bff; */ /* Dodanie niebieskiego obramowania na dole */
    padding: 4px; /* Dodanie przestrzeni wewnętrznej */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Dodanie delikatnego cienia */
	background: linear-gradient(to right, #721e1ede, #ffffff); /* Gradient z lewej do prawej background: linear-gradient(to right, #a17171 #b43d3d, #ffffff); */
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-toolbar .x-btn, .custom-toolbar .x-btn-text {
    color: #007bff; /* Zmiana koloru tekstu w przyciskach */
    font-weight: bold; /* Pogrubienie tekstu */

}

.custom-toolbar .x-btn:hover {
    background-color: #007bff; /* Zmiana koloru tła przycisku na niebieski przy najechaniu */
    color: white; /* Zmiana koloru tekstu na biały przy najechaniu */
}

.custom-toolbar .x-btn-icon {
    margin-right: 5px; /* Dodatkowy odstęp przy ikonach */
}

.custom-text-style {
    font-size: 30px;           /* Zwiększony rozmiar tekstu dla lepszego efektu,   było 26 */
    color: #ffffff;            /* Niebieski kolor tekstu */
    font-family: 'Great Vibes', cursive; /* Czcionka Great Vibes */
    font-weight: normal;       /* Ustawienie standardowej wagi fontu */
    text-align: center;        /* Wycentrowanie tekstu */
	top: 10px !important;
}

.custom-map-button {
    position: absolute;
    top: 10px;        /* Odległość od góry */
    right: 10px;      /* Odległość od prawej */
    z-index: 1000;    /* Upewnienie się, że przycisk będzie nad mapą */
}

.custom-map-button button {
    background-color: #0056b3;      /* Kolor tła */
    color: white;                   /* Kolor tekstu */
    border: none;                   /* Usunięcie obramowania */
    padding: 10px 20px;             /* Wewnętrzne odstępy */
    font-size: 16px;                /* Rozmiar czcionki */
    cursor: pointer;                /* Zmiana kursora na wskaźnik */
    border-radius: 5px;             /* Zaokrąglone krawędzie */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);  /* Delikatny cień */
    min-width: 160px;               /* Minimalna szerokość przycisku */
    display: flex;                  /* Flexbox do wyśrodkowania */
    justify-content: center;        /* Wyśrodkowanie poziome */
    align-items: center;            /* Wyśrodkowanie pionowe */
    white-space: nowrap;            /* Zapobiega łamaniu tekstu */
	text-decoration: underline;     /* Podkreślenie tekstu */
}


.custom-map-button button:hover {
    background-color: #007bff;    /* Ciemniejszy kolor przy najechaniu */
}


.ol-layer-tree-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.5); /* Ustaw przezroczystość tła */
    opacity: 0.8; /* Przezroczystość całego panelu */
    padding: 10px;
    z-index: 1000;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Stylowanie nagłówka tylko dla panelu z określonym ID */
#mapsByPertheesPanel .x-panel-header-default {
    background-image: linear-gradient(to bottom, #f0f0f0, #267279); /* Gradient */ 
    background-repeat: no-repeat;
    background-size: cover;
    color: #333; /* Opcjonalnie zmiana koloru tekstu */
}

/* Stylowanie nagłówka tylko dla panelu z określonym ID */
#szkicePanel .x-panel-header-default {
    background-image: linear-gradient(to bottom, #f0f0f0, #ccb871); /* Gradient */
    background-repeat: no-repeat;
    background-size: cover; 
    color: #333; /* Opcjonalnie zmiana koloru tekstu */ 
}



/* Stylowanie nagłówka tylko dla panelu z określonym ID */
.x-panel-header-default {
    background-image: linear-gradient(to bottom, #f0f0f0, #548fcbbf); /* Gradient opcjonalnie taki: #5e8daf */
    background-repeat: no-repeat;
    background-size: cover; 
    color: #333; /* Opcjonalnie zmiana koloru tekstu */
}

.custom-panel-border-szkice {
    border: 3px solid #ccb871cb !important;
} 

.custom-panel-border-mapsByPerthees {
    border: 3px solid #267279b0 !important;
}

.ol-attribution a[href*="openlayers.org"] {
    display: none !important;
}

.ol-search-container .x-form-field {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.5);
}

.load-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.load-green { background-color: #00c000; }
.load-yellow { background-color: #e8d100; }
.load-red { background-color: #d00000; }

.server-load-dot {
    font-size: 16px;
    cursor: pointer;
}

.main-place-row {
    background-color: #cdffe081 !important; /* jasnożółty */
    font-weight: bold;
}    


/* Nadpisanie klasy unselectable dla okna wzmianek */
.x-window .x-unselectable,
.x-window .x-unselectable *,
.x-window-body .x-unselectable,
.x-window-body .x-unselectable *,
.x-panel-body .x-unselectable,
.x-panel-body .x-unselectable * {
    user-select: text !important;
    -o-user-select: text !important;
    -ms-user-select: text !important;
    -moz-user-select: text !important;
    -webkit-user-select: text !important;
    -webkit-tap-highlight-color: default !important;
    -webkit-user-drag: auto !important;
    cursor: default !important;
}

/* Dodatkowo dla wszystkich elementów w oknie wzmianek */
.window-wzmianki *,
.x-window[title="Wzmianki źródłowe"] *,
.x-window:has(.x-tabpanel) * {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    -o-user-select: text !important;
}

/* Dla tabel w oknie wzmianek */
.x-window table,
.x-window td,
.x-window th,
.x-window tr {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Dla całego okna */
.x-window {
    user-select: text !important;
    -webkit-user-select: text !important;
}