/* Sertifikati uz rad i pregled primeraka */

.ag-site .ag-wcert {
	margin-block: 32px;
	scroll-margin-top: 110px;
}

.ag-site .ag-wcert > h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 25px;
	line-height: 1.3;
}

.ag-site .ag-wcert > h2 .ag-icon {
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	color: #44835c;
}

.ag-site .ag-wcert-intro {
	max-width: none;
	color: #6e6e73;
	font-size: 14px;
}

.ag-site .ag-wcert-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ag-site .ag-wcert-card,
.ag-site .ag-wcert-empty {
	min-width: 0;
	padding: 24px;
	border: 1px solid #e3e7e5;
	border-radius: 23px;
	background: #fff;
	box-shadow: 0 6px 22px rgb(0 0 0 / 3%);
}

.ag-site .ag-wcert-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ag-site .ag-wcert-card h3 {
	margin: 20px 0 8px;
	font-size: 23px;
}

.ag-site .ag-wcert-card p {
	margin: 5px 0 12px;
	color: #606067;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.ag-site .ag-wcert-status {
	display: inline-flex;
	padding: 7px 11px;
	border-radius: 999px;
	background: #f1f1f4;
	color: #606067;
	font-size: 12px;
	font-weight: 600;
}

.ag-site .ag-wcert-status[data-tone="green"] {
	background: #edf7f0;
	color: #356849;
}

.ag-site .ag-wcert-status[data-tone="orange"] {
	background: #fff2e3;
	color: #81551e;
}

.ag-site .ag-wcert-status[data-tone="red"] {
	background: #fceeee;
	color: #963f49;
}

.ag-site .ag-wcert-card .ag-wcert-refund {
	padding: 12px;
	border-radius: 12px;
	background: #fff2e3;
	color: #81551e;
}

.ag-site .ag-wcert a.ag-wcert-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 100%;
	margin-top: 16px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}

.ag-site .ag-wcert a.ag-wcert-button:hover {
	background: #0077ed;
	color: #fff;
	text-decoration: none;
}

.ag-site .ag-wcert a.ag-wcert-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 16px;
	color: #0071e3;
	font-size: 13px;
	text-decoration: none;
}

.ag-site .ag-wcert-button .ag-icon,
.ag-site .ag-wcert-link .ag-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.ag-site .ag-wcert a:focus-visible {
	outline: 3px solid #0071e3;
	outline-offset: 4px;
}

.ag-site.ag-editions-page {
	background: #f5f5f7;
}

.ag-editions-page #ag-edition-new {
	scroll-margin-top: 110px;
}

.ag-editions-page .ag-edition-shortcuts {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.ag-editions-page .ag-edition-shortcuts a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0071e3;
	text-decoration: none;
}

.ag-editions-page .ag-edition-shortcuts .ag-icon {
	width: 21px;
	height: 21px;
}

.ag-editions-page .main-content > article,
.ag-editions-page .main-content > section:not(.ag-wcert),
.ag-editions-page .auth-form {
	margin-block: 20px;
	padding: 24px;
	border: 1px solid #e5e5eb;
	border-radius: 22px;
	background: #fff;
}

.ag-editions-page .auth-form {
	max-width: none;
}

.ag-editions-page .auth-form select,
.ag-editions-page .auth-form input:not([type="hidden"]):not([type="checkbox"]) {
	width: 100%;
	padding: 12px;
	border: 1px solid #c9c9d0;
	border-radius: 12px;
	background: #fafafb;
	font: inherit;
	font-size: 16px;
}

.ag-editions-page .auth-form input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	accent-color: #0071e3;
}

.ag-editions-page .auth-form button {
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
}

.ag-editions-page table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.ag-editions-page th,
.ag-editions-page td {
	padding: 14px;
	border-bottom: 1px solid #e5e5eb;
	text-align: left;
	vertical-align: top;
}

@media (max-width: 760px) {
	.ag-site .ag-wcert-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-site .ag-wcert-card,
	.ag-site .ag-wcert-empty {
		padding: 20px;
	}

	.ag-site .ag-wcert > h2 {
		font-size: 22px;
	}

	.ag-site.ag-editions-page {
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}

	.ag-editions-page .ag-edition-shortcuts {
		display: none;
	}

	.ag-editions-page .ag-bottom-nav {
		display: flex;
		position: fixed;
		inset: auto 0 0;
		z-index: 100;
		width: 100%;
		justify-content: space-around;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgb(0 0 0 / 8%);
		background: rgb(250 250 252 / 94%);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
	}

	.ag-editions-page .ag-bottom-link {
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-width: 0;
		min-height: 48px;
		padding: 4px;
		color: #6e6e73;
		text-decoration: none;
	}

	.ag-editions-page .ag-bottom-link[aria-current="page"] {
		color: #0071e3;
	}

	.ag-editions-page .ag-bottom-icon {
		position: relative;
		display: inline-flex;
	}

	.ag-editions-page .ag-bottom-icon .ag-icon {
		width: 23px;
		height: 23px;
	}

	.ag-editions-page .ag-bottom-label {
		font-size: 11px;
		line-height: 1.25;
	}
}
/* Sertifikati rada — prikaz na klik */
.ag-site details.ag-wcert-collapse {
	padding: 0;
	margin-block: 28px;
	border: 1px solid #dce7e2;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 8px 24px rgb(0 0 0 / 4%);
	overflow: hidden;
	scroll-margin-top: 110px;
}

.ag-site .ag-wcert-collapse > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	margin: 0;
	background: #edf6f1;
	color: #285d45;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.ag-site .ag-wcert-collapse > summary::-webkit-details-marker {
	display: none;
}

.ag-site .ag-wcert-collapse > summary::marker {
	content: "";
}

.ag-site .ag-wcert-collapse > summary > .ag-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	color: #498b68;
}

.ag-site .ag-wcert-collapse > summary > span:first-of-type {
	flex: 1;
	min-width: 0;
}

.ag-site .ag-wcert-chevron {
	width: 9px;
	height: 9px;
	flex: 0 0 9px;
	margin-right: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 180ms ease;
}

.ag-site .ag-wcert-collapse[open] > summary .ag-wcert-chevron {
	transform: rotate(225deg);
}

.ag-site .ag-wcert-collapse > summary:hover {
	background: #e4f1e9;
}

.ag-site .ag-wcert-collapse > summary:focus-visible {
	outline: 3px solid #0071e3;
	outline-offset: -4px;
}

.ag-site .ag-wcert-content {
	padding: 24px;
}

@media (max-width: 767px) {
	.ag-site .ag-wcert-collapse > summary {
		padding: 18px 16px;
		gap: 10px;
		font-size: 16px;
	}

	.ag-site .ag-wcert-content {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-site .ag-wcert-chevron {
		transition: none;
	}
}