/* Statement pages (single-statement.php, archive-statement.php). */

.doc-statement,
.doc-statements {
	max-width: 900px;
	margin: 0 auto;
}

.doc-statement__date {
	margin: 0 0 16px;
	color: #6e6272;
	font-size: 14px;
}

.doc-statement__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.doc-statement__download.btn {
	border: 1px solid var(--doc-primary);
	background: transparent;
	color: var(--doc-primary);
}

.doc-statement__download.btn:hover,
.doc-statement__download.btn:focus {
	background: var(--doc-primary);
	color: #fff;
}

.doc-statement__pdf {
	display: block;
	width: 100%;
	height: 80vh;
	min-height: 480px;
	border: 1px solid #ece6ea;
	border-radius: 8px;
}

.doc-statement__image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid #ece6ea;
	border-radius: 8px;
}

.doc-statement__fallback {
	padding: 30px;
	background: #f7f4f6;
	text-align: center;
}

.doc-statement__back {
	margin: 30px 0 0;
}

.doc-statements__filters {
	margin-bottom: 24px;
}

.doc-statements__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}

.doc-statements__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--doc-primary);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.doc-statements__toggle[hidden] {
	display: none;
}

.doc-statements__toggle:hover,
.doc-statements__toggle:focus-visible {
	color: var(--doc-accent);
}

.doc-statements__toggle:focus-visible {
	outline: 2px solid var(--doc-accent);
	outline-offset: 2px;
}

.doc-statements__chevron {
	transition: transform 0.2s ease;
}

.doc-statements__toggle[aria-expanded="true"] .doc-statements__chevron {
	transform: rotate(180deg);
}

.doc-statements__toggle-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--doc-accent);
}

.doc-statements__panel {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid #ece6ea;
	border-radius: 8px;
	background: #fbf8fa;
}

.doc-statements__panel[hidden] {
	display: none;
}


.doc-statements__languages ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.doc-statements__language {
	display: inline-block;
	padding: 6px 18px;
	border: 1px solid #ece6ea;
	border-radius: 30px;
	background: #fff;
	color: #252525;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.doc-statements__language:hover,
.doc-statements__language:focus {
	border-color: var(--doc-accent);
	color: var(--doc-accent);
}

.doc-statements__language.is-active {
	border-color: var(--doc-primary);
	background: var(--doc-primary);
	color: #fff;
}

.doc-statements__dates {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.doc-statements__dates label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #6e6272;
	font-size: 13px;
	font-weight: 600;
}

.doc-statements__dates .form-control {
	width: 160px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #ece6ea;
	border-radius: 6px;
	background: #fff;
	color: #252525;
}

.doc-statements__dates .form-control:focus {
	border-color: var(--doc-accent);
	box-shadow: 0 0 0 3px rgba(171, 27, 95, 0.15);
	outline: none;
}

.doc-statements__dates .btn {
	height: 40px;
	padding: 0 22px;
	line-height: 40px;
}

.doc-statements__dates .doc-statements__clear {
	font-size: 13px;
	text-decoration: underline;
}

.doc-statements__results {
	transition: opacity 0.15s ease;
}

.doc-statements__results.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.doc-statements__status {
	margin: 0 0 12px;
	color: #6e6272;
	font-size: 14px;
}

.doc-statements__status a {
	margin-left: 8px;
	text-decoration: underline;
}

.doc-statements__tag {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #f7f4f6;
	color: var(--doc-primary);
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	vertical-align: middle;
}

.doc-statement__language {
	margin-left: 10px;
	padding-left: 10px;
	border-left: 1px solid #ece6ea;
}

.doc-statements__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #ece6ea;
}

.doc-statements__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 8px;
	border-bottom: 1px solid #ece6ea;
	color: #252525;
	transition: background-color 0.2s ease;
}

.doc-statements__item:hover,
.doc-statements__item:focus {
	background: #f7f4f6;
	color: var(--doc-primary);
}

.doc-statements__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f7f4f6;
	color: var(--doc-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.doc-statements__icon.is-pdf {
	background: var(--doc-primary);
	color: #fff;
}

.doc-statements__item:hover .doc-statements__icon,
.doc-statements__item:focus .doc-statements__icon {
	background: var(--doc-accent);
	color: #fff;
}

.doc-statements__title {
	flex: 1 1 auto;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
}

.doc-statements__date {
	flex: 0 0 auto;
	color: #6e6272;
	font-size: 14px;
}

.doc-statements__empty {
	padding: 40px 0;
	text-align: center;
}

@media (max-width: 575px) {
	.doc-statements__toggle {
		padding-left: 0;
	}

	.doc-statements__dates label {
		flex: 1 1 calc(50% - 7px);
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.doc-statements__dates .form-control {
		width: 100%;
	}

	.doc-statements__item {
		flex-wrap: wrap;
		gap: 6px 12px;
	}

	.doc-statements__date {
		flex-basis: 100%;
		padding-left: 60px;
	}

	.doc-statement__pdf {
		height: 70vh;
		min-height: 360px;
	}
}
