/* ─── Aeolus Pay – Frontend Styles ───────────────────────────────────────── */

.ap-widget {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1a1a2e;
}

.ap-widget-titel {
	font-size: 1.4em;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a2e;
}

/* ── Login prompt ────────────────────────────────────────────────────────── */
.ap-login-prompt {
	text-align: center;
	padding: 40px 24px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1.5px solid #e0e4ea;
}

.ap-login-prompt p {
	margin: 0 0 16px;
	color: #555;
	font-size: 1em;
}

.ap-btn-primary {
	display: inline-block;
	background: #1a1a2e;
	color: #fff !important;
	padding: 10px 28px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
}

.ap-btn-primary:hover { background: #2d2d50; }

/* ── Saldo banner ────────────────────────────────────────────────────────── */
.ap-saldo-banner {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.ap-saldo-banner--open {
	background: #fff8e6;
	border: 2px solid #f0c36d;
}

.ap-saldo-banner--tegoed {
	background: #edfaf3;
	border: 2px solid #72d0a0;
}

.ap-saldo-banner--voldaan {
	background: #edfaf3;
	border: 2px solid #72d0a0;
}

.ap-saldo-banner__label {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #666;
}

.ap-saldo-banner__bedrag {
	font-size: 2em;
	font-weight: 800;
	line-height: 1.1;
}

.ap-saldo-banner--open    .ap-saldo-banner__bedrag { color: #b45309; }
.ap-saldo-banner--tegoed  .ap-saldo-banner__bedrag { color: #065f46; }
.ap-saldo-banner--voldaan .ap-saldo-banner__bedrag { color: #065f46; }

.ap-saldo-banner__sub {
	font-size: 0.875em;
	color: #555;
	margin-top: 2px;
}

/* ── Tabel ───────────────────────────────────────────────────────────────── */
.ap-tabel-wrap {
	overflow-x: auto;
	border-radius: 10px;
	border: 1.5px solid #e0e4ea;
}

.ap-transacties-tabel {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.ap-transacties-tabel thead {
	background: #f4f6f9;
}

.ap-transacties-tabel th {
	padding: 11px 14px;
	font-weight: 700;
	color: #444;
	border-bottom: 1.5px solid #e0e4ea;
	white-space: nowrap;
}

.ap-transacties-tabel td {
	padding: 10px 14px;
	border-bottom: 1px solid #eef0f3;
	vertical-align: middle;
}

.ap-transacties-tabel tbody tr:last-child td { border-bottom: none; }

.ap-tr-voldaan { opacity: 0.65; }

.ap-right  { text-align: right; }
.ap-center { text-align: center; }

.ap-debet-tekst { color: #b45309; font-weight: 600; }
.ap-credit-tekst { color: #065f46; font-weight: 600; }

/* Status-badges */
.ap-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.8em;
	font-weight: 700;
	white-space: nowrap;
}

.ap-status--open    { background: #fff3cd; color: #856404; }
.ap-status--voldaan { background: #d4edda; color: #155724; }

.ap-leeg {
	color: #888;
	font-style: italic;
	text-align: center;
	padding: 24px 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
	.ap-saldo-banner__bedrag { font-size: 1.5em; }
	.ap-transacties-tabel th,
	.ap-transacties-tabel td { padding: 8px 10px; }
}
