@charset "ISO-8859-1";

/* Cabeçalho personalizado */
.custom-header {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-bottom: 2px solid #e2e8f0;
	padding: 4rem 0 3rem 0;
	text-align: center;
	margin-bottom: 2rem;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 10;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom-header-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	position: relative;
	z-index: 1;
}

.custom-header-title {
	font-size: 2.75rem;
	font-weight: 700;
	color: #14BEE2;
	margin: 0;
	text-align: center;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
	hyphens: auto;
	overflow: visible;
	word-break: normal;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	z-index: 999 !important;
}

.custom-header-subtitle {
	font-size: 1.35rem;
	color: #64748b;
	margin: 0;
	text-align: center;
	font-weight: 500;
}

.custom-header-logo {
	width: 100px;
	height: 100px;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	border: 3px solid #fff;
	background-color: #f8fafc;
	display: block;
	max-width: 100%;
	height: auto;
}

/* Header com Estatísticas */
.processos-header {
	margin-bottom: 3rem;
	padding: 0 1rem;
	width: 100%;
	box-sizing: border-box;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	margin-bottom: 3rem;
}

.stat-card {
	background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
	padding: 2.5rem 2rem;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border: 1px solid #e2e8f0;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1976d2, #2196f3);
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-value {
	font-size: 3.5rem;
	font-weight: 800;
	color: #1976d2;
	margin-bottom: 1rem;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
}

.stat-label {
	color: #475569;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Botão de Cadastro */
.cadastro-button-container {
	text-align: center;
	margin-top: 3rem;
	padding: 0 1rem;
}

.cadastro-button {
	padding: 1.5rem 4rem !important;
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	border-radius: 50px !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	border: none !important;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
	text-transform: none !important;
	letter-spacing: 0.3px !important;
	color: white !important;
	position: relative !important;
	overflow: hidden !important;
	min-width: 320px !important;
}

.cadastro-button::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: -100% !important;
	width: 100% !important;
	height: 100% !important;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
	transition: left 0.5s !important;
}

.cadastro-button:hover {
	transform: translateY(-5px) scale(1.02) !important;
	box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6) !important;
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.cadastro-button:hover::before {
	left: 100% !important;
}

.cadastro-button:active {
	transform: translateY(-2px) scale(0.98) !important;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
}

/* Seção de Processos Recentes */
.recent-processes-section {
	margin-bottom: 3rem;
	padding: 0 1rem;
	width: 100%;
	box-sizing: border-box;
}

/* Melhorias gerais para o card principal */
.card {
	padding: 2rem;
	background: transparent;
	border: none;
	box-shadow: none;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #14BEE2;
	margin-bottom: 2rem;
	text-align: center;
	position: relative;
	padding-bottom: 1rem;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, #1976d2, #2196f3);
	border-radius: 2px;
}

/* Tabela de Processos */
.processos-table {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid #e2e8f0;
	margin-top: 2rem;
}

/* Melhorias para a tabela de produtos */
.products-table-header {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	padding: 1.5rem 2rem;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 16px 16px 0 0;
	position: relative;
}

/* Filtros simples e elegantes */
.products-table-header .filter-item {
	flex: 1;
	min-width: 200px;
	max-width: 300px;
}

.products-table-header .filter-dropdown {
	width: 100% !important;
	border-radius: 6px !important;
	border: 1px solid #d1d5db !important;
	background: #fff !important;
	padding: 0.75rem 1rem !important;
	font-size: 0.9rem !important;
	color: #374151 !important;
	transition: border-color 0.2s ease !important;
}

.products-table-header .filter-dropdown:hover {
	border-color: #9ca3af !important;
}

.products-table-header .filter-dropdown:focus {
	border-color: #3b82f6 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Estilo para o ui-inputgroup */
.products-table-header .ui-inputgroup {
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #d1d5db;
	transition: border-color 0.2s ease;
}

.products-table-header .ui-inputgroup:hover {
	border-color: #9ca3af;
}

.products-table-header .ui-inputgroup:focus-within {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.products-table-header .ui-inputgroup-addon {
	background: #f3f4f6 !important;
	border: none !important;
	border-right: 1px solid #d1d5db !important;
	color: #6b7280 !important;
	padding: 0.75rem !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.products-table-header .ui-inputgroup-addon i {
	font-size: 14px !important;
	color: #6b7280 !important;
}

/* Regra específica para o input da lupa na tabela */
.products-table-header .ui-inputgroup input {
	border: none !important;
	padding: 0.75rem 1rem !important;
	background: transparent !important;
	font-size: 0.9rem !important;
	color: #374151 !important;
	width: 100% !important;
}

/* Estilo para o dropdown do PrimeFaces */
.products-table-header .ui-selectonemenu {
	width: 100% !important;
	border-radius: 6px !important;
	border: 1px solid #d1d5db !important;
	background: #fff !important;
	padding: 0.75rem 1rem !important;
	font-size: 0.9rem !important;
	color: #374151 !important;
	transition: border-color 0.2s ease !important;
	position: relative !important;
}

.products-table-header .ui-selectonemenu:hover {
	border-color: #9ca3af !important;
}

.products-table-header .ui-selectonemenu.ui-state-focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.products-table-header .ui-selectonemenu .ui-selectonemenu-trigger {
	border: none !important;
	background: transparent !important;
	color: #6b7280 !important;
	width: 24px !important;
	height: 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 14px !important;
	position: absolute !important;
	right: 8px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}

.products-table-header .ui-selectonemenu .ui-selectonemenu-label {
	color: #374151 !important;
	font-size: 0.9rem !important;
	padding-right: 32px !important;
}

/* Status Badges */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: 25px;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-badge.acolhimento {
	background: linear-gradient(135deg, #e3f2fd, #bbdefb);
	color: #1565c0;
}

.status-badge.publicado {
	background: linear-gradient(135deg, #e3f2fd, #bbdefb);
	color: #1565c0;
}

.status-badge.julgado {
	background: linear-gradient(135deg, #f3e5f5, #e1bee7);
	color: #7b1fa2;
}

.status-badge.homologado {
	background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
	color: #2e7d32;
}

.status-badge.deserto {
	background: linear-gradient(135deg, rgb(255, 130, 130), rgb(255, 113, 113));
	color: rgb(255, 0, 0);
}

.status-badge i {
	font-size: 1rem;
}

/* Objeto Content */
.objeto-content {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.6;
	color: #374151;
}

/* Regra global para garantir que o título seja sempre visível */
.custom-header-title,
.custom-header-title * {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	z-index: 999 !important;
}

/* Responsividade */
@media screen and (max-width: 1200px) {
	.custom-header-title {
		font-size: 2.5rem;
	}
	
	.stats-grid {
		gap: 2rem;
	}
	
	.stat-value {
		font-size: 3rem;
	}
}

@media screen and (max-width: 992px) {
	.custom-header {
		padding: 2rem 0;
	}
	
	.custom-header-title {
		font-size: 2.25rem;
	}
	
	.custom-header-subtitle {
		font-size: 1.2rem;
	}
	
	.custom-header-logo {
		width: 80px;
		height: 80px;
	}
	
	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 1.5rem;
	}
	
	.stat-value {
		font-size: 2.75rem;
	}
	
	.section-title {
		font-size: 1.75rem;
	}
}

@media screen and (max-width: 768px) {
	.custom-header {
		padding: 2rem 0 1.5rem 0;
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.custom-header-title {
		font-size: 1.4rem;
		line-height: 1.3;
		padding: 0 0.5rem;
		word-break: normal;
		hyphens: none;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.custom-header-subtitle {
		font-size: 0.95rem;
		padding: 0 0.5rem;
	}
	
	.custom-header-content {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.custom-header-logo {
		width: 60px;
		height: 60px;
	}
	
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
		margin-bottom: 2rem;
	}
	
	.stat-card {
		padding: 1.5rem 1rem;
	}
	
	.stat-value {
		font-size: 2rem;
	}
	
	.stat-label {
		font-size: 0.9rem;
	}
	
	.cadastro-button {
		font-size: 1rem !important;
		padding: 1.25rem 2rem !important;
		width: 100% !important;
		max-width: 300px;
		min-width: auto !important;
	}
	
	.section-title {
		font-size: 1.4rem;
		margin-bottom: 1rem;
	}
	
	.products-table-header {
		flex-direction: column !important;
		gap: 1rem !important;
		padding: 1rem !important;
	}
	
	.products-table-header .filter-item {
		min-width: 100% !important;
		max-width: 100% !important;
	}
}

@media screen and (max-width: 480px) {
	.custom-header {
		padding: 2rem 0 1rem 0;
	}
	
	.custom-header-content {
		padding: 0 0.25rem;
	}
	
	.custom-header-title {
		font-size: 1.1rem;
		line-height: 1.2;
		padding: 0 0.25rem;
		word-break: normal;
		hyphens: none;
		max-width: 100%;
		overflow-wrap: break-word;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.custom-header-subtitle {
		font-size: 0.85rem;
		padding: 0 0.25rem;
	}
}

/* Regra específica para telas muito pequenas */
@media screen and (max-width: 360px) {
	.custom-header-title {
		font-size: 1rem;
		line-height: 1.2;
		padding: 0 0.5rem;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.custom-header-subtitle {
		font-size: 0.8rem;
		padding: 0 0.5rem;
	}
	
	.custom-header-logo {
		width: 45px;
		height: 45px;
	}
	
	.processos-header {
		padding: 0 0.25rem;
	}
	
	.recent-processes-section {
		padding: 0 0.25rem;
	}
	
	.stat-card {
		padding: 1.25rem 0.75rem;
	}
	
	.stat-value {
		font-size: 1.75rem;
	}
	
	.stat-label {
		font-size: 0.8rem;
	}
	
	.cadastro-button {
		font-size: 0.9rem !important;
		padding: 1rem 1.5rem !important;
		max-width: 250px;
		min-width: auto !important;
	}
	
	.section-title {
		font-size: 1.2rem;
	}
}

/* Estilos personalizados para os botões de lupa (Visualizar Detalhes) */
.p-button-rounded.p-button-info.p-button-outlined {
	background-color: #14BEE2 !important;
	border-color: #14BEE2 !important;
	color: #ffffff !important;
}

.p-button-rounded.p-button-info.p-button-outlined:hover {
	background-color: #0ea5e9 !important;
	border-color: #0ea5e9 !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(20, 190, 226, 0.3);
}

.p-button-rounded.p-button-info.p-button-outlined:focus {
	background-color: #0ea5e9 !important;
	border-color: #0ea5e9 !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 0.2rem rgba(20, 190, 226, 0.25);
}

.p-button-rounded.p-button-info.p-button-outlined:active {
	background-color: #0284c7 !important;
	border-color: #0284c7 !important;
	color: #ffffff !important;
}

/* Estilos para botões info em geral */
.ui-button.ui-button-info {
	background: #14BEE2 !important;
	border-color: #14BEE2 !important;
	color: #ffffff !important;
}

.ui-button.ui-button-info.ui-state-hover {
	background: #0ea5e9 !important;
	border-color: #0ea5e9 !important;
	color: #ffffff !important;
}

.ui-button.ui-button-info.ui-state-focus {
	box-shadow: 0 0 0 0.2rem rgba(20, 190, 226, 0.25) !important;
}

.ui-button.ui-button-info.ui-state-active {
	background: #0284c7 !important;
	border-color: #0284c7 !important;
	color: #ffffff !important;
}

.ui-button.ui-button-info.ui-button-outlined {
	background-color: transparent !important;
	color: #14BEE2 !important;
	border: 1px solid #14BEE2 !important;
}

.ui-button.ui-button-info.ui-button-outlined.ui-state-hover {
	background: rgba(20, 190, 226, 0.1) !important;
	color: #14BEE2 !important;
	border: 1px solid #14BEE2 !important;
}

.ui-button.ui-button-info.ui-button-outlined.ui-state-active {
	background: rgba(20, 190, 226, 0.2) !important;
	color: #14BEE2 !important;
	border: 1px solid #14BEE2 !important;
}