﻿.form-control, .form-select {
	font-size: var(--font-size);
	border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
}

	.form-control:focus, .form-select:focus {
		outline: none;
		box-shadow: none;
		box-shadow: 0 0 0 1px rgba(13, 110, 253, .25);
	}

.form-check-input {
	border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
	margin-top: .35rem;
}

	.form-check-input:focus {
		box-shadow: 0 0 0 1px rgba(13, 110, 253, .25);
	}

	.form-check-input:checked {
		background-color: var(--color-override-primary);
		border-color: var(--color-override-primary);
	}

		.form-check-input:checked:focus {
			box-shadow: 0 0 0 .25rem rgba(192, 40, 91, .25);
		}

	.form-check-input[type="checkbox"]:indeterminate {
		background-color: var(--color-override-primary);
		border-color: var(--color-override-primary);
	}

input[type="color"] {
	-webkit-appearance: none;
	border: none;
	width: 100%;
	height: 1.15rem;
	margin: 0;
}

	input[type="color"]::-webkit-color-swatch-wrapper {
		padding: 0;
	}

	input[type="color"]::-webkit-color-swatch {
		border: none;
	}

	input[type="color"]::-moz-color-swatch {
		border-style: none;
		margin-bottom: .5rem;
	}

.btn:focus {
	box-shadow: 0 0 0 2px rgba(13, 110, 253, .25);
}

.btn-link:focus {
	outline: none;
	box-shadow: none;
}

.btn {
	font-size: var(--font-size-button);
	padding-left: 1rem;
	padding-right: 1rem;
	line-height: var(--font-size-button);
	padding-top: .75rem;
	padding-bottom: .75rem;
}

.btn-sm {
	font-size: var(--font-size-smaller);
	padding-left: 1rem;
	padding-right: 1rem;
	padding-top: .5rem;
	padding-bottom: .5rem;
}

.btn-outline-primary {
	color: var(--color-override-primary);
	border-color: var(--color-override-primary);
	background-color: var(--color-bg);
}

.btn-outline-primary-contrast {
	border-color: var(--color-override-primary);
	background-color: var(--color-white);
}

	.btn-outline-primary-contrast:hover {
		border-color: var(--color-override-primary);
		background-color: var(--color-hover-primary-bg);
		color: var(--color-white) !important;
	}

.btn-outline-primary:hover {
	color: var(--color-white) !important;
	background-color: var(--color-hover-primary-bg);
	border-color: var(--color-override-primary);
	outline: none;
	box-shadow: none;
}

.btn-outline-primary:active, .btn-outline-primary.active {
	color: var(--color-white) !important;
	background-color: var(--color-hover-primary-bg) !important;
	border-color: var(--color-override-primary) !important;
	outline: none;
	box-shadow: none;
}

/*	.btn-outline-primary:focus, .btn-outline-primary:active,
	.btn-primary:focus, .btn-primary:active
	{
		outline: none;
		box-shadow: none;
	}
*/
.btn-primary, .btn-primary:focus, .btn-primary[disabled] {
	color: var(--color-white);
	background-color: var(--color-override-primary);
	border-color: var(--color-override-primary);
}

	.btn-primary:hover {
		color: var(--color-white);
		background-color: var(--color-hover-primary);
		border-color: var(--color-hover-primary);
		outline: none;
		box-shadow: none;
	}

	.btn-primary:active, .btn-primary.active {
		color: var(--color-white) !important;
		background-color: var(--color-hover-primary) !important;
		border-color: var(--color-hover-primary) !important;
		outline: none;
		box-shadow: none;
	}

.btn-info, .btn-info:focus, .btn-info[disabled] {
	color: var(--color-white);
}

	.btn-info:hover {
		color: var(--color-white);
	}

.btn-outline-primary[disabled] {
	color: var(--color-white);
	background-color: var(--color-fg-dimmed);
	border-color: var(--color-fg-dimmed);
}

.btn-launcher {
	border-bottom-width: .35rem;
	background-color: var(--color-white);
}


.btn-dimmed {
	background-color: var(--color-bg);
	border-style: dotted;
	color: var(--color-fg-dimmed);
	font-size: 0.7rem;
}

span[disabled] {
	color: var(--color-fg-dimmed);
}

.btn-dimmed:focus {
	outline: none;
	box-shadow: none;
}

.btn-middle {
	font-size: var(--font-size);
}

.button-text-ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	max-width: 80%;
}

.masked-disabled-state:disabled {
	/*color: var(--bs-table-striped-color);*/
	color: black;
	text-decoration: none;
}


.page-not-authorized {
	background-color: var(--color-bg);
	height: 100vh;
}

	.page-not-authorized .logo {
		width: 60px;
	}


.wide-button {
	min-width: 20rem;
}

.flag {
	width: 24px;
}

.flag-small {
	width: 18px;
}

.btn-link {
	/*color: var(--color-fg-dimmed);*/
	color: var(--color-h1);
}

	.btn-link:hover {
		color: var(--color-hover-primary);
	}

.pair-matrix {
	display: table;
	width: 100%;
	background-color: var(--color-white);
}

	.pair-matrix .pair-matrix-row {
		display: table-row;
		line-height: 2.5rem;
	}

	.pair-matrix .pair-matrix-label {
		display: table-cell;
		width: 20%;
		min-width: 15rem;
		color: var(--color-fg-dimmed);
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.pair-matrix .pair-matrix-value {
		display: table-cell;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	/*.pair-matrix-row:hover .pair-matrix-label,
.pair-matrix-row:hover .pair-matrix-value {
	background-color: var(--color-fg-inverse);
}
*/
	.pair-matrix .pair-matrix-row:not(:last-child) .pair-matrix-label,
	.pair-matrix .pair-matrix-row:not(:last-child) .pair-matrix-value {
		border-bottom: 1px solid var(--color-header-border);
	}




.small-icon {
	font-size: .75rem;
}

.middle-icon {
	font-size: 1rem;
}

.middle-icon-empty {
	width: 1.5rem;
	display: inline-block;
}

.h1-sub {
	transform: translateY(-.5rem);
	display: inline-block;
	margin-left: 0.1rem;
	color: var(--color-white-dimmed);
}

.h1-tiny {
	display: inline-block;
	margin-left: 0.75rem;
	font-size: 1.25rem;
}

.small-note {
	display: block;
	margin-left: 0.1rem;
	color: var(--color-fg-dimmed);
	font-size: var(--font-size-smaller);
	padding-top: .3rem;
}

.small-note-inline {
	color: var(--color-fg-dimmed);
	font-size: var(--font-size-smaller);
}

.inline-label {
	display: inline-block;
	min-width: 5.5rem;
}

.inline-label2 {
	display: inline-block;
	min-width: 11rem;
}

.suggestion-min-width-3 {
	min-width: 2.5rem;
	display: inline-block;
}

.panel {
	background-color: var(--color-white);
}

	.panel label {
		color: #6c757d !important;
	}

.section-label {
	margin-top: 1rem;
	margin-bottom: 0.25rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--color-fg-secondary);
}

.section-label-important {
	margin-top: 1rem;
	margin-bottom: 0.25rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--color-override-primary);
}

	.section-label-important a {
		text-decoration: none;
	}

.section-label-important2 {
	margin-bottom: 0.25rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--color-override-primary);
}

.section-label-important3 {
	font-weight: 500;
	text-transform: uppercase;
	color: var(--color-override-primary);
}

.section-label-important4 {
	font-weight: 500;
	text-transform: uppercase;
	color: var(--color-override-primary);
	font-size: 1.1rem;
}


.section-label-big {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: -0.05rem;
	color: var(--color-h1);
	font-size: 1.25rem;
}

.section-label-biggest {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-weight: 200;
	text-transform: uppercase;
	letter-spacing: -0.05rem;
	color: var(--color-h1);
	font-size: 2.5rem;
}

.item-checkbox {
	margin-left: 0.75rem;
	margin-right: 0.5rem;
}

.page-filters {
	padding: 0.1rem;
	margin-top: 1rem;
	text-transform: uppercase;
}

	.page-filters .btn-link {
		text-transform: uppercase;
	}

		.page-filters a.tab, .page-filters .btn-link.tab {
			border-bottom: 2px solid transparent;
			margin-right: 0.5rem;
		}

		.page-filters a.tab, .page-filters .btn-link.tab {
			text-decoration: none;
			color: var(--color-fg);
		}

			.page-filters a.tab:after, .page-filters .btn-link.tab:after {
				content: '';
				display: block;
				margin: auto;
				height: 3px;
				width: 0;
				background-color: transparent;
				transition: width .2s ease, background-color .2s ease;
			}

			.page-filters a.tab:hover:after, .page-filters .btn-link.tab:hover:after {
				width: 100%;
				background-color: var(--color-accent);
				/*background-color: var(--color-hover-primary);*/
			}

			.page-filters a.tab.active, .page-filters .btn-link.tab.active {
				color: var(--color-fg);
			}

				.page-filters a.tab.active:after, .page-filters .btn-link.tab.active:after {
					width: 100%;
					background-color: var(--color-accent);
				}


.icon-button, .icon-button-inline {
	padding: 0;
	background-color: transparent;
	cursor: pointer;
}


	.icon-button:hover, .icon-button-inline:hover {
		color: var(--color-accent);
	}

.field-sizing-content {
	field-sizing: content;
}

.show-on-hover > span {
	visibility: hidden;
}

.show-on-hover .btn-sm {
	padding-top: .5rem !important;
}


.show-on-hover:hover > span {
	visibility: visible;
}


.show-on-hover::after {
	content: "\2026";
	padding-right: 2rem;
}

.show-on-hover:hover::after {
	content: none;
}

/*show on hover 2*/

.show-on-hover-2 {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

	.show-on-hover-2 > span {
		display: inline-block;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

.show-on-hover-2-content {
	/*display: none;*/
	position: absolute;
	top: -.5rem;
	right: 1rem;
	z-index: 10;
	width: max-content;
	padding: .5rem;
	border: none;
	background-color: rgb(243, 243, 243);
	border-radius: 2px;
	/*box-shadow: var(--popup-shadow);*/
	transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	opacity: 0;
	/*transform: translateY(10px);*/
	transform: scale(0.95);
	visibility: hidden;
	pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
	.show-on-hover-2-content {
		right: 1rem;
	}
}

.show-on-hover-2:hover .show-on-hover-2-content,
.show-on-hover-2:focus-within .show-on-hover-2-content {
	/*display: block;*/
	opacity: 1;
	transform: translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;
}

.show-on-hover-2:hover > span,
.show-on-hover-2:focus-within > span {
	/*	color: transparent;
	background-color: transparent;
*/ visibility: hidden;
}

.show-on-hover-2-content:focus {
	outline: none;
}

/* end - show on hover 2*/


/* show on hover vertical */

.show-on-hover-vertical {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

	.show-on-hover-vertical > span {
		display: inline-block;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

.show-on-hover-vertical-content {
	/*display: none;*/
	position: absolute;
	top: 100%; /* Position below the trigger */
	transform: translateX(-70%);
	z-index: 10;
	width: max-content;
	padding: 0.5rem;
	border: none;
	background-color: rgb(243, 243, 243);
	border-radius: 2px;
	transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateX(-70%) translateY(0) scale(0.95);
	visibility: hidden;
	pointer-events: none;
}

	.show-on-hover-vertical-content > * {
		display: block;
		margin-bottom: .25rem;
		width: 100%;
	}

	.show-on-hover-vertical-content .btn, .show-on-hover-vertical-content .btn-sm {
		text-align: left;
		padding-inline: .5rem;
	}

@media (hover: none) and (pointer: coarse) {
	.show-on-hover-vertical-content {
		left: 50%;
		transform: translateX(-50%);
	}
}

.show-on-hover-vertical:hover .show-on-hover-vertical-content,
.show-on-hover-vertical:focus-within .show-on-hover-vertical-content {
	/*display: block;*/
	opacity: 1;
	transform: translateX(-70%) translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;
}

.show-on-hover-vertical:hover > span,
.show-on-hover-vertical:focus-within > span {
	/*	color: transparent;
	background-color: transparent;
*/ visibility: hidden;
}

.show-on-hover-vertical-content:focus {
	outline: none;
}

/* end - show on hover vertical */

/* No-hover variants (disable opening on mouse hover) */

.show-on-nohover-2 {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

	.show-on-nohover-2 > span {
		display: inline-block;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

.show-on-nohover-2-content {
	position: absolute;
	top: -.5rem;
	right: 1rem;
	z-index: 10;
	width: max-content;
	padding: .5rem;
	border: none;
	background-color: rgb(243, 243, 243);
	border-radius: 2px;
	transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: scale(0.95);
	visibility: hidden;
	pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
	.show-on-nohover-2-content {
		right: 1rem;
	}
}

.show-on-nohover-2:focus-within .show-on-nohover-2-content {
	opacity: 1;
	transform: translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;
}

.show-on-nohover-2:focus-within > span {
	visibility: hidden;
}

/* vertical nohover */
.show-on-nohover-vertical {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

	.show-on-nohover-vertical > span {
		display: inline-block;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

.show-on-nohover-vertical-content {
	position: absolute;
	top: 100%;
	transform: translateX(-70%);
	z-index: 10;
	width: max-content;
	padding: 0.5rem;
	border: none;
	background-color: rgb(243, 243, 243);
	border-radius: 2px;
	transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateX(-70%) translateY(0) scale(0.95);
	visibility: hidden;
	pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
	.show-on-nohover-vertical-content {
		left: 50%;
		transform: translateX(-50%);
	}
}

.show-on-nohover-vertical:focus-within .show-on-nohover-vertical-content {
	opacity: 1;
	transform: translateX(-70%) translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;
}

.show-on-nohover-vertical:focus-within > span {
	visibility: hidden;
}

.show-on-nohover {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

	.show-on-nohover > span {
		visibility: hidden;
	}

	/*.show-on-nohover::after {
	content: "\2026";
	padding-right: 2rem;
}

.show-on-nohover:hover::after {
	content: "\2026";
}
*/
	.show-on-nohover:focus-within > span {
		visibility: visible;
	}

	.show-on-nohover:focus-within::after {
		content: none;
	}


.app-messages {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	line-height: 3rem;
	padding-top: .75rem;
	/*
	there is a bug in Chrome/Edge - when using full width of a fixed div,
	it does not fit on the screen if scrollbar-gutter: stable; is set on the html element

	left: 50.25%;
	transform: translateX(-50%);
	*/

	padding-left: 1.5rem;
	width: calc(100vw - 2.5rem);
	line-height: 1.5rem;
}


	.app-messages .alert {
		margin-bottom: 0.15rem;
	}

	.app-messages .badge {
		min-width: 2.0rem;
		display: inline-block;
		border-radius: 0.5rem;
		margin-right: 0.25rem;
	}

.animate-disappear {
	opacity: 1;
	animation: animateDisappearFrames 1.5s;
	animation-delay: 2.0s;
	animation-fill-mode: forwards;
}

@keyframes animateDisappearFrames {
	0% {
		opacity: 1;
		transform: rotateX(90deg);
	}

	50% {
		opacity: 0.5;
		transform: rotateX(0deg);
	}

	100% {
		display: none;
		opacity: 0;
		transform: rotateX(90deg);
	}
}


.top-row {
	display: flex;
	flex-direction: column;
	padding: 0 0.75rem;
}




	.top-row ul.components ul, .top-row ul.components li {
		list-style-type: none;
		list-style: none;
		display: block;
		text-align: right;
	}


.icon-and-text {
	display: block;
}

	.icon-and-text i {
		font-size: .9rem;
		margin-right: 0.15rem;
		color: var(--bs-gray-500);
	}


/* BlazorDateRangePicker overrides */
.daterangepicker {
	margin-top: 0.8rem !important;
	border: 1px solid RGBA(var(--rgb-color-dimmed-grey)) !important;
}

	.daterangepicker:before {
		border-bottom-color: RGBA(var(--rgb-color-dimmed-grey)) !important;
	}

	.daterangepicker td.in-range {
		background-color: var(--color-override-primary-dimmed) !important;
	}

	.daterangepicker .ranges li.active {
		background-color: var(--color-override-primary) !important;
	}

	.daterangepicker td.active, .daterangepicker td.active:hover {
		background-color: var(--color-override-primary) !important;
	}

/* Search */

.input-group {
	background-color: var(--color-white);
}

	.input-group .input-group-text {
		background-color: transparent;
		border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
		border-radius: 3px;
		border-right: none;
	}

		.input-group .input-group-text img {
			width: 1.2rem;
		}

	.input-group .form-control {
		border-radius: 3px;
		border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
	}

		.input-group .form-control:focus, .search-submit:focus, .search-reset:focus {
			outline: none;
			box-shadow: none;
			border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
			/*border-left: none;*/
		}



input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--color-placeholder) !important;
}


.search-reset {
	border: 1px solid transparent;
	color: var(--color-hover-primary);
	background: none;
}

.search-reset-hidden {
	visibility: hidden;
}

.search-submit {
	color: var(--color-override-primary);
	border: 1px solid transparent;
	background: none;
	padding-top: 0.15rem;
}

	.search-submit:hover {
		color: var(--color-hover-primary);
	}

	.search-submit .bi, .search-reset .bi {
		margin: 0;
	}

.search-input {
	border: none;
	width: calc(100% - 4.0rem);
	padding: 0;
	margin: 0;
	padding-bottom: 0.1rem;
	padding-top: .15rem;
}

.search-envelope, .form-control.search-envelope {
	background-color: var(--color-white);
}

	.search-envelope input[type="search"], .search-envelope input[type="search"]:focus, .search-envelope input[type="search"]:active, .search-envelope input[type="search"]:focus-visible,
	.search-envelope input[type="text"], .search-envelope input[type="text"]:focus, .search-envelope input[type="text"]:active, .search-envelope input[type="text"]:focus-visible {
		border: none;
		outline-width: 0;
		outline: none;
	}

.input-icon {
	height: 1rem;
}

.sandbox-info {
	color: var(--color-white-dimmed);
	height: 2rem;
	font-size: 115%;
	font-weight: 500;
}


.multi-select {
	position: relative;
}

	.multi-select .suggestions {
		overflow-y: auto;
	}

		.multi-select .suggestions ul {
			padding-top: 1rem;
		}

		.multi-select .suggestions ul, .multi-select .suggestions li {
			list-style-type: none;
			list-style: none;
			display: block;
			padding-left: 0;
		}

			.multi-select .suggestions ul li.suggestion-available {
				cursor: pointer;
			}

				.multi-select .suggestions ul li.suggestion-available:hover {
					color: var(--color-h1);
				}

			.multi-select .suggestions ul li.suggestion-active {
				color: var(--color-h1);
				background-color: var(--color-row-hover);
			}

.multi-select-popup {
	position: absolute;
	height: 25rem;
	top: calc(100% + 0.37rem);
	left: 0rem;
	right: 0rem;
	padding: 0.15rem 1rem 1rem 1rem;
	background-color: var(--color-white);
	display: flex;
	flex-direction: column;
	border-radius: 3px;
	border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
	z-index: 100;
}

.multi-select-popup-auto-apply {
	height: 20rem;
}

.multi-select-popup::after {
	content: '';
	display: block;
	position: absolute;
	top: -0.5rem;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--color-white);
	border-right: 1px solid RGBA(var(--rgb-color-dimmed-grey));
	border-bottom: 1px solid RGBA(var(--rgb-color-dimmed-grey));
	-moz-transform: rotate(-135deg) translateX(-50%);
	-webkit-transform: rotate(-135deg) translateX(-50%);
	left: 50%;
}

.multi-select-popup .multi-select-popup-body {
	height: 17rem;
	overflow: auto;
}

.grid-toolbar .grid-toolpanel {
	border-radius: 3px;
	border: 1px solid RGBA(var(--rgb-color-dimmed-grey));
	z-index: 100;
	top: calc(100% + 0.1rem);
}

	.grid-toolbar .grid-toolpanel::after {
		z-index: 100;
		content: '';
		display: block;
		position: absolute;
		top: -0.49rem;
		width: 0.49rem;
		height: 0.49rem;
		background: var(--color-white);
		border-right: 1px solid RGBA(var(--rgb-color-dimmed-grey));
		border-bottom: 1px solid RGBA(var(--rgb-color-dimmed-grey));
		-moz-transform: rotate(-135deg) translateX(-50%);
		-webkit-transform: rotate(-135deg) translateX(-50%);
		right: 1.5rem;
	}



.navigation-button, a.navigation-button, a.navigation-button:visited {
	/* color: var(--color-fg-dimmed); */
	/* color: var(--bs-gray-500); */
	color: var(--color-primary);
}

	.navigation-button:hover, a.navigation-button:hover, a.navigation-button:active {
		color: var(--color-hover-primary);
	}

.navigation-button {
	margin-left: -0.75rem;
}

	.navigation-button .bi {
		margin-right: 0.15rem;
	}


.page-box {
	background-color: var(--color-white-dimmed);
}

.band {
	/*background-color: var(--color-sidebar-fg-dimmed);*/
	background-color: var(--color-panel-bg-dimmed);
}


.card {
	background-color: var(--color-white-dimmed);
}

.card-no-border {
	border: none;
}

.card .section-label {
	margin-top: 0;
	margin-bottom: 1rem;
}

.form-buttons {
	margin-top: 0.5rem;
}

	.form-buttons .btn {
		min-width: 12rem;
	}


form label {
	padding: .15rem 0 .5rem 0;
	/*font-size: var(--font-size-smaller);*/
	font-weight: 400;
}

form input.form-control {
	font-weight: 500;
}

form .form-check {
	padding-left: 2rem;
}

	form .form-check input[type=checkbox] {
		font-size: 125%;
	}

	form .form-check label {
		padding-left: 0.25rem;
	}

.vertical-spacer-1 {
	min-height: 1rem;
}


.invalid {
	outline: 1px solid var(--color-red);
}

ul.validation-errors, ul.validation-errors li {
	color: var(--color-red);
	margin-left: 0;
	padding: 0;
	list-style-type: none;
}

.validation-message {
	margin-top: 0.25rem;
	color: var(--color-red);
}

.splash {
	width: 180px;
	height: 25px;
	-webkit-mask: linear-gradient(90deg,#000 70%,#0000 0) left/20% 100%;
	background: linear-gradient(var(--color-h1) 0 0) left -25% top 0 /20% 100% no-repeat var(--color-header-border);
	animation: splash 1s infinite steps(6);
}

.color-label {
	display: inline-block;
	margin-top: .15rem;
	width: 1rem;
	height: 1rem;
}

.color-label-small {
	display: inline-block;
	width: .4rem;
	height: .4rem;
}

.color-label-small-empty {
	display: inline-block;
	margin-bottom: .15rem;
	padding-right: .2rem;
}

	.color-label-small-empty:before {
		content: '• ';
	}


@keyframes splash {
	100% {
		background-position: right -25% top 0
	}
}

/* xGrid - dense rendering */
.table-grid {
	margin-top: 1rem;
}

	.table-grid thead tr th {
		vertical-align: text-top;
		padding: 0.2rem 0.15rem;
		/*background-color: unset;*/
		/*background-color: var(--color-card-bg);*/
		background-color: var(--color-panel-bg-dimmed);
		border-bottom: 3px solid var(--color-body-bg);
	}

	.table-grid tbody tr td {
		padding: 0.4rem 0.25rem;
	}

		.table-grid thead tr th:first-child, .table-grid tbody tr td:first-child {
			padding-left: 0.75rem;
		}

		.table-grid thead tr th:last-child, .table-grid tbody tr td:last-child {
			padding-right: 0.75rem;
		}

		.table-grid tbody tr td.limit-width-20 {
			max-width: 20rem;
			word-break: break-word;
		}

	.table-grid thead tr th.right {
		text-align: right;
		padding-right: .5rem;
	}

	.table-grid tbody tr td.right {
		text-align: right;
		padding-right: 1rem;
	}

	.table-grid thead tr th.center, .table-grid tbody tr td.center {
		text-align: center;
	}

	.table-grid tbody tr td.code {
		white-space: pre-line;
		font-family: monospace;
		font-size: 0.9rem;
		letter-spacing: -.8px;
	}

	.table-grid tbody tr:hover td {
		background-color: var(--color-row-hover);
	}

	.table-grid tbody tr td a {
		color: var(--color-h1);
		text-decoration: none;
	}

		.table-grid tbody tr td a:hover {
			/*			color: var(--color-red);
*/ color: var(--color-fg-dimmed);
			text-decoration: underline;
		}

	.table-grid tbody tr td.grid-row-number {
		vertical-align: unset;
		padding-top: 0.55rem;
		padding-right: 0.75rem;
		white-space: nowrap;
	}

	.table-grid thead tr th.grid-row-select {
		padding-right: 1rem;
	}

	.table-grid tbody tr td.grid-row-select {
		padding-top: 0.55rem;
		padding-right: 0.75rem;
		padding-left: .15rem;
	}

	.table-grid tbody tr td.grid-actions {
		white-space: nowrap;
	}

		.table-grid tbody tr td.grid-actions a:not(:first-of-type):before {
			content: '|';
			margin-left: .15rem;
			margin-right: .35rem;
			display: inline-block;
			color: var(--color-fg-dimmed);
		}

	.table-grid .table-grid-nested thead tr th {
		text-transform: none;
		color: unset;
	}

	.table-grid tr.tr-no-border td, .table-grid tr.tr-no-border {
		border-bottom: 1rem solid transparent;
	}

	.table-grid tbody tr.total-row, .table-grid tbody tr.total-row td {
		font-weight: bold;
		background-color: var(--color-bg);
	}


.scrollable-table {
	overflow-y: auto;
}

	.scrollable-table table {
		margin-top: 0;
	}

		/* Make the table header sticky */
		.scrollable-table table thead th {
			position: sticky;
			top: 0;
			background: var(--color-bg);
			z-index: 2;
		}

.row-danger td {
	color: var(--color-red);
}

.row-disabled td, .row-disabled td * {
	color: var(--color-fg-dimmed);
	font-style: italic;
}

.row-spacer td {
	background-color: var(--color-bg) !important;
}

.row-spacer-hollow td {
	background-color: transparent !important;
}

.section-spacer:not(:first-of-type) {
	padding-bottom: 1rem;
}

.section-spacer:not(:last-of-type) {
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--color-header-border);
}


.table-detail tbody tr td {
	padding-top: .75rem;
	padding-bottom: .5rem;
}

.table-detail-small {
	font-size: .8rem;
}


.pager .btn {
	font-size: 0.8rem;
	border-color: var(--color-override-primary);
	color: var(--color-override-primary);
	border-right: none;
}

	.pager .btn:last-child {
		border-right: 1px solid var(--color-override-primary);
	}

	.pager .btn.active {
		background-color: var(--color-override-primary);
		color: var(--color-white);
	}

	.pager .btn[disabled] {
		border-color: var(--color-override-primary);
		color: var(--color-fg-dimmed);
		background-color: var(--color-bg);
		opacity: 1;
	}

	.pager .btn:hover {
		color: var(--color-white) !important;
		background-color: var(--color-hover-primary-bg);
		border-color: var(--color-override-primary);
	}
/* end - xGrid - dense rendering */

.table-grid-dense thead tr th, .table-grid-dense tbody tr td {
	padding-top: 0.1rem;
	padding-bottom: 0.1rem;
}

	.table-grid-dense tbody tr td .label {
		padding-top: 0.5rem;
	}

.table-grid-super-dense thead tr th, .table-grid-super-dense tbody tr td {
	padding-top: 0.1rem;
	padding-bottom: 0.0rem;
}

.table-grid.table-grid-super-dense tr.tr-no-border {
	border: 0px;
}

	.table-grid.table-grid-super-dense tr.tr-no-border td {
		border: 0px;
	}

.table-grid-dense tbody tr td .label {
	padding-top: 0.5rem;
}

.table-grid-super-dense tbody tr td .label {
	padding-top: 0.1rem;
}
/*.table-xborderless thead tr th {
	border-bottom-color: rgb(222, 226, 230)!important;
}
*/
.table-xborderless thead tr th, .table-xborderless tbody tr td {
	border-bottom: none;
}


.no-outline:focus {
	outline: none;
	box-shadow: none;
}

.btn-toggle {
	background-color: var(--color-white);
}

.toggle-select {
	display: grid;
	/*grid-template-columns: repeat(auto-fill, minmax(15rem, max-content));*/ /*full width of the buttons looks better*/
	grid-gap: .1rem .5rem;
}

.toggle-select-inline {
}

	.toggle-select-inline .btn {
		border: none;
		color: unset;
		background: unset;
	}

.loading-wrapper {
	padding-left: unset;
}

.is-loading .text-danger {
	color: var(--color-panel-bg) !important;
}

.is-loading > span {
	padding-left: 0.5rem;
}

.import-file-preview {
	margin-top: .5rem;
	overflow: hidden;
	position: relative;
	height: fit-content;
}

	.import-file-preview:after {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 10%;
		background-image: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(245,245,245,1) 100%);
	}

.page-filters {
	/*border: 1px solid red;*/
}

.chip {
	display: inline-block;
	padding: 0.25rem 0.5rem .15rem .5rem;
	background-color: var(--color-fg-secondary);
	color: var(--color-white-dimmed);
	margin: .15rem;
	border-radius: 3px;
	font-size: var(--font-size-smaller);
}
/* modal */

.modal-body {
	padding: 1.5rem;
}

.modal {
	background-color: var(--modal-fade-bg);
}

.modal-max {
	max-width: 95%;
}

.modal-header {
	align-items: center;
	border-bottom: none;
	background-color: var(--color-header-bg);
	color: var(--color-h1);
	border-top-left-radius: var(--panel-radius);
	border-top-right-radius: var(--panel-radius);
	border-bottom: 1px solid var(--color-header-border);
}

	.modal-header .icon-button:hover {
		color: var(--color-hover-primary);
	}

	.modal-header h2 {
		margin: 0;
		font-weight: normal;
	}

	.modal-header .modal-title {
		margin-right: auto;
	}

	.modal-header button.resize, .modal-header button.close {
		margin: -1rem 0rem -1rem 0rem;
	}

.modal.show {
	display: block;
	background-color: var(--modal-fade-bg);
}

	.modal.show .modal-dialog {
		pointer-events: auto;
	}

		.modal.show .modal-dialog .modal-content {
			box-shadow: var(--modal-shadow);
			/*background-color: var(--color-panel-bg);*/
			background-color: var(--color-header-bg);
		}

.modal .modal-body {
	background-color: var(--color-bg);
	border-bottom-left-radius: var(--panel-radius);
	border-bottom-right-radius: var(--panel-radius);
}
/* Delayed visibility classes to prevent flickering on initial load */
.delayed-visibility {
	opacity: 0;
	animation: fadeInDelayed 0.3s ease-in forwards;
	animation-delay: 800ms;
}

@keyframes fadeInDelayed {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal .modal-footer {
	justify-content: flex-start;
}

	.modal .modal-footer .btn-toolbar {
		flex: 1 1 auto;
		margin-top: 0;
	}


.modal .inner-scroll > .modal-content > .modal-body,
.modal .inner-scroll > .modal-content > .modal-body form {
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	height: 100%;
}

	.modal .inner-scroll > .modal-content > .modal-body form.nested-form {
		overflow-x: hidden; /*revisit*/
	}

.modal .inner-scroll .modal-body-scroll {
	flex: 1 1 auto;
	padding: 1.5rem;
	overflow-y: auto;
}

	.modal .inner-scroll .modal-body-scroll.inner-scroll {
		display: flex;
		flex-direction: column;
		/*height: 100%;*/
	}

.modal .inner-scroll > .modal-footer .btn-toolbar {
	padding-top: 0 !important;
}
/* end - modal */

.min-width {
	width: 1%;
}

.min-width-5 {
	min-width: 5rem;
}

.min-width-8 {
	min-width: 8rem;
}

.min-width-10 {
	min-width: 10rem;
}

.min-width-15 {
	min-width: 15rem;
}

.min-width-20 {
	min-width: 20rem;
}

.min-width-40 {
	min-width: 40rem;
}

.max-width-50 {
	max-width: 50rem;
}

.max-width-60 {
	max-width: 60rem;
}

.max-width-100 {
	max-width: 100rem;
}


.w-5 {
	width: 5rem;
}

.w-6 {
	width: 6rem;
}

.w-10 {
	width: 10rem;
}

.w-15 {
	width: 15rem;
}

.w-20 {
	width: 20rem;
}

.w-40 {
	width: 40rem;
}

.pipe-divider > *:not(:last-child)::after {
	content: " |";
	padding-left: 0rem;
	padding-right: 0rem;
	color: var(--color-fg-dimmed);
}



.pre-wrap-text {
	white-space: pre-wrap;
}



.list-small-indent {
	margin-left: -.75rem;
}

.input-print-color {
	width: 10rem;
	white-space: nowrap;
}

	.input-print-color input {
		width: 4rem;
	}


.input-time-span {
	width: 7rem;
	padding-right: 1rem;
	white-space: nowrap;
}

	.input-time-span input {
		border: none;
		width: 1.25rem;
		text-align: center;
		padding: 0;
		position: relative;
	}

	.input-time-span .input-time-span-input {
		position: relative;
	}

		.input-time-span .input-time-span-input .input-time-span-label {
			display: none;
		}

	.input-time-span:focus-within .input-time-span-input .input-time-span-label {
		display: inline-block;
		background-color: rgb(243, 243, 243);
		border-radius: 2px;
		box-shadow: var(--popup-shadow);
	}

	.input-time-span .input-time-span-input .input-time-span-label {
		position: absolute;
		text-transform: uppercase;
		font-size: .6rem;
		text-align: center;
		width: 100%;
		top: 125%;
		left: 0;
	}
	/* remove border on focus */
	.input-time-span input:focus {
		outline: none;
	}


.tabs-small {
	text-align: center;
}

.tab-text-small {
	font-size: .6rem;
	text-transform: uppercase;
	color: var(--color-fg-dimmed);
}

.dimmed-text {
	color: var(--color-fg-dimmed);
}


.text-truncate-2-lines {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}


.photo-container {
	max-height: 200px;
	max-width: 200px;
}

	.photo-container > img {
		max-height: 200px;
		max-width: 200px;
	}

.photo-container-big {
	max-height: 800px;
	max-width: 800px;
}

	.photo-container-big > img {
		max-height: 800px;
		max-width: 800px;
	}

.card.hover-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

	.card.hover-card:hover {
		transform: scale(1.03);
		box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
		z-index: 2;
		border: 1px solid #007bff;
		background-color: #f8f9fa;
	}


@media (max-width: 768px) {
	.table-super-responsive tbody tr td {
		padding: 0.2rem 0.5rem 0.5rem 0.5rem;
		border-bottom: 1px solid var(--color-header-border);
	}

		.table-super-responsive tbody tr td:last-child {
			border-bottom-width: 3px;
		}

		.table-super-responsive tbody tr td .text-end, .table-super-responsive tbody tr td .text-center {
			text-align: left !important;
		}

		.table-super-responsive tbody tr td.main-cell {
			padding-left: 0.5rem;
		}

		.table-super-responsive tbody tr td label {
			margin: 0;
			margin-top: .2rem;
		}

		.table-super-responsive tbody tr td.grid-row-number {
			display: block;
			width: 100%;
			padding: 1rem 1rem 0.5rem 0.5rem;
			/*text-align: right;*/
			margin-top: 1rem;
		}

			.table-super-responsive tbody tr td.grid-row-number:before {
				content: '#';
				display: inline-block;
			}
}

@media (max-width: 991.98px) {
	.modal-dialog {
		margin: 0;
		max-width: unset;
		margin-top: 0.25rem;
	}
}
/* Notifications */

.notifications-container {
	position: relative;
	margin-right: 1rem;
}

.notification-icon {
	font-size: 1.25rem;
	color: #333;
}

.notification-badge {
	position: absolute;
	top: -.5rem;
	right: -1rem;
	background-color: #dc3545;
	color: white;
	border-radius: 50%;
	padding: .15rem;
	font-size: 0.65rem;
	font-weight: bold;
}

.notifications-popup {
	position: absolute;
	top: 40px;
	right: 0;
	width: 400px;
	max-height: 600px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	display: flex;
	flex-direction: column;
}

.notifications-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border-bottom: 1px solid #ddd;
}

	.notifications-header h5 {
		margin: 0;
		font-size: 1.1rem;
	}

.notifications-tabs {
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #ddd;
}

.notifications-body {
	flex: 1;
	overflow-y: auto;
	max-height: 450px;
}

.notification-item {
	padding: 1rem;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

	.notification-item:hover {
		background-color: #f8f9fa;
	}

	.notification-item.done {
		opacity: 0.6;
	}

.notification-subject {
	font-weight: 500;
	margin-bottom: 0.25rem;
	cursor: pointer;
	text-decoration: underline;
}

	.notification-subject:hover {
		color: var(--color-primary);
	}

.notification-subject-no-action {
	font-weight: 500;
	margin-bottom: 0;
}

.notification-date {
	font-size: 0.875rem;
	color: #6c757d;
	margin-bottom: 0;
}
/* End - Notifications */
/* Parking Zones */

.stat-card {
	background-color: var(--color-white);
	padding: 1.25rem;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	border: 1px solid var(--color-header-border);
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 1rem;
}

	.stat-card:hover {
		box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	}

.stat-card-clickable {
	cursor: pointer;
	user-select: none;
}

	.stat-card-clickable:hover {
		box-shadow: 0 3px 8px rgba(0,0,0,0.2);
		transform: translateY(-1px);
		border-color: var(--color-override-primary);
	}

	.stat-card-clickable:active {
		transform: translateY(0);
		box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	}

.stat-icon {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--color-override-primary);
	flex-shrink: 0;
}

	.stat-icon i {
		margin: 0;
	}

.stat-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.stat-value {
	font-size: 2rem;
	font-weight: 600;
	color: var(--color-h1);
	margin-bottom: 0.25rem;
	line-height: 1;
}

.stat-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--color-fg-dimmed);
	letter-spacing: 0.05em;
	margin-bottom: 0;
	line-height: 1.3;
}
/* Responsive: switch to vertical layout on smaller screens */
@media (max-width: 1399.98px) {
	.stat-card {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}

	.stat-icon {
		width: 48px;
		height: 40px;
		font-size: 1.75rem;
		margin-bottom: 0;
	}

	.stat-content {
		align-items: center;
	}

	.stat-value {
		font-size: 1.75rem;
		margin-bottom: 0;
	}

	.stat-label {
		font-size: 0.7rem;
		letter-spacing: 0.03em;
	}
}

.stat-delta {
	font-size: 0.75rem;
	color: var(--color-fg-dimmed);
}

	.stat-delta.up {
		color: #28a745;
	}

	.stat-delta.down {
		color: #dc3545;
	}

.zone-color-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 6px;
	border: 1px solid rgba(0,0,0,0.2);
}

.zone-list-item {
	padding: 0.75rem;
	border-bottom: 1px solid var(--color-header-border);
	cursor: pointer;
	transition: background-color 0.15s;
}

.zone-list-item-compact {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--color-header-border);
	cursor: pointer;
	transition: background-color 0.15s;
}

	.zone-list-item:hover, .zone-list-item-compact:hover {
		background-color: var(--color-row-hover);
	}

	.zone-list-item.selected, .zone-list-item-compact.selected {
		background-color: #e7f3ff;
		border-left: 3px solid var(--color-override-primary);
		padding-left: calc(0.75rem - 3px);
	}

	.zone-list-item-compact.selected {
		padding-left: calc(0.5rem - 3px);
	}

.zone-list-name {
	font-weight: 500;
	color: var(--color-h1);
	margin-bottom: 0.25rem;
}

.zone-list-details {
	font-size: 0.8rem;
	color: var(--color-fg-dimmed);
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

	.zone-list-details span {
		display: inline-flex;
		align-items: center;
		gap: 0.2rem;
	}

.zone-list-badge {
	display: inline-block;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	font-size: 0.7rem;
	background-color: var(--color-bg);
	color: var(--color-fg-secondary);
}

.zone-list-inactive {
	opacity: 0.6;
}

.map-legend {
	padding: 0.5rem 0.75rem;
	background-color: var(--color-white);
	border-radius: 4px;
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

	.map-legend strong {
		white-space: nowrap;
	}

.map-legend-inline {
	color: var(--color-fg-dimmed);
}

.map-legend ul {
	margin: 0;
	padding-left: 1.25rem;
}

	.map-legend ul li {
		margin-bottom: 0.25rem;
	}
/* End - Parking Zones */
/* Datalist styling */
datalist {
	display: none;
}

input[list]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	filter: invert(0.5);
}

input[list]::-webkit-list-button {
	color: var(--color-override-primary);
}
/* End - Datalist styling */


.leaflet-container a {
	text-decoration: none;
}


.topmost-alert {
	z-index: 999999999;
}



table.shake-animation-1 thead tr th {
	border-color: var(--color-body-bg);
	animation: 0.4s shake-keyframes-1;
}

table.shake-animation-2 thead tr th {
	border-color: var(--color-body-bg);
	animation: 0.4s shake-keyframes-2;
}

@keyframes shake-keyframes-1 {
	0% {
		border-color: var(--color-panel-bg);
		border-color: var(--color-accent);
	}

	100% {
		border-color: currentColor;
		border-color: var(--color-body-bg);
	}
}

@keyframes shake-keyframes-2 {
	0% {
		border-color: var(--color-panel-bg);
		border-color: var(--color-accent);
	}

	100% {
		border-color: currentColor;
		border-color: var(--color-body-bg)
	}
}
