/* Version 3.0: one work-focused shell for every protected portal page. */
body.rts-managed-page {
	background: #f3f6f5;
}

body.rts-managed-page .entry-content,
body.rts-managed-page .wp-block-post-content,
body.rts-managed-page .entry-content > .rts-site-shell {
	width: 100%;
	max-width: none;
}

.rts-site-shell {
	--rts-ui-line: #d8e1dd;
	--rts-ui-muted: #586b65;
	width: min(100%, 1640px);
	max-width: none;
	min-height: min(860px, 90vh);
	margin: 0 auto 32px;
	border: 1px solid var(--rts-ui-line);
	border-radius: 0;
	background: var(--rts-bg);
	box-shadow: none;
	font-family: Arial, "Segoe UI", sans-serif;
}

.rts-site-header {
	display: grid;
	grid-template-columns: minmax(185px, 220px) minmax(120px, 1fr) 152px auto;
	align-items: center;
	gap: 22px;
	min-height: 92px;
	padding: 12px 24px;
	border-bottom: 1px solid var(--rts-ui-line);
	background: var(--rts-surface);
}

.rts-site-brand {
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
}

.rts-site-brand .rts-logo {
	width: 42px;
	height: 42px;
}

.rts-site-brand strong {
	font-size: 16px;
	line-height: 1.2;
}

.rts-site-brand small,
.rts-header-context small {
	color: var(--rts-ui-muted);
	font-size: 11px;
	font-weight: 600;
	text-transform: none;
}

.rts-header-context {
	min-width: 0;
	padding-left: 18px;
	border-left: 1px solid var(--rts-ui-line);
}

.rts-header-context small,
.rts-header-context strong {
	display: block;
}

.rts-header-context strong {
	margin-top: 4px;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.rts-header-art {
	width: 152px;
	height: 60px;
	background: url('../images/header-papierwirbel.webp') center / cover no-repeat;
	border: 1px solid var(--rts-ui-line);
	border-radius: 3px;
}

.rts-site-actions {
	width: auto;
	max-width: none;
	flex-direction: row;
	align-items: center;
	gap: 16px;
}

.rts-site-actions .rts-clock {
	width: 270px;
	padding: 4px 0;
	border: 0;
	background: transparent;
	font-size: 10px;
}

.rts-site-actions .rts-clock-row {
	grid-template-columns: 55px 105px minmax(0, 1fr);
	gap: 3px;
}

.rts-site-actions .rts-clock-row + .rts-clock-row {
	margin-top: 2px;
	padding-top: 2px;
}

.rts-site-actions .rts-user-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 120px;
	padding: 0 0 0 16px;
	border-left: 1px solid var(--rts-ui-line);
	background: transparent;
	font-size: 12px;
}

.rts-user-menu span {
	font-weight: 700;
}

.rts-app-frame {
	display: grid;
	grid-template-columns: 222px minmax(0, 1fr);
	min-height: 680px;
}

.rts-site-sidebar {
	min-width: 0;
	padding: 22px 13px 30px;
	border-right: 1px solid var(--rts-ui-line);
	background: #fbfdfc;
}

.rts-sidebar-title {
	padding: 0 12px 15px;
	color: #354740;
	font-size: 15px;
	font-weight: 700;
}

.rts-site-nav {
	display: block;
	padding: 0;
	background: transparent;
	overflow: visible;
	white-space: normal;
}

.rts-nav-group {
	margin-bottom: 20px;
}

.rts-nav-group-title {
	display: block;
	padding: 0 12px 7px;
	color: #697b73;
	font-size: 11px;
	font-weight: 700;
}

.rts-site-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	margin: 1px 0;
	padding: 7px 11px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #30423b !important;
	font-size: 13px;
	font-weight: 500;
	white-space: normal;
}

.rts-site-nav a .dashicons {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	font-size: 19px;
}

.rts-site-nav a:hover,
.rts-site-nav a:focus-visible {
	border-color: color-mix(in srgb, var(--rts-primary) 24%, #fff);
	background: color-mix(in srgb, var(--rts-primary) 7%, #fff);
}

.rts-site-nav a.is-active {
	border-color: color-mix(in srgb, var(--rts-primary) 30%, #fff);
	background: color-mix(in srgb, var(--rts-primary) 12%, #fff);
	color: var(--rts-primary) !important;
	font-weight: 700;
}

.rts-content-column {
	min-width: 0;
}

.rts-mobile-menu {
	display: none;
}

.rts-site-content {
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 22px clamp(18px, 3vw, 40px) 64px;
}

.rts-site-content > .rts-wrap {
	padding-bottom: 30px;
}

.rts-page-head {
	align-items: center;
	margin: 0 0 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rts-ui-line);
}

.rts-page-head h1,
.rts-welcome h1 {
	font-size: 24px;
	line-height: 1.25;
}

.rts-page-head p,
.rts-welcome p {
	color: var(--rts-ui-muted);
	font-size: 13px;
}

.rts-heading-group {
	gap: 10px;
}

.rts-heading-group > .rts-logo {
	display: none;
}

.rts-kicker {
	color: #5d7669;
	font-size: 11px;
}

.rts-welcome {
	padding: 8px 0 20px;
	border-bottom: 1px solid var(--rts-ui-line);
}

.rts-welcome h1 {
	margin: 4px 0 7px;
}

.rts-launch {
	max-width: 860px;
	padding-top: 24px;
}

.rts-launch-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.rts-launch-head h2 {
	margin: 0;
	font-size: 17px;
}

.rts-launch-head a {
	font-size: 13px;
}

.rts-launch-list {
	border-top: 1px solid var(--rts-ui-line);
}

.rts-launch-list a {
	display: grid;
	grid-template-columns: 25px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 13px;
	min-height: 67px;
	padding: 11px 4px;
	border-bottom: 1px solid var(--rts-ui-line);
	color: var(--rts-text) !important;
	text-decoration: none !important;
}

.rts-launch-list a:hover {
	background: color-mix(in srgb, var(--rts-primary) 8%, #fff);
}

.rts-launch-list a > .dashicons:first-child {
	color: var(--rts-primary);
}

.rts-launch-list strong,
.rts-launch-list small {
	display: block;
}

.rts-launch-list strong {
	font-size: 14px;
}

.rts-launch-list small {
	margin-top: 2px;
	color: var(--rts-ui-muted);
	font-size: 12px;
}

.rts-site-shell .rts-panel {
	margin: 0 0 20px;
	padding: 17px 0 22px;
	border: 0;
	border-bottom: 1px solid var(--rts-ui-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.rts-site-shell .rts-panel h2,
.rts-site-shell .rts-panel h3 {
	font-size: 17px;
}

.rts-site-shell .rts-metrics {
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 10px;
	margin: 12px 0 26px;
}

.rts-site-shell .rts-metric {
	min-height: 84px;
	padding: 12px 14px;
	border: 1px solid var(--rts-ui-line);
	border-top: 2px solid var(--rts-primary);
	border-radius: 4px;
	box-shadow: none;
}

.rts-site-shell .rts-metric strong {
	font-size: 22px;
	overflow-wrap: anywhere;
}

.rts-site-shell .rts-grid {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
}

.rts-site-shell .rts-permission {
	border: 1px solid color-mix(in srgb, var(--rts-primary) 22%, #fff);
	border-left: 3px solid var(--rts-primary);
	border-radius: 3px;
	background: color-mix(in srgb, var(--rts-primary) 6%, #fff);
}

.rts-site-shell .widefat {
	border-color: var(--rts-ui-line);
}

.rts-site-shell .widefat th,
.rts-site-shell .widefat td {
	padding: 9px 10px;
	border-bottom-color: var(--rts-ui-line);
	font-size: 13px;
}

.rts-site-shell .widefat th {
	background: #edf2ef;
	font-size: 11px;
}

.rts-site-shell input:not([type="checkbox"]):not([type="radio"]),
.rts-site-shell select,
.rts-site-shell textarea {
	min-height: 39px;
	padding: 7px 9px;
	border-color: #acbdb5;
	border-radius: 4px;
}

.rts-site-shell textarea {
	min-height: 90px;
}

.rts-site-shell label,
.rts-site-shell legend {
	font-size: 13px;
}

.rts-site-shell .button,
.rts-site-shell .button-primary,
.rts-site-shell .rts-button {
	min-height: 39px;
	border-radius: 4px;
	font-size: 13px;
}

.rts-site-shell .button:focus-visible,
.rts-site-shell .rts-button:focus-visible,
.rts-site-shell a:focus-visible,
.rts-mobile-menu summary:focus-visible {
	outline: 2px solid var(--rts-primary);
	outline-offset: 2px;
}

.rts-order-sheet {
	border-width: 1px;
}

.rts-wrap {
	max-width: 1560px;
}

.rts-wrap .rts-panel {
	box-shadow: none;
}

.rts-login-screen {
	display: block;
	width: min(100% - 28px, 460px);
	max-width: none;
	min-height: 0;
	margin: min(7vh, 70px) auto;
	border-color: var(--rts-ui-line, #d8e1dd);
	border-radius: 6px;
	box-shadow: 0 10px 32px rgba(24, 46, 36, .08);
}

.rts-login-brand {
	align-items: flex-start;
	padding: 28px 32px 22px;
	border-bottom: 1px solid #d8e1dd;
	background: #fbfdfc;
	color: #243b32;
}

.rts-login-brand .rts-logo {
	width: 50px;
	height: 50px;
	margin-bottom: 12px;
	padding: 0;
	background: transparent;
}

.rts-login-brand .rts-kicker {
	color: #4b7060;
}

.rts-login-brand h1 {
	margin: 4px 0 0;
	font-size: 22px;
}

.rts-login-brand p,
.rts-login-panel > p {
	display: none;
}

.rts-login-panel {
	padding: 24px 32px 32px;
}

.rts-login-panel h2 {
	font-size: 16px;
}

.rts-login-panel form {
	margin-top: 18px;
}

@media (max-width: 1180px) {
	.rts-site-header {
		grid-template-columns: minmax(185px, 220px) minmax(110px, 1fr) auto;
	}

	.rts-header-art {
		display: none;
	}
}

@media (max-width: 980px) {
	.rts-app-frame {
		display: block;
		min-height: 0;
	}

	.rts-site-sidebar {
		display: none;
	}

	.rts-mobile-menu {
		display: block;
		border-bottom: 1px solid var(--rts-ui-line);
		background: #fbfdfc;
	}

	.rts-mobile-menu summary {
		display: flex;
		align-items: center;
		gap: 9px;
		min-height: 44px;
		padding: 10px 18px;
		cursor: pointer;
		list-style: none;
	}

	.rts-mobile-menu summary::-webkit-details-marker {
		display: none;
	}

	.rts-mobile-menu summary > span:last-child {
		margin-left: auto;
		color: var(--rts-ui-muted);
		font-size: 12px;
	}

	.rts-mobile-menu .rts-site-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px 16px;
		padding: 8px 18px 18px;
		border-top: 1px solid var(--rts-ui-line);
	}

	.rts-mobile-menu .rts-nav-group {
		margin: 0;
	}
}

@media (max-width: 720px) {
	.rts-site-header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		min-height: 0;
		padding: 10px 14px;
	}

	.rts-header-context {
		display: none;
	}

	.rts-site-actions {
		grid-column: 1 / -1;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.rts-site-actions .rts-clock {
		display: block;
		order: 2;
		width: 100%;
		max-width: 100%;
	}

	.rts-site-actions .rts-clock-row {
		grid-template-columns: 55px 112px minmax(0, 1fr);
	}

	.rts-site-actions .rts-clock-zone {
		grid-column: auto;
	}

	.rts-site-actions .rts-user-menu {
		min-width: 0;
		padding-left: 0;
		border: 0;
	}

	.rts-mobile-menu .rts-site-nav {
		grid-template-columns: 1fr;
	}

	.rts-site-content {
		padding: 16px 14px 40px;
	}

	.rts-page-head {
		align-items: flex-start;
	}

	.rts-page-head h1,
	.rts-welcome h1 {
		font-size: 21px;
	}

	.rts-login-brand,
	.rts-login-panel {
		padding-left: 22px;
		padding-right: 22px;
	}
}
