/* zakladni promenne */
:root {
	--border-radius: 6px;
	--space-default: 6px;
	--space-tiny: 3px;
	--space-small: 6px;
	--space-medium: 12px;
	--space-big: 18px;
	--space-bigger: 32px;
	--gap: 15px;

	--input-tiny: 50px;
	--input-small: 100px;
	--input-medium: 250px;
	--input-big: 500px;
	--input-bigger: 800px;

	--textarea-tiny: 70px;
	--textarea-small: 100px;
	--textarea-medium: 150px;
	--textarea-big: 200px;
	--textarea-bigger: 400px;

	--yesno-inactive: #707070;
	--yesno-active: #0caf00;
}

/* mezery */
.space-top {margin-top: var(--space-default)}
.space-top-tiny {margin-top: var(--space-tiny)}
.space-top-small {margin-top: var(--space-small)}
.space-top-medium {margin-top: var(--space-medium)}
.space-top-big {margin-top: var(--space-big)}
.space-top-bigger {margin-top: var(--space-bigger)}

.space-left {margin-left: var(--space-default)}
.space-left-tiny {margin-left: var(--space-tiny)}
.space-left-small {margin-left: var(--space-small)}
.space-left-medium {margin-left: var(--space-medium)}
.space-left-big {margin-left: var(--space-big)}
.space-left-bigger {margin-left: var(--space-bigger)}

.space-bottom {margin-bottom: var(--space-default)}
.space-bottom-tiny {margin-bottom: var(--space-tiny)}
.space-bottom-small {margin-bottom: var(--space-small)}
.space-bottom-medium {margin-bottom: var(--space-medium)}
.space-bottom-big {margin-bottom: var(--space-big)}
.space-bottom-bigger {margin-bottom: var(--space-bigger)}

.space-right {margin-right: var(--space-default)}
.space-right-tiny {margin-right: var(--space-tiny)}
.space-right-small {margin-right: var(--space-small)}
.space-right-medium {margin-right: var(--space-medium)}
.space-right-big {margin-right: var(--space-big)}
.space-right-bigger {margin-right: var(--space-bigger)}

/* formulare */
textarea.is-tiny {
	height: var(--textarea-tiny);
	min-height: var(--textarea-tiny);
}
textarea.is-small {
	height: var(--textarea-small);
	min-height: var(--textarea-small);
}
textarea.is-medium {
	height: var(--textarea-medium);
	min-height: var(--textarea-medium);
}
textarea.is-big {
	height: var(--textarea-big);
	min-height: var(--textarea-big);
}
textarea.is-bigger {
	height: var(--textarea-bigger);
	min-height: var(--textarea-bigger);
}

/* autocomplete */
.autocomplete {
	width: 300px;
	max-width: 80vw;
	max-height: 250px;
	margin-top: 5px;
	z-index: 1000;
	background: #fff;
	border: 1px solid #d6d6d6;
	overflow: auto;
}
.autocomplete.is-html {
	padding: 5px;
}
.autocomplete.is-html > *:last-child {
	margin-bottom: 0;
}
.autocomplete .autocomplete__group {
	display: flex;
	align-items: center;
	padding: 5px;
	background: #e5e5e5;
	border: none;
	color: #4a4a4a;
}
.autocomplete .autocomplete__item {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	padding: 5px;
	cursor: pointer;
}
.autocomplete .autocomplete__item:hover,
.autocomplete .autocomplete__item.is-active {
	background-color: #1266ab;
	color: #fff;
}
.autocomplete .autocomplete__item-picture {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
}
.autocomplete .autocomplete__item-picture img {
	max-width: 100%;
	height: auto;
}
.autocomplete .autocomplete__item-note {
	width: 100%;
	color: #666;
	font-size: 0.75rem;
}
.autocomplete .autocomplete__item-note > *:last-child {
	margin-bottom: 0;
}
.autocomplete .autocomplete__item.has-picture .autocomplete__item-note {
	padding-left: 30px;
}
.autocomplete .autocomplete__item:hover .autocomplete__item-note,
.autocomplete .autocomplete__item.is-active .autocomplete__item-note {
	color: #fff;
}

/* autocomplete, vyhledavani */
.autocomplete-search {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	max-height: 396px;
	margin-top: 5px;
	background: #fff;
	border: 1px solid #d6d6d6;
	overflow: auto;
	z-index: 1000;
}
.autocomplete-search .autocomplete__collection {
	padding: 5px;
}
.autocomplete-search .autocomplete__group {
	padding: 5px;
	color: #1266ab;
	font-size: 1rem;
	font-weight: 500;
}
.autocomplete-search .autocomplete__group-header,
.autocomplete-search .autocomplete__group-footer {
	padding: 5px;
	font-size: 0.75rem;
}
.autocomplete-search .autocomplete__group-footer {
	font-style: italic;
}
.autocomplete-search .autocomplete__group-header p,
.autocomplete-search .autocomplete__group-footer p {
	margin: 0;
}
.autocomplete-search .autocomplete__item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 10px;
	padding: 5px;
	cursor: pointer;
}
.autocomplete-search .autocomplete__item:hover,
.autocomplete-search .autocomplete__item.is-active {
	background-color: #1266ab;
	color: #fff;
}
.autocomplete-search .autocomplete__item-picture {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
}
.autocomplete-search .autocomplete__item-picture img {
	max-width: 100%;
	height: auto;
}
.autocomplete-search .autocomplete__item-note {
	width: 100%;
	color: #666;
	font-size: 0.75rem;
}

/* layout */
.layout {
	width: 100%;
	margin-bottom: var(--gap);
	background: #fff;
	border: 1px solid #d6d6d6;
	border-radius: var(--border-radius);
	overflow: hidden;
}
.layout__header {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0 var(--gap);
	justify-content: space-between;
	padding: var(--gap);
	padding-bottom: 0;
}
.layout__heading {
	width: 100%;
	font-size: 1.25rem;
	font-weight: 400;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
}
.layout__close,
.layout__close:focus,
.layout__close:hover {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	color: #000;
	font-size: 1.25rem;
	text-decoration: none;
}
.layout__close:after {
	content: '✖';
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: black;
	font-size: 20px;
}
.layout__body {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: var(--gap);
	justify-content: space-between;
	padding: var(--gap);
}
.layout__content {
	width: 100%;
}
.layout__content > *:last-child {
	margin-bottom: 0;
}
.layout__footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gap);
	justify-content: space-between;
	padding: var(--gap);
	background: #f5f5f5;
}
.layout__footer > .layout__content {
	font-size: 0.75rem;
}
.layout__buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gap);
	justify-content: flex-start;
	width: 100%;
}
.layout__buttons .btn {
	padding: 10px 14px;
	background-color: #094c83;
	border-color: #094c83;
	border-radius: var(--border-radius);
	color: #fff;
}
.layout__buttons .btn.is-yes {
	background-color: #26ab12;
	border-color: #26ab12;
	color: #fff;
}
.layout__buttons .btn.is-no {
	background-color: #f9f9f9;
	border: none;
	border-color: #d7d1d1;
	color: #000;
}
.layout.is-info {
	background-color: #d7ebff;
	border-color: #c8d7e5;
	color: #004985;
}
.layout.is-info .layout__heading,
.layout.is-info .layout__close:after {
	color: #004985;
}
.layout.is-info .layout__footer {
	background-color: #bbd2e9;
}
.layout.is-info .layout__buttons .btn {
	background-color: #5f7489;
	border-color: #5f7489;
	color: #fff;
}
.layout.is-info a {
	color: #004985;
}
.layout.is-success {
	background-color: #ddfdc0;
	border-color: #bbeb91;
	color: #3e8500;
}
.layout.is-success .layout__heading,
.layout.is-success .layout__close:after {
	color: #3e8500;
}
.layout.is-success .layout__footer {
	background-color: #c1ed99;
}
.layout.is-success .layout__buttons .btn {
	background-color: #72a349;
	border-color: #72a349;
	color: #fff;
}
.layout.is-success a {
	color: #3e8500;
}
.layout.is-warning {
	background-color: #fff6c3;
	border-color: #dbd68d;
	color: #525027;
}
.layout.is-warning .layout__heading,
.layout.is-warning .layout__close:after {
	color: #525027;
}
.layout.is-warning .layout__footer {
	background-color: #efdf9a;
}
.layout.is-warning .layout__buttons .btn {
	background-color: #b79f3d;
	border-color: #b79f3d;
	color: #fff;
}
.layout.is-warning a {
	color: #525027;
}
.layout.is-error {
	background-color: #fdcdcd;
	border-color: #ebada9;
	color: #991910;
}
.layout.is-error .layout__heading,
.layout.is-error .layout__close:after {
	color: #991910;
}
.layout.is-error .layout__footer {
	background-color: #eb9d9d;
}
.layout.is-error .layout__buttons .btn {
	background-color: #b74e4e;
	border-color: #b74e4e;
	color: #fff;
}
.layout.is-error a {
	color: #991910;
}
.layout.is-done {
	background-color: #fff;
}
.layout.is-done .layout__footer {
	padding-top: 0;
	background-color: #fff;
}

/* dialog */
.dialog-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	padding: var(--gap);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1051;
	background-color: rgba(0, 0, 0, 0.6);
}
.dialog-overlay > *:last-child {
	margin-bottom: 0;
}
.dialog-overlay.is-msgbox {
	background: transparent;
}
.dialog-overlay.is-msgbox .layout.is-dialog {
	max-width: 20vw;
	border: 1px solid #ccc;
	box-shadow: 0 0 10px 0 rgb(0 0 0 / 28%);
}
.dialog-overlay.is-msgbox .layout.is-dialog.is-messages {
	max-width: 40vw;
}
.layout.is-dialog {
	width: 800px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
}
.layout.is-dialog.is-full {
	width: 90vw;
	max-width: 90vw;
	height: 90vh;
}
.layout.is-dialog.is-medium {
	width: 60vw;
	max-width: 60vw;
}
.layout.is-dialog.is-small {
	width: 20vw;
	max-width: 20vw;
}
.layout.is-dialog .layout__footer {
	background: #fff;
}
.layout.is-dialog.is-alert .layout__content,
.layout.is-dialog.is-confirm .layout__content {
	text-align: center;
}
.layout.is-dialog.is-alert > .layout__footer > .layout__buttons,
.layout.is-dialog.is-confirm > .layout__footer > .layout__buttons {
	justify-content: center;
}
.layout.is-dialog.is-confirm .layout__content,
.layout.is-dialog.is-alert .layout__content {
	text-align: center;
	font-size: 120%;
}

/* toast */
.toast-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	width: 400px;
	max-width: 90vw;
	max-height: 90vh;
	padding: var(--gap);
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 1000;
	overflow: hidden;
}
.layout.is-toast {
	flex-shrink: 0;
	margin: 0;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.layout.is-debug .layout__body {
	padding: 0;
}

.layout.is-debug .layout__content {
	overflow: auto;
	max-height: 300px;
}

/* tooltip */
.tooltip {
	max-width: 80vw;
	padding: 6px;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	border-radius: var(--border-radius);
}
.tooltip.is-picture {
	padding: 0;
	background: transparent;
}
.tooltip.is-picture img {
	max-width: 300px;
}
.tooltip__in > * {
	max-width: 100%;
}

/* message */
.message-wrapper {
	display: flex;
	flex-direction: column;
	gap: 5px 0;
	padding: 5px 0 0 0;
}
.layout.is-message.is-field {
	margin: 0;
}
.layout.is-message.is-field .layout__body {
	padding: 6px;
}
.layout.is-message.is-field .layout__content {
	font-size: 80%;
}

/* loading */
.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: var(--gap);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1051;
	background-color: rgba(255, 255, 255, 0.8);
}
.loading__progress {
	width: 80px;
	height: 80px;
	border: 4px solid #dbeaff;
	border-radius: 50%;
	border-top-color: #094c83;
	animation: loaderSpin 1s linear infinite;
}
@keyframes loaderSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* mapy */
.map img {
	max-width: none;
	height: auto;
}

/* Sada tlacitek */
.btn-grp {
	display: flex;
	gap: var(--gap);
	flex-direction: row;
}
.btn-grp.is-left {
	justify-content: flex-start;
}
.btn-grp.is-right {
	justify-content: flex-end;
}
.btn-grp.is-center {
	justify-content: center;
}
.btn-grp.is-full {
	justify-content: space-between;
}
.btn-grp.is-fill {
	justify-content: space-between;
}
.btn-grp.is-fill > * {
	flex-grow: 1;
}
.btn-grp.is-rows {
	flex-direction: column;
	align-items: center;
}
.btn-grp.is-rows-fill {
	align-items: initial;
}
.btn-grp.is-rows-fill > * {
	flex-grow: 1;
}

/* Napoveda u formularu */
.form__help {
	position: relative;
}

.form__help i + span {
	display: none;
}

.form__help i:hover + span {
	position: absolute;
	right: 0;
	display: block;
	background-color: black;
	color: white;
	font-size: 80%;
	padding: 10px 14px;
	border-radius: 5px;
	z-index: 10000;
	min-width: 250px;
	max-width: 400px;
}