/* ---------------------------------------------------------------------------
 * SFX Theme Layer
 * Modernises the look purely by css override. Loaded AFTER bootstrap.css and
 * style.css. No JSP markup, no Bootstrap upgrade, no SASS/Compass.
 * To remove it, drop the <link>.
 * ------------------------------------------------------------------------- */

:root {
	--sfx-accent:          #1c6ea4;
	--sfx-accent-hover:    #155a87;
	--sfx-accent-soft:     #eaf2f9;
	--sfx-accent-ring:     rgba(28, 110, 164, .25);

	--sfx-text:            #2f3742;
	--sfx-text-muted:      #6b7480;
	--sfx-heading:         #1b2430;

	--sfx-bg:              #f4f6f8;
	--sfx-surface:         #ffffff;
	--sfx-border:          #e2e6ea;
	--sfx-border-strong:   #cfd6dd;

	--sfx-danger:          #c0392b;
	--sfx-success:         #1e7e50;
	--sfx-warning:         #9a6300;

	--sfx-radius:          6px;
	--sfx-radius-lg:       10px;
	--sfx-shadow-sm:       0 1px 2px rgba(16, 24, 40, .05);
	--sfx-shadow:          0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
	--sfx-shadow-lg:       0 12px 32px rgba(16, 24, 40, .14);

	--sfx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	            "Helvetica Neue", Arial, sans-serif;
	--sfx-sidebar-w:       230px;
}

/* --- Base ---------------------------------------------------------------- */

html, body {
	font-family: var(--sfx-font);
	font-size: 14px;
	line-height: 1.55;
	color: var(--sfx-text);
	background: var(--sfx-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
	font-family: var(--sfx-font);
	color: var(--sfx-heading);
	font-weight: 600;
	letter-spacing: -.01em;
}

h1 { font-size: 1.65em; margin-bottom: .9em; }
h2 { font-size: 1.35em; }
h3 { font-size: 1.15em; }

a:link, a:visited, a:active, button.anchorlink {
	color: var(--sfx-accent);
	text-decoration: none;
}
a:hover { color: var(--sfx-accent-hover); text-decoration: underline; }

:focus-visible {
	outline: 2px solid var(--sfx-accent);
	outline-offset: 2px;
}

/* --- Shell: Header / Sidebar / Content / Footer --------------------------- */

/* The sidebar surface originally came from menu_bg.png (repeat-y on #container).
   Replaced by a gradient with hard stops: white column plus a 1px divider over
   the full height, without requiring any markup. */
div#container {
	background-color: var(--sfx-bg);
	background-image: linear-gradient(to right,
		var(--sfx-surface) 0,
		var(--sfx-surface) calc(var(--sfx-sidebar-w) - 1px),
		var(--sfx-border)   calc(var(--sfx-sidebar-w) - 1px),
		var(--sfx-border)   var(--sfx-sidebar-w),
		var(--sfx-bg)       var(--sfx-sidebar-w));
	background-repeat: repeat-y;
}

div#header {
	height: 56px;
	margin-bottom: 0;
	background: var(--sfx-surface);
	background-color: var(--sfx-surface);
	border-bottom: 1px solid var(--sfx-border);
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}

div#header h1 {
	font-size: 1.05em;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--sfx-heading);
	height: auto;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: .55em;
}

/* Padlock glyph as a product mark in front of the title */
div#header h1::before {
	content: "";
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--sfx-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 5a3 3 0 1 1 6 0v3H9V6zm3 8a1.6 1.6 0 0 1 .8 3v2.2a.8.8 0 0 1-1.6 0V17a1.6 1.6 0 0 1 .8-3z'/%3E%3C/svg%3E") center/22px no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 5a3 3 0 1 1 6 0v3H9V6zm3 8a1.6 1.6 0 0 1 .8 3v2.2a.8.8 0 0 1-1.6 0V17a1.6 1.6 0 0 1 .8-3z'/%3E%3C/svg%3E") center/22px no-repeat;
	flex: none;
}

div#header div#logo {
	float: none;
	width: 150px;
	height: 32px;
	margin: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: right center;
	opacity: .9;
}

div#content {
	margin-right: var(--sfx-sidebar-w);
	padding-bottom: 20em;
}

div#content #page {
	margin: 0 calc(-1 * var(--sfx-sidebar-w)) 0 auto;
	padding: 26px 20px 3em 20px;
}

div#footer {
	background: transparent;
	border-top: 1px solid var(--sfx-border);
	box-shadow: none;
	height: 2.6em;
	display: flex;
	align-items: center;
	justify-content: center;
}
div#footer p {
	font-size: .85em;
	color: var(--sfx-text-muted);
}

/* --- Sidebar ------------------------------------------------------------- */

#menu {
	padding: 18px 0;
	min-height: 100%;
}

#menu .nav > li {
	width: var(--sfx-sidebar-w);
	padding: 0 12px;
	color: var(--sfx-text);
}

#menu .nav > li > a {
	display: flex;
	align-items: center;
	gap: .6em;
	padding: 8px 12px;
	border-radius: var(--sfx-radius);
	color: var(--sfx-text);
	font-weight: 500;
	background: transparent;
	transition: background-color .12s ease, color .12s ease;
}

#menu .nav > li:hover { background: none; }

#menu .nav > li > a:hover {
	background: var(--sfx-accent-soft);
	color: var(--sfx-accent-hover);
	text-decoration: none;
}

#menu .nav > li > a .glyphicon {
	color: var(--sfx-text-muted);
	font-size: .95em;
	top: 0;
	width: 1.1em;
	text-align: center;
}
#menu .nav > li > a:hover .glyphicon { color: var(--sfx-accent); }

/* Active entry: applies as soon as the markup sets .active (not set today) */
#menu .nav > li.active > a,
#menu .nav > li > a[aria-current="page"] {
	background: var(--sfx-accent);
	color: #fff;
}
#menu .nav > li.active > a .glyphicon { color: #fff; }

/* First nav-header = user name, styled as an identity line rather than a section label */
#menu .nav > li.nav-header:first-child > a {
	font-size: .95em;
	font-weight: 600;
	text-transform: none;
	color: var(--sfx-heading);
	letter-spacing: 0;
	margin: 0 0 14px 0;
	padding: 0 12px 14px 12px;
	border-bottom: 1px solid var(--sfx-border);
	display: block;
}

#menu .nav > li.nav-header > a {
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--sfx-text-muted);
	padding: 0 12px;
	margin: 22px 0 6px 0;
}
#menu .nav > li.nav-header > a:hover { color: var(--sfx-text-muted); }

/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb {
	background: transparent;
	padding: 0;
	margin-bottom: 10px;
	border-radius: 0;
	font-size: .88em;
}
.breadcrumb > li + li:before {
	content: "/";
	color: var(--sfx-border-strong);
	padding: 0 .5em;
}
.breadcrumb > .active { color: var(--sfx-text-muted); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
	font-family: var(--sfx-font);
	font-weight: 500;
	border-radius: var(--sfx-radius);
	border: 1px solid transparent;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:focus, .btn:active:focus { box-shadow: 0 0 0 3px var(--sfx-accent-ring); outline: none; }
.btn:active, .btn.active { box-shadow: none; }

.btn-default,
a.btn-default:link, a.btn-default:visited {
	background: var(--sfx-surface);
	background-image: none;
	border-color: var(--sfx-border-strong);
	color: var(--sfx-text);
	box-shadow: var(--sfx-shadow-sm);
}
.btn-default:hover, .btn-default:focus,
a.btn-default:hover, a.btn-default:active {
	background: #f7f9fa;
	background-image: none;
	border-color: #b9c2cb;
	color: var(--sfx-heading);
}

.btn-primary,
.btn-primary-disabled,
.btn-active-primary.active {
	background: var(--sfx-accent);
	background-image: none;
	border-color: var(--sfx-accent);
	color: #fff;
	text-shadow: none;
	box-shadow: none;
	filter: none;
}
.btn-primary:hover, .btn-primary:focus,
.btn-active-primary.active:hover {
	background: var(--sfx-accent-hover);
	background-image: none;
	background-position: 0 0;
	border-color: var(--sfx-accent-hover);
	color: #fff;
}
.btn-primary-disabled, .btn-default-disabled { opacity: .55; }
.btn-default-disabled {
	background: var(--sfx-surface);
	background-image: none;
	border-color: var(--sfx-border-strong);
	color: var(--sfx-text-muted);
	text-shadow: none;
	filter: none;
}

.btn-danger  { background: var(--sfx-danger);  background-image: none; border-color: var(--sfx-danger);  }
.btn-success { background: var(--sfx-success); background-image: none; border-color: var(--sfx-success); }
.btn-danger:hover  { background: #a5322a; background-image: none; border-color: #a5322a; }
.btn-success:hover { background: #196a43; background-image: none; border-color: #196a43; }

/* Icon only buttons in table rows: subtle, and only prominent on row hover.
   <a> ONLY: this used to be required because the same cells held bootstrap-toggle
   widgets that also carried .btn-xs (div + label). Those are gone (see .sfx-switch
   below), the scoping to links is kept because it is the narrower and safer rule.
   :link/:visited are needed to beat a.btn-default:link (0,2,1). */
.table a.btn-xs,
.table a.btn-xs:link,
.table a.btn-xs:visited {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: var(--sfx-text-muted);
	padding: 4px 7px;
}
.table tr:hover a.btn-xs,
.table tr:hover a.btn-xs:link,
.table tr:hover a.btn-xs:visited {
	background: var(--sfx-surface);
	border-color: var(--sfx-border);
}
.table a.btn-xs:hover,
.table a.btn-xs:focus {
	background: var(--sfx-accent-soft);
	border-color: var(--sfx-accent-soft);
	color: var(--sfx-accent-hover);
}

/* --- Forms ----------------------------------------------------------- */

.form-control {
	border-radius: var(--sfx-radius);
	border-color: var(--sfx-border-strong);
	box-shadow: none;
	color: var(--sfx-text);
	transition: border-color .12s ease, box-shadow .12s ease;
}
.form-control:focus {
	border-color: var(--sfx-accent);
	box-shadow: 0 0 0 3px var(--sfx-accent-ring);
}
.form-control::placeholder { color: #9aa3ae; }

label, .control-label {
	font-weight: 600;
	font-size: .88em;
	color: var(--sfx-heading);
	margin-bottom: 4px;
}
label.simple { font-weight: 400; }

.form-group { margin-bottom: 16px; }

.input-group-addon {
	background: #f6f8fa;
	border-color: var(--sfx-border-strong);
	border-radius: var(--sfx-radius);
	color: var(--sfx-text-muted);
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn {
	border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
	border-top-left-radius: 0; border-bottom-left-radius: 0;
}

/* Class-less help text divs (e.g. "Max. file size is 100 MB" from
   fileupload.tag). :not([class]) targets exactly those and not .form_error. */
.form-group > .input-group + div:not([class]),
.form-group > .form-control + div:not([class]) {
	font-size: .85em;
	color: var(--sfx-text-muted);
	margin-top: 5px;
}

/* --- Dropdowns (bootstrap-select included) ----------------------------------- */

.dropdown-menu {
	border: 1px solid var(--sfx-border);
	border-radius: var(--sfx-radius);
	box-shadow: var(--sfx-shadow-lg);
	padding: 6px;
}
.dropdown-menu > li > a {
	border-radius: 4px;
	padding: 6px 10px;
	color: var(--sfx-text);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
	background: var(--sfx-accent-soft);
	background-image: none;
	color: var(--sfx-accent-hover);
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .selected > a {
	background: var(--sfx-accent);
	background-image: none;
	color: #fff;
}
.dropdown-menu .divider { background: var(--sfx-border); }
.bootstrap-select .dropdown-toggle:focus { outline: none; box-shadow: 0 0 0 3px var(--sfx-accent-ring); }
.caret { border-top-color: var(--sfx-text-muted); }

.controls.readonly {
	color: var(--sfx-text);
	background: #f6f8fa;
	border: 1px solid var(--sfx-border);
	border-radius: var(--sfx-radius);
	padding: 6px 10px;
}

.form_error { color: var(--sfx-danger); font-size: .88em; }

/* --- Switches -----------------------------------------------------------
 * Replaces the bootstrap-toggle plugin. That plugin built its two labels out
 * of .btn elements and fixed the widget width with javascript at init time,
 * so the .btn overrides of this theme cut the labels off. Here the native
 * checkbox is the switch: nothing to initialise, nothing to measure, and no
 * width that can stop fitting.
 *
 * Markup:
 *   <span class="sfx-switch">
 *     <input type="checkbox"/>
 *     <span class="sfx-switch-state" data-on="Ja" data-off="Nein"></span>
 *   </span>
 *
 * The state text sits in data-on/data-off so that it stays translatable in
 * the JSP; it is a sibling of the checkbox, not a child, because <form:checkbox>
 * emits a hidden companion field right after the checkbox.
 * -------------------------------------------------------------------------- */

.sfx-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	line-height: 1;
}

/* Used as a <label> where the switch carries its own caption instead of a
   Ja/Nein state. Bootstrap makes labels bold, which is wrong for a caption
   that sits next to the control rather than above it. */
label.sfx-switch {
	font-weight: normal;
	margin-bottom: 0;
	cursor: pointer;
}

.sfx-switch > input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	margin: 0;
	width: 42px;
	height: 24px;
	border: 1px solid var(--sfx-border-strong);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.sfx-switch > input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sfx-border-strong);
	box-shadow: var(--sfx-shadow-sm);
	transition: transform .15s ease, background .15s ease;
}

.sfx-switch > input[type="checkbox"]:checked {
	background: var(--sfx-accent);
	border-color: var(--sfx-accent);
}

.sfx-switch > input[type="checkbox"]:checked::after {
	background: #fff;
	transform: translateX(18px);
}

.sfx-switch > input[type="checkbox"]:focus,
.sfx-switch > input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--sfx-accent-ring);
}

/* the state in words as well, so that on/off is not carried by colour alone */
.sfx-switch-state {
	color: var(--sfx-text-muted);
	font-size: .92em;
	font-weight: 500;
}
.sfx-switch-state::after { content: attr(data-off); }
.sfx-switch > input[type="checkbox"]:checked ~ .sfx-switch-state { color: var(--sfx-text); }
.sfx-switch > input[type="checkbox"]:checked ~ .sfx-switch-state::after { content: attr(data-on); }

/* replaces data-onstyle of the plugin */
.sfx-switch--danger  > input[type="checkbox"]:checked { background: var(--sfx-danger);  border-color: var(--sfx-danger); }
.sfx-switch--warning > input[type="checkbox"]:checked { background: var(--sfx-warning); border-color: var(--sfx-warning); }
.sfx-switch--success > input[type="checkbox"]:checked { background: var(--sfx-success); border-color: var(--sfx-success); }

/* read only state indicator in table rows */
.sfx-switch > input[type="checkbox"]:disabled { cursor: default; }
.sfx-switch--sm > input[type="checkbox"] { width: 34px; height: 20px; border-radius: 10px; }
.sfx-switch--sm > input[type="checkbox"]::after { width: 14px; height: 14px; }
.sfx-switch--sm > input[type="checkbox"]:checked::after { transform: translateX(14px); }
.sfx-switch--sm > .sfx-switch-state { font-size: .85em; }

/* --- Tables ------------------------------------------------------------ */

.table {
	background: var(--sfx-surface);
	border: 1px solid var(--sfx-border);
	border-radius: var(--sfx-radius-lg);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	box-shadow: var(--sfx-shadow-sm);
	margin-bottom: 20px;
}

.table > thead > tr > th {
	background: #f8fafb;
	border-bottom: 1px solid var(--sfx-border);
	border-top: 0;
	font-size: .74em;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--sfx-text-muted);
	/* Keep Bootstrap's 8px horizontally: the admin lists have up to 12 columns
	   and already exceed the viewport width without the theme. Extra room only
	   vertically, that costs no width. */
	padding: 10px 8px;
	vertical-align: middle;
}

.table > tbody > tr > td {
	border-top: 1px solid #eef1f4;
	padding: 11px 8px;
	vertical-align: middle;
}
.table > tbody > tr:first-child > td { border-top: 0; }

.table-hover > tbody > tr:hover { background: #f7f9fb; }

.table > tbody > tr > td.type .glyphicon { color: var(--sfx-text-muted); }
.table > tbody > tr > td.folder a,
.table > tbody > tr > td.file a { font-weight: 500; color: var(--sfx-heading); }
.table > tbody > tr > td.folder a:hover,
.table > tbody > tr > td.file a:hover { color: var(--sfx-accent); text-decoration: none; }

/* Colour the folder icon so folders and files can be told apart at a glance */
.table > tbody > tr > td.type .glyphicon-folder-open,
.table > tbody > tr > td.type .glyphicon-folder-close { color: #c9932f; }

/* --- Panels -------------------------------------------------------------- */

.panel {
	background: var(--sfx-surface);
	border: 1px solid var(--sfx-border);
	border-radius: var(--sfx-radius-lg);
	box-shadow: var(--sfx-shadow-sm);
}
.panel-default > .panel-heading {
	background: #f8fafb;
	background-image: none;
	border-bottom: 1px solid var(--sfx-border);
	border-radius: calc(var(--sfx-radius-lg) - 1px) calc(var(--sfx-radius-lg) - 1px) 0 0;
	color: var(--sfx-heading);
	font-weight: 600;
	padding: 12px 16px;
}
.panel-body { padding: 18px 16px; }
.panel-footer {
	background: #f8fafb;
	border-top: 1px solid var(--sfx-border);
	border-radius: 0 0 calc(var(--sfx-radius-lg) - 1px) calc(var(--sfx-radius-lg) - 1px);
	color: var(--sfx-text-muted);
	font-size: .85em;
	padding: 10px 16px;
}
.panel-title { font-size: 1em; font-weight: 600; }

/* --- Modals -------------------------------------------------------------- */

.modal-content {
	border: 0;
	border-radius: var(--sfx-radius-lg);
	box-shadow: var(--sfx-shadow-lg);
}
.modal-header {
	border-bottom: 1px solid var(--sfx-border);
	padding: 16px 20px;
}
.modal-title { font-size: 1.05em; font-weight: 600; color: var(--sfx-heading); }
.modal-body { padding: 20px; }
.modal-footer {
	border-top: 1px solid var(--sfx-border);
	background: #fafbfc;
	border-radius: 0 0 var(--sfx-radius-lg) var(--sfx-radius-lg);
	padding: 14px 20px;
}
.modal-backdrop.in { opacity: .4; }
.modal-header .close {
	opacity: .45;
	font-size: 24px;
	font-weight: 400;
	text-shadow: none;
}
.modal-header .close:hover { opacity: .8; }

/* --- Alerts -------------------------------------------------------------- */

.alert {
	border-radius: var(--sfx-radius);
	border-width: 1px;
	border-left-width: 3px;
	padding: 12px 14px;
	font-size: .93em;
	box-shadow: none;
	text-shadow: none;
}
.alert-danger  { background: #fdf3f2; border-color: #f0d4d0; border-left-color: var(--sfx-danger);  color: #8f2b21; }
.alert-warning { background: #fdf8ec; border-color: #f0e3c4; border-left-color: var(--sfx-warning); color: #7a4e00; }
.alert-success { background: #f0f8f4; border-color: #cfe7da; border-left-color: var(--sfx-success); color: #17603d; }
.alert-info    { background: var(--sfx-accent-soft); border-color: #cfe0ee; border-left-color: var(--sfx-accent); color: #17567f; }

/* --- Login / Plain-Layout ------------------------------------------------ */

div#plain_page_wrapper {
	background: var(--sfx-bg);
	background-image:
		radial-gradient(900px 480px at 50% -8%, #e5edf5 0%, rgba(229,237,245,0) 70%);
}

#plain_page_content { padding-top: 92px; }

#plain_page_content .loginpanel,
#error_main .errorpanel {
	width: 400px;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .05);
	border: 1px solid var(--sfx-border);
	overflow: hidden;
}

#plain_page_content .loginpanel .panel-heading {
	background: var(--sfx-surface);
	border-bottom: 0;
	padding: 26px 26px 4px 26px;
	font-size: 1.25em;
	font-weight: 600;
	text-align: center;
}
#plain_page_content .loginpanel .panel-heading .glyphicon {
	display: block;
	margin: 0 auto 10px auto;
	width: 42px;
	height: 42px;
	line-height: 42px;
	border-radius: 11px;
	background: var(--sfx-accent-soft);
	color: var(--sfx-accent);
	font-size: 18px;
}
#plain_page_content .loginpanel .panel-body { padding: 20px 26px 24px 26px; }

#plain_page_content .loginpanel .form-group.last {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	margin-bottom: 0;
}
#plain_page_content .loginpanel .form-group.last .btn { padding: 7px 16px; font-size: 14px; }
#plain_page_content .loginpanel .form-group.last .btn-primary { flex: 1 1 auto; }
#plain_page_content .loginpanel .form-group.last .right {
	float: none;
	margin-left: auto;
	font-size: .87em;
	white-space: nowrap;
}

/* --- Misc ------------------------------------------------------------ */

.pageContent { padding-top: 18px; }
.pageControls .btn + .btn, .pageControls span + span { margin-left: 4px; }

.tooltip-inner {
	background: #1b2430;
	border-radius: var(--sfx-radius);
	padding: 6px 9px;
	font-size: .85em;
}
.tooltip.top .tooltip-arrow { border-top-color: #1b2430; }

#transferDetailsDialog #shareURL {
	border: 1px solid var(--sfx-border-strong);
	border-radius: var(--sfx-radius);
	padding: 8px 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
	background: #f6f8fa;
}

/* --- Responsive: below 900px the sidebar wraps to the top --------------------- */

@media (max-width: 900px) {
	/* The sidebar now sits on top, so the white column has to go */
	div#container { background-image: none; }
	div#content { margin-right: 0; }
	div#content #menu { float: none; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--sfx-border); }
	div#content #page { float: none; width: auto; margin: 0; padding: 18px 16px 3em 16px; }
	#menu .nav { display: flex; flex-wrap: wrap; }
	#menu .nav > li { width: auto; }
	#menu .nav > li.nav-header { width: 100%; }
	#menu .nav > li.nav-header:first-child > a { margin-bottom: 8px; padding-bottom: 8px; }
	#menu .nav > li.nav-header > a { margin: 10px 0 4px 0; }
	div#header h1 { font-size: .95em; }
	div#header div#logo { width: 118px; }
	.searchForm, .pageControls { float: none !important; }
	.pageControls { margin-top: 10px; }
}
