/* Δάφνη — Ισολογισμοί | Απολογισμοί: accordion κατηγοριών + πίνακας εγγραφών ([dafnis_isologismoi]).
   Ίδιο ύφος με το accordion των Συχνών ερωτήσεων (dafnis-faq). */

.dafnis-iso {
	width: 100%;
	box-sizing: border-box;
	font-family: "Noto Sans", sans-serif;
	color: #000;
}

.dafnis-iso *,
.dafnis-iso *::before,
.dafnis-iso *::after {
	box-sizing: border-box;
}

/* ---------- accordion ---------- */
.dafnis-iso:not(.dafnis-iso--single) {
	padding: 0 20px;
	border-radius: 10px;
	background: #fff;
}

.dafnis-iso__item {
	border-bottom: 1px solid #f0f0f0;
}

.dafnis-iso__item:last-child {
	border-bottom: 0;
}

.dafnis-iso__summary {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	cursor: pointer;
	list-style: none;
}

.dafnis-iso__summary::-webkit-details-marker {
	display: none;
}

.dafnis-iso__summary:focus-visible {
	outline: 2px solid #3f6db5;
	outline-offset: 4px;
	border-radius: 4px;
}

.dafnis-iso__name {
	flex: 1 1 auto;
	margin: 0;
	color: #000;
	font-family: "Noto Sans", sans-serif;
	font-weight: 600;
	font-size: 26px;
	line-height: 35px;
}

.dafnis-iso__item[open] .dafnis-iso__name,
.dafnis-iso__summary:hover .dafnis-iso__name {
	color: #3f6db5;
}

.dafnis-iso__count {
	flex: 0 0 auto;
	color: #6b6b6b;
	font-size: 15px;
	line-height: 20px;
	white-space: nowrap;
}

.dafnis-iso__chevron {
	flex: 0 0 auto;
	width: 11px;
	height: 6px;
	color: #000;
	transition: transform .2s ease;
}

.dafnis-iso__item[open] .dafnis-iso__chevron {
	transform: rotate(180deg);
}

.dafnis-iso__panel {
	padding: 0 0 24px;
}

/* ---------- αναζήτηση ---------- */
.dafnis-iso__search {
	margin: 0 0 16px;
}

.dafnis-iso__input {
	width: 100%;
	max-width: 420px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-family: inherit;
	font-size: 16px;
}

.dafnis-iso__input:focus {
	outline: none;
	border-color: #3f6db5;
	box-shadow: 0 0 0 3px rgba(63, 109, 181, .2);
}

/* ---------- πίνακας ---------- */
.dafnis-iso__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 22px;
}

.dafnis-iso__table th,
.dafnis-iso__table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	background: transparent;
	text-align: left;
	vertical-align: top;
}

.dafnis-iso__table thead th {
	background: #f7f7f7;
	color: #000;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
}

.dafnis-iso__table thead th:first-child {
	border-radius: 8px 0 0 8px;
}

.dafnis-iso__table thead th:last-child {
	border-radius: 0 8px 8px 0;
}

.dafnis-iso__table tbody tr:hover td {
	background: #fafbfd;
}

.dafnis-iso__table td:not(.dafnis-iso__title) {
	white-space: nowrap;
}

.dafnis-iso__title {
	width: 100%;
	min-width: 280px;
}

.dafnis-iso__open {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #3f6db5;
	font-weight: 600;
	text-decoration: none;
}

/* εικονίδιο «εξωτερικός σύνδεσμος» από CSS (όχι SVG σε κάθε γραμμή) */
.dafnis-iso__open::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dafnis-iso__open:hover,
.dafnis-iso__open:focus-visible {
	color: #000;
	text-decoration: underline;
}

.dafnis-iso__noresults,
.dafnis-iso__empty {
	margin: 16px 0 0;
	color: #6b6b6b;
}

.dafnis-iso__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.dafnis-iso__more {
	padding: 10px 28px;
	border: 1px solid #3f6db5;
	border-radius: 30px;
	background: #fff;
	color: #3f6db5;
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 22px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.dafnis-iso__more:hover,
.dafnis-iso__more:focus-visible {
	background: #3f6db5;
	color: #fff;
}

.dafnis-iso [hidden] {
	display: none !important;
}

/* ---------- laptop / tablet ---------- */
@media (max-width: 1439px) {
	.dafnis-iso__name {
		font-size: clamp(18px, 1.9vw, 26px);
	}
}

@media (max-width: 1024px) {
	.dafnis-iso__name {
		font-size: 22px;
		line-height: 30px;
	}

	/* ο πίνακας γίνεται κάρτες */
	.dafnis-iso__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.dafnis-iso__table,
	.dafnis-iso__table tbody,
	.dafnis-iso__table tr,
	.dafnis-iso__table td {
		display: block;
		width: 100%;
	}

	.dafnis-iso__table tr {
		padding: 14px 0;
		border-bottom: 1px solid #f0f0f0;
	}

	/* χωρίς το «ζέβρα» φόντο του θέματος στις κάρτες */
	.dafnis-iso__table tbody tr,
	.dafnis-iso__table tbody tr td,
	.dafnis-iso__table tbody tr:hover td {
		background: transparent !important;
	}

	.dafnis-iso__table td {
		display: grid;
		grid-template-columns: 150px 1fr;
		gap: 12px;
		padding: 4px 0;
		border: 0;
		white-space: normal !important;
	}

	.dafnis-iso__table td::before {
		content: attr(data-label);
		color: #6b6b6b;
		font-size: 14px;
	}

	.dafnis-iso__table td.dafnis-iso__title {
		display: block;
		min-width: 0;
		padding-bottom: 8px;
		font-weight: 600;
	}

	.dafnis-iso__table td.dafnis-iso__title::before {
		content: none;
	}
}

@media (max-width: 767px) {
	.dafnis-iso:not(.dafnis-iso--single) {
		padding: 0 16px;
	}

	.dafnis-iso__summary {
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.dafnis-iso__name {
		flex-basis: calc(100% - 30px);
		font-size: 20px;
		line-height: 28px;
	}

	.dafnis-iso__count {
		order: 3;
		flex-basis: 100%;
	}

	.dafnis-iso__chevron {
		order: 2;
	}

	.dafnis-iso__table td {
		grid-template-columns: 105px 1fr;
		gap: 10px;
		font-size: 15px;
	}

	.dafnis-iso__table td::before {
		font-size: 13px;
	}
}
