.pvkp-portal {
	max-width: 720px;
}

.pvkp-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.pvkp-notice-success {
	background: #edfaef;
	border: 1px solid #b7e4bd;
	color: #1a5c22;
}

.pvkp-notice-error {
	background: #fbeaea;
	border: 1px solid #eab7b7;
	color: #7a1f1f;
}

.pvkp-login-form input[type="email"] {
	width: 100%;
	max-width: 360px;
	padding: 8px;
}

.pvkp-panel {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 8px 20px 20px;
	margin-bottom: 20px;
}

.pvkp-panel input[type="text"],
.pvkp-panel input[type="email"] {
	width: 100%;
	max-width: 360px;
	padding: 8px;
}

.pvkp-row {
	display: flex;
	gap: 16px;
}

.pvkp-row > span {
	flex: 1;
}

.pvkp-invoices {
	width: 100%;
	border-collapse: collapse;
}

.pvkp-invoices th,
.pvkp-invoices td {
	text-align: left;
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
}

.pvkp-invoice-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/*
 * Onder 640px wordt de tabel een stapel kaarten i.p.v. een tabel die je
 * opzij moet schuiven — elke rij krijgt een label:waarde-indeling via de
 * data-label-attributen op de <td>'s in class-portal.php.
 */
@media (max-width: 640px) {
	.pvkp-invoices,
	.pvkp-invoices thead,
	.pvkp-invoices tbody,
	.pvkp-invoices th,
	.pvkp-invoices td,
	.pvkp-invoices tr {
		display: block;
	}

	.pvkp-invoices thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.pvkp-invoices tr {
		border: 1px solid #e5e5e8;
		border-radius: 8px;
		padding: 4px 12px;
		margin-bottom: 12px;
	}

	.pvkp-invoices td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: right;
		border-bottom: 1px solid #f1f1f3;
		padding: 8px 0;
	}

	.pvkp-invoices td:last-child {
		border-bottom: none;
	}

	.pvkp-invoices td[data-label]:before {
		content: attr(data-label);
		font-weight: 600;
		color: #55565c;
		text-align: left;
		flex-shrink: 0;
	}

	.pvkp-invoices td[data-label=""]:before {
		content: none;
	}

	.pvkp-invoice-actions {
		justify-content: flex-end;
	}
}

.pvkp-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.85em;
	background: #eee;
}

.pvkp-badge-paid,
.pvkp-badge-accepted {
	background: #d5f2da;
	color: #1a5c22;
}

.pvkp-badge-open,
.pvkp-badge-pending_payment,
.pvkp-badge-scheduled {
	background: #fff2cc;
	color: #7a5b00;
}

.pvkp-badge-late,
.pvkp-badge-reminded,
.pvkp-badge-uncollectible,
.pvkp-badge-rejected {
	background: #fbdada;
	color: #7a1f1f;
}

/* --- Knoppen ------------------------------------------------------- */

/*
 * !important op de tekstkleur: WordPress-thema's stylen "a" vaak met een
 * eigen (soms vergelijkbaar blauwe) linkkleur die anders deze knoppen
 * overschrijft — de achtergrond wint dan wel maar de tekst blijft de
 * themakleur, onleesbaar bij een gekleurde achtergrond (bv. de blauwe
 * primary-knop met blauwe tekst erop).
 */
.pvkp-btn {
	display: inline-block;
	appearance: none;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	background: #f1f1f3;
	color: #1f2328 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.pvkp-btn:hover {
	background: #e4e4e8;
	color: #1f2328 !important;
	text-decoration: none;
}

.pvkp-btn:active {
	transform: translateY(1px);
}

.pvkp-btn-primary {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff !important;
}

.pvkp-btn-primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff !important;
}

.pvkp-btn-ghost {
	background: transparent;
	border-color: #d7d7db;
	color: #55565c !important;
}

.pvkp-btn-ghost:hover {
	background: #f6f6f7;
	border-color: #c3c3c8;
	color: #1f2328 !important;
}

.pvkp-btn-small {
	padding: 5px 12px;
	font-size: 0.85em;
	font-weight: 500;
}
