
.finance-table {	
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
	font-size: 0.85rem;
	max-width: 600px;
}

.finance-table th {
	text-align: left;
	padding: 14px 12px;
	background-color: #f8fafd;
	font-weight: 600;
	color: #2c5e7a;
	border-bottom: 1px solid #e2eaf1;
	font-size: 0.8rem;
	letter-spacing: 0.3px;
}

.finance-table td {
	padding: 12px 12px;
	border-bottom: 1px solid #eff3f8;
	vertical-align: middle;
}

.finance-table tr:last-child td {
	border-bottom: none;
}

.finance-table tr:hover td {
	background-color: #fafcff;
}

.month-name {
	color: #2563eb;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: underline;	
}

.amount-number {
	font-weight: 500;
	white-space: nowrap;
	text-align: right;
}

.positive-income {
	color: #15803d;
}

.negative-outcome {
	color: #c2412c;
}

.btn-detail-link {
	background: #eef2f7;
	border: 1px solid #dce5ed;
	padding: 6px 16px;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	color: #2c6280;
	transition: 0.1s;
	white-space: nowrap;
}

.btn-detail-link:hover {
	background: #e4eaf2;
	border-color: #cbdae6;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	visibility: hidden;
	opacity: 0;
	transition: 0.15s;
}

.modal-overlay.active {
	visibility: visible;
	opacity: 1;
}

.modal-window {
	background: white;
	width: 90%;
	max-width: 850px;
	max-height: 85vh;
	border-radius: 28px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 18px 24px;
	border-bottom: 1px solid #eef2f8;
	background: white;
}

.modal-header h3 {
	font-size: 1.35rem;
	font-weight: 600;
	color: #1c4e2f;
}

.modal-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	padding: 0 6px;
	color: #7b95af;
}

.modal-close:hover {
	color: #2c3e50;
}

.modal-body {
	overflow-y: auto;
	padding: 22px 26px 26px;
}


.details-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.details-table th {
	text-align: left;
	padding: 12px 8px 10px 0;
	font-weight: 600;
	color: #2c5e7a;
	border-bottom: 2px solid #e2edf4;
	font-size: 0.85rem;
}

.details-table td {
	padding: 12px 8px 12px 0;
	border-bottom: 1px solid #f0f4fa;
	vertical-align: top;
}

.details-table tr:last-child td {
	border-bottom: none;
}

.income-cell {
	color: #15803d;
	text-align: right;
}

.outcome-cell {
	color: #c2412c;
	text-align: right;
}

.zero-cell {
	color: #000;
	text-align: right;
}

.total-row {
	font-weight: 700;
	background-color: #f8fafd;
	border-top: 1px solid #e2edf4;
}

.total-row td {
	padding-top: 12px;
	padding-bottom: 12px;
	font-weight: 700;
}

.info-row {
	margin-top: 20px;
	margin-bottom: 12px;
	font-size: 0.9rem;
	background: #f8fafd;
	padding: 12px 16px;
	border-radius: 20px;
	display: inline-block;
	width: 100%;
}

.info-label {
	font-weight: 500;
	color: #4a6f8c;
}

.info-value {
	font-weight: 700;
	color: #1f3b4c;
}

.outgoing-block {
	margin-top: 20px;
	background: #f8fafd;
	padding: 12px 16px;
	border-radius: 20px;
	font-size: 0.9rem;
}

.copy-modal-footer {
	margin-top: 22px;
	text-align: right;
}

.copy-modal-btn {
	background: #eef2f7;
	border: 1px solid #dce5ed;
	border-radius: 32px;
	padding: 7px 18px;
	font-size: 0.8rem;
	cursor: pointer;
	color: #2c5a6e;
	font-weight: 500;
}

.copy-modal-btn:hover {
	background: #e4eaf2;
}

.toast-msg {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #1f2f3e;
	color: #f0f4f9;
	padding: 8px 18px;
	border-radius: 40px;
	font-size: 0.8rem;
	z-index: 1100;
	opacity: 0;
	transition: opacity 0.15s;
	pointer-events: none;
	white-space: nowrap;
}

@media (max-width: 700px) {
	.finance-table th, .finance-table td {
		padding: 10px 8px;
	}
	.btn-detail-link {
		padding: 5px 12px;
		font-size: 0.7rem;
	}
	.modal-body {
		padding: 16px 18px;
	}
	.details-table {
		font-size: 0.8rem;
	}
}