/*
//============================================================+
// File name   : default.css
// Begin       : 2004-04-27
// Last Update : 2026-10-13
//
// Description : Default theme for the public area.
//               Direction follows the html dir attribute
//               (logical properties), so the RTL stylesheet
//               can reuse this file.
//
// License:
//    Copyright (C) 2004-2026 Nicola Asuni - Tecnick.com LTD
//    See LICENSE file for more information.
//============================================================+
*/

:root {
	--bg: #eef2f7;
	--surface: #ffffff;
	--ink: #0f172a;
	--muted: #475569;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;
	--brand: #1d4ed8;
	--brand-dark: #1e3a8a;
	--header: #0c2340;
	--header-2: #1e3a8a;
	--ok: #15803d;
	--ok-bg: #ecfdf3;
	--danger: #b91c1c;
	--danger-bg: #fef2f2;
	--warn: #b45309;
	--warn-bg: #fffbeb;
	--info: #1e40af;
	--info-bg: #eff6ff;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.06);
	--header-h: 56px;
	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
}

::selection {
	background: #bfdbfe;
	color: var(--ink);
}

a {
	color: var(--brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:visited {
	color: #1e40af;
}

a:hover {
	color: #1e3a8a;
}

img.tcecode,
.tcecontentbox img,
.tceformbox img,
div.preview img,
ul.question img,
ol.question img {
	max-width: 100%;
	height: auto;
	border: 0;
}

/* skip / jump links stay off-screen until keyboard focus */
a.white,
.skiplink {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--ink);
	color: #ffffff;
	text-decoration: underline;
}

a.white:focus,
.skiplink:focus {
	inset-inline-start: 0;
}

a.white:visited,
a.white:hover,
.skiplink:visited,
.skiplink:hover {
	color: #ffffff;
}

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

.hidden,
iframe.menu {
	display: none;
	visibility: hidden;
}

/* ---------- header + menu ---------- */

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--header-h);
	padding: 0 18px;
	background: linear-gradient(100deg, var(--header) 0%, var(--header-2) 100%);
	color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 50;
}

.header div.left {
	flex: 0 0 124px;
	width: 124px;
	height: 32px;
	margin: 0;
	background-color: transparent;
	background-image: url(../../images/logo_tcexam_118x25.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.header div.right {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	background: transparent;
	text-align: end;
}

.header label.timerlabel,
label.timerlabel {
	color: #dbeafe;
	font-weight: 600;
	margin-inline-end: 6px;
}

.header div.right input {
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: end;
}

.header div.right input:focus,
.header div.right input:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.scrollmenu {
	position: sticky;
	top: var(--header-h);
	z-index: 40;
	width: 100%;
	margin: 0;
	background: #102a4c;
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 600;
}

ul.menu {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 2px;
	width: 100%;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

.scrollmenu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.menu > li {
	position: relative;
	float: none;
	height: auto;
	line-height: 1.2;
}

ul.menu li a,
ul.menu li span.active {
	display: block;
	color: #ffffff;
	text-decoration: none;
}

ul.menu > li > a,
ul.menu > li > span.active {
	margin-top: 8px;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px 8px 0 0;
}

ul.menu > li > a:hover,
ul.menu > li > a:focus,
ul.menu > li.CSStoHighlight > a {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	text-decoration: none;
}

ul.menu > li > a.active,
ul.menu > li > span.active {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	box-shadow: inset 0 -2px 0 #93c5fd;
	text-decoration: none;
}

ul.menu li > ul {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 30;
	min-width: 220px;
	width: max-content;
	max-width: min(320px, 80vw);
	margin: 0;
	padding: 6px;
	list-style: none;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

ul.menu li:hover > ul,
ul.menu *:focus + ul,
ul.menu ul.CSStoShow {
	display: flex;
}

ul.menu ul li {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	position: relative;
}

ul.menu ul li a,
ul.menu ul li span.active,
ul.menu ul li *.active {
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	color: var(--ink);
	background: transparent;
	line-height: 1.35;
	white-space: nowrap;
	text-decoration: none;
}

ul.menu ul li a:hover,
ul.menu ul li a:focus,
ul.menu ul li *.active {
	background: var(--info-bg);
	color: var(--brand-dark);
}

ul.menu ul li:hover > ul,
ul.menu ul *:focus + ul {
	top: 0;
	inset-inline-start: calc(100% - 6px);
}

/* ---------- page canvas ---------- */

main.body,
.body {
	clear: both;
	width: auto;
	max-width: 1280px;
	margin: 0 auto;
	padding: 22px 20px 40px;
}

h1,
h2,
div.title,
div.popuptitle {
	width: auto;
	margin: 20px 0 12px;
	padding: 0;
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

main > h1:first-child {
	margin-top: 0;
}

main:has(#form_login) > h1 {
	text-align: center;
}

h1,
div.title {
	font-size: 1.55rem;
}

h2,
div.popuptitle {
	font-size: 1.2rem;
}

div.container,
div.popupcontainer,
div.content {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: start;
}

div.tceformbox,
div.tcecontentbox,
.tcecontentbox,
div.contentbox {
	width: 100%;
	margin: 0 0 16px;
	padding: 16px 18px;
	overflow: auto;
	text-align: start;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

div.tceformbox {
	text-align: initial;
}

.tceformbox:has(#form_login) {
	max-width: 440px;
	margin: 28px auto 16px;
	padding: 28px 24px 18px;
}

div.preview {
	margin: 8px 0;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
}

div.pagehelp {
	width: 100%;
	margin: 16px 0 0;
	padding: 12px 14px;
	background: var(--info-bg);
	border: 1px solid #dbeafe;
	border-inline-start: 4px solid var(--brand);
	border-radius: 10px;
	color: #1e3a8a;
	font-size: 0.92rem;
	line-height: 1.55;
	text-align: start;
}

div.error,
div.message,
div.warning,
div.confirmbox {
	width: 100%;
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
}

div.error {
	background: var(--danger-bg);
	color: #991b1b;
	border: 1px solid #fecaca;
	border-inline-start: 4px solid var(--danger);
}

div.message {
	background: var(--info-bg);
	color: var(--info);
	border: 1px solid #bfdbfe;
	border-inline-start: 4px solid var(--brand);
}

div.warning,
div.confirmbox {
	background: var(--ok-bg);
	color: #166534;
	border: 1px solid #bbf7d0;
	border-inline-start: 4px solid var(--ok);
	text-align: start;
}

div.confirmbox {
	text-align: center;
}

/* ---------- forms ---------- */

div.row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px 12px;
	clear: both;
	margin: 0;
	padding: 7px 2px;
	text-align: start;
}

div.row::after,
div.rowl::after {
	content: "";
	display: block;
	clear: both;
}

div.row span.label,
div.row fieldset span.label {
	flex: 0 0 28%;
	max-width: 28%;
	float: none;
	padding-top: 8px;
	text-align: end;
	font-size: 0.92rem;
	font-weight: 650;
	color: #334155;
}

div.row span.formw,
div.row div.formw,
div.row span.value,
div.row fieldset span.formw {
	flex: 1 1 60%;
	min-width: 0;
	float: none;
	text-align: start;
	font-size: 0.95rem;
}

div.row span.value {
	padding-top: 8px;
	font-weight: 700;
}

div.row span.left,
div.row span.right {
	flex: 1 1 45%;
	float: none;
	text-align: start;
	font-size: 0.95rem;
}

div.row fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px 12px;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

fieldset.noborder,
fieldset.answergroup {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

fieldset.answergroup > legend {
	padding: 0;
}

#form_login > div.row {
	justify-content: flex-end;
}

#form_login .row > span.formw:only-child {
	flex: 1 1 100%;
	max-width: 100%;
	text-align: end;
}

.tceformbox:has(#form_login) input[type="text"],
.tceformbox:has(#form_login) input[type="password"] {
	width: 100%;
	max-width: 100%;
}

div.rowl {
	clear: both;
	overflow: auto;
	padding: 6px 2px;
	text-align: start;
}

div.spacer {
	clear: both;
}

div.float {
	float: inline-start;
	padding: 10px;
}

label {
	cursor: pointer;
}

input,
select,
textarea,
button {
	font-family: inherit;
	font-size: 0.95rem;
	color: inherit;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="file"],
select,
textarea {
	max-width: 100%;
	padding: 7px 10px;
	background: #ffffff;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
}

textarea,
textarea.answertext {
	width: 100%;
	min-height: 7rem;
	line-height: 1.45;
}

select[multiple] {
	min-height: 8rem;
}

input[type="checkbox"],
input[type="radio"] {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--brand);
	vertical-align: middle;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
input[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.disabled,
.disablednum,
.disablednumg {
	background: #f1f5f9 !important;
	color: #334155 !important;
}

.disablednum,
.disablednumg,
td.numeric,
div.smalldigit input {
	text-align: end !important;
	font-variant-numeric: tabular-nums;
}

.disablednumg {
	color: #166534 !important;
}

div.smalldigit input {
	width: 4.5rem;
	max-width: 4.5rem;
	padding: 4px 6px;
	background: #ffffff;
	border: 1px solid var(--line-strong);
}

span.labeldesc {
	display: inline-block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.8rem;
}

abbr.required,
.required {
	color: var(--danger);
	border: 0;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- buttons ---------- */

input[type="submit"],
input[type="button"],
input[type="reset"],
button.xmlbutton,
.xmlbutton,
a.xmlbutton,
a.buttongreen,
a.buttonblue,
a.buttonred,
a.minibutton,
div.userbar a.logoutbutton,
div.userbar a.loginbutton {
	appearance: none;
	display: inline-block;
	width: auto;
	margin: 2px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--brand);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.xmlbutton:hover,
a.xmlbutton:hover,
button.xmlbutton:hover {
	background: #1e40af;
	color: #ffffff;
	text-decoration: none;
}

a.buttongreen:link,
a.buttongreen:visited,
#confirmanswer {
	background: var(--ok);
	border-color: #166534;
	color: #ffffff;
}

a.buttongreen:hover,
#confirmanswer:hover {
	background: #166534;
	color: #ffffff;
	text-decoration: none;
}

a.buttonblue:link,
a.buttonblue:visited {
	background: var(--brand);
	border-color: #1e40af;
	color: #ffffff;
}

a.buttonblue:hover {
	background: #1e40af;
	color: #ffffff;
	text-decoration: none;
}

a.buttonred:link,
a.buttonred:visited,
a.deletebutton:link,
a.deletebutton:visited,
input[type="submit"][name="forcedelete"],
input[type="submit"][id="forcedelete"] {
	background: var(--danger);
	border-color: #991b1b;
	color: #ffffff;
}

a.buttonred:hover,
a.deletebutton:hover,
input[type="submit"][name="forcedelete"]:hover {
	background: #991b1b;
	color: #ffffff;
	text-decoration: none;
}

#prevquestion,
#nextquestion {
	background: #ffffff;
	color: var(--brand-dark);
	border-color: var(--line-strong);
}

#prevquestion:hover,
#nextquestion:hover {
	background: var(--info-bg);
	color: var(--brand-dark);
}

div.navlink {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	font-weight: 650;
}

a.minibutton:link,
a.minibutton:visited,
a.minibutton:hover {
	background: #ffffff;
	border: 1px solid var(--line-strong);
	color: var(--ink);
	font-size: 0.75rem;
	padding: 2px 6px;
}

a.minibutton span {
	background: #fde68a;
	color: #1f2937;
	padding: 0 4px;
	text-decoration: none;
}

.tcecodebtn {
	appearance: none;
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 2px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	vertical-align: middle;
	cursor: pointer;
}

.tcecodebtn:hover {
	background: #e2e8f0;
}

img.button {
	border: 0;
	border-radius: 4px;
	vertical-align: middle;
}

.linkbtn {
	appearance: none;
	display: inline;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brand);
	font: inherit;
	text-align: start;
	text-decoration: underline;
	cursor: pointer;
}

.tcecodecolorwrap {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

.tcecodecolor {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

/* ---------- tables, lists, questions ---------- */

table.userselect,
table.testlist,
table.filemanager,
main table:not([role="presentation"]) {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 0.92rem;
}

table.userselect th,
table.userselect td,
table.testlist th,
table.testlist td,
table.filemanager th,
table.filemanager td,
main table:not([role="presentation"]) th,
main table:not([role="presentation"]) td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: start;
	vertical-align: top;
}

table.userselect th,
table.testlist th,
table.filemanager th,
main table:not([role="presentation"]) th {
	background: #f8fafc;
	color: #1e293b;
	font-weight: 700;
}

table.userselect tr:last-child td,
table.testlist tr:last-child td,
table.filemanager tr:last-child td {
	border-bottom: 0;
}

table[style*="808080"] {
	border: 1px solid var(--line) !important;
	border-radius: 12px;
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
}

td.numeric {
	font-family: var(--mono);
	text-align: end;
}

td.questionid {
	white-space: nowrap;
}

ol.qlist {
	margin: 8px 0 0;
	padding-inline-start: 1.6rem;
}

ol.qlist li {
	margin: 4px 0;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 8px;
}

ol.qlist li.selected {
	background: var(--info-bg);
	border-color: #bfdbfe;
	font-weight: 650;
}

ol.testlist li {
	margin: 0 0 12px;
}

ul.question,
ol.question {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.question > li,
ol.question > li {
	margin: 14px 0;
	padding: 2px 0 12px;
	border-bottom: 1px solid var(--line);
}

ul.question li div.paddingleft {
	padding-inline-start: 30px;
}

ol.answer,
ul.answer {
	margin: 8px 0;
	padding-inline-start: 1.6rem;
}

ol.answer li,
ul.answer li {
	margin: 6px 0;
	padding: 6px 8px;
	border-radius: 8px;
}

ol.answer li:hover,
ul.answer li:hover {
	background: #f8fafc;
}

ol.answer_inline,
ol.answer_inline li {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.answer li.comment,
.explanation {
	color: #9f1239;
	font-size: 0.92rem;
	font-style: normal;
	text-decoration: none;
}

.testcomment {
	color: var(--muted);
}

abbr.offbox,
abbr.onbox,
abbr.okbox,
abbr.nobox,
abbr.requiredonbox,
abbr.requiredoffbox {
	display: inline-block;
	min-width: 1.4rem;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.75rem;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
}

abbr.offbox {
	background: #e2e8f0;
	color: #334155;
}

abbr.onbox {
	background: #dbeafe;
	color: #1e3a8a;
}

abbr.okbox,
.status_pass {
	background: #dcfce7;
	color: #14532d;
}

abbr.nobox,
.status_fail {
	background: #fee2e2;
	color: #7f1d1d;
}

abbr.requiredonbox,
.status_warn {
	background: #fef3c7;
	color: #78350f;
}

abbr.requiredoffbox {
	background: #ffffff;
	color: var(--brand);
	border: 1px solid #bfdbfe;
}

pre,
div.tcecodepre {
	overflow: auto;
	white-space: pre-wrap;
}

pre {
	margin: 8px 0;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-family: var(--mono);
	font-size: 0.88rem;
}

hr.delimiter,
hr.dashed {
	clear: both;
	width: 100%;
	height: 0;
	margin: 18px 0;
	border: 0;
	border-top: 1px solid var(--line);
	background: transparent;
}

hr.dashed {
	border-top-style: dashed;
}

div.pageselector {
	width: auto;
	margin: 12px 0;
	text-align: center;
}

div.pageselector a {
	display: inline-block;
	min-width: 2rem;
	margin: 2px;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	text-decoration: none;
}

div.pageselector a:hover {
	border-color: #93c5fd;
	background: var(--info-bg);
	text-decoration: none;
}

ul.credits,
ul.log li {
	color: var(--muted);
	font-size: 0.92rem;
}

ul.credits {
	margin: 8px 0;
	padding-inline-start: 1.2rem;
	text-align: start;
}

div.creditslogos,
div.minibutton {
	clear: both;
	margin: 0;
	padding: 8px 16px;
	text-align: center;
	color: var(--muted);
	font-size: 0.8rem;
}

div.minibutton span.copyright,
div.minibutton span.copyright a {
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	font-size: inherit;
	text-decoration: none;
}

div.minibutton span.copyright a:hover {
	text-decoration: underline;
}

span.accesskey {
	font-size: 0.75em;
	font-weight: 500;
	text-decoration: none;
	vertical-align: super;
}

/* ---------- footer / user bar ---------- */

footer.footer {
	margin-top: 12px;
}

div.userbar {
	clear: both;
	margin: 0;
	padding: 10px 18px;
	background: #0f172a;
	color: #e2e8f0;
	font-size: 0.92rem;
	text-align: end;
	white-space: nowrap;
}

div.userbar a.logoutbutton:link,
div.userbar a.logoutbutton:visited {
	margin-inline-start: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ef4444;
	color: #ffffff;
}

div.userbar a.logoutbutton:hover,
div.userbar a.logoutbutton:focus {
	background: #dc2626;
	color: #ffffff;
}

div.userbar a.loginbutton:link,
div.userbar a.loginbutton:visited,
div.userbar a.loginbutton:hover,
div.userbar a.loginbutton:focus {
	margin-inline-start: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #22c55e;
	color: #052e16;
}

span.langselector {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #ffffff;
	font-family: inherit;
	font-size: 0;
	color: var(--ink);
}

span.langselector a,
span.langselector span.selected {
	display: inline-block;
	padding: 2px 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

span.langselector a:hover,
span.langselector a:focus {
	background: var(--info-bg);
	color: var(--brand-dark);
	text-decoration: none;
}

span.langselector span.selected {
	background: var(--brand);
	color: #ffffff;
}

/* ---------- responsive + print ---------- */

@media (max-width: 800px) {
	:root {
		--header-h: 52px;
	}

	.header {
		padding: 0 12px;
	}

	.header div.right input {
		width: 100%;
		font-size: 0.78rem;
	}

	main.body,
	.body {
		padding: 16px 12px 32px;
	}

	h1,
	div.title {
		font-size: 1.3rem;
	}

	div.row span.label,
	div.row fieldset span.label,
	div.row span.formw,
	div.row div.formw,
	div.row span.value,
	div.row fieldset span.formw,
	div.row span.left,
	div.row span.right {
		flex: 1 1 100%;
		max-width: 100%;
		text-align: start;
	}

	div.userbar {
		white-space: normal;
	}

	ul.menu {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 8px;
	}

	ul.menu > li > a,
	ul.menu > li > span.active {
		margin-top: 0;
		border-radius: 8px;
	}

	ul.menu li > ul {
		position: static;
		width: 100%;
		max-width: none;
		box-shadow: none;
	}

	ul.menu ul li:hover > ul,
	ul.menu ul *:focus + ul {
		inset-inline-start: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

@media print {
	.header,
	.scrollmenu,
	footer.footer,
	.skiplink,
	div.userbar,
	div.minibutton,
	div.navlink {
		display: none !important;
	}

	body,
	main.body,
	.body {
		background: #ffffff;
		max-width: none;
		padding: 0;
	}

	div.tceformbox,
	div.tcecontentbox,
	.tcecontentbox,
	div.contentbox {
		box-shadow: none;
		border-color: #cccccc;
	}
}
