/*
 * Eurosoft theme for MantisBT 2.28
 * Design source: Eurosoft website concept "alan" (Alan Sans, indigo palette,
 * white cards with soft shadow). Loaded last by layout_head_css(), so it
 * overrides bootstrap, ACE and ace-mantis.css. Markup for .es-* elements is in
 * core/layout_api.php. Mobile labels for stacked tables come from js/eurosoft.js.
 *
 * Breakpoints: header folds into a panel below 1200px; phone layout below 768px.
 */

/* ---------- Font (self-hosted: the CSP allows only 'self') ---------- */
@font-face {
	font-family: 'Alan Sans';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url(../fonts/alan-sans-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Alan Sans';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url(../fonts/alan-sans-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (from the alan design) ---------- */
:root {
	--es-indigo500: #5c59f3;
	--es-indigo700: #2f33a8;
	--es-indigo900: #0c0a66;
	--es-indigo100: #d6dbff;
	--es-indigo50: #f0f3ff;
	--es-heading: #282830;
	--es-text: #464754;
	--es-caption: #656779;
	--es-grey500: #9da3ba;
	--es-line: #e3e8f4;
	--es-grey100: #ecf1fc;
	--es-grey50: #f5f8fe;
	--es-white: #ffffff;
	--es-cream: #fffcf5;
	--es-teal500: #2aa79c;
	--es-danger: #d64545;
	--es-r-sm: 10px;
	--es-r-md: 12px;
	--es-r-lg: 16px;
	--es-r-xl: 24px;
	--es-shadow: 0 1px 4px rgba(40, 40, 48, .06);
	--es-shadow-pop: 0 8px 28px rgba(40, 40, 48, .12);
	--es-font: 'Alan Sans', Helvetica, Arial, sans-serif;
	--es-max: 1320px;
	--es-header-h: 72px;
}

/* ---------- Base ---------- */
html, body {
	background: var(--es-grey50) !important;
}
body {
	font-family: var(--es-font);
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--es-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
	color: var(--es-heading);
	letter-spacing: -0.01em;
}
a, a:focus {
	color: var(--es-indigo500);
}
a:hover {
	color: var(--es-indigo700);
}
hr {
	border-color: var(--es-grey100);
}
::selection {
	background: var(--es-indigo100);
}
:focus-visible {
	outline: 2px solid var(--es-indigo500);
	outline-offset: 2px;
}

/* ---------- Page frame (no sidebar) ---------- */
.skin-3 .main-container:before,
.main-container:before {
	background: var(--es-grey50) !important;
}
.main-container {
	background: transparent;
}
/* footer stays at the bottom of short pages */
body:not(.es-login-page) > #main-container {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--es-header-h) - 1px);
}
body:not(.es-login-page) > #main-container > .footer {
	margin-top: auto;
}
.main-content {
	margin: 0 !important;
	padding: 0;
}
.page-content {
	background: transparent;
	max-width: var(--es-max);
	margin: 0 auto;
	padding: 24px 24px 40px !important;
}

/* ---------- Header ---------- */
.es-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--es-grey100);
}
.es-bar {
	position: relative;
	max-width: var(--es-max);
	height: var(--es-header-h);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.es-logo {
	flex: 0 0 auto;
	display: block;
	margin-right: 8px;
}
.es-logo img {
	display: block;
	height: 40px;
	width: auto;
}
.es-panel {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}
.es-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.es-nav::-webkit-scrollbar {
	display: none;
}
.es-nav-link,
.es-nav-link:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border-radius: var(--es-r-lg);
	color: var(--es-heading);
	font-size: 14.5px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.es-nav-link:hover {
	background: var(--es-grey50);
	color: var(--es-heading);
	text-decoration: none;
}
.es-nav-link.active {
	background: var(--es-indigo50);
	color: var(--es-indigo700);
	font-weight: 600;
}
.es-nav-icon {
	display: none;
	width: 18px;
	text-align: center;
	color: var(--es-indigo500);
}
.es-tools {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}
.es-jump {
	position: relative;
	margin: 0;
}
.es-jump-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--es-grey500);
	pointer-events: none;
}
.es-header input.es-jump-input {
	width: 150px;
	height: 40px;
	padding: 0 12px 0 34px !important;
	background: var(--es-grey50) !important;
	border: 1px solid var(--es-grey100) !important;
	border-radius: var(--es-r-md) !important;
	font-size: 14px;
	color: var(--es-heading);
}
.es-header input.es-jump-input:focus {
	background: #fff !important;
}

/* project selector and user menu reuse Mantis' ace-nav dropdowns */
.es-header .ace-nav {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	height: auto;
}
.es-header .ace-nav > li {
	float: none;
	height: auto;
	line-height: normal;
	border: 0 !important;
	background: transparent !important;
}
.es-header .ace-nav > li > a,
.es-header .ace-nav > li > a:focus,
.es-header .ace-nav > li.open > a,
.es-header .ace-nav > li > a:hover {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	min-width: 0;
	padding: 0 12px;
	border: 1px solid var(--es-grey100);
	border-radius: var(--es-r-md);
	background: #fff !important;
	color: var(--es-heading) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.es-header .ace-nav > li > a:hover,
.es-header .ace-nav > li.open > a {
	border-color: var(--es-indigo100);
	background: var(--es-indigo50) !important;
}
.es-header .ace-nav > li > a > .ace-icon {
	color: var(--es-grey500);
	margin: 0;
}
#dropdown_projects_menu > a {
	max-width: 230px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.es-user .dropdown-toggle:before {
	content: "\f007";
	font-family: FontAwesome;
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: -6px;
	border-radius: 50%;
	background: var(--es-indigo50);
	color: var(--es-indigo500);
	font-size: 14px;
}
.es-header .user-info {
	line-height: normal !important;
	max-width: 160px !important;
	overflow: hidden;
	text-overflow: ellipsis;
	position: static;
	display: inline;
	top: auto;
	left: auto;
	color: inherit;
	font-size: inherit;
}
.es-user-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 16px 8px !important;
	font-size: 13px;
	color: var(--es-caption);
	line-height: 1.35;
	white-space: nowrap;
}
.es-user-head strong {
	color: var(--es-heading);
	font-size: 14px;
	font-weight: 600;
}
.btn.es-cta {
	flex: 0 0 auto;
	height: 40px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14.5px;
}
.es-burger {
	display: none;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--es-grey100);
	border-radius: var(--es-r-md);
	background: #fff;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.es-burger-bar {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--es-heading);
	transition: transform .2s ease, opacity .2s ease;
}
.es-burger:not(.collapsed) .es-burger-bar:nth-child(2) {
	transform: translateY(6px) rotate(45deg);
}
.es-burger:not(.collapsed) .es-burger-bar:nth-child(3) {
	opacity: 0;
}
.es-burger:not(.collapsed) .es-burger-bar:nth-child(4) {
	transform: translateY(-6px) rotate(-45deg);
}

/* desktop: panel always shown, overriding Bootstrap .collapse */
@media (min-width: 1200px) {
	.es-panel.collapse,
	.es-panel.collapsing {
		display: flex !important;
		height: auto !important;
		overflow: visible;
		visibility: visible;
	}
}

/* folded header */
@media (max-width: 1199px) {
	.es-burger {
		display: inline-flex;
	}
	.es-logo {
		margin-right: auto;
	}
	.es-panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 24px 20px;
		background: #fff;
		border-bottom: 1px solid var(--es-grey100);
		box-shadow: var(--es-shadow-pop);
		max-height: calc(100vh - var(--es-header-h));
		overflow-y: auto;
	}
	.es-panel.in,
	.es-panel.collapsing {
		display: flex;
	}
	.es-nav {
		flex-direction: column;
		align-items: stretch;
		overflow: visible;
	}
	.es-nav-link {
		height: 46px;
		font-size: 16px;
		gap: 12px;
	}
	.es-nav-icon {
		display: inline-block;
	}
	.es-tools {
		flex-direction: column;
		align-items: stretch;
		padding-top: 12px;
		border-top: 1px solid var(--es-grey100);
	}
	.es-header input.es-jump-input {
		width: 100%;
		height: 44px;
		font-size: 16px;
	}
	.es-projects > li,
	.es-projects > li > a {
		width: 100%;
	}
	.es-header .es-projects > li > a {
		height: 44px;
		justify-content: space-between;
	}
	#dropdown_projects_menu > a {
		max-width: none;
	}
	.es-projects .dropdown-menu {
		left: 0;
		right: 0;
		width: auto;
	}
}

@media (max-width: 767px) {
	:root {
		--es-header-h: 60px;
	}
	.es-bar {
		padding: 0 12px;
		gap: 8px;
	}
	.es-logo img {
		height: 32px;
	}
	.es-panel {
		padding: 8px 12px 16px;
	}
	.es-header .user-info,
	.es-header .es-user .dropdown-toggle > .ace-icon {
		display: none;
	}
	.es-header .es-user > li > a {
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
	}
	.es-user .dropdown-toggle:before {
		margin: 0;
	}
	.btn.es-cta {
		height: 44px;
		padding: 0 14px;
	}
}
@media (max-width: 479px) {
	.btn.es-cta {
		width: 44px;
		padding: 0;
		justify-content: center;
	}
	.es-cta-text {
		display: none;
	}
}

/* "recently visited" strip (rest of the breadcrumbs bar moved to the header) */
.breadcrumbs.es-subbar {
	max-width: var(--es-max);
	min-height: 0;
	margin: 0 auto;
	padding: 14px 24px 0;
	background: transparent;
	border: 0;
	line-height: 1.5;
	position: static;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	font-size: 13px;
	color: var(--es-caption);
}
.breadcrumbs.es-subbar .breadcrumb,
.breadcrumbs.es-subbar .nav-recent {
	margin: 0;
	padding: 0;
	float: none;
	position: static;
	line-height: inherit;
	background: transparent;
	color: inherit;
	font-size: inherit;
}
.breadcrumbs.es-subbar + .page-content {
	padding-top: 12px !important;
}

/* ---------- Cards (ACE widget boxes) ---------- */
.widget-box {
	background: #fff;
	border: 1px solid var(--es-grey100) !important;
	border-radius: var(--es-r-lg);
	box-shadow: var(--es-shadow);
	margin: 0 0 20px;
}
.widget-box > .widget-header,
.widget-color-blue2 > .widget-header,
.widget-header {
	min-height: 52px;
	padding-left: 20px;
	background: #fff !important;
	background-image: none !important;
	filter: none;
	border: 0 !important;
	border-bottom: 1px solid var(--es-grey100) !important;
	border-radius: var(--es-r-lg) var(--es-r-lg) 0 0;
	color: var(--es-heading) !important;
}
.widget-box.collapsed > .widget-header {
	border-bottom: 0 !important;
	border-radius: var(--es-r-lg);
}
.widget-header > .widget-title,
.widget-header > .widget-title a {
	color: var(--es-heading) !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 52px;
	text-decoration: none;
}
.widget-header-small > .widget-title {
	line-height: 52px;
}
.widget-header .ace-icon,
.widget-header > .widget-title > .fa {
	color: var(--es-indigo500);
}
/* centre toolbar buttons in the header; [style*=none] = toolbar hidden by Mantis inline style */
.widget-header > .widget-toolbar:not([style*="none"]),
.widget-header > .widget-toolbar > .widget-menu {
	display: flex !important;
	align-items: center;
	gap: 8px;
	height: 52px;
	line-height: normal;
	padding-top: 0;
	padding-bottom: 0;
}
.widget-header > .widget-toolbar > .widget-menu {
	height: auto;
}
.widget-header > .widget-toolbar .btn,
.widget-header > .widget-toolbar > a {
	margin: 0;
	top: 0;
	line-height: 1.4;
}
.widget-header > .widget-toolbar input.input-xs,
.widget-header > .widget-toolbar select.input-xs {
	height: 32px;
	min-height: 32px;
	padding: 0 10px;
	font-size: 13.5px;
}
.widget-toolbar > a,
.widget-toolbar > a:hover,
.widget-header .widget-toolbar > a > .ace-icon {
	color: var(--es-caption) !important;
}
.widget-toolbar:before {
	border: 0 !important;
}
.widget-header .badge {
	margin-left: 6px;
	vertical-align: 1px;
}
.widget-body {
	background: transparent;
	border-radius: 0 0 var(--es-r-lg) var(--es-r-lg);
}
.widget-toolbox,
.widget-toolbox:first-child,
.widget-toolbox:last-child {
	background: var(--es-grey50);
	border-color: var(--es-grey100) !important;
}
.widget-body > .widget-toolbox:last-child,
.widget-body > .widget-main:last-child,
.widget-body > form:last-child > .widget-toolbox:last-child {
	border-radius: 0 0 var(--es-r-lg) var(--es-r-lg);
}
.widget-main {
	background: transparent;
}
.page-header {
	border-bottom-color: var(--es-grey100);
}
.page-header h1 {
	color: var(--es-heading);
	font-weight: 600;
}

/* ---------- Tables ---------- */
.table {
	color: var(--es-text);
	margin-bottom: 0;
}
.table > thead > tr {
	background: var(--es-grey50) !important;
	background-image: none !important;
	color: var(--es-caption);
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
	border-color: var(--es-grey100) !important;
	padding: 9px 12px;
	vertical-align: middle;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tbody > tr > td {
	padding: 8px 10px;
}
.table > thead > tr > th {
	font-weight: 600;
	font-size: 13px;
	color: var(--es-caption);
	border-bottom-width: 1px !important;
}
.table > thead > tr > th a {
	color: inherit;
}
.table-bordered {
	border: 0;
}
.table-bordered > tbody > tr:first-child > td,
.table-bordered > tbody > tr:first-child > th {
	border-top: 0;
}
.table-striped > tbody > tr:nth-of-type(odd) {
	background-color: #fbfcff;
}
.table-hover > tbody > tr:hover,
.table-hover > tbody > tr:hover > td {
	background-color: var(--es-indigo50) !important;
}
td.category,
th.category {
	background-color: var(--es-grey50) !important;
	color: var(--es-heading);
	font-weight: 600;
}
/* default.css paints labels inside .category too; the cell colour is enough */
td.category label,
th.category label {
	background-color: transparent !important;
	color: inherit;
	font-weight: inherit;
}
.small-caption {
	font-size: 13px;
}
.table-responsive {
	border: 0;
}

/* status: coloured dot in front of the label (status colours from $g_status_colors) */
.fa-status-box {
	display: inline-block;
	width: 11px;
	height: 11px;
	margin: 0 6px 0 1px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: inset 0 0 0 1px rgba(40, 40, 48, .22);
	font-size: 0 !important;
	line-height: 0;
	vertical-align: 0;
}
.fa-status-box:before {
	content: none !important;
}

/* notes */
.bugnote-note {
	background-color: #fff;
}
.bugnote-private {
	background-color: #fff8e6;
}
.bugnote .category {
	font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn,
.btn-default,
.btn:focus,
.btn-default:focus {
	border-width: 1px;
	border-radius: var(--es-r-md) !important;
	font-weight: 500;
	text-shadow: none !important;
	box-shadow: var(--es-shadow);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn > .ace-icon {
	margin-right: 2px;
}
.btn-primary,
.btn-primary:focus,
.btn-primary.focus,
.btn-success,
.btn-success:focus,
.btn-info,
.btn-info:focus {
	background-color: var(--es-indigo500) !important;
	border-color: var(--es-indigo500) !important;
	color: #fff !important;
}
.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.open > .btn-primary.dropdown-toggle {
	background-color: var(--es-indigo700) !important;
	border-color: var(--es-indigo700) !important;
	color: #fff !important;
}
.btn-primary:active,
.btn-primary.active,
.btn-success:active,
.btn-info:active {
	background-color: var(--es-indigo900) !important;
	border-color: var(--es-indigo900) !important;
}
.btn.btn-white,
.btn.btn-white:focus,
.btn-default,
.btn.btn-white.btn-primary {
	background-color: #fff !important;
	border-color: var(--es-indigo100) !important;
	color: var(--es-indigo500) !important;
}
.btn.btn-white:hover,
.btn-default:hover,
.btn.btn-white.btn-primary:hover {
	background-color: var(--es-indigo50) !important;
	border-color: var(--es-indigo100) !important;
	color: var(--es-indigo700) !important;
}
.btn-danger,
.btn-danger:focus {
	background-color: var(--es-danger) !important;
	border-color: var(--es-danger) !important;
}
.btn.btn-white.btn-danger {
	color: var(--es-danger) !important;
	border-color: #f3c9c9 !important;
}
.btn-sm {
	padding: 5px 12px;
	font-size: 13.5px;
}
.btn-xs {
	border-radius: 8px !important;
}
.btn-group > .btn + .btn {
	margin-left: 4px;
}
/* scroll-up sits above the helpdesk button (.es-help-btn), never at the very edge */
.btn-scroll-up.btn,
.btn-scroll-up.btn:focus {
	right: 30px;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50% !important;
	background-color: #fff !important;
	border: 1px solid var(--es-grey100) !important;
	color: var(--es-indigo500) !important;
	box-shadow: var(--es-shadow-pop);
}
.btn-scroll-up.btn.display {
	bottom: 96px;
}
.btn-scroll-up.btn > .ace-icon {
	color: var(--es-indigo500);
}

/* ---------- Floating helpdesk button + contact popup ---------- */
.es-help-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1040;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--es-indigo500);
	color: #fff;
	font-size: 22px;
	box-shadow: 0 6px 20px rgba(92, 89, 243, .35);
	transition: background-color .15s ease, transform .15s ease;
}
.es-help-btn:hover {
	background: var(--es-indigo700);
}
.es-help-btn:active {
	transform: scale(.96);
}
.es-help-btn.open {
	background: var(--es-indigo900);
}
.es-help-pop {
	position: fixed;
	right: 24px;
	bottom: 92px;
	z-index: 1041;
	width: 320px;
	max-width: calc(100vw - 32px);
	padding: 16px 18px 18px;
	background: #fff;
	border: 1px solid var(--es-grey100);
	border-radius: var(--es-r-lg);
	box-shadow: var(--es-shadow-pop);
	text-align: left;
	line-height: 1.5;
}
.es-help-pop[hidden] {
	display: none;
}
.es-help-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.es-help-head strong {
	color: var(--es-heading);
	font-size: 16px;
	font-weight: 700;
}
.es-help-close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--es-caption);
}
.es-help-close:hover {
	background: var(--es-grey50);
	color: var(--es-heading);
}
.es-help-contact {
	flex-direction: column;
	gap: 12px;
}
@media (max-width: 767px) {
	.es-help-btn {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}
	.es-help-pop {
		right: 16px;
		bottom: 80px;
	}
	.btn-scroll-up.btn {
		right: 22px;
	}
	.btn-scroll-up.btn.display {
		bottom: 80px;
	}
}

/* ---------- Forms ---------- */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
select,
textarea {
	border: 1px solid #dde3f2 !important;
	border-radius: var(--es-r-sm) !important;
	background-color: #fff;
	color: var(--es-heading);
	box-shadow: none !important;
	font-family: var(--es-font);
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
.form-control {
	min-height: 34px;
}
textarea,
textarea.form-control {
	padding: 10px 12px;
	line-height: 1.5;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
	border-color: var(--es-indigo500) !important;
	box-shadow: 0 0 0 3px var(--es-indigo100) !important;
	outline: none;
}
input[type="checkbox"].ace + .lbl::before,
input[type="radio"].ace + .lbl::before {
	border-color: #c9d1e8;
	border-radius: 5px;
}
input[type="radio"].ace + .lbl::before {
	border-radius: 50%;
}
input[type="checkbox"].ace:checked + .lbl::before {
	background-color: var(--es-indigo500);
	border-color: var(--es-indigo500);
	color: #fff;
}
input[type="radio"].ace:checked + .lbl::before {
	color: var(--es-indigo500);
	border-color: var(--es-indigo500);
}
span.required,
.required {
	color: var(--es-danger);
}
.dropzone {
	border: 2px dashed #cdd5ee;
	border-radius: var(--es-r-lg);
	background: var(--es-grey50);
	color: var(--es-caption);
}
.dropzone:hover {
	border-color: var(--es-indigo500);
	background: var(--es-indigo50);
}

/* ---------- Labels, badges, dropdowns, tabs, alerts ---------- */
.badge {
	background-color: var(--es-indigo50);
	color: var(--es-indigo700);
	border-radius: 999px;
	font-weight: 600;
	text-shadow: none;
}
.label {
	border-radius: 6px;
	font-weight: 500;
	text-shadow: none;
}
.label-default,
.label-grey,
.label.label-light {
	background-color: var(--es-grey100) !important;
	color: var(--es-heading) !important;
}
.label-primary,
.label-info {
	background-color: var(--es-indigo500) !important;
}
.dropdown-menu {
	border: 1px solid var(--es-grey100) !important;
	border-radius: var(--es-r-md);
	box-shadow: var(--es-shadow-pop) !important;
	padding: 6px;
	font-size: 14px;
}
.dropdown-menu > li > a,
.dropdown-menu .list > li > a {
	border-radius: 8px;
	padding: 7px 12px;
	color: var(--es-heading);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-yellow > li > a:hover,
.dropdown-yellow > li > a:focus,
.dropdown-yellow > li.active > a,
.dropdown-yellow li > a:hover,
.dropdown-yellow li.active > a {
	background: var(--es-indigo50) !important;
	color: var(--es-indigo700) !important;
}
.dropdown-menu .divider {
	background-color: var(--es-grey100);
	margin: 4px 0;
}
.dropdown-caret:before,
.dropdown-caret:after {
	display: none !important;
}
.dropdown-menu .scrollable-menu {
	max-height: 60vh;
	overflow-y: auto;
}
.nav-tabs {
	border-bottom: 1px solid var(--es-grey100);
}
.nav-tabs > li > a,
.nav-tabs > li > a:focus {
	border-radius: var(--es-r-md) var(--es-r-md) 0 0 !important;
	background: transparent;
	border-color: transparent;
	color: var(--es-caption);
	margin-right: 2px;
}
.nav-tabs > li > a:hover {
	background: var(--es-indigo50);
	border-color: transparent;
	color: var(--es-indigo700);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
	background: #fff;
	border-color: var(--es-grey100) var(--es-grey100) transparent !important;
	border-top: 2px solid var(--es-indigo500) !important;
	color: var(--es-indigo700);
	box-shadow: none;
	font-weight: 600;
}
.alert {
	border-radius: var(--es-r-md);
}
.pagination > li > a,
.pagination > li > span {
	margin: 0 2px;
	border: 1px solid var(--es-grey100) !important;
	border-radius: 8px !important;
	background: #fff;
	color: var(--es-indigo500);
}
.pagination > li > a:hover {
	background: var(--es-indigo50);
	color: var(--es-indigo700);
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
	background: var(--es-indigo500) !important;
	border-color: var(--es-indigo500) !important;
	color: #fff !important;
}
.pagination > .disabled > a,
.pagination > .disabled > span {
	color: var(--es-grey500);
	background: #fff;
}
.progress {
	border-radius: 999px;
	background: var(--es-grey100);
	box-shadow: none;
}
.progress[data-percent]:after {
	color: var(--es-heading);
}
.progress-bar-success {
	background-color: var(--es-teal500);
}
.well {
	background: var(--es-grey50);
	border-color: var(--es-grey100);
	border-radius: var(--es-r-md);
	box-shadow: none;
}
.bootstrap-datetimepicker-widget .active,
.bootstrap-datetimepicker-widget td.active,
.bootstrap-datetimepicker-widget td.active:hover {
	background-color: var(--es-indigo500) !important;
}

/* ---------- Footer ---------- */
.footer {
	padding-top: 0;
	height: auto;
	width: auto;
}
.footer .footer-inner {
	position: static;
	text-align: left;
	background: #fff;
	border-top: 1px solid var(--es-grey100);
	margin-top: 24px;
}
.footer .footer-inner .footer-content {
	position: static;
	max-width: var(--es-max);
	margin: 0 auto;
	padding: 18px 24px 14px;
	border: 0;
	line-height: 1.55;
}
.es-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 40px;
}
.es-foot-logo {
	display: block;
	height: 30px;
	width: auto;
}
/* footer contact is a single compact line; the login page keeps the larger version */
.es-foot-contact {
	gap: 8px 28px;
}
.es-foot-contact li {
	gap: 8px;
}
.es-foot-contact .es-contact-icon {
	flex-basis: 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	font-size: 13px;
}
.es-foot-contact li > span {
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
	font-size: 14px;
}
.es-foot-contact small {
	font-size: 13px;
}
.es-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
}
.es-contact li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.es-contact-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: inline-grid !important;
	place-items: center;
	border-radius: var(--es-r-md);
	background: var(--es-indigo50);
	color: var(--es-indigo500);
	font-size: 17px;
}
.es-contact li > span {
	display: flex;
	flex-direction: column;
	color: var(--es-heading);
	font-weight: 600;
	line-height: 1.35;
}
.es-contact small {
	color: var(--es-caption);
	font-size: 12.5px;
	font-weight: 400;
}
.es-contact a {
	color: var(--es-heading);
	text-decoration: none;
	white-space: nowrap;
}
.es-contact a:hover,
.es-contact a:focus {
	color: var(--es-indigo700);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.es-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	margin-top: 14px;
	padding-top: 10px;
	padding-right: 72px; /* room for the floating helpdesk button */
	border-top: 1px solid var(--es-grey100);
	color: var(--es-caption);
	font-size: 12.5px;
}
.es-legal a {
	color: var(--es-caption);
}

/* ---------- Login and other pre-login pages ---------- */
body.es-login-page,
.es-login-page .main-container:before {
	background: var(--es-grey50) !important;
}
/* desktop: left column = logo (.es-login-top) over title + contact (.es-login-info),
   both on one gradient drawn by ::before; right column = form (.es-login-main) */
.es-login {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(380px, 5fr) 7fr;
	grid-template-rows: auto 1fr;
}
.es-login::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / 3;
	background: radial-gradient(120% 80% at 100% 0%, rgba(122, 119, 255, .55) 0%, rgba(122, 119, 255, 0) 60%),
		linear-gradient(160deg, var(--es-indigo700) 0%, var(--es-indigo500) 100%);
}
.es-login-top {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	padding: 48px 56px 0;
}
.es-login-info {
	grid-column: 1;
	grid-row: 2;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 40px 56px 48px;
	color: #fff;
}
.es-login-main {
	grid-column: 2;
	grid-row: 1 / 3;
}
.es-login-logo {
	display: block;
	height: 48px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
.es-login-copy {
	margin: auto 0;
	max-width: 460px;
}
.es-login-copy h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.12;
	font-weight: 700;
}
.es-login-contact {
	flex-direction: column;
	gap: 14px;
}
.es-login-contact .es-contact-icon {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}
.es-login-contact li > span,
.es-login-contact a {
	color: #fff;
}
/* on the indigo panel the default hover colour would match the background */
.es-login-contact a:hover,
.es-login-contact a:focus {
	color: var(--es-indigo900);
}
.es-login-contact small {
	color: var(--es-indigo100);
}
.es-login-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
	min-width: 0;
}
.es-login-main .main-container {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	position: relative;
}
.es-login-main .main-container:before {
	display: none;
}
.es-login-main .main-content > .row {
	margin: 0;
}
.es-login-main .main-content > .row > [class*="col-"] {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
.login-container {
	width: auto;
	max-width: 460px;
	margin: 0 auto;
}
.login-logo,
.login-container > .space-12,
.login-container > .space-24 {
	display: none;
}
.login-layout .widget-box,
.light-login .widget-box {
	border: 1px solid var(--es-grey100) !important;
	border-radius: var(--es-r-xl);
	box-shadow: var(--es-shadow-pop) !important;
	background: #fff;
	padding: 0;
	overflow: hidden;
}
.login-layout .widget-box .widget-body {
	background: #fff;
}
.login-layout .widget-box .widget-main {
	padding: 32px;
	background: #fff;
}
.login-layout .widget-box .widget-main h4.header {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	color: var(--es-heading) !important;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}
.login-layout .widget-box .widget-main h4.header .ace-icon {
	display: none;
}
.login-layout label {
	color: var(--es-heading);
	font-size: 14px;
	margin-bottom: 14px;
}
.login-layout .form-control {
	height: 48px;
	padding: 0 40px 0 14px;
	font-size: 16px;
}
.login-layout .input-icon > .ace-icon {
	top: 50%;
	transform: translateY(-50%);
	line-height: 1;
	color: var(--es-grey500);
}
.login-layout .btn[type="submit"],
.login-layout input[type="submit"].btn {
	float: none !important;
	width: 100% !important;
	height: 48px;
	margin-top: 8px;
	font-size: 16px;
}
.login-layout .widget-box .toolbar,
.light-login .widget-box .toolbar {
	background: var(--es-grey50) !important;
	border-top: 1px solid var(--es-grey100);
	padding: 14px 32px;
}
.login-layout .widget-box .toolbar a,
.login-layout .widget-box .widget-body .toolbar > div > a {
	color: var(--es-indigo500) !important;
	text-shadow: none;
	font-size: 14px;
}
.es-login-main .alert {
	margin-bottom: 16px;
}

@media (max-width: 991px) {
	/* phones/tablets: logo band, then the form, then title + contact */
	.es-login {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		min-height: 0;
	}
	.es-login::before {
		grid-row: 1;
	}
	.es-login-top {
		padding: 20px 20px 18px;
	}
	.es-login-main {
		grid-column: 1;
		grid-row: 2;
		padding: 20px 16px 8px;
		align-items: flex-start;
	}
	.es-login-info {
		grid-column: 1;
		grid-row: 3;
		gap: 18px;
		padding: 16px 20px 32px;
		color: var(--es-text);
	}
	.es-login-logo {
		height: 34px;
	}
	.es-login-copy h1 {
		font-size: 22px;
		color: var(--es-heading);
	}
	.es-login-contact {
		gap: 12px;
	}
	.es-login-contact .es-contact-icon {
		background: var(--es-indigo50);
		color: var(--es-indigo500);
	}
	.es-login-contact li > span,
	.es-login-contact a {
		color: var(--es-heading);
	}
	.es-login-contact a:hover,
	.es-login-contact a:focus {
		color: var(--es-indigo700);
	}
	.es-login-contact small {
		color: var(--es-caption);
	}
	.login-layout .widget-box .widget-main {
		padding: 24px 20px;
	}
	.login-layout .widget-box .toolbar {
		padding: 12px 20px;
	}
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	body {
		font-size: 15px;
	}
	.page-content {
		padding: 12px 12px 32px !important;
	}
	.page-content > .row,
	.page-content .row {
		margin-left: -6px;
		margin-right: -6px;
	}
	.page-content [class*="col-"] {
		padding-left: 6px;
		padding-right: 6px;
	}
	.breadcrumbs.es-subbar {
		display: none;
	}
	.widget-box {
		margin-bottom: 14px;
	}
	.widget-header,
	.widget-box > .widget-header {
		min-height: 48px;
		padding-left: 14px;
	}
	.widget-header > .widget-title {
		line-height: 48px;
		font-size: 15px;
	}
	.widget-header > .widget-toolbar:not([style*="none"]) {
		height: 48px;
	}

	/* iOS zooms into fields smaller than 16px */
	input[type="text"],
	input[type="password"],
	input[type="email"],
	input[type="number"],
	input[type="search"],
	select,
	textarea,
	.form-control {
		font-size: 16px !important;
	}

	/* toolbars: wrapping button rows instead of left/right floats */
	.widget-toolbox {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
	}
	.widget-toolbox:before,
	.widget-toolbox:after {
		display: none;
	}
	.widget-toolbox > .pull-left,
	.widget-toolbox > .pull-right,
	.widget-toolbox > .btn-group,
	.widget-toolbox > .form-inline {
		float: none !important;
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin: 0;
	}
	.widget-toolbox .btn-group > .btn {
		margin: 0;
		float: none;
	}
	.widget-toolbox .btn {
		min-height: 40px;
	}
	.widget-toolbox .form-inline select,
	.widget-toolbox .form-inline .form-control {
		width: auto !important;
		max-width: 100%;
	}

	/* pagination items are printed in reverse order and floated right */
	.pagination {
		display: flex;
		flex-direction: row-reverse;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 4px 0;
	}
	.pagination > li {
		float: none !important;
	}
	.pagination > li > a,
	.pagination > li > span {
		min-width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* --- issue list as cards --- */
	#buglist,
	#buglist > tbody {
		display: block;
	}
	#buglist > thead {
		display: none;
	}
	#buglist > tbody > tr {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 10px;
		padding: 12px 14px;
		border-bottom: 1px solid var(--es-grey100);
		background: #fff !important;
	}
	#buglist > tbody > tr > td {
		display: block;
		order: 20;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		text-align: left !important;
		font-size: 13px;
		color: var(--es-caption);
		width: auto !important;
	}
	#buglist > tbody > tr > td[data-label]::before {
		content: attr(data-label) ": ";
		color: var(--es-grey500);
	}
	#buglist > tbody > tr > td.column-selection {
		order: 1;
	}
	#buglist > tbody > tr > td.column-id {
		order: 2;
		font-size: 14px;
		font-weight: 700;
	}
	#buglist > tbody > tr > td.column-status {
		order: 3;
		font-size: 13.5px;
		color: var(--es-heading);
	}
	#buglist > tbody > tr > td.column-last-modified {
		order: 4;
		margin-left: auto;
	}
	#buglist > tbody > tr > td.column-summary {
		order: 10;
		flex: 1 0 100%;
		font-size: 15px;
		font-weight: 500;
		color: var(--es-heading);
		line-height: 1.4;
	}
	#buglist > tbody > tr > td.column-selection::before,
	#buglist > tbody > tr > td.column-id::before,
	#buglist > tbody > tr > td.column-status::before,
	#buglist > tbody > tr > td.column-last-modified::before,
	#buglist > tbody > tr > td.column-summary::before,
	#buglist > tbody > tr > td.column-priority::before,
	#buglist > tbody > tr > td.column-attachments::before,
	#buglist > tbody > tr > td.column-bugnotes-count::before {
		content: none;
	}
	#buglist > tbody > tr > td.column-edit,
	#buglist > tbody > tr > td.es-empty {
		display: none;
	}
	#buglist > tbody > tr > td.column-selection .checkbox {
		margin: 0;
	}
	#buglist > tbody > tr.sticky-separator {
		padding: 4px 14px;
		background: var(--es-grey50) !important;
	}
	#buglist > tbody > tr.sticky-separator > td {
		flex: 1 0 100%;
	}

	/* --- "my view" lists --- */
	td.my-buglist-id {
		white-space: normal !important;
		width: 76px !important;
	}

	/* --- filter grid: label above value, two per row --- */
	table.filters,
	table.filters > tbody {
		display: block;
	}
	table.filters tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		border-bottom: 1px solid var(--es-grey100);
	}
	table.filters tr.es-labelrow {
		display: none;
	}
	table.filters td {
		display: block;
		border: 0 !important;
		padding: 8px 10px !important;
		width: auto !important;
		min-width: 0;
		overflow-wrap: anywhere;
	}
	table.filters td.es-empty {
		display: none;
	}
	table.filters td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		color: var(--es-heading);
		font-weight: 600;
		font-size: 12.5px;
	}
	table.filters td.category {
		background: transparent !important;
		padding-bottom: 0 !important;
	}

	/* --- issue view: label | value pairs --- */
	table:has(tr.bug-header),
	table:has(tr.bug-header) > tbody,
	table:has(tr.bug-header) > thead {
		display: block;
	}
	table:has(tr.bug-header) tr {
		display: grid;
		grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
		border-bottom: 1px solid var(--es-grey100);
	}
	table:has(tr.bug-header) tr.bug-header,
	table:has(tr.bug-header) tr.spacer,
	table:has(tr.bug-header) tr.es-labelrow {
		display: none;
	}
	table:has(tr.bug-header) tr > th,
	table:has(tr.bug-header) tr > td {
		display: block;
		width: auto !important;
		min-width: 0;
		border: 0 !important;
		padding: 10px 12px !important;
		text-align: left;
		overflow-wrap: anywhere;
	}
	table:has(tr.bug-header) tr > td.es-empty {
		display: none;
	}
	table:has(tr.bug-header) tr.es-datarow {
		grid-template-columns: minmax(0, 1fr);
	}
	table:has(tr.bug-header) tr.es-datarow > td {
		display: grid;
		grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
		padding: 0 !important;
		border-bottom: 1px solid var(--es-grey100) !important;
	}
	table:has(tr.bug-header) tr.es-datarow > td:last-child {
		border-bottom: 0 !important;
	}
	table:has(tr.bug-header) tr.es-datarow > td::before {
		content: attr(data-label);
		padding: 10px 12px;
		background: var(--es-grey50);
		color: var(--es-heading);
		font-weight: 600;
	}
	table:has(tr.bug-header) tr.es-datarow > td > * {
		padding: 10px 12px;
	}
	table:has(tr.bug-header) tr.es-datarow > td {
		align-items: center;
	}
	/* long rows (summary, description, attachments, tags): label above text */
	table:has(tr.bug-header) tr:has(> td[colspan="5"]),
	table:has(tr.bug-header) tr:has(> td[colspan="6"]) {
		grid-template-columns: minmax(0, 1fr);
	}
	table:has(tr.bug-header) tr:has(> td[colspan="5"]) > th {
		padding-bottom: 2px !important;
	}

	/* --- forms: label above field, fields full width --- */
	#report_bug_form table,
	#update_bug_form table,
	#bug-change-status-form table,
	#account-update-form table,
	#account-prefs-update-form table,
	#bugnoteadd table,
	#monitors table,
	#report_bug_form table > tbody,
	#update_bug_form table > tbody,
	#bug-change-status-form table > tbody,
	#account-update-form table > tbody,
	#account-prefs-update-form table > tbody,
	#bugnoteadd table > tbody,
	#monitors table > tbody,
	#report_bug_form table tr,
	#update_bug_form table tr,
	#bug-change-status-form table tr,
	#account-update-form table tr,
	#account-prefs-update-form table tr,
	#bugnoteadd table tr,
	#monitors table tr {
		display: block;
		width: auto !important;
	}
	#report_bug_form table tr > *,
	#update_bug_form table tr > *,
	#bug-change-status-form table tr > *,
	#account-update-form table tr > *,
	#account-prefs-update-form table tr > *,
	#bugnoteadd table tr > *,
	#monitors table tr > * {
		display: block;
		width: auto !important;
		border: 0 !important;
		padding: 4px 14px 12px !important;
		text-align: left;
		overflow-wrap: anywhere;
	}
	#report_bug_form table tr > .category,
	#update_bug_form table tr > .category,
	#bug-change-status-form table tr > .category,
	#account-update-form table tr > .category,
	#account-prefs-update-form table tr > .category,
	#bugnoteadd table tr > .category,
	#monitors table tr > .category {
		background: transparent !important;
		padding: 12px 14px 2px !important;
		font-size: 13.5px;
	}
	#report_bug_form table tr,
	#update_bug_form table tr,
	#bug-change-status-form table tr,
	#account-update-form table tr,
	#account-prefs-update-form table tr,
	#bugnoteadd table tr,
	#monitors table tr {
		border-bottom: 1px solid var(--es-grey100);
		background: transparent !important;
	}
	#update_bug_form table tr.es-labelrow {
		display: none;
	}
	#update_bug_form table td.es-empty {
		display: none;
	}
	#update_bug_form table tr.es-datarow > td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin: 8px 0 4px;
		color: var(--es-heading);
		font-weight: 600;
		font-size: 13.5px;
	}
	#report_bug_form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	#update_bug_form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	#bug-change-status-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	#account-update-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	#account-prefs-update-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	#bugnoteadd input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	#report_bug_form select,
	#update_bug_form select,
	#bug-change-status-form select,
	#account-update-form select,
	#account-prefs-update-form select,
	#report_bug_form textarea,
	#update_bug_form textarea,
	#bug-change-status-form textarea,
	#bugnoteadd textarea {
		width: 100% !important;
		max-width: 100%;
	}
	.widget-toolbox input[type="submit"].btn,
	.widget-toolbox button[type="submit"].btn {
		flex: 1 1 100%;
		min-height: 44px;
	}

	/* --- issue action buttons: two per row --- */
	tr.noprint > td[colspan="6"] > .btn-group,
	td > .btn-group:has(> .pull-left > form) {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		float: none;
		width: 100%;
	}
	tr.noprint > td[colspan="6"] > .btn-group > div,
	td > .btn-group:has(> .pull-left > form) > div {
		float: none !important;
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
		padding: 0 !important;
	}
	tr.noprint > td[colspan="6"] > .btn-group fieldset,
	tr.noprint > td[colspan="6"] > .btn-group form {
		display: flex;
		gap: 6px;
		width: 100%;
	}
	tr.noprint > td[colspan="6"] > .btn-group .btn {
		flex: 1 1 auto;
		min-height: 40px;
		white-space: normal;
	}
	tr.noprint > td[colspan="6"] > .btn-group select {
		flex: 1 1 50%;
		min-width: 0;
		width: auto !important;
	}

	/* --- notes: meta above text --- */
	#bugnotes table,
	#bugnotes table > tbody,
	#bugnotes tr.bugnote,
	#bugnotes tr.bugnote > td {
		display: block;
		width: auto !important;
	}
	#bugnotes tr.bugnote {
		border-bottom: 1px solid var(--es-grey100);
	}
	#bugnotes tr.bugnote > td {
		border: 0 !important;
	}
	#bugnotes tr.bugnote > td.category {
		padding: 12px 14px 4px !important;
		background: var(--es-grey50) !important;
		overflow: hidden;
	}
	#bugnotes tr.bugnote > td.category img.avatar,
	#bugnotes tr.bugnote > td.category img {
		width: 36px;
		height: 36px;
	}
	#bugnotes tr.bugnote > td.bugnote-note {
		padding: 10px 14px 14px !important;
		overflow-wrap: anywhere;
	}
	#bugnotes .visible-on-hover {
		opacity: 1 !important;
		visibility: visible !important;
	}

	/* --- history: one block per change --- */
	#history table,
	#history table > tbody {
		display: block;
	}
	#history table > thead {
		display: none;
	}
	#history table tr {
		display: block;
		padding: 10px 14px;
		border-bottom: 1px solid var(--es-grey100);
	}
	#history table td {
		display: block;
		border: 0 !important;
		padding: 1px 0 !important;
		overflow-wrap: anywhere;
	}
	#history table td[data-label]::before {
		content: attr(data-label) ": ";
		color: var(--es-grey500);
	}

	/* --- account tabs scroll sideways instead of wrapping --- */
	.nav-tabs {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-left: 0 !important;
	}
	.nav-tabs > li {
		float: none;
		flex: 0 0 auto;
	}

	/* --- changelog / roadmap / summary --- */
	ul.changelog > li,
	ul.roadmap > li {
		overflow-wrap: anywhere;
	}
	.progress.progress-large {
		width: 100%;
	}
	.table-responsive {
		-webkit-overflow-scrolling: touch;
	}

	/* --- footer --- */
	.footer .footer-inner .footer-content {
		padding: 16px 16px 80px; /* room for the floating helpdesk button */
	}
	.es-foot {
		flex-direction: column;
		align-items: flex-start;
	}
	.es-foot-contact {
		flex-direction: column;
		gap: 8px;
	}
	.es-legal {
		flex-direction: column;
		padding-right: 0;
	}
}

/* ---------- Print ---------- */
@media print {
	.es-header,
	.footer,
	.breadcrumbs,
	.btn-scroll-up,
	.es-help {
		display: none !important;
	}
	html, body {
		background: #fff !important;
	}
	.widget-box {
		box-shadow: none;
	}
}
