/* SDC Planning Search frontend styles */
.sdcps-wrap {
	margin: 1.5rem 0;
}

.sdcps-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.9rem;
	margin-bottom: 1.25rem;
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
}

.sdcps-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sdcps-field label {
	font-weight: 600;
}

.sdcps-field input,
.sdcps-field select {
	width: 100%;
	padding: 0.55rem 0.65rem;
}

.sdcps-field--wide {
	grid-column: 1 / -1;
}

.sdcps-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	grid-column: 1 / -1;
}

.sdcps-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
}

.sdcps-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	grid-column: 1 / -1;
}

.sdcps-actions button,
.sdcps-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.55rem 0.95rem;
	border: 1px solid #2271b1;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
}

.sdcps-actions button {
	background: #2271b1;
	color: #fff;
}

.sdcps-reset {
	background: #fff;
	color: #2271b1;
}

.sdcps-summary {
	margin: 0 0 1rem;
	font-weight: 600;
}

.sdcps-table-wrap {
	overflow-x: auto;
}

.sdcps-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #dcdcde;
	background: #fff;
}

.sdcps-table th,
.sdcps-table td {
	padding: 0.75rem;
	border-bottom: 1px solid #dcdcde;
	vertical-align: top;
	text-align: left;
}

.sdcps-table thead th {
	position: sticky;
	top: 0;
	background: #f6f7f7;
	z-index: 1;
}

.sdcps-table th a {
	text-decoration: none;
}

.sdcps-table tbody tr:nth-child(even) {
	background: #fcfcfc;
}

.sdcps-cell--wrap {
	min-width: 220px;
	max-width: 340px;
	word-break: break-word;
	white-space: normal;
}

.sdcps-cell--details details {
	min-width: 240px;
}

.sdcps-cell--details summary {
	cursor: pointer;
	font-weight: 600;
}

.sdcps-detail-grid {
	display: grid;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.sdcps-detail-block {
	margin-top: 0.25rem;
}

.sdcps-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.sdcps-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: 0 0.7rem;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	background: #fff;
	text-decoration: none;
}

.sdcps-page-link.is-current {
	font-weight: 700;
	background: #f0f0f1;
}

@media (max-width: 600px) {
	.sdcps-form {
		grid-template-columns: 1fr;
	}

	.sdcps-checkboxes,
	.sdcps-actions {
		flex-direction: column;
		align-items: stretch;
	}
}
