.lookup-field-container {
	position: relative;
}
.lookup-field-container .lookup-field-input-wrapper {
	flex-grow: 1;
	position: relative;
	display: flex;
	align-items: center;
	transition: all 0.2s ease;
}
.lookup-field-container .lookup-field-input-wrapper.has-value {
	cursor: pointer;
}
.lookup-field-container .lookup-field-input-wrapper.has-value input {
	cursor: pointer;
	padding-right: 30px; /* Make room for the clear icon */
}
.lookup-field-container .lookup-field-input-wrapper .lookup-field-clear-icon {
	position: absolute;
	right: 10px;
	color: #777;
	cursor: pointer;
	pointer-events: none; /* The wrapper will handle the click */
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	transition:
		color 0.2s ease,
		transform 0.2s ease;
}

.lookup-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	min-height: 100px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	background-color: white;
	border: 1px solid #ccc;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.lookup-suggestion-item {
	padding: 8px 15px;
	cursor: pointer;
}
.lookup-suggestion-item:not(:last-child) {
	border-bottom: 1px solid #eee;
}
.lookup-suggestion-item.focused {
	background-color: #f5f5f5;
}

.lookup-no-results {
	text-align: center;
	padding: 8px;
}

.lookup-additional-fields {
	font-size: 0.9em;
	color: #666;
	margin-top: 2px;
}

.lookup-additional-field {
	margin-top: 2px;
}

.lookup-service-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.5rem;
	border-bottom: 1px solid #ddd;
	background-color: #f5f5f5;
}

.lookup-service-selector button {
	flex: 0 0 auto;
	min-width: 80px;
}

.lookup-suggestions {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	background-color: #fff;
	z-index: 1050;
	position: absolute;
	width: 100%;
	top: 100%;
}

.lookup-item-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.lookup-item-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lookup-entity-badge {
	background-color: #f2f2f2;
	color: #333;
	font-size: 0.75rem;
	font-weight: normal;
	padding: 2px 8px;
	margin-left: 8px;
	border-radius: 10px;
}

/* Adjust the overall suggestion item styles */
.lookup-suggestion-item {
	padding: 8px 12px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.lookup-suggestion-item:hover,
.lookup-suggestion-item.focused {
	background-color: #f8f8f8;
}

.lookup-suggestion-item.focused .lookup-entity-badge {
	background-color: #e6e6e6;
}

.dataverse-card-view-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.card-view-sort {
	min-width: 200px;
}

.dataverse-card-view .no-data {
	color: var(--text-color-muted);
}

#toast-root {
	position: fixed;
	inset: 0;
	z-index: 100001;
	pointer-events: none;
}

.toast-container {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 400px;
	min-width: 300px;
	pointer-events: auto;
}

.toast-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	margin-bottom: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	animation: toast-slide-in 0.3s ease-out;
}
.toast-item .toast-content {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}
.toast-item .toast-body {
	display: flex;
	flex-direction: column;
}
.toast-item .toast-title {
	display: block;
	margin-bottom: 0.25rem;
}
.toast-item .close {
	margin-left: 0.5rem;
	flex-shrink: 0;
}

@keyframes toast-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}
.quick-view {
	margin-top: 15px;
}
.quick-view .quick-view-field {
	margin-bottom: 15px;
}
.quick-view .quick-view-field .quick-view-field-label {
	font-size: 14px;
	font-weight: 400;
	color: var(--text-color-accent);
	margin-bottom: 2px;
}
.quick-view .quick-view-field .quick-view-field-value {
	font-weight: 600;
}

.sidepane-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}
.sidepane-backdrop.show {
	opacity: 1;
	visibility: visible;
}

.sidepane {
	position: fixed;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	background-color: var(--bs-body-bg, #fff);
	transition:
		transform 0.3s ease,
		visibility 0.3s ease;
	overflow: hidden;
	visibility: hidden;
}
.sidepane.sidepane-end {
	right: 0;
	border-left: 1px solid var(--bs-border-color, #dee2e6);
	box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
	transform: translateX(100%);
}
.sidepane.sidepane-end.show {
	transform: translateX(0);
	visibility: visible;
}
.sidepane.sidepane-start {
	left: 0;
	border-right: 1px solid var(--bs-border-color, #dee2e6);
	box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
	transform: translateX(-100%);
}
.sidepane.sidepane-start.show {
	transform: translateX(0);
	visibility: visible;
}
.sidepane.sidepane-sm {
	width: 360px;
}
.sidepane.sidepane-md {
	width: 480px;
}
.sidepane.sidepane-lg {
	width: 640px;
}
.sidepane.sidepane-xl {
	width: 800px;
}
@media (max-width: 576px) {
	.sidepane.sidepane-sm,
	.sidepane.sidepane-md,
	.sidepane.sidepane-lg,
	.sidepane.sidepane-xl {
		width: 100%;
	}
}

.sidepane-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--bs-border-color, #dee2e6);
	flex-shrink: 0;
}
.sidepane-header h5 {
	margin: 0;
}

.sidepane-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
	position: relative;
}

.sidepane-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
	flex-shrink: 0;
}

.align-items-center {
	align-items: center !important;
}

.justify-content-between {
	justify-content: space-between !important;
}

.d-flex {
	display: flex !important;
}

.border-bottom {
	border-bottom: 1px solid rgba(128, 128, 128, 0.479) !important;
}

.navbar-secondary .dropdown-menu#my-account-menu {
	padding-top: 0;
	padding-bottom: 0;
}
.navbar-secondary .dropdown-menu#my-account-menu #profile-menu {
	padding: 10px 20px;
	margin-bottom: 10px;
	background-color: var(--bg-accent);
	border-top-left-radius: var(--border-radius-lg);
}
.navbar-secondary .dropdown-menu#my-account-menu #profile-menu .name {
	font-weight: var(--font-weight-primary-semibold);
}
.navbar-secondary .dropdown-menu#my-account-menu #profile-menu .email {
	color: var(--gray-650);
}
.navbar-secondary .dropdown-menu#my-account-menu #profile-menu .email {
	font-size: var(--text-body-sm-size);
	line-height: var(--text-body-sm-line-height-multiplier);
	letter-spacing: var(--text-body-sm-letter-spacing);
	word-spacing: var(--text-body-sm-word-spacing);
}
.navbar-secondary .dropdown-menu#my-account-menu #signout-menu {
	padding: 15px 20px;
	margin-top: 10px;
	border-top: 1px solid var(--gray-300);
}
.navbar-secondary .dropdown-menu#my-account-menu #signout-menu .btn-default {
	border: 1px solid var(--border-color-on-primary-transparent-default) !important;
	text-align: center;
	display: flex;
	align-items: center;
	gap: 5px;
}
.navbar-secondary .dropdown-menu#my-account-menu #signout-menu .icon {
	font-size: 20px;
}
