/** * 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/. */ .kyc-tab-container { padding: 16px; } .kyc-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; gap: 16px; color: #666; } .kyc-tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .kyc-tab-title { display: flex; align-items: center; gap: 10px; h3 { margin: 0; } } .kyc-badge { background-color: #1976d2; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; letter-spacing: 0.5px; line-height: 18px; } .kyc-tag { background-color: #e3f2fd; color: #1565c0; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; border: 1px solid #90caf9; letter-spacing: 0.5px; line-height: 16px; } .kyc-overall-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; &.status-verified, &.status-complete { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; } &.status-pending, &.status-initiated { background-color: #fff8e1; color: #f57f17; border: 1px solid #ffe082; } &.status-rejected, &.status-failed { background-color: #ffebee; color: #c62828; border: 1px solid #ef9a9a; } } .kyc-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; } .kyc-card { .mat-mdc-card-content { padding: 16px; } } .kyc-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .kyc-card-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; } .kyc-card-icon { font-size: 18px; height: 18px; width: 18px; color: #1976d2; } .kyc-value { font-size: 16px; font-weight: 500; letter-spacing: 1px; margin: 8px 0 4px; font-family: monospace; } .kyc-meta { font-size: 12px; color: #888; margin: 0 0 8px; } .re-verify-btn { font-size: 12px; padding: 0 12px; height: 28px; line-height: 28px; } .status-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 14px; &.verified { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; } &.not-verified { background-color: #f5f5f5; color: #757575; border: 1px solid #e0e0e0; } &.linked { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; } &.not-linked { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; } &.exempt { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; } } .status-chip-icon { font-size: 14px; height: 14px; width: 14px; } .kyc-info-card { margin-bottom: 16px; } .kyc-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } .kyc-info-item { display: flex; flex-direction: column; gap: 2px; &.full-span { grid-column: 1 / -1; } } .kyc-info-label { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; } .kyc-info-value { font-size: 14px; color: #333; } .kyc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px; gap: 16px; color: #888; text-align: center; } .kyc-empty-icon { font-size: 64px; height: 64px; width: 64px; color: #bdbdbd; } .kyc-edit-card { max-width: 900px; } .kyc-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; @media (width <= 600px) { grid-template-columns: 1fr; } } .kyc-edit-field { display: flex; flex-direction: column; } .kyc-field-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .kyc-field-title { font-weight: 600; font-size: 14px; } .kyc-input-row { display: flex; align-items: flex-start; gap: 10px; } .kyc-input { flex: 1; } .verify-btn { margin-top: 4px; min-width: 90px; } .full-span { grid-column: 1 / -1; } .kyc-form-actions { display: flex; gap: 12px; margin-top: 16px; align-items: center; } /* OTP Section */ .otp-section { margin-top: 8px; padding: 10px 14px; background-color: #f3f8ff; border: 1px solid #bbdefb; border-radius: 8px; } .otp-info { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #1565c0; margin: 0 0 8px; font-weight: 500; } .otp-info-icon { font-size: 16px; height: 16px; width: 16px; color: #1565c0; } .otp-inline { display: flex; align-items: flex-start; gap: 8px; } .otp-field { max-width: 160px; } .otp-verify-btn { margin-top: 4px; font-size: 12px; height: 36px; } .otp-resend-btn { margin-top: 4px; font-size: 11px; height: 36px; } /* Error message */ .kyc-error-msg { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #c62828; margin-top: 6px; padding: 5px 8px; background-color: #ffebee; border: 1px solid #ef9a9a; border-radius: 6px; } .kyc-error-icon { font-size: 14px; height: 14px; width: 14px; color: #c62828; } .verification-detail-text { display: block; font-size: 12px; color: #2e7d32; font-weight: 500; margin-top: 4px; } /* Status icons in edit mode */ .status-icon { font-size: 20px; &.verified { color: #2e7d32; } &.failed { color: #c62828; } } /* PAN-Aadhaar Link Card */ .kyc-link-card { margin-bottom: 16px; } .pan-aadhaar-detail { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; } .pan-aadhaar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid #f1f5f9; &:last-child { border-bottom: none; } } .pan-aadhaar-label { font-weight: 600; color: #64748b; min-width: 120px; } .pan-aadhaar-value { color: #0f172a; font-weight: 500; } .text-success { color: #059669 !important; font-weight: 700 !important; } .text-danger { color: #dc2626 !important; font-weight: 700 !important; } /* ═══ KYC Verification Table ═══ */ .kv-table { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 16px; } .kv-table__header { display: flex; align-items: center; background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 0; } .kv-table__header .kv-table__col { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; padding: 10px 14px; } .kv-table__row { display: flex; align-items: center; border-bottom: 1px solid #f1f5f9; padding: 0; transition: background 0.1s; &:last-child { border-bottom: none; } &:hover { background: #f8fafc; } &--link { background: #fafbfc; } } .kv-table__col { padding: 12px 14px; font-size: 13px; color: #1e293b; &--doc { flex: 0 0 160px; display: flex; align-items: center; gap: 8px; font-weight: 600; } &--num { flex: 1; } &--status { flex: 0 0 150px; } &--date { flex: 0 0 150px; color: #64748b; font-size: 12px; } &--action { flex: 0 0 110px; text-align: right; } } .kv-doc-icon { font-size: 18px !important; width: 18px !important; height: 18px !important; color: #1074b9; } .kv-mono { font-family: 'Roboto Mono', monospace; letter-spacing: 0.5px; font-weight: 500; } .kv-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; mat-icon { font-size: 14px !important; width: 14px !important; height: 14px !important; } &--ok { background: #ecfdf5; color: #059669; } &--pending { background: #f8fafc; color: #94a3b8; } &--fail { background: #fef2f2; color: #dc2626; } &--info { background: #eff6ff; color: #2563eb; } } .kv-action-btn { font-size: 11px !important; height: 30px !important; line-height: 30px !important; padding: 0 12px !important; border-radius: 6px !important; font-weight: 600 !important; color: #1074b9 !important; border-color: #1074b9 !important; } /* OTP Bar (below table) */ .kv-otp-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 12px; } .kv-otp-label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #1074b9; font-weight: 600; white-space: nowrap; mat-icon { font-size: 16px !important; width: 16px !important; height: 16px !important; } } .kv-otp-input { width: 200px; flex-shrink: 0; ::ng-deep .mat-mdc-form-field-infix { padding: 6px 0 !important; min-height: 36px !important; } } .kv-otp-btn { height: 36px !important; font-size: 12px !important; font-weight: 600 !important; border-radius: 6px !important; padding: 0 16px !important; } /* Meta Grid */ .kv-meta-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-top: 16px; } .kv-meta-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-right: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; &:nth-child(5n) { border-right: none; } &--full { grid-column: 1 / -1; border-right: none; } } .kv-meta-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; } .kv-meta-value { font-size: 13px; font-weight: 500; color: #1e293b; } @media (width <= 960px) { .kv-table__col { &--doc { flex: 0 0 120px; } &--date { display: none; } &--action { flex: 0 0 90px; } } .kv-meta-grid { grid-template-columns: repeat(3, 1fr); } .kv-meta-item:nth-child(5n) { border-right: 1px solid #f1f5f9; } .kv-meta-item:nth-child(3n) { border-right: none; } } @media (width <= 640px) { .kv-table__row { flex-wrap: wrap; } .kv-table__col { &--status, &--action { flex: 0 0 50%; } } .kv-meta-grid { grid-template-columns: 1fr 1fr; } .kv-otp-bar { flex-wrap: wrap; } } /* ─── Header Actions ─── */ .kyc-header-actions { display: flex; align-items: center; gap: 10px; } .kyc-print-btn { display: flex; align-items: center; gap: 6px; color: #1074b9 !important; border-color: #93c5fd !important; } .m-r-6 { margin-right: 6px; } /* ─── Re-KYC Section ─── */ .rekyc-section { margin-top: 20px; background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%); border: 1px solid #dbe4f0; border-radius: 14px; padding: 24px; } .rekyc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; } .rekyc-icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #1074b9, #0c5da0); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .rekyc-icon { font-size: 17px; color: #fff; } .rekyc-header-text { flex: 1; } .rekyc-title { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; } .rekyc-desc { margin: 3px 0 0; font-size: 12px; color: #64748b; line-height: 1.4; } /* ─── Timeline Layout ─── */ .rekyc-timeline { display: flex; flex-direction: column; gap: 0; padding-left: 4px; } .rekyc-tl-item { display: flex; gap: 16px; } .rekyc-tl-dot { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 32px; } .rekyc-tl-num { width: 28px; height: 28px; border-radius: 50%; background: #1074b9; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; } .rekyc-tl-line { width: 2px; flex: 1; background: #c7d8ed; margin: 4px 0; } .rekyc-tl-item--last .rekyc-tl-dot { .rekyc-tl-line { display: none; } } .rekyc-tl-content { flex: 1; padding-bottom: 24px; } .rekyc-tl-item--last .rekyc-tl-content { padding-bottom: 0; } .rekyc-tl-label { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 2px; } .rekyc-tl-sub { font-size: 11px; color: #94a3b8; margin-bottom: 10px; line-height: 1.4; } /* ─── Buttons ─── */ .rekyc-btn-print { display: inline-flex !important; align-items: center; gap: 7px; font-size: 12px !important; font-weight: 600 !important; color: #1074b9 !important; background: #fff !important; border: 1px solid #bfdbfe !important; border-radius: 8px !important; padding: 6px 16px !important; cursor: pointer; transition: all 0.15s; &:hover { background: #eff6ff !important; border-color: #93c5fd !important; } } .rekyc-btn-complete { display: inline-flex !important; align-items: center; gap: 7px; font-size: 12px !important; font-weight: 600 !important; border-radius: 8px !important; padding: 7px 20px !important; } /* ─── Upload Zone ─── */ .rekyc-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 24px; max-width: 280px; background: #fff; border: 2px dashed #cbd5e1; border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; &:hover { background: #f8fafc; border-color: #93c5fd; } &.has-file { background: #f0fdf4; border-color: #86efac; border-style: solid; } } .upload-zone-icon { font-size: 28px !important; width: 28px !important; height: 28px !important; color: #94a3b8; } .upload-zone-text { font-size: 12px; font-weight: 600; color: #475569; } .upload-zone-hint { font-size: 10px; color: #94a3b8; } .upload-zone-check { font-size: 24px; color: #22c55e; } .upload-zone-filename { font-size: 12px; font-weight: 600; color: #059669; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ─── Result Banners ─── */ .rekyc-result { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 10px; font-size: 13px; line-height: 1.4; p { margin: 2px 0 0; font-size: 12px; font-weight: 400; } &--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; .rekyc-result-icon { color: #059669; font-size: 20px; } } &--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; .rekyc-result-icon { color: #dc2626; font-size: 20px !important; width: 20px !important; height: 20px !important; } } } @media (width <= 640px) { .rekyc-upload-zone { max-width: 100%; } } /* ═══════════════════════════════════════════════════════════════ PAN ↔ Aadhaar premium status card ─── Replaces the legacy table-row treatment. Dark gradient with offset glow circles, large gradient icon, and a state-driven accent (green / red / blue / amber). ═══════════════════════════════════════════════════════════════ */ .pal-card { margin-top: 16px; width: 100%; min-height: 88px; padding: 14px 18px 30px; border-radius: 18px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #111827, #0f172a); border: 1px solid rgb(255 255 255 / 8%); box-shadow: 0 12px 32px rgb(0 0 0 / 35%), inset 0 1px 1px rgb(255 255 255 / 5%); font-family: Inter, 'Segoe UI', Roboto, sans-serif; /* Decorative glows — colors swap with the state variant */ &::before { content: ''; position: absolute; width: 180px; height: 180px; background: #2563eb; border-radius: 50%; top: -110px; right: -70px; opacity: 0.18; pointer-events: none; } &::after { content: ''; position: absolute; width: 120px; height: 120px; background: #22c55e; border-radius: 50%; bottom: -70px; left: -50px; opacity: 0.12; pointer-events: none; } &__left { display: flex; align-items: center; gap: 14px; z-index: 2; } &__icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, #2563eb, #06b6d4); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; position: relative; box-shadow: 0 10px 20px rgb(37 99 235 / 35%); flex-shrink: 0; mat-icon { font-size: 26px; width: 26px; height: 26px; } &::before { content: ''; position: absolute; inset: 0; border-radius: 16px; border: 1px solid rgb(255 255 255 / 20%); } } &__txt { display: flex; flex-direction: column; gap: 4px; } &__small { font-size: 10.5px; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; } &__title { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.1; } &__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 11px; border-radius: 50px; background: rgb(34 197 94 / 12%); border: 1px solid rgb(74 222 128 / 25%); color: #4ade80; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(5px); width: fit-content; mat-icon { font-size: 13px; width: 13px; height: 13px; } } &__badge { z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #16a34a); display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 18px rgb(34 197 94 / 45%); flex-shrink: 0; mat-icon { font-size: 20px; width: 20px; height: 20px; } } &__hint { position: absolute; bottom: 8px; right: 16px; font-size: 10px; color: rgb(255 255 255 / 35%); font-style: italic; letter-spacing: 0.02em; z-index: 1; } /* ─── State variants ─── */ &--ok { &::before { background: #2563eb; } &::after { background: #22c55e; } } &--fail { border-color: rgb(239 68 68 / 22%); &::before { background: #ef4444; opacity: 0.22; } &::after { background: #f87171; opacity: 0.16; } .pal-card__status { background: rgb(239 68 68 / 14%); border-color: rgb(248 113 113 / 32%); color: #fca5a5; } .pal-card__badge { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 0 18px rgb(239 68 68 / 45%); } .pal-card__icon { background: linear-gradient(145deg, #ef4444, #f97316); box-shadow: 0 10px 20px rgb(239 68 68 / 35%); } } &--info { border-color: rgb(59 130 246 / 22%); &::before { background: #3b82f6; opacity: 0.22; } &::after { background: #60a5fa; opacity: 0.14; } .pal-card__status { background: rgb(59 130 246 / 14%); border-color: rgb(96 165 250 / 32%); color: #93c5fd; } .pal-card__badge { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 0 18px rgb(59 130 246 / 45%); } } &--pending { border-color: rgb(245 158 11 / 22%); &::before { background: #f59e0b; opacity: 0.22; } &::after { background: #fbbf24; opacity: 0.14; } .pal-card__status { background: rgb(245 158 11 / 14%); border-color: rgb(251 191 36 / 32%); color: #fbbf24; } .pal-card__badge { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 0 18px rgb(245 158 11 / 45%); } .pal-card__icon { background: linear-gradient(145deg, #f59e0b, #d97706); box-shadow: 0 10px 20px rgb(245 158 11 / 35%); } } } @media (width <= 540px) { .pal-card { flex-wrap: wrap; gap: 10px; padding-bottom: 36px; &__hint { position: static; width: 100%; text-align: right; margin-top: 4px; } } }