/* 1. CONTAINER PRINCIPAL E GERAL */
.cis-licitacoes-wrap, .cis-licitacao-details-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	font-family: 'Inter', sans-serif;
	color: #1d1d1f;
}

/* 2. BARRA DE FILTROS INTELIGENTE */
.licitacoes-filters-card {
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.filters-grid {
	display: grid;
	grid-template-columns: 2fr 1.5fr 1.2fr 1fr;
	gap: 20px;
}

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

.filter-field label {
	font-size: 11px;
	font-weight: 700;
	color: #86868b;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.filter-field input, .filter-field select {
	height: 44px;
	padding: 0 16px;
	border: 1px solid #d2d2d7;
	border-radius: 8px;
	font-size: 14px;
	color: #1d1d1f;
	background-color: #f5f5f7;
	transition: all 0.2s ease;
	outline: none;
	width: 100%;
	box-sizing: border-box;
}

.filter-field input:focus, .filter-field select:focus {
	border-color: #154794;
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(21, 71, 148, 0.1);
}

@media (max-width: 800px) {
	.filters-grid {
		grid-template-columns: 1fr 1fr;
		gap: 15px;
	}
}

@media (max-width: 500px) {
	.filters-grid {
		grid-template-columns: 1fr;
	}
}

/* 3. LISTAGEM DE LICITAÇÕES (Grid de Cards) */
.licitacoes-list-grid-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: opacity 0.25s ease;
}

.licitacao-card-item {
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01);
	transition: all 0.3s ease;
}

.licitacao-card-item:hover {
	border-color: #154794;
	box-shadow: 0 8px 25px rgba(21, 71, 148, 0.05);
	transform: translateY(-2px);
}

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

/* Badges */
.card-modalidade-badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #154794;
	background-color: rgba(21, 71, 148, 0.08);
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}

.card-status-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
}

.status-em-andamento {
	background-color: #e3f7fc;
	color: #0288d1;
}

.status-concluida-homologada {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.status-suspensa {
	background-color: #fff3e0;
	color: #f57c00;
}

.status-revogada, .status-anulada, .status-deserta, .status-fracassada {
	background-color: #ffebee;
	color: #c62828;
}

.card-item-title {
	font-size: 18px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 10px 0;
	font-family: 'Outfit', sans-serif;
}

.card-item-objeto {
	font-size: 14px;
	line-height: 1.6;
	color: #515154;
	margin: 0 0 20px 0;
}

.card-item-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #f5f5f7;
	padding-top: 16px;
	flex-wrap: wrap;
	gap: 15px;
}

.card-footer-info {
	font-size: 13px;
	color: #86868b;
}

.card-footer-info strong {
	color: #1d1d1f;
}

.card-footer-info i {
	margin-right: 6px;
	color: #154794;
}

.btn-licitacao-detail {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #f5f5f7;
	color: #1d1d1f;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #e5e5ea;
	transition: all 0.3s ease;
}

.licitacao-card-item:hover .btn-licitacao-detail {
	background-color: #154794;
	color: #ffffff;
	border-color: #154794;
	box-shadow: 0 4px 12px rgba(21, 71, 148, 0.2);
}

.licitacoes-empty-state {
	text-align: center;
	padding: 60px 20px;
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	color: #86868b;
}

.licitacoes-empty-state i {
	font-size: 48px;
	color: #d2d2d7;
	margin-bottom: 16px;
}

/* 4. PÁGINA DE DETALHES DA LICITAÇÃO */
.details-nav-back {
	margin-bottom: 25px;
}

.btn-nav-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #154794;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.btn-nav-back:hover {
	transform: translateX(-3px);
}

.licitacao-details-header {
	margin-bottom: 30px;
}

.header-meta-badges {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	align-items: center;
}

.badge-modalidade {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #154794;
	background-color: rgba(21, 71, 148, 0.08);
	padding: 6px 14px;
	border-radius: 20px;
	letter-spacing: 0.03em;
}

.badge-status {
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.header-objeto-title {
	font-size: 18px;
	font-weight: 400;
	color: #1d1d1f;
	margin: 0 0 12px 0;
	line-height: 1.5;
	font-family: 'Inter', sans-serif;
}

.header-process-number {
	font-size: 15px;
	color: #6e6e73;
}

.header-process-number strong {
	color: #1d1d1f;
}

/* Grid de Informações de Publicação e Valor */
.licitacao-info-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.summary-info-card {
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 20px 24px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.info-card-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #86868b;
	margin-bottom: 6px;
	letter-spacing: 0.08em;
}

.info-card-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #1d1d1f;
	font-family: 'Outfit', sans-serif;
}

@media (max-width: 600px) {
	.licitacao-info-summary-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

/* Cronograma / Linha do Tempo */
.licitacao-timeline-card {
	background-color: #f5f5f7;
	border: 1px solid #e5e5ea;
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 35px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.timeline-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 25px;
	color: #154794;
}

.timeline-card-header i {
	font-size: 20px;
}

.timeline-card-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: #154794;
	margin: 0;
	font-family: 'Outfit', sans-serif;
}

.timeline-steps-flow {
	position: relative;
	padding-left: 30px;
}

/* Linha vertical conectora */
.timeline-steps-flow::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background-color: #d2d2d7;
}

.timeline-step-item {
	position: relative;
	margin-bottom: 25px;
}

.timeline-step-item:last-child {
	margin-bottom: 0;
}

/* Indicador da Linha do tempo (Bolinha) */
.timeline-marker {
	position: absolute;
	left: -30px;
	top: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid #d2d2d7;
	z-index: 2;
}

/* Bolinha da etapa ativa (primeira) */
.timeline-step-item.active .timeline-marker {
	background-color: #154794;
	border-color: #154794;
	box-shadow: 0 0 0 4px rgba(21, 71, 148, 0.2);
}

.timeline-step-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.step-label {
	font-size: 11px;
	font-weight: 700;
	color: #86868b;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.timeline-step-item.active .step-label {
	color: #154794;
}

.step-date {
	font-size: 15px;
	font-weight: 700;
	color: #1d1d1f;
}

.timeline-step-item.active .step-date {
	color: #154794;
	font-size: 18px;
}

.timeline-timezone-notice {
	margin-top: 25px;
	background-color: #e5e5ea;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 12px;
	color: #6e6e73;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Seção de Arquivos para Download */
.licitacao-files-section {
	border-top: 1px solid #e5e5ea;
	padding-top: 30px;
}

.licitacao-files-section h3 {
	font-size: 20px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 20px 0;
	font-family: 'Outfit', sans-serif;
}

.licitacao-files-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.file-download-card {
	display: flex;
	align-items: center;
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 16px 20px;
	transition: all 0.25s ease;
}

.file-download-card:hover {
	border-color: #154794;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.file-card-icon {
	margin-right: 20px;
}

.pdf-badge {
	background-color: #d32f2f;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 10px 8px;
	border-radius: 6px;
	display: inline-block;
	text-transform: uppercase;
	line-height: 1;
}

.file-card-content {
	flex-grow: 1;
}

.file-card-content h4 {
	font-size: 14px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 4px 0;
}

.file-card-content span {
	font-size: 12px;
	color: #86868b;
}

.file-card-action {
	margin-left: 20px;
}

.btn-download-file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #28a745;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.btn-download-file:hover {
	background-color: #218838;
	transform: translateY(-1px);
}

.no-files-notice {
	padding: 30px;
	text-align: center;
	color: #86868b;
	border: 1px dashed #d2d2d7;
	border-radius: 12px;
	font-size: 14px;
}

@media (max-width: 576px) {
	.file-download-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.file-card-icon {
		margin-right: 0;
	}
	
	.file-card-action {
		margin-left: 0;
		width: 100%;
	}
	
	.btn-download-file {
		width: 100%;
		justify-content: center;
	}
}
