/*
 * SOPSR Employee Search
 * Layout-only styling. Colors and typography intentionally inherit from Kadence.
 */

.sopsr-employee-search {
	margin: 0 0 2rem;
}

.sopsr-employee-search__field {
	margin-bottom: 1rem;
}

.sopsr-employee-search__field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.sopsr-employee-search__field input,
.sopsr-employee-search__field select {
	width: 100%;
	min-height: 48px;
	margin: 0;
}

.sopsr-employee-search__actions {
	margin: 0.25rem 0 2rem;
}

.sopsr-employee-search__actions button,
.sopsr-employee-search__actions input[type="submit"] {
	min-height: 48px;
	padding-inline: 1.35rem;
}

.sopsr-employee-results > p:first-child {
	margin: 0 0 1.25rem;
}

.sopsr-employee-results__table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sopsr-employee-results__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin: 0;
}

.sopsr-employee-results__table th,
.sopsr-employee-results__table td {
	vertical-align: top;
	text-align: left;
	padding: 0.8rem;
	border: 1px solid var(--global-palette7, #dfe3e6);
}

.sopsr-employee-results__table td {
	font-size: 1rem;
}

.sopsr-employee-results__table th {
	font-weight: 700;
	background: var(--global-palette8, #f5f6f7);
}

.sopsr-employee-results__table th:nth-child(1),
.sopsr-employee-results__table td:nth-child(1) {
	width: 38%;
}

.sopsr-employee-results__table th:nth-child(2),
.sopsr-employee-results__table td:nth-child(2) {
	width: 37%;
}

.sopsr-employee-results__table th:nth-child(3),
.sopsr-employee-results__table td:nth-child(3) {
	width: 25%;
}

.sopsr-employee-results__table td strong {
	display: inline-block;
	margin-bottom: 0.15rem;
}

.sopsr-employee-results__table a {
	overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 1024px) {
	.sopsr-employee-results__table th,
	.sopsr-employee-results__table td {
		padding: 0.75rem;
	}
}

/* Mobile: each employee becomes a full-width card. */
@media (max-width: 767px) {
	.sopsr-employee-search__actions button,
	.sopsr-employee-search__actions input[type="submit"] {
		width: 100%;
	}

	.sopsr-employee-results__table-wrap {
		overflow: visible;
	}

	.sopsr-employee-results__table,
	.sopsr-employee-results__table tbody,
	.sopsr-employee-results__table tr,
	.sopsr-employee-results__table td {
		display: block;
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box;
	}

	.sopsr-employee-results__table td:nth-child(1),
	.sopsr-employee-results__table td:nth-child(2),
	.sopsr-employee-results__table td:nth-child(3) {
		width: 100% !important;
	}

	.sopsr-employee-results__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.sopsr-employee-results__table tr {
		margin-bottom: 1rem;
		border: 1px solid var(--global-palette7, #dfe3e6);
		border-radius: 4px;
		overflow: hidden;
		background: var(--global-palette9, #fff);
	}

	.sopsr-employee-results__table td {
		border: 0;
		border-bottom: 1px solid var(--global-palette7, #dfe3e6);
		padding: 0.8rem 0.8rem;
		font-size: 1.1rem;
	}

	.sopsr-employee-results__table td:last-child {
		border-bottom: 0;
	}

	.sopsr-employee-results__table td::before {
		display: block;
		margin-bottom: 0.25rem;
		font-size: 0.85em;
		font-weight: 700;
		opacity: 1;
	}

	.sopsr-employee-results__table td:nth-child(1)::before {
		content: "Meno / funkcia / e-mail";
	}

	.sopsr-employee-results__table td:nth-child(2)::before {
		content: "Adresa pracoviska";
	}

	.sopsr-employee-results__table td:nth-child(3)::before {
		content: "Telefón / mobil / fax";
	}
}
