body.app-shell {
	--shell-menu-width: min(96vw, 1365px);
	--shell-content-width: min(96vw, 1365px);
	--shell-brand-width: 185px;
	--shell-right-width: 174px;
	background: #d7d7d7;
	color: #1f1f1f;
}

body.app-shell #header {
	height: 112px;
	background: linear-gradient(90deg, #4d65f0 0%, #5873f5 40%, #4d65f0 100%);
	border-bottom: 2px solid #2f2f2f;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
	overflow: visible;
	position: relative;
}

body.app-shell.schema-bnlp #header {
	background: linear-gradient(90deg, #4d65f0 0%, #5873f5 40%, #4d65f0 100%) !important;
}

body.app-shell.schema-bdrsmg #header {
	background: linear-gradient(90deg, #4d65f0 0%, #5873f5 40%, #4d65f0 100%) !important;
}

body.app-shell #logo_biblivre {
	position: absolute;
	top: 4px;
	left: 50%;
	width: var(--shell-brand-width);
	height: 76px;
	margin: 0;
	transform: translateX(calc((var(--shell-menu-width) / -2) + 8px));
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

body.app-shell #logo_biblivre img {
	width: 150px;
	height: auto;
	filter: none;
}

body.app-shell #title {
	width: var(--shell-menu-width);
	margin: 0 auto;
	padding-top: 8px;
	padding-left: calc(var(--shell-brand-width) + 18px);
	padding-right: calc(var(--shell-right-width) + 26px);
	box-sizing: border-box;
	filter: none;
	color: #f6f1cf;
}

body.app-shell #title h1 {
	margin-left: 0;
	font-size: 23px;
	line-height: 1.08;
	font-weight: normal;
}

body.app-shell #title h1 a,
body.app-shell #title h1 a:hover {
	color: #f6f1cf;
	text-decoration: none;
}

body.app-shell #title h2 {
	margin-top: 4px;
	margin-left: 0;
	font-size: 14px;
	line-height: 1.08;
	font-weight: normal;
}

body.app-shell #logo_biblivre_small {
	display: none !important;
}

body.app-shell #language_selection {
	top: 12px;
	left: 50%;
	width: var(--shell-menu-width);
	margin-left: 0;
	transform: translateX(-50%);
	text-align: right;
	z-index: 110;
}

body.app-shell #language_selection .combo_wrap .combo_text {
	color: #f6f1cf;
	filter: none;
}

body.app-shell #language_selection .combo_wrap .combo_arrow {
	filter: invert(100%) brightness(150%);
}

body.app-shell #logo_support {
	position: absolute;
	top: 20px;
	right: calc(50% - (var(--shell-menu-width) / 2) + 62px);
	margin: 0;
	width: 60px;
	height: 56px;
	filter: none;
}

body.app-shell #logo_support div {
	top: 0;
	right: 0;
}

body.app-shell #logo_support div img {
	width: 60px;
	height: 54px;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
}

body.app-shell #logo_support div:not(:last-child) {
	display: none;
}

body.app-shell #logo_sponsor {
	position: absolute;
	top: 20px;
	right: calc(50% - (var(--shell-menu-width) / 2) + 2px);
	margin: 0;
	width: 60px;
	height: 56px;
	padding-right: 0;
	filter: none;
}

body.app-shell #logo_sponsor > a {
	display: block;
	width: 60px;
	height: 28px;
	background: #fff;
	border-radius: 4px 4px 0 0;
	overflow: hidden;
}

body.app-shell #logo_sponsor > a img {
	width: 60px;
	height: 28px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	background: transparent;
	border-radius: 0;
}

body.app-shell #clock {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 28px;
	line-height: 28px;
	font-size: 11px;
	color: #333;
	background: #ffea00;
	border-radius: 0 0 4px 4px;
}

body.app-shell #menu {
	left: 50%;
	bottom: -2px;
	width: var(--shell-menu-width);
	height: 26px;
	line-height: 22px;
	margin-left: 0;
	transform: translateX(-50%);
	background: #1f1f1f;
	border-radius: 0;
}

body.app-shell #menu > ul > li {
	padding: 0 12px;
	font-size: 13px;
	line-height: 24px;
}

body.app-shell #menu .submenu {
	margin-top: 1px;
}

body.app-shell #menu input {
	width: 104px;
	height: 18px;
	border: 1px solid #8e8e8e;
	padding: 0 6px;
	margin: 3px 0 3px 5px;
	box-sizing: border-box;
}

body.app-shell #menu button {
	height: 18px;
	line-height: 18px;
}

body.app-shell #slider_area,
body.app-shell #slider {
	display: none !important;
}

body.app-shell #notifications {
	background: transparent;
	border-bottom: 0;
	padding: 0;
}

body.app-shell #messages {
	width: var(--shell-menu-width);
	margin: 0 auto;
}

body.app-shell #breadcrumb {
	position: relative;
	width: var(--shell-menu-width);
	margin: 0 auto;
	padding: 9px 12px;
	font-size: 13px;
	line-height: 1;
	font-weight: bold;
	color: #555;
	background: #ededed;
	border-bottom: 1px solid #b9b9b9;
	box-sizing: border-box;
}

body.app-shell #page_help_icon {
	position: absolute;
	right: 12px;
	top: 6px;
}

body.app-shell #page_help_icon a {
	color: #555;
}

body.app-shell #content_outer {
	overflow-y: auto;
}

body.app-shell #content {
	width: var(--shell-content-width);
	margin: 12px auto 0;
}

body.app-shell #content_inner {
	background: #fff;
	border: 1px solid #d9d9d9;
	padding: 18px 20px 20px;
	box-sizing: border-box;
	min-height: 320px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.app-shell #copyright {
	width: var(--shell-content-width);
	margin: 0 auto 18px;
	padding: 8px 10px 0;
	box-sizing: border-box;
}

body.app-shell .app-home-dashboard {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

body.app-shell .app-home-welcome {
	background: #f4f1e9;
	border: 1px solid #dbdbdb;
	padding: 20px 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #2a2a2a;
}

body.app-shell .app-home-shortcuts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body.app-shell .app-home-shortcut {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 42px;
	padding: 0 18px;
	background: #f4f1e9;
	border: 1px solid #dbdbdb;
	color: #4457b8;
	font-weight: bold;
	text-decoration: none;
}

body.app-shell .app-home-shortcut:hover {
	background: #ece7db;
	text-decoration: none;
}

@media (max-width: 1180px) {
	body.app-shell #logo_biblivre {
		left: 12px;
		transform: none;
	}

	body.app-shell #title {
		width: 96vw;
		padding-left: 166px;
		padding-right: 160px;
	}

	body.app-shell #language_selection,
	body.app-shell #menu,
	body.app-shell #breadcrumb,
	body.app-shell #messages,
	body.app-shell #content,
	body.app-shell #copyright {
		width: 96vw;
	}

	body.app-shell #logo_support {
		right: 18px;
	}

	body.app-shell #logo_sponsor {
		right: 86px;
	}
}

@media (max-width: 860px) {
	body.app-shell #header {
		height: auto;
		padding-bottom: 30px;
	}

	body.app-shell #logo_biblivre,
	body.app-shell #logo_support,
	body.app-shell #logo_sponsor {
		position: static;
		transform: none;
	}

	body.app-shell #title {
		width: 96vw;
		padding: 82px 10px 0;
	}

	body.app-shell #language_selection {
		position: static;
		transform: none;
		width: 96vw;
		margin: 0 auto;
		padding: 0 10px 8px;
		box-sizing: border-box;
	}

	body.app-shell #menu {
		position: static;
		transform: none;
		width: 96vw;
		margin: 0 auto;
		height: auto;
		min-height: 26px;
	}

	body.app-shell #content_inner {
		padding: 14px;
	}
}
