@import url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/'https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

*,
html,
body,
button,
a,
input,
select {
	font-family: 'Figtree', system-ui;
}

html,
body {
	margin: 0 !important;
	padding: 0 !important;
}

body {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100vh;
	margin: 0;
}

#header {
	flex-shrink: 0;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 5px;
	width: 100%;
	background: #fff;
}



#logo {
	background-size: contain;
	background-position: center;
	min-height: 30px;
	min-width: 40px;
	height: 40px;
	margin-left: 5px;
	width: 40px;
}

#content.mobile #mini-dock {
	left: 90px;
}

#title h1 {
	all: unset;
	line-height: normal;
	font-size: 22px;
}

#title h2 {
	all: unset;
	line-height: normal;
	font-size: 20px;
	display: none;
}

/* Zmiana paska w prawym dolnym rogu */
/*#tabbable>ul>li>a {
	content: Informacja;
}*/

.olMapViewport {
	margin-top: 0px !important;
	padding-top: 0px !important;
	top: 0px !important;
}

/* Wspolne wymiary stopki utrzymuja skale 10 px nad attribution. */
#map-content {
	--liz-attribution-bottom: 55px;
	--liz-attribution-height: 45px;
	--liz-overview-gap: 10px;
}

#attribution-box {
	display: flex;
	flex-direction: column-reverse;
	background: #f7f8fd !important;
	align-items: start;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
	position: absolute;
	bottom: var(--liz-attribution-bottom) !important;
	z-index: 1000;
	width: fit-content;
	padding-right: 150px;
	max-width: 80%;
	height: var(--liz-attribution-height) !important;
}

#attribution-box img {
	height: 30px !important;
	content: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/es_poz_green.png);
	position: absolute;
	bottom: 12px;
	right: 20px !important;
}

#attribution-ol .ol-attribution {
	background-color: transparent;
}

div#attribution-ol {
	height: fit-content !important;
}

#attribution-box a {
	font-size: 12px;
	line-height: 45px !important;
}

.ol-attribution ul {
	text-align: left !important;
}

.ol-attribution li {
	font-size: inherit;
}

/* Ukrycie niepotrzebnych itemow */

.report-btn {
	display: none;
}


table.tree.treeTable td {
	display: flex !important;
	align-items: center !important;
}

table.tree.treeTable td .label {
	margin-left: 6px !important;
}

table.tree.treeTable tr.legendGraphics img {
	margin: 0 6px;
	height: 30px;
	/* opcjonalnie zmniejszenie */
}


lizmap-treeview input[type='checkbox'] {
	accent-color: #73cfcf;
}

lizmap-mouse-position {
	background-color: #fbfdf8b8;
	color: #484848 !important;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
	height: 22px;
	display: -webkit-inline-box;
}

/* podzialka kilometrowa */
#overview-box {
	display: block;
	border: none;
	bottom: calc(var(--liz-attribution-bottom) + var(--liz-attribution-height) + var(--liz-overview-gap));
}

lizmap-mouse-position {
	display: none !important;
}

lizmap-scaleline .ol-scale-bar {
	position: relative;
	z-index: 750;
	bottom: auto;
	right: auto;
	left: auto;
	padding: 0;
	border-radius: 4px;
}

.lizmap-scaleline .ol-scale-bar::before {
	content: ;
	position: absolute;
	top: 0;
	left: -10px;
	/* rozszerza tło w lewo */
	right: -10px;
	/* rozszerza tło w prawo */
	bottom: 0;
	background: inherit;
	border-radius: inherit;
	z-index: -1;
	/* żeby było za skalą */
}

#overview-bar {
	border: none;
	background: white !important;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
	/* Podzialka zmienia szerokosc przy zoomie; ramka podaza za nia. */
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: max-content;
	min-width: 0px;
	padding: 10px 22px;
	height: 80px !important;
	line-height: 12px;
	border-radius: 1em;
	transform: none;
}


div#mini-dock {
	margin-right: 10px !important;
}

/* #right-dock{
	height: calc(100% - 95px);
} */

/* Lewy panel dokowalny */
#dock-close,
#right-dock-close,
#bottom-dock .attribute-layer-feature-panel .icon-remove {
	background-color: transparent;
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/x-red.svg);
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.6;
	transition: opacity 0.3s;
}

#dock-close:hover,
#right-dock-close:hover,
#bottom-dock .attribute-layer-feature-panel .icon-remove:hover {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/x-red.svg);
	opacity: 1;
}

#bottom-dock .attribute-layer-feature-panel .icon-remove {
	vertical-align: middle;
}

.navbar .nav>li>a:hover {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 6px;
}

#dock-content .title {
	color: rgb(51, 51, 51);
}

/* Modyfikacja kontenera z mapą */
#content {
	overflow: hidden;
	top: 0 !important;
	margin-top: 0px !important;
}

#map-content {
	overflow: hidden;
}

lizmap-navbar#navbar {
	width: 35px !important;
	align-items: center;
	row-gap: 8px !important;
	padding: 3px !important;
}

/* Dostosowanie ikon prawego panelu */
#navbar button.btn.active {
	display: initial;
}

#navbar button.btn {
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
	border-radius: 6px;
}

#navbar .btn.zoom-out,
#navbar .btn.zoom-in,
#navbar .btn.zoom-extent,
#navbar .btn.zoom,
#navbar .btn.pan {
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-position: center;
}

#navbar .btn.zoom-out {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/minus-green.svg);
}

#navbar .btn.zoom-in {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/plus-green.svg);
}

#navbar .btn.zoom-extent {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/fullscreen-green.svg);
}

#navbar .btn.zoom {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/frame-corners-green.svg);
}

#navbar .btn.pan {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/hand-stop-green.svg);
}

#navbar button.btn.active,
#navbar button.btn.zoom:focus,
#navbar button.btn.pan:focus {
	background-color: #ffffff;
	border: 2px solid var(--color-dark-gray-elements);
	outline: 0px solid rgba(129, 161, 145, 0.6);
}

#navbar button.btn.pan.active,
#navbar button.btn.pan:focus {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/hand-grab-green.svg);
}

#navbar .btn.zoom-in:focus,
#navbar .btn.zoom-out:focus,
#navbar .btn.zoom-extent:focus {
	background-color: #ffffff;
	outline: none;
}

#navbar button.btn {
	box-sizing: border-box;
	height: 35px;
	width: 35px;
	/*margin-bottom: 0.5em;*/
}

body {
	line-height: normal !important;
}

#navbar button.btn.zoom-out {
	margin-top: 0.5em;
}

/* Dostosowanie panelu wyszukiwarki powiatów */
#mini-dock {
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	overflow-x: hidden;
	min-height: auto;
	max-height: 650px;
	border: none;
	background-color: #fff !important;
}

#locate-clear:focus {
	outline: none;
}

#mini-dock .title {
	color: rgb(51, 51, 51);
}

#mini-dock div.locate div.menu-content {
	line-height: 20px;
}

#mini-dock .title .btn.btn-locate-clear {
	margin-top: 0;
}

#mini-dock .title .btn.btn-error {
	font-size: 33px;
	margin-top: 1px;
}

#locate div.locate-layer {
	box-sizing: border-box;
}

#locate div.locate-layer .custom-combobox-input {
	outline: none;
}

#docks-wrapper,
#mapmenu,
#mini-dock,
#navbar {
	/* margin-top: 50px; */
}

#docks-wrapper #dock,
#sub-dock,
#bottom-dock {
	background-color: #fff !important;
	height: fit-content;
	margin-top: 10px;
	border: none;
	border-radius: 6px;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

#jforms_view_attribute_layers_option .controls {
	margin-left: 10px;
}

#attribute-layer-list #attribute-layer-list-table tr td:nth-child(1) {
	width: 100%;
	font-size: 16px;
	border-top-left-radius: 6px;
	border-bottom-left-radius: 6px;
}

#attribute-layer-list #attribute-layer-list-table tr td:nth-child(2) {
	border-top-right-radius: 6px;
	border-bottom-right-radius: 6px;
}

/* .table-striped tbody>tr{
	border-radius: 6px;
} */

#bottom-dock #attribute-layer-list .table-striped tbody>tr {
	display: flex;
	align-items: center;
	padding: 3px 6px;
	border-radius: 6px;
	margin-bottom: 6px;
}

#bottom-dock #attribute-layer-list .table-striped tbody>tr>td {
	border: none;
}

#popupcontent .lizmapPopupDiv {
	margin: 0 !important;
}

.lizmapPopupChildren {
	border: none;
}

#right-dock-content {
	height: calc(100% - 95px);
}

#right-dock-content ul.nav.nav-tabs {
	background: none !important;
}

#right-dock .lizmapPopupChildren {
	margin-top: 0;
}

#right-dock .lizmapPopupChildren .compact-tables,
#right-dock .lizmapPopupChildren .explode-tables {
	margin-top: 0;
	margin-left: 0;
}

#right-dock lizmap-feature-toolbar div.feature-toolbar {
	margin-top: 25px;
	margin-bottom: 5px;
}

#right-dock lizmap-feature-toolbar div.feature-toolbar button {
	background-color: transparent;
}

#right-dock lizmap-feature-toolbar div.feature-toolbar button i {
	margin-top: 0;
	background-position: center;
	background-size: 18px 18px;
}

#right-dock lizmap-feature-toolbar div.feature-toolbar button:hover {
	background-color: rgba(78, 105, 91, 0.15);
}

#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-download {
	background-image: url();
}

#right-dock-content .nav-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#right-dock-content .nav-tabs>li {
	all: unset;
}

#right-dock-content .nav-tabs>li:nth-child(1) {
	margin-left: -8px;
}

#right-dock-content .nav-tabs>li>a {
	all: unset;
	padding: 4px 8px;
	border: 2px solid #73cfcf;
	border-radius: 6px;
	cursor: pointer;
	display: inline-block;
	line-height: normal;
}

#right-dock-content .nav-tabs>li.active>a {
	background-color: #73cfcf;
	color: #ffffff;
}

#bottom-dock .table-striped tbody>tr:nth-child(odd)>td,
#bottom-dock .table-striped tbody>tr:nth-child(even)>td {
	background-color: transparent;
}

#bottom-dock .table-striped tbody>tr:nth-child(odd):hover,
#bottom-dock .table-striped tbody>tr:nth-child(even):hover {
	background-color: white;
}

#bottom-dock #attribute-layer-list-table button {
	background-color: #73cfcf;
	color: #ffffff;
	transition: transform 0.3s;
	width: 105px !important;
	padding: 0.5rem !important;
}


lizmap-feature-toolbar button.btn:hover {
	background-image: none !important;
}

#bottom-dock #attribute-layer-list-table button:hover {
	background-color: #73cfcf;
	color: black !important;
	transform: none;
}

#docks-wrapper #dock {
	margin-left: 40px;
}

#mapmenu:has(.attributeLayers.active)~#docks-wrapper #dock {
	max-height: 45%;
}

#dock::-webkit-scrollbar,
#right-dock-content::-webkit-scrollbar,
#bottom-dock-content .dataTables_scrollBody::-webkit-scrollbar,
#bottom-dock .dropdown-menu::-webkit-scrollbar {
	width: 6px;
	height: 5px;
}

#dock::-webkit-scrollbar-track,
#right-dock-content::-webkit-scrollbar-track,
#bottom-dock-content .dataTables_scrollBody::-webkit-scrollbar-track,
#bottom-dock .dropdown-menu::-webkit-scrollbar-track {
	background: #f1f1f1;
}

#dock::-webkit-scrollbar-thumb,
#right-dock-content::-webkit-scrollbar-thumb,
#bottom-dock-content .dataTables_scrollBody::-webkit-scrollbar-thumb,
#bottom-dock .dropdown-menu::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

#dock::-webkit-scrollbar-thumb:hover,
#right-dock-content::-webkit-scrollbar-thumb:hover,
#bottom-dock-content .dataTables_scrollBody::-webkit-scrollbar-thumb:hover,
#bottom-dock .dropdown-menu::-webkit-scrollbar-thumb:hover {
	background: #555;
}

#sub-dock {
	margin-left: 10px;
}

ul.nav.nav-tabs {
	border-bottom: 1px solid transparent;
}

#sub-dock .btn-opacity-layer {
	all: unset;
	padding: 4px 6px;
	border-radius: 4px;
	margin: 10px 4px 0 4px;
	border: 2px solid transparent;
	color: #fff !important;
}

#map {
	background-color: rgb(255, 255, 255);
	height: 100% !important;
}

#sub-dock .btn-opacity-layer:nth-child(2),
#sub-dock .active.btn-opacity-layer:nth-child(2) {
	background-color: rgba(78, 105, 91, 0.2) !important;
}

#sub-dock .btn-opacity-layer:nth-child(3),
#sub-dock .btn-opacity-layer.active:nth-child(3) {
	background-color: rgba(78, 105, 91, 0.4) !important;
}

#sub-dock .btn-opacity-layer:nth-child(4),
#sub-dock .btn-opacity-layer.active:nth-child(4) {
	background-color: rgba(78, 105, 91, 0.6) !important;
}

#sub-dock .btn-opacity-layer:nth-child(5),
#sub-dock .btn-opacity-layer.active:nth-child(5) {
	background-color: rgba(78, 105, 91, 0.8) !important;
}

#sub-dock .btn-opacity-layer:nth-child(6),
#sub-dock .btn-opacity-layer.active:nth-child(6) {
	background-color: rgba(78, 105, 91, 1) !important;
}

#sub-dock .btn-opacity-layer.active {
	border: 2px solid var(--color-dark-gray-elements);
	outline: 3px solid rgba(129, 161, 145, 0.6);
}

#sub-dock .dl-vertical dd:last-of-type {
	margin-top: 5px;
}

a[class*='btn-opacity-layer 20'].active {
	color: black !important;
	/* Przykładowy kolor tekstu dla przezroczystości 20% */
}

a[class*='btn-opacity-layer 40'].active {
	color: black !important;
	/* Przykładowy kolor tekstu dla przezroczystości 20% */
}

#bottom-dock-window-buttons {
	position: absolute;
	bottom: 5px;
}

#locate {
	background-color: #fff;
}

#mapmenu>div {
	width: 100%;
}

#mapmenu {
	box-sizing: border-box;
	height: 250px;
	/* padding: 5px; */
}

.nav-list {
	padding: 0;
}

#mini-dock div.menu-content {
	display: block;
	padding: 0.5em;
	background-color: #fff !important;
	/* Tlo zawartosci musi miec takie same dolne narozniki jak panel. */
	border-radius: 0 0 6px 6px;
}

#dock div.menu-content {
	background-color: #fff !important;
}

#mapmenu .nav-list>li>a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 6px;
	transition: background-color 0.3s;
}

#mapmenu .nav-list>li>a:hover {
	background-color: rgba(78, 105, 91, 0.15);
	border-radius: 5px;
}

#mapmenu .nav-list>li.active>a {
	background-color: #73cfcf !important;
	border-radius: 12px;
}

button.btn.zoom.active {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/frame-corners-white.svg) !important;
	border-radius: 12px;
	background-color: #73cfcf !important;
}

#mapmenu .nav-list>li.home .icon,
#mapmenu .nav-list>li.switcher .icon,
#mapmenu .nav-list>li.edition a .icon,
#mapmenu .nav-list>li.filter .icon,
#mapmenu .nav-list>li.locate .icon,
#mapmenu .nav-list>li.attributeLayers .icon {
	background-position: center;
	transition: transform 0.3s;
}

#mapmenu .nav-list>li.home .icon {
	background-position: center;
	background-repeat: no-repeat;
}

#mapmenu .nav-list>li.home a .icon,
#mapmenu .nav-list>li.home a:hover .icon {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/home-green.svg);
	background-position: center;
}

#mapmenu .nav-list>li.switcher a .icon,
#mapmenu .nav-list>li.switcher a:hover .icon,
#nav-tab-switcher a::before {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/layers-subtract-green.svg);
	background-position: center !important;
}

#mapmenu .nav-list>li.filter a .icon,
#mapmenu .nav-list>li.filter a:hover .icon,
#nav-tab-filter a::before,
#layerActionUnfilter .icon-filter {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/filter-green.svg);
	background-position: center;
}

#mapmenu .nav-list>li.edition a .icon,
#mapmenu .nav-list>li.edition a:hover .icon,
#nav-tab-edition a::before {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/edit-green.svg);
	background-position: center;
}

#mapmenu .nav-list>li.locate a .icon,
#mapmenu .nav-list>li.locate a:hover .icon,
#mini-dock .locate h3 .icon {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/search-green.svg);
	background-position: center !important;
}

#mapmenu .nav-list>li.attributeLayers a .icon,
#mapmenu .nav-list>li.attributeLayers a:hover .icon {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/list-tree-green.svg);
	background-position: center;
}

#mapmenu .nav-list>li.home a:hover .icon,
#mapmenu .nav-list>li.switcher a:hover .icon,
#mapmenu .nav-list>li.filter a:hover .icon,
#mapmenu .nav-list>li.edition a:hover .icon,
#mapmenu .nav-list>li.locate a:hover .icon,
#mapmenu .nav-list>li.attributeLayers a:hover .icon {
	transform: scale(1.1);
}

#filter-content .menu-content #liz-filter-layer-selector {
	width: 100%;
}

.navbar .nav li.dropdown.open>.dropdown-toggle {
	border-radius: 6px;
}

#filter-field-order0 .liz-filter-reset-field,
#filter-field-order1 .liz-filter-reset-field {
	position: absolute;
	right: 11px;
	background-color: transparent;
	color: #da4f49;
	font-size: 16px;
	opacity: 0.6;
	transition: opacity 0.3s;
}

#filter-field-order0 .liz-filter-reset-field:hover,
#filter-field-order1 .liz-filter-reset-field:hover {
	opacity: 1;
}

#filter-field-order0 .liz-filter-reset-field,
#filter-field-order1 .liz-filter-reset-field {
	position: absolute;
	right: 11px;
}

#filter-field-order0 input,
#filter-field-order1 input {
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 3px 6px;
}

#liz-filter-field-min-dateFiltr_daty,
#liz-filter-field-min-numericbudzet {
	margin-right: 5px;
}

div.liz-filter-field-box p {
	overflow-y: auto;
}

#ui-datepicker-div {
	border: none;
	border-radius: 6px;
	padding: 10px;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

.ui-datepicker .ui-datepicker-header {
	position: relative;
	padding: 0.2em 0;
	background: #fff;
	border: none;
}

#ui-datepicker-div .ui-state-default {
	background: transparent;
	border: none;
	border-radius: 6px;
}

#ui-datepicker-div .ui-state-default:hover {
	background: rgba(78, 105, 91, 0.15);
}

.ui-datepicker .ui-datepicker-title {
	font-size: 14px;
	display: flex;
	justify-content: center;
	gap: 5px;
}

.ui-datepicker-title select {
	width: 40% !important;
}

.ui-datepicker th {
	width: 25px;
	padding: 0.7em 0.3em;
	text-align: center;
	font-weight: bold;
	border: 0;
	color: #b2b2b8;
}

.ui-datepicker th span {
	text-transform: uppercase;
}



td a.ui-state-default,
#ui-datepicker-div .ui-state-default {
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: #73cfcf
}

lizmap-treeview .icon-info-sign {
	background-color: transparent;
	border: none;
}

lizmap-treeview li>div.selected {
	border: 1px solid transparent;
	background-color: #f2f5f8;
	border-radius: 6px;
}

#sub-dock .sub-metadata h3 .icon {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/info-green.svg);
	background-position: center;
}

.icon-info-sign {
	padding: 5px !important;
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/info-green.svg);
	background-position: center;
	background-size: 18px 18px;
}

.icon-info-sign:hover {
	background-color: rgba(78, 105, 91, 0.15);
}

#dock .icon-info-sign.icon-white {
	filter: none;
	border-radius: 6px;
}

/* #dock .icon-white, #mini-dock .icon-white, #right-dock .icon-white, #bottom-dock .icon-white {
    filter: none;
    border-radius: 6px;
} */

#bottom-dock-window-buttons button {
	padding: 4px 10px;
	color: #fff;
	font-size: 12px;
}

#bottom-dock-window-buttons .btn-bottomdock-clear,
#sub-dock #hide-sub-dock {
	background-color: #da4f49;
	color: #fff;
	padding: 2px 6px;
}

#bottom-dock-window-buttons .btn-bottomdock-size {
	background-color: #73cfcf
}

#attribute-layer-table-powiaty_kfs_wrapper #attribute-layer-table-powiaty_kfs tbody tr {
	background-color: #fff;
}

#bottom-dock-content #attributeLayers-tabs li a {
	position: relative;
	border-radius: 6px;
	color: #727278;
	transition: background-color 0.3s, color 0.3s;
}

#bottom-dock-content #attributeLayers-tabs li.active a,
#bottom-dock-content #attributeLayers-tabs li a:hover {
	color: #ffffff;
}

#bottom-dock-content #attributeLayers-tabs li a:has(i.btn-close-attribute-tab) {
	position: relative;
	padding: 4px 35px 4px 10px;
}

#attributeLayers-tabs>li.active>a,
#attributeLayers-tabs>li>a:hover {
	border: none;
}

#bottom-dock-content .btn-close-attribute-tab {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background-color: transparent;
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/x-white.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	margin: 0;
	filter: invert(0);
	transition: background-color 0.3s;
	border-radius: 50%;
	padding: 2px;
}

#bottom-dock .btn-close-attribute-tab:hover {
	background-color: #ffffff55;
}

#bottom-dock table.dataTable.cell-border tbody tr td:first-child {
	border-left: none;
}

#bottom-dock table.dataTable.table-striped>tbody>tr.odd>*,
#bottom-dock table.dataTable.order-column>tbody tr>.sorting_1,
#bottom-dock table.dataTable.order-column>tbody tr>.sorting_2 {
	box-shadow: none;
}

#bottom-dock table.dataTable.table-striped>tbody>tr.odd>*,
#bottom-dock .table-striped tbody>tr:nth-child(even)>td {
	text-align: left !important;
}

#bottom-dock .dataTables_wrapper.no-footer .dataTables_scrollBody {
	font-size: 15px;
}

#bottom-dock table.dataTable.cell-border tbody td {
	border-right: none;
	border-bottom: 1px solid transparent;
}

#bottom-dock .dataTables_scrollBody tr:hover {
	background-color: rgba(78, 105, 91, 0.1) !important;
}

#bottom-dock table.dataTable.table-hover>tbody>tr:hover>* {
	box-shadow: none;
}

#bottom-dock lizmap-feature-toolbar div.feature-toolbar {
	margin: 6px 0;
}

#bottom-dock .feature-toolbar button {
	background-color: transparent;
}

#bottom-dock .dataTables_scrollBody tbody>tr:nth-child(odd),
#bottom-dock .dataTables_scrollBody tbody>tr:nth-child(even),
#bottom-dock .table-striped tbody>tr:nth-child(odd)>td,
#bottom-dock .table-striped tbody>tr:nth-child(odd)>th {
	background-color: transparent;
}

#right-dock .table-striped tbody>tr:nth-child(odd)>td,
#right-dock .table-striped tbody>tr:nth-child(odd)>th,
#right-dock #popupcontent .lizmapPopupTable {
	background-color: transparent !important;
}

#right-dock #popupcontent .lizmapPopupTable tr:hover {
	background-color: rgba(78, 105, 91, 0.1) !important;
}

#right-dock .table-striped tbody>tr:nth-child(odd)>td,
#right-dock .table-striped tbody>tr:nth-child(odd)>th #bottom-dock .table-bordered th,
#bottom-dock .table-bordered td,
#popupcontent .lizmapPopupTable td,
#popupcontent .lizmapPopupTable th {
	border-left: none;
	border-right: none;
}

#bottom-dock div.attribute-layer-feature-panel .lizmapPopupTable,
#right-dock .lizmapPopupDiv .lizmapPopupTable {
	border: none;
}

#bottom-dock div.attribute-layer-feature-panel .lizmapPopupTable tbody tr td:nth-child(3),
#right-dock .lizmapPopupDiv table tbody tr td:nth-child(3) {
	display: none;
}

#bottom-dock div.attribute-layer-feature-panel .lizmapPopupTable tbody tr td:nth-child(2),
#bottom-dock div.attribute-layer-feature-panel .lizmapPopupTable thead tr th:nth-child(2),
#right-dock #popupcontent .lizmapPopupTable tbody tr td:nth-child(2),
#right-dock #popupcontent .lizmapPopupTable thead tr th:nth-child(2) {
	text-align: right !important;
}

#bottom-dock table.attribute-table-table tr.active td,
#bottom-dock table.attribute-table-table tr.active:hover td {
	border-top: 1px solid;
	border-bottom: 1px solid;
}

#bottom-dock table.attribute-table-table>tbody>tr.selected .icon-ok {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/x-red.svg);
}

#bottom-dock .feature-toolbar button:hover {
	background-color: rgba(78, 105, 91, 0.25);
}

#switcher-layers-actions {
	display: flex;
	justify-content: end;
	gap: 10px;
}

#switcher button.btn {
	background-image: none;
}

#bottom-dock .feature-toolbar button i,
#bottom-dock .attribute-layer-action-bar i,
#sub-dock button i,
#right-dock .compact-tables .icon-resize-small,
#switcher-layers-actions button i,
#dock .edition .ui-datepicker-reset,
.ui-datepicker .ui-widget-header .ui-icon.ui-icon-circle-triangle-e,
.ui-datepicker .ui-widget-header .ui-icon.ui-icon-circle-triangle-w {
	background-position: center;
	background-size: 18px 18px;
	width: 18px;
	height: 18px;
}

#mini-dock .btn.btn-locate-clear {
	background-position: center !important;
	background-size: 18px 18px !important;
}


#mini-dock #locate-close {
	margin-top: -1px;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	top: 50%;
	transform: translateY(-50%);
	padding: 15px;
	height: auto;
	width: auto;
	cursor: pointer;
}

.ui-datepicker .ui-widget-header .ui-datepicker-prev.ui-corner-all.ui-state-hover,
.ui-datepicker .ui-widget-header .ui-datepicker-next.ui-corner-all.ui-state-hover {
	border: none;
	background: rgba(78, 105, 91, 0.15);
}

.ui-datepicker .ui-widget-header .ui-icon.ui-icon-circle-triangle-e {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/chevron-right-green.svg);
}

.ui-datepicker .ui-widget-header .ui-icon.ui-icon-circle-triangle-w {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/chevron-left-green.svg);
}

#sub-dock button i {
	margin-top: 0 !important;
}

#bottom-dock .attribute-layer-action-bar button,
#sub-dock button,
#right-dock .lizmapPopupChildren .compact-tables {
	background-color: transparent;
	transition: background-color 0.3s;
}

#bottom-dock .attribute-layer-action-bar button:focus {
	outline: none;
}

#switcher button.btn {
	display: flex;
	align-items: center;
	width: auto;
}

#switcher #switcher-layers-actions button {
	padding: 12px 5px;
}

#switcher #switcher-layers-actions .btn-mini .caret {
	margin-left: 5px;
	margin-top: 0;
}

#bottom-dock .attribute-layer-action-bar button:hover,
#sub-dock button:hover,
#right-dock .lizmapPopupChildren .compact-tables:hover,
#switcher-layers-actions button:hover,
#mini-dock .btn.btn-locate-clear:hover {
	background-color: rgba(78, 105, 91, 0.15);
}

#bottom-dock .feature-toolbar button:focus {
	outline: none;
}

#bottom-dock .icon-ok,
#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-ok {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/check-green.svg);
}

#right-dock .compact-tables .icon-resize-small {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/resize-green.svg);
}

#bottom-dock .icon-zoom-in,
#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-zoom-in,
#sub-dock .icon-zoom-in,
#switcher-layers-actions .icon-zoom-in {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/zoom-in-green.svg);
}

#switcher-layers-actions button i.icon-white {
	filter: invert(0);
}

#switcher-layers-actions button:focus {
	outline: none;
}

#switcher-layers-actions .qgis_sprite {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/eye-green.svg);
	width: 18px;
	height: 18px;
	background-size: 18px 18px;
	background-position: center;
}

#switcher-layers-actions .icon-resize-small {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/hide-green.svg);
}

#switcher-layers-actions .icon-resize-full {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/show-green.svg);
}

#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-download,
#sub-dock .icon-download {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/download-green.svg);
}

#bottom-dock .icon-screenshot,
#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-screenshot {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/keyframe-center-green.svg);
}

#bottom-dock .icon-pencil,
#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-pencil {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/edit-green.svg);
}

#bottom-dock .attribute-layer-action-bar .icon-star {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/check-all-green.svg);
}

#bottom-dock .attribute-layer-action-bar .icon-star-empty {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/check-all-red.svg);
}

#bottom-dock .attribute-layer-action-bar .icon-filter,
#right-dock lizmap-feature-toolbar div.feature-toolbar button .icon-filter {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/filter-green.svg);
}

#bottom-dock .attribute-layer-action-bar .icon-arrow-up {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/arrow-up-green.svg);
}

#bottom-dock .attribute-layer-action-bar .icon- {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/refresh-green.svg);
}

#mini-dock .title #locate-clear.btn {
	background: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/refresh-green.svg);
}

#bottom-dock .attribute-layer-action-bar .clear-layer-search.icon-remove,
#dock .edition .ui-datepicker-reset {
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/x-red.svg);
}

#bottom-dock .attribute-layer-action-bar .icon-info-sign {
	padding: 0 !important;
}

#bottom-dock .attribute-layer-action-bar .icon-info-sign:hover {
	padding: 0 !important;
	background-color: transparent;
}

#bottom-dock .attribute-layer-action-bar .btn-detail-attributeTable:hover .icon-info-sign {
	padding: 0 !important;
	background-image: url(/index.php/view/media/getMedia?repository=demo&project=wodkangis_web&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/info-green.svg);
}

#bottom-dock .attribute-layer-action-bar {
	all: unset;
	display: flex;
	align-items: center;
	gap: 10px;
}

#bottom-dock .attribute-layer-action-bar input {
	margin-bottom: 0;
}

#bottom-dock .attribute-layer-action-bar .export-formats.btn-group.pull-right {
	margin-left: auto;
}

#bottom-dock .btn-mini {
	padding: 2px 6px;
}

#bottom-dock .btn-refresh-table:hover,
#bottom-dock .btn-refresh-table,
#bottom-dock .dropdown-toggle.exportLayer:hover,
#bottom-dock .dropdown-toggle.exportLayer {
	color: #333;
	font-size: 13px;
}

#bottom-dock .lizmapPopupDiv .table-bordered th {
	border-left: none;
}

#popupcontent .lizmapPopupTable thead th:nth-child(1) {
	text-align: left;
}

lizmap-treeview .filtered,
button#layerActionUnfilter.btn {
	border-radius: 4px;
}

#bottom-dock .dropdown-menu,
#right-dock .dropdown-menu,
#header .dropdown-menu,
#switcher-layers-actions .dropdown-menu {
	background-color: #fff;
	border: none;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
	max-height: 150px;
	padding: 0 5px;
}

#bottom-dock .dropdown-menu>li>a,
#right-dock .dropdown-menu>li>a,
#header .dropdown-menu>li>a,
#switcher-layers-actions .dropdown-menu>li>a {
	border-radius: 6px;
	margin: 5px 0;
}

#attributeLayers .tab-content .attribute-content .pagination>.active>a {
	background-color: rgba(78, 105, 91, 0.15);
	border-color: rgba(78, 105, 91, 0.15);
	color: #73cfcf;
}

#attributeLayers .tab-content .attribute-content .pagination>li>a {
	color: #73cfcf;
	border-color: rgba(78, 105, 91, 0.15);
}

#attributeLayers .tab-content .attribute-content .pagination>.active>a,
#attributeLayers .tab-content .attribute-content .pagination>.active>a:hover {
	background-color: rgba(78, 105, 91, 0.15);
	border-color: rgba(78, 105, 91, 0.15);
	color: #73cfcf
}

#attributeLayers .tab-content .attribute-content .pagination>.active>a,
#attributeLayers .tab-content .attribute-content .pagination>.active>a:focus,
#attributeLayers .tab-content .attribute-content .pagination>.active>a:hover,
#attributeLayers .tab-content .attribute-content .pagination>.active>span,
#attributeLayers .tab-content .attribute-content .pagination>.active>span:focus,
#attributeLayers .tab-content .attribute-content .pagination>.active>span:hover {
	background-color: rgba(78, 105, 91, 0.15);
	border-color: rgba(78, 105, 91, 0.15);
}

#right-dock .lizmapPopupChildren .compact-tables {
	display: none;
}

.tab-content .jforms-submit-buttons.form-actions button {
	color: #fff;
}

.tab-content .jforms-submit-buttons.form-actions #jforms_view_edition_reinit {
	background-color: #727278;
}

.tab-content .jforms-submit-buttons.form-actions #jforms_view_edition__submit_cancel {
	background-color: #DA4F49;
}

.tab-content .jforms-submit-buttons.form-actions #jforms_view_edition__submit_submit {
	background-color: #73cfcf;
}

.tab-content .jforms-submit-buttons.form-actions button:hover {
	color: #fff !important;
	filter: brightness(110%) !important;
}

.pagination li a:focus {
	outline: none;
	color: #73cfcf;
}

#mapmenu:has(.locate.active)~#map-content #mini-dock {
	padding: 5px;
}

#attribution-ol button {
	display: none;
}

@media (min-width: 600px) {
	#mapmenu {
		top: var(--liz-panel-top);
		left: 0px;
		width: 50px;
		height: auto;
		background-color: #fff !important;
		border-radius: 6px;
		box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
	}
}

@media (max-width: 900px) {
	#docks-wrapper #dock {
		margin-right: 10px;
	}
}

@media (max-width: 800px) {
	#title h2 {
		font-size: 16px;
	}
}


#dock .active>a {
	background: none !important;
	border: 0px solid #fff !important;
}

#mini-dock h3 {
	background: none !important;
}

.btn {
	margin: 0px !important;
}

.ol-scale-text {
	display: none;
}

/* ___________ WERSJA MOBILNA ___________ */


@media only screen and (max-width: 800px) and (pointer: coarse) {
	#map-content {
		--liz-attribution-height: 30px;
	}


	.ol-scale-step-marker {
		height: 10px;
	}

	#attribution-box a {
		font-size: 8px;
		line-height: 0px !important;
	}

	#attribution-box img {
		height: 20px !important;
		right: 20px !important;
		bottom: 5px !important;
	}

	#switcher.active {
		display: block !important;
	}
}

@media (pointer: coarse) {
	#overview-bar {
		height: 50px !important;
		bottom: 0;
	}


	.ol-scale-step-marker {
		height: 10px;
	}

	#mapmenu {
		height: 250px;
	}

	.ol-scale-step-text {
		font-size: 10px !important;
	}
}

@media (min-width: 800px) and (pointer: coarse) {
	#navbar div.slider {
		display: none;
	}
}

.box-layers {
	transform: translateY(-15px);
}

:root {
	--liz-header-h: 60px;            /* wysokość nagłówka */
	--liz-docks-margin: 50px;        /* margines górny, który motyw daje panelom */
	--liz-panel-top: 20px;           /* dodatkowe odsunięcie od góry */
	--liz-bottomdock-height: 40%;    /* wysokość panelu Dane po otwarciu */
	--liz-bottomdock-inset: 6px;     /* odstęp przycisków od krawędzi panelu */
	--liz-docks-offset: 30px;        /* wcięcie #docks-wrapper od lewej */
	--liz-dt-footer-nudge: 4px;      /* zejście stopki tabeli w dół */
	--liz-icon-btn-size: 26px;       /* bok kwadratowego przycisku z ikoną */
}

/* --- 1. Szkielet strony --------------------------------------------------- */

#loading {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	min-height: 0;
	margin: 0;
	z-index: 6000;
	pointer-events: none;
}

#content {
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	top: 0;
}

#map-content {
	height: 100%;
	margin-left: 0;
	z-index: auto; /* musi zostać auto, inaczej miniatury podkładów zostaną pod panelem */
}

/* --- 2. Pasek ikon, navbar i panel warstw: wspólna górna linia ------------ */

#mapmenu {
	z-index: 1030; /* niżej niż panel Dane (5000) */
}

lizmap-navbar#navbar {
	top: var(--liz-panel-top);
	right: 10px;
	z-index: 1000;
}

/* Motyw daje #docks-wrapper margin-top:50px, przez co jego dół wypadał poza
   ekran (stąd niewidoczne przyciski panelu). Zerujemy go i oddajemy te 50 px
   samemu #dock, żeby górna linia została taka jak teraz. */
   
#docks-wrapper {
	margin-top: 0 !important;
	height: 100%;
}

#docks-wrapper #dock {
	align-self: flex-start;
	flex: 0 0 auto;
	width: auto;
	max-width: 40%;
	height: auto !important;   /* panel warstw dopasowuje się do treści */
	overflow: auto !important; /* i ma własny pasek przewijania */
	max-height: calc(100% - var(--liz-docks-margin) - var(--liz-panel-top) - 10px);
	margin-top: calc(var(--liz-docks-margin) + var(--liz-panel-top));
}

#docks-wrapper #dock > div.tabbable,
#docks-wrapper #dock #dock-content {
	height: auto;
	min-height: 0;
}

/* gdy panel Dane jest otwarty, panel warstw mieści się nad nim */
#mapmenu:has(.attributeLayers.active) ~ #docks-wrapper #dock {
	max-height: calc(100% - var(--liz-docks-margin) - var(--liz-panel-top) - var(--liz-bottomdock-height) - 10px);
}

/* --- 3. Panel Dane (#bottom-dock) --------------------------------------- */

#bottom-dock {
	position: absolute !important;
	left: calc(-1 * var(--liz-docks-offset)) !important; /* kompensuje wcięcie #docks-wrapper */
	right: 0 !important;
	top: auto !important;
	bottom: 0 !important;
	width: auto !important;
	height: var(--liz-bottomdock-height) !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 1;
	transition: none;
	overflow: hidden !important; /* panel przycina, przewija się jego wnętrze */
	z-index: 5000;
	background-color: #fff !important;
	border: none;
	border-radius: 6px 6px 0 0;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#bottom-dock.visible,
#bottom-dock.half-transparent {
	height: var(--liz-bottomdock-height) !important;
	opacity: 1;
}

/* Maksymalizuj — wysokość podana wprost (top+bottom tu nie działa, bo panel
   jest pozycjonowany absolutnie w kontenerze flex). Minimalizuj zdejmuje
   .fullsize i wraca reguła wyżej. */
#bottom-dock.fullsize {
	top: auto !important;
	bottom: 0 !important;
	left: calc(-1 * var(--liz-docks-offset)) !important;
	right: 0 !important;
	width: auto !important;
	height: calc(100% - var(--liz-docks-margin) - var(--liz-panel-top)) !important;
	border-radius: 6px;
}

#bottom-dock > div.tabbable {
	height: 100%;
	margin: 0;
}

/* --- 4. Przyciski Zamknij / Maksymalizuj ------------------------------
   Były niewidoczne z dwóch powodów: position:fixed (przyklejone do okna)
   oraz siatka 100 kolumn z motywu, która ściskała je do ~1% szerokości.
   Teraz to zwykły pasek przy dolnej krawędzi panelu. */
#bottom-dock #bottom-dock-window-buttons,
#bottom-dock.visible #bottom-dock-window-buttons,
#bottom-dock.half-transparent #bottom-dock-window-buttons,
#bottom-dock.fullsize #bottom-dock-window-buttons {
	display: flex !important;
	grid-template-columns: none !important;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	position: absolute !important;
	top: auto !important;
	left: var(--liz-bottomdock-inset) !important;
	right: var(--liz-bottomdock-inset) !important;
	bottom: var(--liz-bottomdock-inset) !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	z-index: 10;
}

#bottom-dock #bottom-dock-window-buttons button {
	float: none;
	margin: 0;
	flex: 0 0 auto;
	white-space: nowrap;
}

/* miejsce na ten pasek u dołu i na zakładki u góry */
#bottom-dock div.bottom-content {
	inset: 46px 8px 36px;
	border: none;
	background-color: #fff;
}

#bottom-dock #attributeLayers .tab-content .attribute-content,
#bottom-dock.fullsize #attributeLayers .tab-content .attribute-content {
	top: 46px;
}

/* --- 5. Lista warstw i przyciski Szczegóły ------------------------------
   Zwykła tabela: kolumna 1 dopasowuje się do najdłuższej nazwy, kolumna 2 do
   przycisku — dzięki temu przyciski same się wyrównują, bez sztywnych
   szerokości. */

#bottom-dock #attribute-layer-list {
	max-height: 100%;
	overflow: auto;
}

#bottom-dock #attribute-layer-list #attribute-layer-list-table {
	width: fit-content; /* nie auto — inaczej tabela rozciąga się na całą szerokość */
	table-layout: auto;
	border-collapse: separate;
	border-spacing: 0 6px;
	margin: 0;
}

#bottom-dock #attribute-layer-list #attribute-layer-list-table tr {
	display: table-row;
}

#bottom-dock #attribute-layer-list #attribute-layer-list-table td {
	border: none;
	padding: 3px 6px;
	vertical-align: middle;
	background-color: transparent;
	width: auto;
	white-space: nowrap;
}

#bottom-dock #attribute-layer-list #attribute-layer-list-table td:nth-child(1) {
	font-size: 16px;
	padding-right: 16px;
	border-radius: 6px 0 0 6px;
}

#bottom-dock #attribute-layer-list #attribute-layer-list-table td:nth-child(2) {
	text-align: left;
	border-radius: 0 6px 6px 0;
}

#bottom-dock #attribute-layer-list #attribute-layer-list-table tbody > tr:hover > td {
	background-color: #f2f5f8;
}

/* --- 6. Miniatury map podkładowych --------------------------------------- */
#content #map-content .box-layers {
	z-index: 800 !important;
}

/* --- 7. Widżety na dole mapy --------------------------------------------- */

@media (pointer: fine) {
	#map-content {
		--liz-attribution-bottom: 0px;
	}

	#content #map-content .box-layers {
		bottom: 12px;
		transform: none;
	}
}

/* --- 8. Ukrycie sekcji Opcje w zakładce Dane --------------------------
   Szablon renderuje gołe <b>Opcje</b> obok formularza (bez wspólnego
   kontenera), więc chowamy oba. Przy okazji znika drugi pasek przewijania,
   który brał się z wysokiego formularza. */
#bottom-dock #attribute-summary > b,
#bottom-dock #attribute-summary > form,
#bottom-dock #jforms_view_attribute_layers_option {
	display: none !important;
}

#bottom-dock #attribute-summary {
	overflow: hidden; /* jeden pasek przewijania, na liście warstw */
}

#bottom-dock #attribute-summary #attribute-layer-list {
	box-sizing: border-box;
	max-height: 100%;
	overflow: auto;
}

/* --- 9. Stopka tabeli: Pokaż N wpisów w jednej linii z opisem ----------- */
#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_length,
#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_info,
#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_filter {
	display: flex;
	align-items: center;
	min-height: 26px;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	line-height: 26px;
}

#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_length label,
#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_filter label {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	line-height: 26px;
}

#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_length select,
#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_filter input {
	margin: 0;
	vertical-align: middle;
}

#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_info,
#bottom-dock #attributeLayers .tab-content .attribute-content .dataTables_wrapper .dataTables_length {
	position: relative;
	top: var(--liz-dt-footer-nudge);
}

/* --- 10. Ikona i i jej przycisk: kwadrat, nie pasek --------------------
   Rozciągał się cały przycisk (button.btn-detail-attributeTable), nie sama
   ikona — dlatego dymek podpowiedzi łapał pół wiersza. Kwadratujemy oba. */
#bottom-dock .icon-info-sign,
#bottom-dock .attribute-layer-action-bar .icon-info-sign,
#bottom-dock label.icon-info-sign {
	display: inline-block;
	box-sizing: content-box;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	min-width: 0;
	padding: 0 !important;
	margin: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	border: none;
	vertical-align: middle;
}

#bottom-dock .attribute-layer-action-bar .btn-detail-attributeTable,
#bottom-dock .attribute-layer-action-bar .btn.btn-detail-attributeTable {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: var(--liz-icon-btn-size);
	height: var(--liz-icon-btn-size);
	max-width: var(--liz-icon-btn-size);
	min-width: 0;
	padding: 0 !important;
	margin: 0;
	line-height: 1;
	cursor: help;
}

#bottom-dock button:has(> .icon-info-sign),
#bottom-dock label:has(> .icon-info-sign),
#bottom-dock a.btn:has(> .icon-info-sign) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: var(--liz-icon-btn-size);
	height: var(--liz-icon-btn-size);
	max-width: var(--liz-icon-btn-size);
	min-width: 0;
	padding: 0 !important;
	margin: 0;
	line-height: 1;
}

/* --- 11. Eksportuj: strzałka w jednej linii z napisem ------------------- */
#bottom-dock .attribute-layer-action-bar .btn.dropdown-toggle.exportLayer,
#bottom-dock .export-formats .btn.dropdown-toggle.exportLayer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding-right: 10px;
	line-height: normal;
	white-space: nowrap;
}

/* strzałka bywa wewnątrz przycisku albo obok niego — centrujemy też grupę */
#bottom-dock .attribute-layer-action-bar .export-formats,
#bottom-dock .export-formats.btn-group {
	display: inline-flex;
	align-items: center;
}

#bottom-dock .attribute-layer-action-bar .caret,
#bottom-dock .export-formats .caret {
	margin: 0;
	flex: 0 0 auto;
	align-self: center;
}

/* --- 12. Zakładki panelu: jedna linia w obu rozmiarach --------------------
   Zakładki warstw mają dodatkowy krzyżyk (i.btn-close-attribute-tab), przez co
   jako elementy rozciągające się lądowały niżej niż zakładka Dane. */
#bottom-dock #attributeLayers-tabs {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch !important;
	gap: 4px;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: none;
}

#bottom-dock #attributeLayers-tabs > li {
	float: none !important;
	display: flex !important;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
}

#bottom-dock #attributeLayers-tabs > li > a {
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	box-sizing: border-box;
}

/* kasuje margin-top:4px, który miały tylko zamykalne zakładki */
#bottom-dock-content #attributeLayers-tabs li a:has(i.btn-close-attribute-tab) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ukrycie sekcji relacji (tabele podrzędne) */
#bottom-dock .tabbable.attribute-layer-child-content,
#bottom-dock button.btn-toggle-children {
	display: none !important;
}

#bottom-dock .attribute-layer-content.showChildren {
	height: 90% !important;
}

/* --- 13. Panel Rysuj (lizmap-digitizing) -------------------------------
   Panel siedzi w #mini-dock, dlatego reguly sa zaczepione o #content.
   Trzy zmienne nizej to jedyne pokretla calej sekcji. */
#mini-dock:has(.digitizing),
#dock:has(.digitizing) {
	--dig-btn: 30px;
	--dig-row: 420px;
	--dig-tip: 340px;

	margin-top: 60px;
	min-width: calc(var(--dig-row) + 50px);
	max-width: min(90vw, 620px);
	width: max-content;
	max-height: none;
	overflow: visible;
}

@media (max-width: 620px) {
	#mini-dock:has(.digitizing),
	#dock:has(.digitizing) { min-width: 0; width: auto; max-width: 92vw; }
}

#mini-dock:has(.digitizing) div.menu-content,
#dock:has(.digitizing) div.menu-content {
	overflow: visible;
	max-height: none;
}

/* 13a. Pasek w jednym rzedzie */
#content .digitizing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: var(--dig-row, 420px);
	box-sizing: border-box;
}

#content .digitizing .digitizing-import-export:not(.hide) { display: contents; }

#content .digitizing .digitizing-export,
#content .digitizing .digitizing-import {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: var(--dig-btn, 30px);
	gap: 4px;
	margin: 0;
}

#content .digitizing .file-name {
	flex: 1 1 0;
	min-width: 0;
	max-width: 160px;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 13b. Jednakowe kafelki. .btn lapie tez <input type=color> - to on wystawal. */
#content .digitizing .btn,
#content .digitizing input[type=color] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: var(--dig-btn, 30px) !important;
	height: var(--dig-btn, 30px) !important;
	min-width: 0;
	min-height: 0;
	max-width: none;
	padding: 3px !important;
	margin: 0 !important;
	line-height: 1;
}

#content .digitizing .digitizing-export > .btn {
	width: auto !important;
	min-width: var(--dig-btn, 30px);
	padding: 3px 5px !important;
}

#content .digitizing .btn > svg:not(.digitizing-tool-icon) {
	display: block;
	width: 20px;
	height: 20px;
}

#content .digitizing .btn > i[class*=icon-] {
	display: block;
	width: 14px;
	height: 14px;
	margin: 0 !important;
	line-height: 14px;
}

#content .digitizing .digitizing-selected-tool { position: relative; }

#content .digitizing .digitizing-selected-tool > .digitizing-tool-icon {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 12px;
	height: 12px;
	pointer-events: none;
}

/* 13c. Paleta ksztaltow: siatka 4 kolumn pod olowkiem (oryginal wychodzil w bok) */
#content .digitizing .digitizing-buttons,
#content .digitizing .digitizing-export { position: relative; }

#content .digitizing .digitizing-buttons > .dropdown-toggle:not(.digitizing-selected-tool) {
	display: none !important;
}

#content .digitizing .dropdown-menu {
	left: 0;
	right: auto;
	top: 100%;
	min-width: 0;
	width: max-content;
	max-width: none;
	max-height: none;
	margin: 2px 0 0;
	padding: 3px;
	z-index: 1200;
}

#content .digitizing .digitizing-buttons .dropdown-menu {
	display: none;
	grid-template-columns: repeat(4, 34px);
	gap: 2px;
}

#content .digitizing .digitizing-buttons.open .dropdown-menu { display: grid; }

#content .digitizing .dropdown-menu .btn {
	width: 34px !important;
	height: 34px !important;
	padding: 4px !important;
}

#content .digitizing .dropdown-menu .btn > svg { width: 22px; height: 22px; }

#content .digitizing .caret { transform: none; margin: 0; align-self: center; }

/* 13d. Komunikat Zmiany w rysunku zostaną zapisane… dostaje własny rząd na
        całą szerokość, zamiast być wciśnięty i przycięty z prawej. */
#content .digitizing .digitizing-state {
	flex: 1 0 100%;
	box-sizing: border-box;
	max-height: none;
	overflow: visible;
	margin: 4px 0 0;
	padding: 5px 8px;
	border-radius: 6px;
	background: #f2f5f8;
	white-space: normal;
	word-break: break-word;
}

#content .digitizing .digitizing-save-state {
	white-space: normal;
	overflow: visible;
	max-height: none;
}

/* podświetlenie przycisku, gdy zapis jest włączony */
#content .digitizing .digitizing-text-tools { display: none !important; }

#content .digitizing .digitizing-save.active,
#content .digitizing .digitizing-save.btn-primary {
	background-color: #73cfcf;
	color: #fff;
}

.tooltip { pointer-events: none; }

#mini-dock .tooltip,
#dock .tooltip {
	width: max-content;
	max-width: var(--dig-tip, 340px);
	font-size: 10.5px;
	z-index: 1100;
}

#mini-dock .tooltip .tooltip-inner,
#dock .tooltip .tooltip-inner {
	max-width: var(--dig-tip, 340px);
	padding: 5px 8px;
	font-size: inherit;
	line-height: 1.3;
	white-space: normal;
	text-align: left;
}

#mobile-account-toggle { display: none; }

@media (max-width: 900px) {

    body {
        height: 100vh;
        height: var(--mobile-height, 100dvh);
    }
    body #header {
        top: var(--mobile-top, 0px);
        height: calc(60px + env(safe-area-inset-top, 0px)) !important;
        min-height: 0;
        max-height: none;
        padding-top: calc(5px + env(safe-area-inset-top, 0px));
        padding-left: max(5px, env(safe-area-inset-left, 0px));
        padding-right: max(5px, env(safe-area-inset-right, 0px));
        z-index: 6000;
    }
    body #content {
        position: absolute;
        top: calc(var(--mobile-top, 0px) + 60px + env(safe-area-inset-top, 0px)) !important;
        left: 0;
        width: 100% !important;
        height: calc(var(--mobile-height, 100dvh) - 60px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
    }
    #content #map-content, #content #map {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }
    #content #map-content { left: 0 !important; }
    #content #navbar {
        margin: 0 !important;
        top: 10px;
        right: max(10px, env(safe-area-inset-right, 0px));
        max-height: calc(100% - 20px);
        overflow-y: auto;
    }
    #content #navbar .slider { display: none; }
    #content #menuToggle { top: 10px; margin: 0; z-index: 1500; }
    #content #mapmenu {
        top: 10px;
        margin: 0 !important;
        height: auto;
        max-height: calc(100% - 20px);
        overflow-y: auto;
    }

    #header.mobile-menu-ready {
        overflow: visible;
    }

    #header #mobile-account-toggle {
        display: block;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 12px;
        width: auto !important;
        min-width: 64px;
        max-width: none;
    }
    #header #logo { width: 160px !important; height: 40px !important; margin: 0 !important; }
    #header.mobile-menu-ready #headermenu {
        display: none;
        position: absolute;
        top: 100%;
        right: 8px;
        left: auto;
        width: max-content;
        max-width: calc(100vw - 16px);
        max-height: calc(var(--mobile-height, 100dvh) - 80px);
        box-sizing: border-box;
        padding: 8px;
        margin: 0;
        overflow: auto;
        background: white;
        border-radius: 6px;
        box-shadow: 0 4px 16px #0003;
    }
    #header.mobile-menu-open #headermenu { display: block; }
    #header #auth, #header #auth > .pull-right, #header .navbar .nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        float: none;
        position: static !important;
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }
    #header .navbar .nav > li {
        display: block !important;
        position: static !important;
        float: none;
        flex: 0 0 auto;
        height: auto;
    }
    #header .navbar .nav > li > a { min-height: 36px; white-space: normal; }
    #header .navbar .nav > li > a .text { display: inline !important; }
    #header .dropdown-menu {
        position: static;
        float: none;
        min-width: 0;
        max-height: none;
        box-shadow: none;
    }

    #content #docks-wrapper {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        pointer-events: none;
    }
    #content #docks-wrapper > * { pointer-events: auto; }
    #content #dock, #content #right-dock, #content #mini-dock {
        box-sizing: border-box;
        position: absolute !important;
        top: 8px !important;
        left: max(8px, env(safe-area-inset-left, 0px)) !important;
        right: max(8px, env(safe-area-inset-right, 0px)) !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100% - 16px) !important;
        margin: 0 !important;
        overflow: auto !important;
        overscroll-behavior: contain;
        z-index: 5100;
    }
    #content #dock, #content #right-dock { padding: 0 6px 6px; }
    #content #dock-close, #content #right-dock-close {
        position: sticky;
        display: block;
        top: 0;
        float: none;
        margin: 0 0 0 auto !important;
        width: 40px;
        height: 40px;
        background-color: white;
        z-index: 30;
    }
    #content #dock > .tabbable, #content #right-dock > .tabbable {
        float: none;
        width: 100%;
    }
    #content #right-dock-content, #content #dock-content {
        height: auto !important;
        max-height: none;
        overflow: visible;
    }
    #content #mini-dock h3 {
        position: sticky;
        top: 0;
        z-index: 25;
        margin: 0;
        background: white !important;
    }
    #content #mini-dock h3 button { min-width: 40px; min-height: 40px; }
    #content #mini-dock .menu-content { box-sizing: border-box; max-width: 100%; }
    #content #mini-dock-tabs { display: none; }
    #content .digitizing { --dig-btn: 36px; min-width: 0; width: 100%; }
    #content .digitizing .digitizing-import-export { min-width: 0; }
    #content .digitizing .dropdown-menu { max-width: calc(100vw - 40px); }
    #content #permaLink .nav-tabs { display: flex; flex-wrap: wrap; }
    #content #permaLink .tab-pane { max-width: 100%; }
    #content #permaLink .tab-pane.active { display: flex; flex-wrap: wrap; gap: 8px; }
    #content #permaLink input, #content #permaLink select {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        font-size: 16px;
    }
    #content #input-share-permalink { flex: 1 1 180px; width: 0; }
    #content #input-embed-permalink { width: 100%; }
    #content #permalink { flex: 0 0 40px; min-height: 36px; text-align: center; }
    #content #span-embed-personalized-permalink { max-width: 100%; }
    #content #bottom-dock, #content #bottom-dock.visible, #content #bottom-dock.half-transparent {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 70% !important;
        max-height: 100%;
    }
    #content #bottom-dock.fullsize { height: 100% !important; left: 0 !important; }
    #content #bottom-dock #bottom-dock-window-buttons {
        bottom: 6px !important;
        height: 40px !important;
    }
    #content #bottom-dock #bottom-dock-window-buttons button { min-height: 40px; }
    #content #bottom-dock div.bottom-content { bottom: 54px; }
    #content #bottom-dock #attributeLayers-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
    }
    #content #bottom-dock #attributeLayers-tabs > li { flex: 0 0 auto; }
    /* Dodatkowe odsuniecie paneli od bocznego paska narzedzi. */
    :root {
        --wk-menu-top: 55px;
        --wk-menu-width: 50px;
    }

    #menuToggle,
    #mapmenu {
        top: var(--wk-menu-top) !important;
        left: 0 !important;
    }

    #content.mobile #dock,
    #content.mobile #mini-dock {
        top: var(--wk-menu-top) !important;
        left: calc(var(--wk-menu-width) + 6px) !important;
        right: max(6px, env(safe-area-inset-right)) !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* --- 14. Nagłówek: jeden rząd odporny na zmianę szerokości okna ----------- */
#header {
	height: 60px;
	min-height: 60px;
	max-height: 60px;
	flex-wrap: nowrap;
	align-items: center;
	overflow: visible;
}

#logo {
	flex: 0 0 auto;
	margin-top: 0;
	margin-bottom: 0;
}

/* tytuł ustępuje pierwszy i przycina się wielokropkiem */
#title {
	all: unset;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

#title h1,
#title h2 {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#headermenu,
#headermenu.mobile {
	all: unset;
	position: static;
	margin-left: auto;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

#header .navbar,
#header .navbar-inner {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#auth {
	all: unset;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
}

#header #auth > .pull-right:not(.dropdown-menu),
#header .navbar-inner > .pull-right:not(.dropdown-menu) {
	float: none;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
}

.navbar .nav {
	all: unset;
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;
	white-space: nowrap;
}

.navbar .nav > li {
	float: none;
	display: flex;
	align-items: center;
}

.navbar .nav > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	line-height: normal;
	white-space: nowrap;
}

#header .navbar .nav > li > a .caret {
	margin-top: 0;
	align-self: center;
}

#header .navbar .nav > li > a .icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

/* 15. Wyniki wyszukiwarki nie mogą wystawać poniżej okna. */
#content #lizmap-search.open {
	max-height: calc(100vh - 120px);
	overflow: auto;
	overscroll-behavior: contain;
}
@media (max-width: 900px) {
	#title h1 {
		font-size: 18px;
	}
}

@media (max-width: 700px) {
	#header .navbar .nav > li > a .text {
		display: none;
	}
}

/* Ukrycie sekcji wyszukiwania */
form#nominatim-search {
    display: none;
}
