/* Архіви звітів «Залишки …»: хаб-сторінки (роки/місяці) і сторінки звітів. Стиль узгоджено з npc-info.css */
.npc-page {
	--npc-green: #007a53;
	--npc-ink: #2b2b2b;
	--npc-muted: #6b6b6b;
	--npc-line: #e3e3e3;
	--npc-chip: #f7eeee;
	background: #f2f2f2;
	padding: 24px 0 72px;
	font-family: 'Open Sans', sans-serif;
	color: var(--npc-ink);
}
.npc-page *,
.npc-page *::before,
.npc-page *::after { box-sizing: border-box; }

.npc-page__title {
	margin: 8px 0 40px;
	font-family: 'Open Sans', sans-serif;
	font-size: 44px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	text-align: left;
	color: var(--npc-ink);
	max-width: 960px;
}
.npc-page__title--sm { font-size: 36px; margin-bottom: 32px; }

/* ---------- Хаб: сітка карток ---------- */
.npc-hub {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}
.npc-hub li { margin: 0; padding: 0; }
.npc-hub li::before { display: none; content: none; }
.npc-hub--years { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.npc-hub--items { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.npc-hub__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 22px 56px 22px 24px;
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 20px;
	color: var(--npc-ink);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.npc-hub__card:hover,
.npc-hub__card:focus-visible {
	border-color: var(--npc-green);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
	transform: translateY(-2px);
	color: var(--npc-ink);
	text-decoration: none;
}
.npc-hub__card:focus-visible { outline: 2px solid var(--npc-green); outline-offset: 2px; }

.npc-hub__arrow {
	position: absolute;
	top: 22px;
	right: 22px;
	color: var(--npc-green);
	display: inline-flex;
	transition: transform .2s ease;
}
.npc-hub__card:hover .npc-hub__arrow,
.npc-hub__card:focus-visible .npc-hub__arrow { transform: translate(2px, -2px); }

/* Роки */
.npc-hub--years .npc-hub__card {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 4px;
	min-height: 150px;
	padding: 24px 28px;
}
.npc-hub__year {
	font-size: 44px;
	line-height: 1;
	font-weight: 700;
	color: var(--npc-green);
	font-variant-numeric: tabular-nums;
}
.npc-hub__label {
	font-size: 16px;
	color: var(--npc-muted);
}

/* Місяці / інші пункти */
.npc-hub__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--npc-chip);
	color: var(--npc-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.npc-hub--items .npc-hub__arrow { top: 50%; margin-top: -10px; }
.npc-hub--items .npc-hub__card:hover .npc-hub__arrow { transform: translate(2px, -2px); }
.npc-hub__title {
	font-size: 17px;
	line-height: 1.45;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* ---------- Звіт ---------- */
.npc-report {
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 20px;
	padding: 40px 48px;
	font-size: 16px;
	line-height: 1.6;
}
.npc-report > :first-child { margin-top: 0; }
.npc-report p { margin: 0 0 16px; text-align: left !important; }
.npc-report p strong { font-weight: 600; }
.npc-report a { color: var(--npc-green); }

.npc-report__table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 8px 0 24px;
	border: 1px solid var(--npc-line);
	border-radius: 12px;
}
.npc-report__table:focus-visible { outline: 2px solid var(--npc-green); outline-offset: 2px; }
.npc-report__table table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
}
.npc-report__table td,
.npc-report__table th {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: top;
}
.npc-report__table tr:nth-child(even) td { background: #fafafa; }
.npc-report__table tr:last-child td { border-bottom: 0; }
/* Перший рядок таблиці — це шапка (у звітах вона набрана звичайними клітинками) */
.npc-report__table tr:first-child td,
.npc-report__table th {
	background: #f4f8f6;
	font-weight: 600;
	color: var(--npc-ink);
	white-space: nowrap;
	border-bottom: 2px solid #d9e7e0;
}
.npc-report__table td:first-child { width: 56px; color: var(--npc-muted); font-variant-numeric: tabular-nums; }
.npc-report__table td:not(:nth-child(2)) { white-space: nowrap; }
.npc-report__table tr:first-child td:first-child { color: var(--npc-ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
	.npc-page__title { font-size: 34px; margin-bottom: 28px; }
	.npc-page__title--sm { font-size: 28px; }
	.npc-report { padding: 28px; }
}
@media (max-width: 767px) {
	.npc-page { padding: 16px 0 48px; }
	.npc-page__title { font-size: 28px; margin: 4px 0 20px; }
	.npc-page__title--sm { font-size: 22px; }
	.npc-hub { gap: 12px; }
	.npc-hub--years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.npc-hub--items { grid-template-columns: 1fr; }
	.npc-hub__card { padding: 16px 48px 16px 16px; border-radius: 16px; }
	.npc-hub__arrow { top: 16px; right: 16px; }
	.npc-hub--years .npc-hub__card { min-height: 112px; padding: 16px; }
	.npc-hub__year { font-size: 32px; }
	.npc-hub__label { font-size: 14px; }
	.npc-hub__icon { flex-basis: 40px; width: 40px; height: 40px; }
	.npc-hub__title { font-size: 16px; }
	.npc-report { padding: 16px; border-radius: 16px; font-size: 15px; }
	.npc-report__table table { font-size: 14px; }
	.npc-report__table td, .npc-report__table th { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.npc-hub__card, .npc-hub__arrow { transition: none; }
	.npc-hub__card:hover { transform: none; }
}
