.pn-finance-manager-amortization-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99998;
}

.pn-finance-manager-amortization-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	z-index: 99999;
	width: 90%;
	max-width: 700px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.pn-finance-manager-amortization-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #e0e0e0;
}

.pn-finance-manager-amortization-popup-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.pn-finance-manager-amortization-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
	padding: 4px;
	border-radius: 4px;
}

.pn-finance-manager-amortization-close:hover {
	background: #f0f0f0;
	color: #333;
}

.pn-finance-manager-amortization-popup-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.pn-finance-manager-amortization-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
}

.pn-finance-manager-amortization-summary-item {
	flex: 1;
	min-width: 140px;
	background: #f8f9fa;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
}

.pn-finance-manager-amortization-summary-label {
	display: block;
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.pn-finance-manager-amortization-summary-value {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.pn-finance-manager-amortization-table-wrapper {
	overflow-x: auto;
}

.pn-finance-manager-amortization-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.pn-finance-manager-amortization-table thead {
	position: sticky;
	top: 0;
	z-index: 1;
}

.pn-finance-manager-amortization-table th {
	background: var(--bg-color-main, #008080);
	color: #fff;
	padding: 10px 8px;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

.pn-finance-manager-amortization-table th:first-child {
	text-align: center;
}

.pn-finance-manager-amortization-table td {
	padding: 8px;
	text-align: right;
	border-bottom: 1px solid #eee;
}

.pn-finance-manager-amortization-table td:first-child {
	text-align: center;
	font-weight: 500;
}

.pn-finance-manager-amortization-table tbody tr:nth-child(even) {
	background: #f9f9f9;
}

.pn-finance-manager-amortization-table tbody tr:hover {
	background: #e8f4f8;
}

@media (max-width: 600px) {
	.pn-finance-manager-amortization-popup {
		width: 95%;
		max-height: 90vh;
	}

	.pn-finance-manager-amortization-table {
		font-size: 11px;
	}

	.pn-finance-manager-amortization-table th,
	.pn-finance-manager-amortization-table td {
		padding: 6px 4px;
	}
}
