/* Loan Manager — public styles.
   Uses the palette from the platform spec: blue/green/white with Poppins. */

.lm-dashboard,
.lm-panel {
	font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
	color: #1f2a44;
}

.lm-panel {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lm-panel h3 {
	margin: 0 0 14px;
	font-size: 1.15rem;
	color: #0f4c81;
	font-weight: 600;
}

.lm-dashboard__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	background: linear-gradient(135deg, #0f4c81, #1a936f);
	color: #ffffff;
	padding: 22px 24px;
	border-radius: 12px;
	margin-bottom: 20px;
}

.lm-dashboard__welcome {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 600;
}

.lm-dashboard__member-number {
	margin: 4px 0 0;
	opacity: 0.85;
	font-size: 0.9rem;
}

.lm-dashboard__kyc .lm-status {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.lm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.lm-big-number {
	font-size: 2rem;
	font-weight: 700;
	color: #0f4c81;
	margin: 6px 0;
}

.lm-muted {
	color: #6b7280;
	font-size: 0.9rem;
}

.lm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.lm-table th,
.lm-table td {
	padding: 8px 6px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.lm-table th {
	font-weight: 600;
	color: #374151;
	background: #f9fafb;
}

.lm-account-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lm-account-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px dashed #e5e7eb;
	gap: 8px;
	flex-wrap: wrap;
}

.lm-account-list__number {
	font-weight: 600;
}

.lm-account-list__balance {
	color: #0f4c81;
	font-weight: 600;
}

.lm-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: #eef2ff;
	color: #3730a3;
	text-transform: capitalize;
}

.lm-status--active,
.lm-status--approved,
.lm-status--paid,
.lm-status--sent { background: #d1fae5; color: #065f46; }
.lm-status--pending,
.lm-status--submitted,
.lm-status--partial { background: #fef3c7; color: #92400e; }
.lm-status--rejected,
.lm-status--overdue,
.lm-status--failed { background: #fee2e2; color: #991b1b; }
.lm-status--closed { background: #e5e7eb; color: #374151; }

.lm-notice {
	padding: 12px 16px;
	border-radius: 8px;
	background: #eff6ff;
	color: #1e3a8a;
	margin-bottom: 14px;
	border-left: 4px solid #0f4c81;
}

.lm-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border-left-color: #dc2626;
}

.lm-notice--success {
	background: #ecfdf5;
	color: #065f46;
	border-left-color: #10b981;
}

.lm-form label {
	display: block;
	margin-bottom: 12px;
}

.lm-form label > span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.88rem;
	font-weight: 500;
	color: #374151;
}

.lm-form input,
.lm-form select,
.lm-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}

.lm-form input:focus,
.lm-form select:focus,
.lm-form textarea:focus {
	outline: none;
	border-color: #0f4c81;
	box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.lm-form--inline {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	align-items: end;
}

.lm-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	border: 0;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.lm-btn--primary {
	background: #0f4c81;
	color: #ffffff;
}

.lm-btn--primary:hover { opacity: 0.92; }

.lm-notif-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lm-notif-list li {
	padding: 10px 0;
	border-bottom: 1px solid #e5e7eb;
	display: block;
}

.lm-notif-list strong { display: block; color: #0f4c81; }
.lm-notif-list span   { display: block; margin: 4px 0; }
.lm-notif-list small  { color: #6b7280; font-size: 0.78rem; }

.lm-calculator__summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 16px 0;
}

.lm-calculator__summary > div {
	background: #f0f9ff;
	padding: 12px;
	border-radius: 8px;
	text-align: center;
}

.lm-calculator__summary span {
	display: block;
	font-size: 0.8rem;
	color: #4b5563;
}

.lm-calculator__summary strong {
	display: block;
	color: #0f4c81;
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 4px;
}

.lm-calculator__chart,
.lm-calculator__balance-chart {
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
	margin: 20px 0;
}

.lm-calculator__chart canvas         { max-width: 100%; height: 320px !important; }
.lm-calculator__balance-chart canvas { max-width: 100%; height: 240px !important; }

@media (max-width: 640px) {
	.lm-calculator__summary { grid-template-columns: 1fr; }
	.lm-dashboard__header  { flex-direction: column; align-items: flex-start; }
	.lm-calculator__chart canvas         { height: 240px !important; }
	.lm-calculator__balance-chart canvas { height: 200px !important; }
}
