/* Frontend der zentralen Benutzerverwaltung: Shortcode [svbv_benutzerverwaltung]
   Die Oberfläche verwendet dieselben Bausteine wie das Backend. Damit sie ohne
   die Stylesheets des WordPress-Backends gut aussieht, werden die benötigten
   Klassen hier für das Frontend nachgebildet. Alle Regeln gelten nur innerhalb
   von .svbv-fe. */

.svbv-fe {
	--svbv-rahmen: #d5d9dd;
	--svbv-flaeche: #ffffff;
	--svbv-grau: #f6f7f8;
	--svbv-blau: #2271b1;
	--svbv-rot: #b32d2e;
	--svbv-gruen: #00a32a;
	--svbv-gelb: #dba617;

	box-sizing: border-box;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.5;
}

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

.svbv-fe .svbv-fe-titel {
	margin: 0 0 12px;
}

.svbv-fe .wrap {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.svbv-fe .wrap > h1 {
	font-size: 24px;
	line-height: 1.3;
	margin: 12px 0 16px;
}

.svbv-fe h2 {
	font-size: 19px;
	margin: 22px 0 10px;
}

.svbv-fe h3 {
	font-size: 16px;
	margin: 18px 0 8px;
}

/* Reiter */
.svbv-fe .nav-tab-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid var(--svbv-rahmen);
	margin: 0 0 18px;
	padding: 0;
}

.svbv-fe .nav-tab {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--svbv-rahmen);
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	background: var(--svbv-grau);
	color: #1d2327;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
	margin-bottom: -1px;
}

.svbv-fe .nav-tab:hover,
.svbv-fe .nav-tab:focus {
	background: #eef1f4;
	color: #135e96;
}

.svbv-fe .nav-tab-active,
.svbv-fe .nav-tab-active:hover {
	background: var(--svbv-flaeche);
	border-bottom: 1px solid var(--svbv-flaeche);
	font-weight: 600;
}

/* Schaltflächen */
.svbv-fe .button,
.svbv-fe button:not(.svbv-btn),
.svbv-fe input[type="submit"] {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--svbv-blau);
	border-radius: 4px;
	background: var(--svbv-flaeche);
	color: var(--svbv-blau);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.svbv-fe .button:hover,
.svbv-fe button:not(.svbv-btn):hover {
	background: #f0f6fc;
}

.svbv-fe .button-primary {
	background: var(--svbv-blau);
	border-color: var(--svbv-blau);
	color: #ffffff;
}

.svbv-fe .button-primary:hover {
	background: #135e96;
	color: #ffffff;
}

.svbv-fe .button-link {
	border: none;
	background: none;
	padding: 0;
	color: var(--svbv-blau);
	text-decoration: underline;
	cursor: pointer;
}

.svbv-fe .svbv-loeschen,
.svbv-fe .button-link.svbv-loeschen {
	color: var(--svbv-rot);
}

.svbv-fe p.submit {
	margin: 16px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Felder */
.svbv-fe input[type="text"],
.svbv-fe input[type="email"],
.svbv-fe input[type="password"],
.svbv-fe input[type="number"],
.svbv-fe input[type="url"],
.svbv-fe input[type="file"],
.svbv-fe select,
.svbv-fe textarea {
	padding: 6px 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: var(--svbv-flaeche);
	font-size: 14px;
	max-width: 100%;
}

.svbv-fe .regular-text {
	width: 24em;
}

.svbv-fe .large-text {
	width: 100%;
}

.svbv-fe .small-text {
	width: 6em;
}

.svbv-fe .description {
	color: #646970;
	font-size: 13px;
	margin: 4px 0 0;
}

.svbv-fe .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Formulartabellen */
.svbv-fe table.form-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 0;
}

.svbv-fe table.form-table > tbody > tr > th {
	width: 220px;
	text-align: left;
	vertical-align: top;
	padding: 14px 12px 14px 0;
	font-weight: 600;
}

.svbv-fe table.form-table > tbody > tr > td {
	padding: 12px 0;
	vertical-align: top;
}

/* Listen */
.svbv-fe table.widefat {
	width: 100%;
	border: 1px solid var(--svbv-rahmen);
	border-collapse: collapse;
	background: var(--svbv-flaeche);
	font-size: 14px;
}

.svbv-fe table.widefat th,
.svbv-fe table.widefat td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--svbv-rahmen);
	text-align: left;
	vertical-align: top;
}

.svbv-fe table.widefat thead th,
.svbv-fe table.widefat tfoot th {
	background: var(--svbv-grau);
	font-weight: 600;
}

.svbv-fe table.striped > tbody > :nth-child(odd) {
	background: #fafbfc;
}

.svbv-fe .check-column {
	width: 2.2em;
}

/* Rückmeldungen */
.svbv-fe .notice {
	border: 1px solid var(--svbv-rahmen);
	border-left: 4px solid var(--svbv-blau);
	background: var(--svbv-flaeche);
	padding: 10px 14px;
	margin: 14px 0;
	border-radius: 3px;
}

.svbv-fe .notice p {
	margin: 4px 0;
}

.svbv-fe .notice-success {
	border-left-color: var(--svbv-gruen);
}

.svbv-fe .notice-warning {
	border-left-color: var(--svbv-gelb);
}

.svbv-fe .notice-error {
	border-left-color: var(--svbv-rot);
}

.svbv-fe code {
	background: var(--svbv-grau);
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 13px;
}

/* Kleinere Bausteine der Verwaltung */
.svbv-fe .svbv-suche {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 12px 0;
}

.svbv-fe .svbv-massenaktion {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 12px 0;
}

.svbv-fe .svbv-inline,
.svbv-fe .svbv-inline form {
	display: inline-block;
}

.svbv-fe .svbv-abstand {
	margin-top: 16px;
}

.svbv-fe .svbv-liste {
	margin: 8px 0 8px 18px;
	list-style: disc;
}

.svbv-fe .svbv-rollen {
	border-collapse: collapse;
}

.svbv-fe .svbv-rollen td {
	padding: 4px 12px 4px 0;
	vertical-align: middle;
}

.svbv-fe .svbv-inaktiv {
	color: var(--svbv-rot);
}

.svbv-fe .svbv-klein {
	font-size: 13px;
}

.svbv-fe .svbv-version {
	font-size: 12px;
	font-weight: 400;
	color: #646970;
}

.svbv-fe .svbv-zeilenaktionen form {
	display: inline-block;
	margin-left: 8px;
}

/* Schmale Bildschirme: Tabellen scrollen statt zu quetschen */
@media (max-width: 782px) {
	.svbv-fe table.widefat {
		display: block;
		overflow-x: auto;
	}

	.svbv-fe table.form-table > tbody > tr > th,
	.svbv-fe table.form-table > tbody > tr > td {
		display: block;
		width: 100%;
		padding: 6px 0;
	}

	.svbv-fe .regular-text {
		width: 100%;
	}
}
