.cjenik-hr-history {
	box-sizing: border-box;
	width: 100%;
	padding: var(--chr-container-padding);
	background: var(--chr-background);
	color: var(--chr-text);
}

.cjenik-hr-history *,
.cjenik-hr-history *::before,
.cjenik-hr-history *::after {
	box-sizing: inherit;
}

.cjenik-hr-history .cjenik-hr-day {
	margin: 0 0 var(--chr-section-spacing);
}

.cjenik-hr-history .cjenik-hr-day:last-child {
	margin-bottom: 0;
}

.cjenik-hr-history .cjenik-hr-date {
	margin: 0 0 0.55em;
	color: var(--chr-text);
	font-family: var(--chr-title-font);
	font-size: var(--chr-title-size);
	font-weight: var(--chr-title-weight);
	font-style: var(--chr-title-style);
	line-height: 1.2;
	text-decoration: var(--chr-title-decoration);
}

.cjenik-hr-history .cjenik-hr-type-title {
	margin: 1.15em 0 0.55em;
	color: var(--chr-text);
	font-family: var(--chr-subtitle-font);
	font-size: var(--chr-subtitle-size);
	font-weight: var(--chr-subtitle-weight);
	font-style: var(--chr-subtitle-style);
	line-height: 1.3;
	text-decoration: var(--chr-subtitle-decoration);
}

.cjenik-hr-history .cjenik-hr-table-shell {
	overflow-x: auto;
	border: var(--chr-border-width) solid #d8dee9;
	border-radius: var(--chr-radius);
	background: var(--chr-odd-background);
	box-shadow: var(--chr-shadow);
}

.cjenik-hr-history .cjenik-hr-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	color: var(--chr-text);
	font-family: var(--chr-table-font);
	font-size: var(--chr-table-size);
	font-weight: var(--chr-table-weight);
	font-style: var(--chr-table-style);
	line-height: 1.45;
	text-decoration: var(--chr-table-decoration);
}

.cjenik-hr-history .cjenik-hr-table th,
.cjenik-hr-history .cjenik-hr-table td {
	padding: var(--chr-cell-y) var(--chr-cell-x);
	border: 0;
	border-bottom: var(--chr-border-width) solid #d8dee9;
	background: transparent;
	color: var(--chr-text);
	text-align: left;
	vertical-align: middle;
}

.cjenik-hr-history .cjenik-hr-table th {
	background: var(--chr-header-background);
	font-weight: 600;
}

.cjenik-hr-history .cjenik-hr-table th:last-child,
.cjenik-hr-history .cjenik-hr-table td:last-child {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

.cjenik-hr-history .cjenik-hr-table tbody tr:nth-child(odd) {
	background: var(--chr-odd-background);
}

.cjenik-hr-history .cjenik-hr-table tbody tr:nth-child(even) {
	background: var(--chr-even-background);
}

.cjenik-hr-history .cjenik-hr-table tbody tr:hover {
	background: var(--chr-row-hover);
}

.cjenik-hr-history .cjenik-hr-table tbody tr:last-child td {
	border-bottom: 0;
}

.cjenik-hr-history .cjenik-hr-file-link {
	color: var(--chr-link);
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.cjenik-hr-history .cjenik-hr-file-link:hover,
.cjenik-hr-history .cjenik-hr-file-link:focus {
	color: var(--chr-link-hover);
}

.cjenik-hr-history .cjenik-hr-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: var(--chr-button-radius);
	background: var(--chr-button-background);
	color: var(--chr-button-text);
	font: inherit;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.cjenik-hr-history .cjenik-hr-download:hover,
.cjenik-hr-history .cjenik-hr-download:focus {
	background: var(--chr-button-hover);
	color: var(--chr-button-text);
	transform: translateY(-1px);
}

@media (max-width: 680px) {
	.cjenik-hr-history.cjenik-hr-history--mobile-cards {
		padding: min(var(--chr-container-padding), 16px);
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-table,
	.cjenik-hr-history--mobile-cards .cjenik-hr-table tbody,
	.cjenik-hr-history--mobile-cards .cjenik-hr-table tr,
	.cjenik-hr-history--mobile-cards .cjenik-hr-table td {
		display: block;
		width: 100%;
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-table tr {
		padding: calc(var(--chr-cell-y) * 0.5) var(--chr-cell-x);
		border-bottom: var(--chr-border-width) solid #d8dee9;
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-table tbody tr:last-child {
		border-bottom: 0;
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-table td,
	.cjenik-hr-history--mobile-cards .cjenik-hr-table td:last-child {
		display: grid;
		grid-template-columns: minmax(105px, 32%) 1fr;
		align-items: center;
		width: 100%;
		padding: calc(var(--chr-cell-y) * 0.5) 0;
		border: 0;
		text-align: left;
		white-space: normal;
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-table td::before {
		padding-right: 12px;
		content: attr(data-label);
		font-size: 0.78em;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.cjenik-hr-history--mobile-cards .cjenik-hr-download {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cjenik-hr-history .cjenik-hr-download {
		transition: none;
	}
}
