kyc risk and AML & Compliance Checks automate on client creation

This commit is contained in:
2026-07-31 10:58:58 +05:30
parent 29f1cdc646
commit 1daa12a117
17 changed files with 1113 additions and 1347 deletions
@@ -0,0 +1,228 @@
/**
* Copyright since 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
.aml-rules-container {
padding: 24px;
background-color: var(--bg-neutral-light, #f8fafc);
min-height: calc(100vh - 64px);
}
.aml-card {
border-radius: 12px;
box-shadow:
0 4px 20px -2px rgb(0 0 0 / 5%),
0 2px 8px -1px rgb(0 0 0 / 3%);
border: 1px solid rgb(226 232 240 / 80%);
background: #fff;
overflow: hidden;
}
.aml-card-header {
background: linear-gradient(135deg, #1e293b, #0f172a);
color: #fff;
padding: 24px;
}
.aml-header-content {
display: flex;
align-items: center;
gap: 16px;
.header-icon {
font-size: 32px;
width: 32px;
height: 32px;
color: #38bdf8;
}
.header-title {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.02em;
color: #fff;
margin-bottom: 4px;
}
.header-subtitle {
font-size: 13px;
color: #94a3b8;
}
}
.aml-card-content {
padding: 24px;
}
.aml-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
border-radius: 8px;
overflow: hidden;
border: 1px solid #e2e8f0;
th {
background-color: #f1f5f9;
color: #475569;
font-weight: 600;
font-size: 13px;
padding: 16px;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid #cbd5e1;
}
td {
padding: 16px;
font-size: 14px;
color: #334155;
border-bottom: 1px solid #e2e8f0;
}
.rule-row {
transition: background-color 0.2s ease;
&:hover {
background-color: #f8fafc;
}
&:last-child td {
border-bottom: none;
}
}
}
.col-center {
text-align: center;
justify-content: center;
}
.rule-name-cell {
font-weight: 500;
color: #1e293b;
max-width: 300px;
}
.reason-cell {
color: #64748b;
font-size: 13px;
max-width: 400px;
}
/* Badges for Risk Category */
.risk-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
.dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
&.risk-high {
background-color: #fef2f2;
color: #ef4444;
border: 1px solid #fee2e2;
.dot {
background-color: #ef4444;
}
}
&.risk-medium {
background-color: #fffbeb;
color: #d97706;
border: 1px solid #fef3c7;
.dot {
background-color: #d97706;
}
}
&.risk-low {
background-color: #f0fdf4;
color: #16a34a;
border: 1px solid #dcfce7;
.dot {
background-color: #16a34a;
}
}
}
/* Badges for Compliance status */
.compliance-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.05em;
/* AML Statuses */
&.status-clear {
background-color: #dcfce7;
color: #15803d;
}
&.status-flagged {
background-color: #fef3c7;
color: #b45309;
}
&.status-blocked {
background-color: #fee2e2;
color: #b91c1c;
}
/* Banned Matches */
&.match-no {
background-color: #f1f5f9;
color: #475569;
}
&.match-yes {
background-color: #fee2e2;
color: #b91c1c;
}
&.match-partial_match {
background-color: #ffedd5;
color: #c2410c;
}
}
.no-rules-message {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px;
color: #64748b;
gap: 12px;
mat-icon {
font-size: 48px;
width: 48px;
height: 48px;
}
}
.aml-paginator {
background: #fff;
border-top: 1px solid #e2e8f0;
padding: 8px 0;
font-size: 13px;
color: #475569;
}