/**
 * Leadlotse Admin-Styles (Etappe 3/4).
 *
 * Deckt die Status-Schilder der Formularliste (UX-Grundsatz 5) und die Inbox
 * (Split-View, Statusfilter, Detail-Panel) ab. Farbe nie als einziger Traeger:
 * jedes Schild/Badge traegt zusaetzlich Text (UX-KONZEPT 7).
 */

/* Status-Schilder der Formularliste. */
.hs-shield {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	line-height: 1.6;
	white-space: nowrap;
}
.hs-shield--green {
	background: #edf7ed;
	color: #1e6b1e;
	border: 1px solid #a3d3a3;
}
.hs-shield--amber {
	background: #fcf6e6;
	color: #8a6d1a;
	border: 1px solid #e6cf8a;
}
.hs-shield--grey {
	background: #f0f0f1;
	color: #50575e;
	border: 1px solid #c3c4c7;
}

.hs-leadlotse-forms .shortcode-hint code {
	font-size: 11px;
}

/* Willkommens-Screen (leerer Zustand der Formularliste). */
.hs-leadlotse-empty {
	max-width: 520px;
	margin: 48px auto;
	text-align: center;
}
.hs-leadlotse-empty img {
	object-fit: contain;
}

/* Einrichtungs-Checkliste "Klar zum Auslaufen" (Etappe 5). */
.hs-setup {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 16px 0;
	max-width: 640px;
}
.hs-setup__img {
	object-fit: contain;
	flex: 0 0 auto;
}
.hs-setup__title {
	margin: 0;
	font-weight: 600;
	font-size: 14px;
}
.hs-setup__progress {
	margin: 2px 0 10px;
	color: #646970;
	font-size: 12px;
}
.hs-setup__list {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hs-setup__item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.hs-setup__check {
	color: #2271b1;
	font-weight: 700;
	width: 16px;
	text-align: center;
}
.hs-setup__item.is-done .hs-setup__check {
	color: #1e6b1e;
}
.hs-setup__item.is-done span:not( .hs-setup__check ):not( .screen-reader-text ) {
	color: #646970;
	text-decoration: line-through;
}

/* Mail-Absender: Warnkarte im Hans-Muster (Fremd-/Freemail-Domain). */
.hs-mailwarn {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #fcf6e6;
	border: 1px solid #e6cf8a;
	border-left: 4px solid #dba617;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 16px 0;
	max-width: 640px;
}
.hs-mailwarn__img {
	object-fit: contain;
	flex: 0 0 auto;
}
.hs-mailwarn__title {
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 14px;
	color: #8a6d1a;
}
.hs-mailwarn__text {
	margin: 0;
	color: #50575e;
}

/* Inbox: Grundlayout. */
.hs-inbox-filter {
	margin: 8px 0 4px;
}
.hs-inbox-search {
	margin: 0 0 12px;
}

.hs-inbox-layout {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.hs-inbox-list {
	flex: 0 0 340px;
	max-width: 340px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.hs-inbox-detail {
	flex: 1 1 auto;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px 24px;
	min-height: 320px;
}

@media screen and ( max-width: 782px ) {
	.hs-inbox-layout {
		flex-direction: column;
	}
	.hs-inbox-list {
		flex-basis: auto;
		max-width: none;
		width: 100%;
	}
}

/* Inbox: Listenzeilen. */
.hs-inbox-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	width: 100%;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	cursor: pointer;
}
.hs-inbox-row:hover {
	border-color: #2271b1;
}
.hs-inbox-row.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}
.hs-inbox-row.is-unread .hs-inbox-row-name {
	font-weight: 600;
}
.hs-inbox-row-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.hs-inbox-row-meta {
	color: #646970;
	font-size: 12px;
}

/* Status-Badges (Liste und Detail). */
.hs-status {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 11px;
	line-height: 1.7;
	white-space: nowrap;
}
.hs-status--new {
	background: #e7f0fa;
	color: #135e96;
	border: 1px solid #9ec3e6;
}
.hs-status--in_progress {
	background: #fcf6e6;
	color: #8a6d1a;
	border: 1px solid #e6cf8a;
}
.hs-status--done {
	background: #edf7ed;
	color: #1e6b1e;
	border: 1px solid #a3d3a3;
}

/* Inbox: Detail-Panel. */
.hs-inbox-detail-empty {
	text-align: center;
	color: #646970;
	padding: 40px 0;
}
.hs-inbox-detail-empty img {
	object-fit: contain;
	opacity: 0.9;
}
.hs-inbox-detail-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}
.hs-inbox-detail-header h2 {
	margin: 0;
}
.hs-inbox-detail-sub {
	color: #646970;
	margin: 0 0 16px;
}
.hs-inbox-fields {
	display: grid;
	grid-template-columns: minmax(120px, 200px) 1fr;
	gap: 6px 16px;
	margin: 0 0 16px;
}
.hs-inbox-fields dt {
	font-weight: 600;
	color: #1d2327;
}
.hs-inbox-fields dd {
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.hs-inbox-source {
	color: #646970;
	font-size: 12px;
	margin: 0 0 16px;
}
.hs-inbox-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	border-top: 1px solid #f0f0f1;
	padding-top: 16px;
}
.hs-inbox-status-group {
	display: inline-flex;
	gap: 6px;
}
.hs-inbox-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.hs-inbox-pageinfo {
	color: #646970;
	font-size: 12px;
}
.hs-inbox-error {
	color: #b32d2e;
}

/* --- Builder (Etappe 4b) ------------------------------------------------ */

.hs-builder-loading {
	padding: 40px 0;
	color: #646970;
}

/* Zweck-Galerie. */
.hs-builder-gallery-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	margin: 16px 0;
}
.hs-builder-gallery-head h1 {
	margin: 0;
}
.hs-builder-lang {
	margin-left: auto;
	display: inline-flex;
	gap: 4px;
}
.hs-builder-cards {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 12px;
	margin: 16px 0 24px;
}
.hs-builder-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	padding: 16px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	cursor: pointer;
}
.hs-builder-card:hover {
	border-color: #2271b1;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.08 );
}
.hs-builder-card-name {
	font-weight: 600;
	font-size: 14px;
}
.hs-builder-card-desc {
	color: #646970;
	font-size: 13px;
}

/* Builder-Grundlayout. */
.hs-builder-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
}
.hs-builder-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.hs-builder-title input {
	font-size: 18px;
	font-weight: 600;
	min-width: 280px;
}
.hs-builder-shortcode {
	font-family: monospace;
	font-size: 12px;
	color: #646970;
}
.hs-builder-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hs-builder-notice {
	margin: 0 0 12px;
}

.hs-builder-cols {
	display: grid;
	grid-template-columns: 300px minmax( 0, 1fr ) 320px;
	gap: 16px;
	align-items: start;
}
@media screen and ( max-width: 1200px ) {
	.hs-builder-cols {
		grid-template-columns: 1fr;
	}
}
.hs-builder-fields,
.hs-builder-preview,
.hs-builder-settings {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	padding: 16px;
}
.hs-builder-col-title {
	margin: 0 0 12px;
	font-size: 14px;
}

/* Feldliste. */
.hs-builder-warn {
	background: #fcf6e6;
	border: 1px solid #e6cf8a;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 12px;
	color: #8a6d1a;
}
.hs-builder-fieldlist {
	margin: 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.hs-builder-fieldrow {
	display: flex;
	align-items: center;
	gap: 4px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 4px 4px 4px 8px;
}
.hs-builder-fieldrow.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}
.hs-builder-fieldrow-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 4px;
}
.hs-builder-field-label {
	font-weight: 500;
}
.hs-builder-field-type {
	font-size: 11px;
	color: #646970;
}
.hs-builder-fieldrow-tools {
	display: inline-flex;
	gap: 2px;
}
.hs-builder-fieldrow-tools .button-link {
	padding: 2px 6px;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
	color: #50575e;
}
.hs-builder-fieldrow-tools .button-link:disabled {
	opacity: 0.3;
}
.hs-builder-delete {
	color: #b32d2e !important;
}
.hs-builder-add {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	border-top: 1px solid #f0f0f1;
	padding-top: 12px;
}
.hs-builder-add-label {
	width: 100%;
	font-size: 12px;
	color: #646970;
}

/* Vorschau. */
.hs-builder-preview-form .leadlotse-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}
.hs-builder-preview-form label {
	font-weight: 500;
}
.hs-builder-preview-form input,
.hs-builder-preview-form textarea,
.hs-builder-preview-form select {
	max-width: 100%;
}
.hs-builder-preview-empty,
.hs-builder-hint {
	color: #646970;
	font-size: 13px;
}
.leadlotse-help {
	font-size: 12px;
	color: #646970;
}

/* Einstellungen (rechte Spalte). */
.hs-builder-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 12px;
}
.hs-builder-row > label {
	font-weight: 500;
	font-size: 13px;
}
.hs-builder-row input[ type='text' ],
.hs-builder-row input[ type='url' ],
.hs-builder-row textarea {
	width: 100%;
}
.hs-builder-inline {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 400 !important;
}
.hs-builder-subsettings {
	border-left: 3px solid #f0f0f1;
	padding-left: 12px;
	margin-bottom: 12px;
}
.hs-builder-conditions .hs-builder-condition {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.hs-builder-conditions select,
.hs-builder-conditions input {
	flex: 1 1 auto;
	min-width: 90px;
}

/* Ausfuellhilfe-Einstellungen: Anbieter-Karten und Anleitung. */
.leadlotse-identity-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 20px 16px;
	margin: 16px 0;
	max-width: 52em;
}
.leadlotse-identity-card h2 .hs-shield {
	margin-left: 8px;
	vertical-align: middle;
}
.leadlotse-identity-guide {
	margin-top: 8px;
}
.leadlotse-identity-guide summary {
	cursor: pointer;
	font-weight: 600;
}
.leadlotse-identity-guide ol {
	margin: 8px 0 8px 20px;
}
.leadlotse-identity-guide code {
	word-break: break-all;
}

/* Pro-Schnitt (L-P1): gesperrte Flaechen bleiben sichtbar, aber verschlossen.
   Das Schloss-Schild traegt immer den Text "Pro" (Farbe nie allein). */
.hs-shield--locked {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	vertical-align: middle;
}
button.hs-shield--locked {
	cursor: pointer;
	font-family: inherit;
}
.hs-shield--locked .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1.2;
}
.hs-builder-locked > .hs-builder-row {
	opacity: 0.6;
}
.hs-builder-card--locked {
	background: #f6f7f7;
}
.hs-builder-pro-card {
	max-width: 52em;
}
