:root {
	--grey-color: rgb(128, 128, 128);
	--grey-color-20: rgb(128, 128, 128, .2);
	--grey-color-50: rgb(128, 128, 128, .5);
	--red-color: rgb(194, 64, 32);
	--white: rgb(255, 255, 255);
	--bs-body-color: rgb(128, 128, 128);
	--black: rgb(0, 0, 0);
}


body,
table,
th,
td,
input,
select,
body {
	color: var(--grey-color) !important;
}

.form-floating label {
	color: var(--grey-color-50) !important;
}

header {
	height: 75px;
	border-bottom: thin solid var(--grey-color-20);
	padding-top: 10px;
	padding-bottom: 10px;
	background-color: var(--white);
}

#main-content-wrapper {
	margin-top: 75px;
	padding-top: 1rem;
	margin-left: 0px;
	margin-right: 0px;
}


#alert-wrapper {
	position: absolute;
	top: 0px;
	padding-top: 30px;
	z-index: 100;
	pointer-events: none;
}

#alert-wrapper .alert {
	pointer-events: all;
}

a {
	color: var(--grey-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}


a.btn:hover {
	text-decoration: none !important;
}

.clickable {
	cursor: pointer;
}

.pagination {
	color: var(--grey-color);
}

.pagination a,
.pagination a:hover {
	color: var(--grey-color);
	text-decoration: none;
}

.active>.page-link {
	color: var(--white);
	background-color: var(--red-color);
	border-color: var(--red-color);
}

.page-link:hover {
	background-color: var(--grey-color);
	border-color: var(--grey-color);
	color: var(--white) !important;
}

.min {
	white-space: nowrap;
	width: 1%;
}


.has-error {
	border-color: var(--bs-red);
}

.error-helper-message {
	color: var(--bs-red);
}

a.icon {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s;
	padding: 6px;
}

a.icon:hover {
	background: var(--red-color);
	text-decoration: none;
	color: var(--white);
	font-weight: normal !important;
}

.toast-container {
	min-width: 300px;
	max-width: 500px;
	pointer-events: none;
}

.toast-container .toast {
	pointer-events: auto;
	min-width: 300px;
}

.toast.show {
	opacity: 1 !important;
	display: block !important;
}

.toast.showing {
	opacity: 1 !important;
}

.toast-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pre-scrollable {
	max-height: 340px;
	overflow-y: scroll;
}

/* Full-page thinking overlay (search, export, etc.); message set via JS */
.thinking-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
}
.thinking-overlay.show {
	display: flex !important;
}
.thinking-overlay .thinking-overlay-content {
	background: var(--white);
	color: var(--grey-color);
	padding: 1.5rem 2rem;
	border-radius: 0.5rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}
.thinking-overlay .spinner-border {
	color: var(--grey-color);
}

/* Sticky pagination bar at bottom of viewport. z-index below Bootstrap dropdown (1000)
   so dropdowns in the table (e.g. Actions, Per page) are not covered. */
.pagination-controls-sticky {
	position: sticky;
	bottom: 0;
	z-index: 10;
	background: var(--white);
	padding: 0.5rem 0;
	margin: 0 -0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}