.servicos-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 10px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

/* Título e Subtítulo */
.servicos-header {
	max-width: 1000px;
	margin: 0 auto 35px auto;
	box-sizing: border-box;
}

.servicos-page-subtitle {
	font-size: 15px;
	color: #86868b;
	margin: 5px 0 0 0;
	font-weight: 500;
	line-height: 1.4;
}

/* Painel Geral (Apple Style) */
.apple-panel {
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid #e5e5ea;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}

/* Barra de Filtro e Pesquisa Avançada */
.servicos-filter-bar {
	margin-bottom: 25px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.search-input-wrapper {
	position: relative;
	width: 100%;
}

.search-input-wrapper .search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #86868b;
	font-size: 16px;
	pointer-events: none;
}

.search-input-wrapper input[type="text"] {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 46px;
	border-radius: 12px;
	border: 1px solid #d2d2d7;
	background-color: #f5f5f7;
	font-size: 15px;
	color: #1d1d1f;
	outline: none;
	transition: all 0.2s ease-in-out;
	font-family: inherit;
	box-sizing: border-box;
}

.search-input-wrapper input[type="text"]:focus {
	border-color: #154794;
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(21, 71, 148, 0.1);
}

.filter-dropdowns-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.dropdown-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dropdown-field label {
	font-size: 12.5px;
	font-weight: 700;
	color: #86868b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dropdown-field select {
	height: 46px;
	padding: 0 16px;
	border-radius: 10px;
	border: 1px solid #d2d2d7;
	background-color: #ffffff;
	font-size: 14.5px;
	color: #1d1d1f;
	outline: none;
	transition: all 0.2s ease;
	font-family: inherit;
	cursor: pointer;
}

.dropdown-field select:focus {
	border-color: #154794;
	box-shadow: 0 0 0 3px rgba(21, 71, 148, 0.08);
}

/* Grade de Cards (Estilo Convênios e Licitações) */
.servicos-cards-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 35px;
}

.servico-card {
	padding: 24px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid #e5e5ea;
	background: #ffffff;
}

.servico-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
	border-color: rgba(21, 71, 148, 0.15);
}

.servico-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

/* Badges */
.servico-badge-cat,
.servico-badge-complexity {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: 0.5px;
}

.servico-badge-cat {
	background: rgba(21, 71, 148, 0.08);
	color: #154794;
}

/* Complexidades */
.comp-baixa {
	background: rgba(142, 142, 147, 0.1);
	color: #8e8e93;
}

.comp-media {
	background: rgba(255, 149, 0, 0.1);
	color: #ff9500;
}

.comp-alta {
	background: rgba(255, 59, 48, 0.1);
	color: #ff3b30;
}

.servico-title {
	font-size: 18px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 16px 0;
	line-height: 1.35;
	font-family: inherit;
}

/* Linha de Meta e Valores */
.servico-meta-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	padding-top: 15px;
	border-top: 1px solid #f5f5f7;
}

.meta-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.meta-label {
	font-size: 10.5px;
	font-weight: 700;
	color: #86868b;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.meta-code {
	font-family: SFMono-Regular, Consolas, monospace;
	font-size: 13.5px;
	color: #48484a;
	background: #f5f5f7;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #e5e5ea;
	display: inline-block;
}

.meta-value-item {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.meta-price {
	font-size: 20px;
	font-weight: 800;
	color: #154794;
	letter-spacing: -0.5px;
}

/* No Results Card */
.no-results-card {
	padding: 50px 24px;
	text-align: center;
	color: #86868b;
	font-size: 15px;
}

/* Loading Placeholder */
.loading-placeholder {
	padding: 80px 24px;
	text-align: center;
}

.spinner-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.servicos-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(21, 71, 148, 0.1);
	border-radius: 50%;
	border-top-color: #154794;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Paginação Dinâmica Padrão do Site (Igual ao Print) */
.servicos-pagination-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
}

/* Botões Anterior/Próxima */
.pag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	outline: none;
	font-family: inherit;
}

.pag-btn.prev {
	background: #f2f2f7;
	border: 1px solid #e5e5ea;
	color: #8e8e93;
}

.pag-btn.prev.active {
	background: #ffffff;
	border: 1px solid #d2d2d7;
	color: #48484a;
}

.pag-btn.prev.active:hover {
	border-color: #154794;
	color: #154794;
	background: rgba(21, 71, 148, 0.04);
}

.pag-btn.next {
	background: #ffffff;
	border: 1px solid #d2d2d7;
	color: #154794;
}

.pag-btn.next.active:hover {
	border-color: #154794;
	background: rgba(21, 71, 148, 0.04);
}

.pag-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
	pointer-events: none;
}

/* Números das Páginas */
.pag-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid #d2d2d7;
	font-size: 14.5px;
	font-weight: 600;
	color: #154794;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	outline: none;
}

.pag-num:hover {
	border-color: #154794;
	background: rgba(21, 71, 148, 0.04);
}

/* Estilo Verde Cana Ativo (Nativo do Print do Anexo) */
.pag-num.active {
	background: #5bc82c !important;
	border-color: #5bc82c !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(91, 200, 44, 0.3) !important;
}

.pag-dots {
	font-size: 14px;
	color: #86868b;
	padding: 0 5px;
}

/* Responsividade */
@media (max-width: 768px) {
	.filter-dropdowns-wrapper {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.servico-card {
		padding: 20px;
	}
	
	.servico-meta-line {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.meta-value-item {
		align-items: flex-start;
	}
	
	.servicos-pagination-wrapper {
		gap: 5px;
	}
	
	.pag-btn {
		padding: 0 10px;
		font-size: 13.5px;
	}
}
