/* PROLIMS logout / back-to-login modal - same style as recipe-cancel-modal (new protein) */
/* Hidden by default so it does not appear on BCR, A-Plasmids, or other pages until user clicks Logout */
#prolimsLogoutModal.recipe-cancel-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	visibility: hidden;
}

#prolimsLogoutModal.recipe-cancel-modal-overlay.show {
	display: flex;
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

.recipe-cancel-modal {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
	position: relative;
	width: 100%;
	max-width: 400px;
	padding: 32px 34px;
	transform: translateY(-10px);
	transition: transform 0.3s ease;
}

.recipe-cancel-modal-overlay.show .recipe-cancel-modal {
	transform: translateY(0);
}

.recipe-cancel-modal-title {
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 28px;
	color: #1f2937;
	text-align: center;
	margin: 0 0 34px 0;
	padding: 0;
}

.recipe-cancel-modal-message {
	font-family: 'Roboto', sans-serif;
	font-weight: normal;
	font-size: 14px;
	line-height: 20px;
	color: #1f2937;
	text-align: center;
	margin: 0 0 30px 0;
	padding: 0;
}

.recipe-cancel-modal-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.recipe-cancel-modal-btn {
	cursor: pointer;
	border-radius: 19px;
	padding: 8px 24px;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
	border: none;
	text-decoration: none;
	width: 143px;
	box-sizing: border-box;
}

.recipe-cancel-modal-btn-discard {
	background: white;
	border: 1px solid #ddd;
	color: #428bca;
}

.recipe-cancel-modal-btn-discard:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

.recipe-cancel-modal-btn-save {
	background: #22c55e;
	color: white;
	border: 1px solid #22c55e;
}

.recipe-cancel-modal-btn-save:hover {
	background: #16a34a;
	border-color: #16a34a;
}

/* Hide login form until session check completes (dialog first) */
body.login-pending-session-check #login_wrapper,
body.login-pending-session-check .login-content-wrapper {
	visibility: hidden;
}

body.login-pending-session-check .toolbar_main_login {
	visibility: hidden;
}

/* Loading state so the page is never fully blank during session check (z-index below modal) */
body.login-pending-session-check::before {
	content: "Loading…";
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	color: #1f2937;
}
