/* 1. LAYOUT PRINCIPAL */
.cis-despesas-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	font-family: 'Inter', sans-serif;
}

.despesas-intro {
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 12px;
	padding: 15px 20px;
	margin-bottom: 25px;
	color: #6e6e73;
	font-size: 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.despesas-container-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
}

@media (max-width: 900px) {
	.despesas-container-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* 2. BARRA LATERAL (Sidebar/Tabs) */
.despesas-sidebar {
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 16px;
	padding: 15px;
	height: fit-content;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.despesas-tabs-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.despesas-tab-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-radius: 10px;
	cursor: pointer;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	color: #1d1d1f;
	font-weight: 500;
	list-style: none;
}

.despesas-tab-item:last-child {
	margin-bottom: 0;
}

.despesas-tab-item:hover {
	background-color: #f5f5f7;
	color: #154794;
}

.despesas-tab-item.active {
	background-color: rgba(21, 71, 148, 0.08);
	color: #154794;
}

.tab-item-title {
	font-size: 14px;
}

.tab-item-arrow {
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	color: #154794;
}

.despesas-tab-item.active .tab-item-arrow {
	opacity: 1;
	transform: translateX(2px);
}

/* 2.2 ABAS HORIZONTAIS DE ANOS (Tabs de Anos no Conteúdo) */
.anos-tabs-container {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	border-bottom: 1px solid #e5e5ea;
	padding-bottom: 15px;
}

.ano-tab-btn {
	background: none;
	border: 1px solid #e5e5ea;
	padding: 8px 18px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #6e6e73;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: 'Inter', sans-serif;
}

.ano-tab-btn:hover {
	background-color: #f5f5f7;
	color: #154794;
	border-color: #154794;
}

.ano-tab-btn.active {
	background-color: #154794;
	color: #ffffff;
	border-color: #154794;
	box-shadow: 0 2px 8px rgba(21, 71, 148, 0.15);
}

.ano-content-group {
	display: none;
}

/* 3. PAINEL DE CONTEÚDO (Content Panel) */
.despesas-content-panel {
	background-color: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 16px;
	padding: 30px;
	min-height: 400px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (max-width: 576px) {
	.despesas-content-panel {
		padding: 20px;
	}
}

.panel-header {
	border-bottom: 1px solid #e5e5ea;
	padding-bottom: 15px;
	margin-bottom: 25px;
}

.panel-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: #1d1d1f;
	margin: 0 0 5px 0;
	font-family: 'Outfit', sans-serif;
}

.panel-header span {
	font-size: 12px;
	color: #86868b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Sem registros */
.no-records-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
	color: #86868b;
}

.no-records-message i {
	font-size: 48px;
	margin-bottom: 15px;
	color: #d2d2d7;
}

.no-records-message p {
	font-size: 14px;
	margin: 0;
}

/* Grupo de Anos */
.ano-group {
	margin-bottom: 35px;
}

.ano-group:last-child {
	margin-bottom: 0;
}

.ano-title {
	font-size: 16px;
	font-weight: 600;
	color: #1d1d1f;
	border-bottom: 2px solid #5bc82c; /* Verde cana */
	padding-bottom: 8px;
	margin: 0 0 20px 0;
	display: inline-block;
}

/* Grid de Balancetes */
.balancetes-list-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

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

.balancete-card:hover {
	border-color: #154794;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	transform: translateY(-1px);
}

.balancete-card-icon {
	font-size: 24px;
	color: #ff3b30; /* Vermelho PDF */
	margin-right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.balancete-card-info {
	flex-grow: 1;
}

.balancete-card-info h4 {
	font-size: 15px;
	font-weight: 600;
	color: #1d1d1f;
	margin: 0 0 4px 0;
}

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

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

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

.btn-download-pdf i {
	font-size: 12px;
}

.balancete-card:hover .btn-download-pdf {
	background-color: #154794;
	color: #ffffff;
	border-color: #154794;
}

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