:root {
	--navbar-height: 80px;
	--siderbar-width: 240px;
	--sidebar-padding: 20px;
	--ss-primary-color: #1e87f0;
	--ss-animation-timing: 0s;
	--ss-border-radius: 0;
	--ss-spacing-s: 0;
}

html, body {
	height: 100%;
}

* {
	box-sizing: border-box;
}

body {
	display: flex;
	flex-direction: column;
}

pre:has(> code) {
	border: 0;
	padding: 0;
}

#nav {
	position: fixed;
	z-index: 10;
	padding: 0 20px;
	height: var(--navbar-height);
	width: 100%;
}

#sidebar {
	position: fixed;
	z-index: 10;
	top: var(--navbar-height);
	bottom: 0;
	box-sizing: border-box;
	width: var(--siderbar-width);
	padding: var(--sidebar-padding);
	border-right: 1px #e5e5e5 solid;
	overflow-x: hidden;
	overflow-y: auto;
}

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

#content,
#footer {
	margin-left: var(--siderbar-width);
}

body.user-guest #content,
body.user-guest #footer {
	margin-left: 0;
}

@media (max-width: 960px) {
	#sidebar {
		display: none;
	}

	body.user-logged #sidebar-mobile-toggle {
		display: inherit;
	}

	#content,
	#footer {
		margin-left: 0;
	}
}

#content {
	flex-grow: 1;
	padding-bottom: 20px;
	margin-top: var(--navbar-height);
}

#footer {
	background: #f8f8f8;
	padding: 8px 20px;
	display: flex;
	justify-content: space-between;
}

#content > .uk-container-expand,
#content > .uk-container {
	margin: 20px auto;
	padding-left: 20px;
	padding-right: 20px;
}

#actions {
	padding: 10px 20px;
}

#actions .uk-navbar-item,
#actions .uk-navbar-nav > li > a {
	min-height: auto;
}

table, .uk-overflow-auto {
	min-width: 100%;
}

.uk-tooltip {
	max-width: min(500px, calc(100vw - 40px));
}

#modal-debug .uk-modal-dialog {
	--padding: 29px;
	min-height: calc(100vh - var(--padding));
}

@media (min-width: 960px) {
	#modal-debug .uk-modal-dialog {
		--padding: 100px;
	}
}

#filters {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

#filters > * {
	width: auto;
	/*display: inline-block;*/
}

@media (max-width: 700px) {
	#filters > *,
	#filters > * > input,
	#filters > * > select {
		width: 100%;
	}
}

[data-view-calendar] tr .prices-cell {
	max-height: 200px;
	overflow: hidden;
	position: relative;
	white-space: nowrap;
}

[data-view-calendar] tr div.prices-cell:after {
	content: " ";
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 1;
	bottom: 0;
	left: 0;
	background: linear-gradient(transparent 50%, rgba(255, 255, 255, 1));
	pointer-events: none;
}

[data-view-calendar] tr.open .prices-cell {
	max-height: none;
	overflow: visible;
}

[data-view-calendar] tr.open .prices-cell:after {
	display: none;
}

.ts-control {
	border-radius: 0;
	border: 1px solid #e5e5e5;
}

.ts-wrapper {
	display: inline-block;
	width: 100%;
	max-width: 100%;
}

#filters .ts-wrapper {
	min-width: 200px;
}

.ts-wrapper.focus .ts-control {
	border-color: #1e87f0;
}

/*.ts-dropdown {
	border-radius: 0;
	border: 1px solid #e5e5e5;
}

.ts-dropdown .active {
	background: #eee;
}

.ts-control, .ts-control input, .ts-dropdown {
	font-size: 14px;
}

.ts-wrapper.multi.has-items .ts-control {
	padding: 8px 8px 5px;
}*/

.ss-main:focus,
.ss-content .ss-search input:focus {
	box-shadow: none;
}

.ss-content {
	z-index: 2;
	top: auto !important;
	left: 0 !important;
	bottom: 0;
	width: auto !important;
	transform: translateY(100%) !important;
	display: none;
}

.ss-content.ss-open-below,
.ss-content.ss-open-above {
	display: flex;
}

*:has(> .ss-content) {
	position: relative;
}

.ss-main {
	padding: 0 25px 0 10px;
	background-color: #fff;
	background-image: url(data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%201%209%206%2015%206%22%20%2F%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%2013%209%208%2015%208%22%20%2F%3E%0A%3C%2Fsvg%3E%0A);
	background-repeat: no-repeat;
	background-position: 100% 50%;

	color: #666;
	border: 1px solid #e5e5e5;
	transition: .2s ease-in-out;
	transition-property: color, background-color, border;
	min-height: 40px;
	vertical-align: middle;
}

.ss-main .ss-arrow {
	display: none;
}

.ss-content .ss-search input {

}

.ss-main:not([multiple]) {

}

.ss-main.ss-open-below,
.ss-main.ss-open-above {
	border-color: #1e87f0;
}

.ss-main .ss-values {
	padding: 5px 0;
}

.ss-main .ss-values .ss-value {
	min-height: 28px;
}

.ss-content .ss-list .ss-option {
	/*white-space: nowrap;*/
}

/*.uk-table-mini td, */
/*.uk-table-mini th {*/
/*	padding: 5px 5px;*/
/*}*/

@media print {
	#nav {
		position: static;
	}

	#nav .uk-navbar-right {
		display: none;
	}

	#sidebar {
		display: none;
	}

	#content {
		margin-top: 0;
		margin-left: 0;
	}

	#footer {
		display: none;
	}
}
