/* Vagyonnyilatkozat plugin - frontend stílusok */

.vny-wrap {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.vny-wrap * {
	box-sizing: border-box;
}

/* Oldalsáv (évek) */
.vny-sidebar {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--vny-sidebar-bg, #1e4b36);
	border-radius: 10px;
	padding: 10px 6px;
	flex: 0 0 90px;
	min-width: 70px;
}

.vny-year-btn {
	display: block;
	width: 100%;
	background: transparent;
	border: none;
	color: var(--vny-sidebar-text, #ffffff);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 8px;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.vny-year-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

.vny-year-btn.vny-active {
	background: var(--vny-sidebar-active-bg, #2e7d4f);
	color: var(--vny-sidebar-active-text, #ffffff);
}

/* Tartalom (dokumentum kártyák) */
.vny-content {
	flex: 1 1 auto;
	min-width: 0;
}

.vny-year-panel {
	display: none;
	flex-direction: column;
	gap: 14px;
}

.vny-year-panel.vny-panel-active {
	display: flex;
}

.vny-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--vny-card-bg, #f7f6f2);
	border: 1px solid var(--vny-card-border, #e2ded2);
	border-radius: 10px;
	padding: 16px 18px;
}

.vny-card-main {
	flex: 1 1 auto;
	min-width: 0;
}

.vny-card-title {
	margin: 0 0 10px 0;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--vny-title-color, #2b2b2b);
}

.vny-badge {
	display: inline-block;
	background: var(--vny-badge-bg, #eceae3);
	color: var(--vny-badge-text, #5a5a5a);
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 5px;
}

.vny-card-action {
	flex: 0 0 auto;
}

.vny-button {
	display: inline-block;
	background: var(--vny-button-bg, #1e4b36);
	color: var(--vny-button-text, #ffffff) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 6px;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.vny-button:hover,
.vny-button:focus {
	background: var(--vny-button-hover-bg, #2e7d4f);
	color: var(--vny-button-text, #ffffff) !important;
}

/* Reszponzív nézet kisebb képernyőkön */
@media (max-width: 640px) {
	.vny-wrap {
		flex-direction: column;
	}

	.vny-sidebar {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		flex: 0 0 auto;
	}

	.vny-year-btn {
		width: auto;
		flex: 1 1 auto;
	}

	.vny-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.vny-card-action {
		width: 100%;
	}

	.vny-button {
		display: block;
		text-align: center;
	}
}
