.gss-search-wrap {
	max-width: 100%;
	margin: 1.5em 0;
	font-family: inherit;
}

.gss-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	padding: 16px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.gss-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
	flex: 1 1 160px;
}

.gss-field-testo {
	flex: 2 1 240px;
}

.gss-field label {
	font-size: 0.85em;
	font-weight: 600;
	color: #333;
}

.gss-field input[type="text"],
.gss-field select {
	padding: 8px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 1em;
}

.gss-field-submit {
	flex: 0 0 auto;
	min-width: auto;
}

.gss-field-submit button {
	padding: 9px 22px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	cursor: pointer;
}

.gss-field-submit button:hover {
	background: #135e96;
}

.gss-status {
	margin: 12px 0;
	font-size: 0.9em;
	color: #555;
	min-height: 1.2em;
}

.gss-status.gss-error {
	color: #d63638;
}

.gss-results {
	overflow-x: auto;
}

.gss-results table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
}

.gss-results th,
.gss-results td {
	padding: 8px 10px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
	white-space: nowrap;
}

.gss-results thead th {
	background: #f0f0f1;
	font-weight: 600;
}

.gss-results thead th.gss-sortable {
	cursor: pointer;
	user-select: none;
}

.gss-results thead th.gss-sortable:hover {
	background: #e2e4e7;
}

.gss-results thead th.gss-sortable:focus {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.gss-results thead th.gss-sort-active {
	background: #dcdcde;
	color: #135e96;
}

.gss-results tbody tr:hover {
	background: #f9f9f9;
}

.gss-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 16px 0;
}

.gss-pagination button {
	padding: 6px 14px;
	border: 1px solid #c3c4c7;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.gss-pagination button:disabled {
	opacity: 0.4;
	cursor: default;
}

.gss-pagination span {
	font-size: 0.9em;
	color: #555;
}

@media (max-width: 600px) {
	.gss-search-form {
		flex-direction: column;
		align-items: stretch;
	}
	.gss-field {
		min-width: 0;
	}
}
