/* =============================================================
    Repoevo — detail.css
   ============================================================= */

.pm-dashboard h1 {
	margin-bottom: 25px;
}

/* -------------------------------------------------------------
   Headline & Plan Badge
   ------------------------------------------------------------- */

.pm-headline {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pm-plan-badge {
	display: inline-block;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	vertical-align: middle;
}

.pm-plan-badge.pm-plan-free {
	background: #6b7280;
}

.pm-plan-badge.pm-plan-pro {
	background: #2563eb;
}

.pm-plan-badge.pm-plan-business {
	background: #16a34a;
}

/* -------------------------------------------------------------
   Card
   ------------------------------------------------------------- */

.pm-card {
	background: #fff;
	padding: 25px;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	margin-bottom: 30px;
}

/* -------------------------------------------------------------
   Add Form
   ------------------------------------------------------------- */

.pm-add-form {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.pm-add-form input {
	flex: 1;
	min-width: 250px;
	padding: 8px 12px;
}

/* -------------------------------------------------------------
   Kandidaten Wrapper
   ------------------------------------------------------------- */

.pm-candidates-wrapper {
	position: relative;
	margin-top: 20px;
	width: 100%;
}

/* -------------------------------------------------------------
   Tabelle
   ------------------------------------------------------------- */

.pm-table {
	width: 100%;
	border-collapse: collapse;
}

.pm-table th {
	text-align: left;
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.pm-table td {
	padding: 12px;
	vertical-align: middle;
}

.pm-table tr {
	border-bottom: 1px solid #f3f3f3;
}

/* -------------------------------------------------------------
   Plugin Zelle — Icon + Name + Slug
   ------------------------------------------------------------- */

.pm-plugin-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pm-plugin-icon {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.pm-plugin-icon-placeholder {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: #e5e7eb;
	flex-shrink: 0;
}

.pm-plugin-info {
	min-width: 0;
}

.pm-plugin-name {
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
	display: block;
}

.pm-plugin-slug {
	font-size: 11px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
	display: block;
}

/* -------------------------------------------------------------
   Status Badges
   ------------------------------------------------------------- */

.pm-status {
	display: inline-block;
	font-size: 13px;
}

.pm-status-ok {
	color: #16a34a;
}

.pm-status-update {
	color: #f59e0b;
}

.pm-status-pending {
	color: #6b7280;
}

.pm-status-blocked {
	color: #dc2626;
}

/* -------------------------------------------------------------
   Actions — Icon Buttons
   ------------------------------------------------------------- */

.pm-actions {
	display: flex;
	gap: 6px;
	align-items: center;
}

.pm-remove-form {
	margin: 0;
}

.pm-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
	text-decoration: none;
	color: #374151;
	transition: background 0.15s, border-color 0.15s;
}

.pm-btn-icon:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	color: #111827;
}

.pm-btn-icon.pm-btn-delete {
	border-color: #fca5a5;
	color: #dc2626;
}

.pm-btn-icon.pm-btn-delete:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

.pm-btn-icon svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------
   Plugin-Kandidaten Tabelle — Responsive
   ------------------------------------------------------------- */

@media ( max-width: 768px ) {

	.pm-table thead {
		display: none;
	}

	.pm-table tr {
		display: block;
		margin-bottom: 20px;
	}

	.pm-table td {
		display: block;
		padding: 8px 0;
	}

	.pm-actions {
		margin-top: 10px;
	}

	.pm-plugin-candidates td:nth-child(2),
	.pm-plugin-candidates td:nth-child(3) {
		white-space: normal;
	}

	.pm-plugin-candidate-slug {
		max-width: 100%;
	}

	.pm-plugin-candidates td:nth-child(3) {
		text-align: left;
	}

	.pm-plugin-name,
	.pm-plugin-slug {
		max-width: 100%;
		white-space: normal;
	}
}
