@charset "UTF-8";

/*
 * Science-ation default theme.
 *
 * The application shell is driven by the custom properties below.  Keep
 * colours and spacing in this file; page templates should not need inline
 * styling for the shell/navigation.
 */
:root {
	--sa-primary: #4f46e5;
	--sa-primary-dark: #4338ca;
	--sa-primary-soft: #eef2ff;
	--sa-accent: #7c3aed;
	--sa-text: #1f2937;
	--sa-text-strong: #111827;
	--sa-muted: #64748b;
	--sa-muted-light: #94a3b8;
	--sa-border: #e2e8f0;
	--sa-border-strong: #cbd5e1;
	--sa-surface: #ffffff;
	--sa-surface-muted: #f8fafc;
	--sa-background: #f4f5fb;
	--sa-sidebar: #ffffff;
	--sa-success: #15803d;
	--sa-success-bg: #ecfdf3;
	--sa-danger: #b91c1c;
	--sa-danger-bg: #fef2f2;
	--sa-warning: #92400e;
	--sa-warning-bg: #fffbeb;
	--sa-link: #4338ca;
	--sa-radius: 14px;
	--sa-radius-sm: 9px;
	--sa-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--sa-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
	--sa-header-height: 66px;
	--sa-sidebar-width: 276px;
	--sa-footer-height: 60px;
	--sa-footer-gap: 18px;
	--sa-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html {
	overflow-x: hidden;
}

body {
	font-family: var(--sa-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--sa-text);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: var(--sa-background);
	overflow-x: hidden;
}

.app-body {
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.app-body > iframe#content {
	position: absolute;
	width: 0;
	height: 0;
	border: 0;
	visibility: hidden;
}

input,
textarea,
select {
	font-family: var(--sa-font);
	font-size: 1em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
	color: var(--sa-text);
	background: var(--sa-surface);
	border: 1px solid var(--sa-border-strong);
	border-radius: var(--sa-radius-sm);
	padding: 7px 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--sa-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--sa-primary);
}

input[type="submit"],
input[type="button"],
.button {
	background: var(--sa-primary);
	border: 1px solid var(--sa-primary);
	border-radius: var(--sa-radius-sm);
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	padding: 7px 14px;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
	background: var(--sa-primary-dark);
	border-color: var(--sa-primary-dark);
	box-shadow: var(--sa-shadow-sm);
}

a {
	color: var(--sa-link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	color: var(--sa-text-strong);
	line-height: 1.25;
}

h1 {
	font-size: 2em;
	font-weight: 700;
	margin: 0 0 0.35em;
}

h2 {
	font-size: 1.55em;
	font-weight: 700;
	margin: 0 0 0.35em;
}

h3 {
	font-size: 1.3em;
	font-weight: 650;
	margin: 0 0 0.3em;
}

h4 {
	font-size: 1.1em;
	font-weight: 650;
	margin: 0 0 0.25em;
}

hr {
	border: 0;
	border-top: 1px solid var(--sa-border);
	margin: 16px 0;
}

td {
	vertical-align: top;
}

table {
	width: 100%;
	overflow: auto;
	display: block;
}

/* -------------------------------------------------------------------------
 * App header
 * ---------------------------------------------------------------------- */
#header {
	position: sticky;
	top: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
	box-sizing: border-box;
	min-height: var(--sa-header-height);
	height: auto;
	margin: 0;
	padding: 9px 24px;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--sa-border);
	box-shadow: var(--sa-shadow-sm);
	text-align: left;
	backdrop-filter: blur(12px);
}

#header img {
	display: block;
	height: 46px;
	width: auto;
}

.app-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--sa-text-strong);
	text-decoration: none;
}

.app-brand:hover {
	text-decoration: none;
}

.app-brand-name {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-account {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: auto;
	color: var(--sa-muted);
	font-size: 0.8rem;
}

.app-account-role {
	color: var(--sa-text);
	font-weight: 600;
}

.app-account-login {
	color: var(--sa-primary);
	text-decoration: none;
}

.app-account-login:hover {
	color: var(--sa-primary-dark);
	text-decoration: underline;
}

.app-account-email {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-account-email::before {
	content: "\00b7";
	padding-right: 8px;
	color: var(--sa-muted-light);
}

.app-account-link {
	color: var(--sa-muted);
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	padding: 5px 10px;
	line-height: 1.2;
	white-space: nowrap;
}

.app-account-link:hover {
	color: var(--sa-primary);
	border-color: var(--sa-primary);
	text-decoration: none;
	background: var(--sa-primary-soft);
}

.app-account-logout {
	color: var(--sa-danger);
	border-color: #fecaca;
}

.app-account-logout:hover {
	color: var(--sa-danger);
	border-color: var(--sa-danger);
	background: var(--sa-danger-bg);
}

#menu-toggle-button {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	background: var(--sa-surface);
	color: var(--sa-text);
	cursor: pointer;
	font-size: 24px;
}

#menu-toggle-button:hover {
	background: var(--sa-primary-soft);
	color: var(--sa-primary);
}

.app-menu-icon,
.app-menu-icon::before,
.app-menu-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.app-menu-icon {
	position: relative;
}

.app-menu-icon::before,
.app-menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.app-menu-icon::before {
	top: -6px;
}

.app-menu-icon::after {
	top: 6px;
}

.app-close-icon {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}

.app-close-icon::before,
.app-close-icon::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.app-close-icon::before {
	transform: rotate(45deg);
}

.app-close-icon::after {
	transform: rotate(-45deg);
}

.app-skip-link {
	position: absolute;
	left: -10000px;
	top: 0;
	z-index: 1000;
	background: var(--sa-surface);
	border: 1px solid var(--sa-primary);
	border-radius: 0 0 var(--sa-radius-sm) 0;
	padding: 10px 14px;
}

.app-skip-link:focus {
	left: 0;
}

.app-brand:focus-visible,
.app-account-link:focus-visible,
.app-account-login:focus-visible,
#menu-toggle-button:focus-visible,
.app-sidebar-close:focus-visible,
.app-nav-link:focus-visible,
.app-nav-summary:focus-visible,
.app-skip-link:focus-visible {
	outline: 2px solid var(--sa-primary);
	outline-offset: 2px;
}

.app-impersonation {
	background: #c62828;
	color: #fff;
	padding: 10px 18px;
	font-weight: 600;
	flex: 0 0 auto;
}

.app-impersonation a {
	color: #ffe082;
}

/* -------------------------------------------------------------------------
 * App shell
 * ---------------------------------------------------------------------- */
.app-shell {
	display: grid;
	grid-template-columns: var(--sa-sidebar-width) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 0;
}

.app-sidebar {
	position: sticky;
	top: var(--sa-header-height);
	box-sizing: border-box;
	height: 100%;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--sa-sidebar);
	border-right: 1px solid var(--sa-border);
	padding: 18px 14px 28px;
}

.app-sidebar-top {
	display: none;
	align-items: center;
	justify-content: flex-end;
	padding: 0 8px 10px;
}

.app-sidebar-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	background: var(--sa-surface);
	color: var(--sa-text);
	cursor: pointer;
	font-size: 20px;
}

.app-sidebar-backdrop {
	display: none;
}

.app-main {
	min-width: 0;
	min-height: 0;
	width: auto;
	height: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px 28px 40px;
}

/*
 * Reserve space for the fixed footer.  The higher specificity is intentional:
 * it keeps the footer clearance in place when the responsive rules below
 * override the shorthand padding.
 */
.app-body .app-sidebar,
.app-body .app-main {
	padding-bottom: calc(var(--sa-footer-height) + var(--sa-footer-gap));
}

.app-body .app-sidebar {
	scroll-padding-bottom: calc(var(--sa-footer-height) + var(--sa-footer-gap));
}

.app-body .app-main {
	scroll-padding-bottom: calc(var(--sa-footer-height) + var(--sa-footer-gap));
}

#main-content {
	width: auto;
}

/* -------------------------------------------------------------------------
 * Sidebar navigation
 * ---------------------------------------------------------------------- */
.app-nav-section + .app-nav-section {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--sa-border);
}

.app-nav-section-title {
	padding: 0 9px 7px;
	color: var(--sa-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.app-nav-section-summary {
	justify-content: space-between;
	padding: 0 9px 7px;
}

.app-nav-section-summary .app-nav-section-title {
	padding: 0;
}

.app-nav-section-summary .app-nav-chevron {
	flex-basis: 24px;
	width: 24px;
	height: 24px;
}

.app-nav-section-summary:hover .app-nav-section-title {
	color: var(--sa-primary);
}

.app-nav-list,
.app-nav-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-nav-link {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 8px 9px;
	color: var(--sa-text);
	border-radius: var(--sa-radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.app-nav-link:hover {
	background: var(--sa-surface-muted);
	color: var(--sa-primary);
	text-decoration: none;
}

.app-nav-link.is-current {
	background: var(--sa-primary-soft);
	color: var(--sa-primary-dark);
	font-weight: 650;
}

.app-nav-marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.app-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	opacity: 0.82;
}

.app-nav-icon img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.app-nav-group.is-active > .app-nav-details > .app-nav-summary > .app-nav-parent-link {
	color: var(--sa-primary-dark);
	font-weight: 650;
}

.app-nav-details > .app-nav-summary {
	display: flex;
	align-items: center;
	gap: 9px;
	list-style: none;
	cursor: pointer;
	border-radius: var(--sa-radius-sm);
}

.app-nav-details > .app-nav-summary::-webkit-details-marker {
	display: none;
}

.app-nav-details > .app-nav-summary:hover {
	background: var(--sa-surface-muted);
}

.app-nav-item-summary {
	padding: 8px 9px;
}

.app-nav-details > .app-nav-summary.app-nav-item-summary.is-current,
.app-nav-details > .app-nav-summary.app-nav-item-summary.is-current:hover {
	background: var(--sa-primary-soft);
}

.app-nav-details > .app-nav-summary > .app-nav-link {
	flex: 1 1 auto;
	padding: 0;
}

.app-nav-details > .app-nav-summary > .app-nav-link:hover {
	background: transparent;
}

.app-nav-details > .app-nav-summary > .app-nav-link.is-current {
	background: transparent;
	box-shadow: none;
}

.app-nav-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	margin-right: 1px;
	color: var(--sa-muted);
}

.app-nav-chevron::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.16s ease;
}

.app-nav-details[open] > .app-nav-summary .app-nav-chevron::before {
	transform: rotate(45deg);
}

.app-nav-children {
	margin: 3px 0 6px 25px;
	padding-left: 10px;
	border-left: 1px solid var(--sa-border);
}

.app-nav-children .app-nav-children {
	margin-left: 25px;
	padding-left: 10px;
}

.app-nav-children .app-nav-item-summary {
	padding: 6px 9px;
}

.app-nav-child-link {
	padding: 6px 9px;
	color: var(--sa-text);
	font-size: 0.86rem;
	font-weight: 450;
}

.app-nav-label {
	min-width: 0;
	overflow-wrap: anywhere;
}

.app-nav-child-link.is-current {
	color: var(--sa-primary-dark);
	background: var(--sa-primary-soft);
	font-weight: 600;
}

.app-nav-dot {
	flex: 0 0 5px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.45;
}

.app-nav-child-link.is-current .app-nav-dot {
	background: var(--sa-primary);
	opacity: 1;
}

.app-language-form {
	margin: 22px 8px 0;
	padding-top: 18px;
	border-top: 1px solid var(--sa-border);
}

.app-language-form select {
	width: 100%;
	font-size: 0.85rem;
}

.app-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* -------------------------------------------------------------------------
 * Main content, breadcrumbs and page heading
 * ---------------------------------------------------------------------- */
#mainwhere {
	margin: 0 0 14px;
	padding: 0 2px;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--sa-muted);
	font-size: 0.82rem;
	line-height: 1.4;
}

.app-breadcrumb-label {
	margin-right: 4px;
	color: var(--sa-muted-light);
}

.app-breadcrumbs a {
	color: var(--sa-muted);
}

.app-breadcrumbs a:hover {
	color: var(--sa-primary);
}

.app-breadcrumb-sep {
	padding: 0 5px;
	color: var(--sa-muted-light);
}

.app-breadcrumb-current {
	color: var(--sa-text);
	font-weight: 600;
}

#main {
	background: var(--sa-surface);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius);
	box-shadow: var(--sa-shadow-sm);
	padding: 24px;
	min-height: 600px;
}

.app-page-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--sa-border);
}

.app-page-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	background: var(--sa-primary-soft);
	border-radius: 11px;
}

.app-page-icon img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

#page-title {
	vertical-align: middle;
}

.app-page-title h2 {
	margin: 0;
	font-size: 1.55rem;
	letter-spacing: -0.01em;
}

#footer,
.app-footer {
	width: 100%;
	padding: 18px 24px;
	background: transparent;
	border-top: 1px solid var(--sa-border);
	color: var(--sa-muted);
	text-align: center;
	font-size: 0.78rem;
}

#footer a,
.app-footer a {
	color: var(--sa-muted);
	font-size: 1em;
	text-decoration: none;
}

#footer a:hover,
.app-footer a:hover {
	color: var(--sa-primary);
	text-decoration: underline;
}

/*
 * The application footer is an overlay.  Keep the legacy popup #footer in
 * normal flow by targeting only the footer emitted by the app shell.
 */
#footer.app-footer {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 95;
	box-sizing: border-box;
	width: auto;
	min-height: var(--sa-footer-height);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background: var(--sa-surface);
	box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.08);
}

/* -------------------------------------------------------------------------
 * Dashboard card tiles
 * ---------------------------------------------------------------------- */
.adminconfigtable {
	display: table;
	width: calc(100% + 24px);
	overflow: visible;
	border-collapse: separate;
	border-spacing: 12px;
	margin: 0 -12px;
}

.adminconfigtable td {
	width: auto;
	min-width: 140px;
	padding: 18px 12px;
	background: var(--sa-surface);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	color: var(--sa-muted);
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.adminconfigtable td:empty,
.adminconfigtable td:empty:hover {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	transform: none;
	padding: 0;
}

.adminconfigtable td:hover {
	border-color: #c7d2fe;
	box-shadow: 0 7px 20px rgba(79, 70, 229, 0.1);
	transform: translateY(-1px);
}

.adminconfigtable td a {
	display: block;
	color: var(--sa-text);
	font-weight: 600;
	text-decoration: none;
}

.adminconfigtable td a:hover {
	color: var(--sa-primary-dark);
	text-decoration: none;
}

.adminconfigtable td a img {
	display: block;
	width: 38px;
	height: 38px;
	margin: 0 auto 8px;
	object-fit: contain;
}

/* -------------------------------------------------------------------------
 * Tables
 * ---------------------------------------------------------------------- */
.summarytable {
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	margin: 0 0 18px;
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
}

.summarytable th {
	border: 0;
	border-bottom: 1px solid var(--sa-border);
	background: var(--sa-primary);
	padding: 9px 12px;
	color: #fff;
	font-size: 0.9em;
	font-weight: 600;
}

.summarytable th a {
	color: #fff;
	font-weight: 600;
}

.summarytable td {
	border: 0;
	border-bottom: 1px solid var(--sa-border);
	padding: 8px 12px;
}

.summarytable tr:last-child td {
	border-bottom: 0;
}

.fundraisingtable {
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	margin: 0 0 18px;
	overflow: hidden;
	font-size: 0.85em;
}

.fundraisingtable th {
	border: 0;
	border-bottom: 1px solid var(--sa-border);
	background: var(--sa-primary);
	padding: 8px 10px;
	color: #fff;
	font-weight: 600;
	text-align: left;
}

.fundraisingtable th a {
	color: #fff;
	font-weight: 500;
}

.fundraisingtable td {
	border: 0;
	border-bottom: 1px solid var(--sa-border);
	padding: 7px 10px;
}

.fundraisingtable tr:last-child td {
	border-bottom: 0;
}

.tablesorter-headerRow {
	background: transparent;
}

#registration_list {
	background: transparent;
}

/* -------------------------------------------------------------------------
 * Status messages
 * ---------------------------------------------------------------------- */
.complete {
	color: var(--sa-success);
	font-weight: 700;
}

.incomplete {
	color: var(--sa-danger);
	font-weight: 700;
}

.error {
	color: var(--sa-danger);
	font-weight: 600;
	border: 1px solid #fecaca;
	border-radius: var(--sa-radius-sm);
	background: var(--sa-danger-bg);
	padding: 9px 12px;
}

.notice {
	font-weight: 600;
	border: 1px solid #fde68a;
	border-radius: var(--sa-radius-sm);
	background: var(--sa-warning-bg);
	color: var(--sa-warning);
	padding: 9px 12px;
	font-size: 1em;
}

.happy {
	color: var(--sa-success);
	font-weight: 600;
	border: 1px solid #bbf7d0;
	border-radius: var(--sa-radius-sm);
	background: var(--sa-success-bg);
	padding: 9px 12px;
	font-size: 1em;
}

.caution {
	color: var(--sa-danger);
	font-weight: 700;
	font-size: 1em;
	text-decoration: none;
}

a.caution:hover {
	text-decoration: underline;
}

.requiredfield {
	color: var(--sa-danger);
	font-size: 0.8em;
	font-weight: 700;
}

.headertable td {
	vertical-align: baseline;
}

tr.externalaward {
	color: #3730a3;
	font-style: italic;
}

.safety_questions tr {
	width: 20px;
	overflow: scroll;
}

.safety_questions > * {
	font-size: 1.5em;
}

.fundraisingpending {
	color: #7f1d1d;
	border: 1px solid #fecaca;
	background: #fee2e2;
}

.fundraisingconfirmed {
	color: #78350f;
	border: 1px solid #fde68a;
	background: #fef3c7;
}

.fundraisingreceived {
	color: #14532d;
	border: 1px solid #bbf7d0;
	background: #dcfce7;
}

/* -------------------------------------------------------------------------
 * Floating notices
 * ---------------------------------------------------------------------- */
div.notice_area {
	left: 0;
	top: 0;
	width: 100%;
	position: fixed;
	z-index: 9999;
}

div.notice_area div {
	padding: 7px 12px;
	border: 0;
	text-align: center;
	position: relative;
	font-size: 1.3em;
	background-color: var(--sa-warning-bg);
}

div.notice_area div.notice {
	border: 0;
	color: var(--sa-warning);
	background-color: var(--sa-warning-bg);
}

div.notice_area div.error {
	border: 0;
	color: var(--sa-danger);
	background-color: var(--sa-danger-bg);
}

div.notice_area div.happy {
	border: 0;
	color: #fff;
	background-color: var(--sa-success);
}

/* -------------------------------------------------------------------------
 * Dialogs, tabs and misc legacy helpers
 * ---------------------------------------------------------------------- */
.date {
	width: 80px;
}

.ui-dialog {
	background: var(--sa-surface);
	border-radius: var(--sa-radius);
	box-shadow: var(--sa-shadow-md);
}

.ui-widget {
	font-family: var(--sa-font);
	font-size: 1em;
}

.ui-dialog .ui-dialog-titlebar {
	padding: 0.55em 0.9em;
	font-size: 1.05em;
	font-weight: 650;
	text-align: left;
	background: var(--sa-surface-muted);
	border: 0;
	border-bottom: 1px solid var(--sa-border);
	border-radius: var(--sa-radius) var(--sa-radius) 0 0;
}

.ui-tabs .ui-tabs-hide {
	display: none;
}

div.ui-tabs {
	background: none;
	border: none;
	padding: 0;
}

div.ui-tabs div.ui-tabs-panel {
	border: 1px solid var(--sa-border);
	border-radius: 0 var(--sa-radius-sm) var(--sa-radius-sm) var(--sa-radius-sm);
	background: var(--sa-surface);
}

div.ui-tabs ul.ui-tabs-nav {
	border: 0;
	background: none;
}

.ui-tabs .ui-tabs-nav li a {
	padding: 0.35em 0.7em;
	font-size: 1em;
	font-weight: 600;
}

.ui-datepicker {
	z-index: 1003;
}

.text-link {
	color: var(--sa-link);
	cursor: pointer;
	text-decoration: underline;
}

.text-link-selected {
	color: var(--sa-text-strong);
	cursor: default;
	font-weight: 700;
	text-decoration: none;
}

.text-link-disabled {
	color: var(--sa-muted-light);
	cursor: default;
	text-decoration: none;
}

.aligncenter {
	width: 100%;
	text-align: center;
}

.thematic-break {
	display: none;
}

#emptypopup {
	padding: 30px;
	text-align: center;
}

/* Legacy navigation classes kept for any older include that still uses them. */
#left {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	width: auto;
}

ul.mainnav {
	list-style: none;
	margin: 0;
	padding: 0;
	width: auto;
	background: transparent;
}

ul.mainnav li {
	display: block;
	border: 0;
}

ul.mainnav li a {
	display: block;
	padding: 8px 9px;
	color: var(--sa-text);
	background: transparent;
	border-radius: var(--sa-radius-sm);
	font: 500 0.9em/1.3 var(--sa-font);
	text-decoration: none;
}

ul.mainnav li a:hover {
	color: var(--sa-primary);
	background: var(--sa-surface-muted);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
	.app-account-email {
		display: none;
	}

	.app-main {
		padding: 20px 22px 36px;
	}
}

@media screen and (max-width: 960px) {
	#header {
		padding: 9px 16px;
	}

	#menu-toggle-button {
		display: inline-flex;
	}

	.app-brand-name {
		font-size: 1.05rem;
	}

	.app-shell {
		display: block;
		min-height: 0;
	}

	.app-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 90;
		width: min(86vw, 326px);
		height: 100vh;
		height: 100dvh;
		padding-top: 14px;
		border-right: 1px solid var(--sa-border);
		box-shadow: var(--sa-shadow-md);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform 0.22s ease, visibility 0.22s ease;
	}

	.app-sidebar.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.app-sidebar-close {
		display: inline-flex;
	}

	.app-sidebar-top {
		display: flex;
	}

	.app-sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 85;
		background: rgba(15, 23, 42, 0.45);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.app-sidebar-backdrop.is-visible {
		opacity: 1;
		visibility: visible;
	}

	body.nav-open {
		overflow: hidden;
	}

	.app-main {
		padding: 18px 16px 34px;
	}

	#main {
		padding: 18px;
		min-height: 70vh;
	}
}

@media screen and (max-width: 700px) {
	.app-account-role {
		display: none;
	}

	.app-account {
		gap: 6px;
	}

	.app-account-link {
		padding: 5px 8px;
	}

	.app-page-heading {
		align-items: flex-start;
	}

	.app-page-title h2 {
		font-size: 1.35rem;
	}

	.adminconfigtable {
		display: block;
		width: auto;
		margin: 0;
	}

	.adminconfigtable tbody {
		display: block;
	}

	.adminconfigtable tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.adminconfigtable td {
		min-width: 0;
	}

	.user-info-table td {
		display: block;
	}
}

@media screen and (max-width: 480px) {
	#header {
		gap: 10px;
		padding: 8px 12px;
	}

	#header img {
		height: 38px;
	}

	.app-brand-name {
		font-size: 0.98rem;
	}

	.app-account-link {
		font-size: 0.72rem;
	}

	.app-main {
		padding: 14px 10px 28px;
	}

	#main {
		padding: 14px;
		border-radius: var(--sa-radius-sm);
	}

	.app-page-icon {
		display: none;
	}

	.app-breadcrumb-label {
		display: none;
	}
}

@media screen and (max-width: 380px) {
	.adminconfigtable tr {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.app-body {
		display: block;
		height: auto;
		overflow: visible;
	}

	.app-shell {
		display: block;
		min-height: 0;
	}

	.app-sidebar {
		display: none;
	}

	.app-main {
		height: auto;
		overflow: visible;
	}

	.app-body .app-main {
		padding-bottom: 0;
	}

	#footer.app-footer {
		position: static;
		box-shadow: none;
	}
}
