/* Hide content initially if on detail route to prevent flash */
#main-wrapper {
	opacity: 0;
}
#main-wrapper.loaded {
	opacity: 1;
}
/* Disable smooth scrolling for instant navigation */
html, body {
	scroll-behavior: auto !important;
}
@media all and (max-width: 991px) {
	.spacyrow{
		margin-top: 15px;
		margin-bottom: 15px;
	}
}
.page-header {
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.card {
	margin-bottom: 1rem;
}
.row + .row {
	margin-top: 1rem;
}
.row .row + .row {
	margin-top: 0.5rem;
}
span.label{
	font-size: 100%;
	color: #000;
}
.is-anonymous .edit-control,
.is-not-admin .admin-control,
.is-not-admin .published-doi .btn-update-doi,
.is-logged-in.is-not-admin .published-doi .nav-edit,
.is-admin .btn-submit {
	display: none;
}
.is-not-admin .published-doi .card input,
.is-not-admin .published-doi .card button,
.is-not-admin .published-doi .card select,
.is-anonymous .draft-doi .card input,
.is-anonymous .draft-doi .card button,
.is-anonymous .draft-doi .card select{
	pointer-events: none;
}
.is-not-admin .published-doi .card-body input{
	background-color: lightgrey;
}

#detail-title {
	overflow-y: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.btn-documentation[target="_blank"]:after {
	content: "";
	margin: 0;
}

.unified-toolbar .state-dropdown-menu {
	display: none;
	position: absolute;
	min-width: 10rem;
	padding: 0.5rem 0;
	margin: 0.125rem 0 0;
	background-color: #fff;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 0.25rem;
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
	list-style: none;
	z-index: 1000;
}
.unified-toolbar .state-dropdown-menu.show {
	display: block;
}
.unified-toolbar .state-dropdown-menu .dropdown-item {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	clear: both;
	font-weight: 400;
	color: #212529;
	text-align: inherit;
	white-space: normal;
	background-color: transparent;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}
.unified-toolbar .state-dropdown-menu .dropdown-item:hover:not(.disabled) {
	background-color: #f8f9fa;
}
.unified-toolbar .state-dropdown-menu .dropdown-item.disabled {
	color: #6c757d;
	cursor: not-allowed;
	opacity: 0.6;
}
.unified-toolbar .state-dropdown-menu .dropdown-item-text {
	display: block;
}
.toc-panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	width: 300px;
	max-height: calc(100vh - 200px);
	background-color: #fff;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 0.25rem;
	box-shadow: 0 4px 8px rgba(0,0,0,.1);
	z-index: 900;
	display: none;
	flex-direction: column;
}
.toc-panel.show {
	display: flex;
}
.toc-panel .toc-header {
	padding: 1rem;
	border-bottom: 1px solid rgba(0,0,0,.1);
}
.toc-panel .toc-body {
	padding: 1rem;
	overflow-y: auto;
	flex: 1;
}
.toc-panel .toc-link {
	display: block;
	padding: 0.4rem 0.5rem;
	color: #212529;
	text-decoration: none;
	border-radius: 0.25rem;
	transition: background-color 0.15s ease;
}
.toc-panel .toc-link:hover {
	background-color: #f8f9fa;
}
.toc-panel .toc-section-link {
	font-weight: 600;
}
.toc-section {
	scroll-margin-top: 130px;
	margin-top: 1rem;
}
@media (max-width: 768px) {
	.unified-toolbar .toc-panel {
		width: 250px;
	}
}
.unified-toolbar .toc-button-container {
	position: absolute;
	right: 0;
	z-index: 950;
}
.unified-toolbar .toc-toggle-button {
	position: relative;
	background-color: white !important;
}

.doi-editor-with-sidebar {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.doi-editor-with-sidebar .editor-content {
	flex: 1;
	min-width: 0;
}

.doi-editor-with-sidebar .toc-sidebar-editor {
	position: sticky;
	top: 150px;
	width: 250px;
	flex-shrink: 0;
	background-color: #fff;
	padding: 1rem;
	max-height: calc(100vh - 160px);
	overflow-y: auto;
}

.doi-editor-with-sidebar .toc-sidebar-editor .toc-header {
	font-weight: 600;
	margin-bottom: 1rem;
	padding: 0.4rem 0.5rem;
}

.doi-editor-with-sidebar .toc-sidebar-editor .toc-body {
}

.doi-editor-with-sidebar .toc-sidebar-editor .toc-link {
	display: block;
	padding: 0.4rem 0.5rem;
	color: #212529;
	text-decoration: none;
	border-radius: 0.25rem;
	transition: background-color 0.15s ease;
}

.doi-editor-with-sidebar .toc-sidebar-editor .toc-link:hover {
	background-color: #f8f9fa;
}

.doi-editor-with-sidebar .toc-sidebar-editor .toc-section-link {
	font-weight: 600;
}

@media (min-width: 992px) {
	.unified-toolbar .toc-button-container {
		display: none;
	}
}

@media (max-width: 991px) {
	.doi-editor-with-sidebar {
		flex-direction: column;
	}

	.doi-editor-with-sidebar .toc-sidebar-editor {
		display: none;
	}
}

.state-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
}
.state-dot-draft {
	background-color: #ffc107;
}
.state-dot-registered {
	background-color: #0d6efd;
}
.state-dot-findable {
	background-color: #198754;
}
