Files
cbsnexora/src/app/deposits/recurring-deposits/recurring-deposits-account-stepper/recurring-deposits-account-preview-step/recurring-deposits-account-preview-step.component.scss
T
Jaanu423andClaude Sonnet 4.6 3370a95235 feat: account charges UI — current account, FD, RD stepper redesign
Redesigned create-account stepper UI for current accounts, fixed deposits,
and recurring deposits: updated layout, preview steps, interest rate chart
step, currency step, and detail step components. Savings preview styling
and currency step also updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 12:47:25 +05:30

645 lines
13 KiB
SCSS

/**
* 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/.
*/
// ── Wrapper ──────────────────────────────────────────────────────────────────
.preview-wrapper {
display: flex;
flex-direction: column;
gap: 1.25rem;
padding: 0.5rem 0;
}
// ── Section card ─────────────────────────────────────────────────────────────
.preview-section {
border: 1px solid #e2e8f0;
border-radius: 10px;
overflow: hidden;
background: #fff;
box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
&__header {
display: flex;
align-items: center;
gap: 8px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
padding: 0.6rem 1rem;
}
&__icon {
font-size: 13px;
color: #0ea5e9;
width: 16px;
text-align: center;
}
&__title {
flex: 1;
font-size: 0.82rem;
font-weight: 700;
color: #1e293b;
text-transform: uppercase;
letter-spacing: 0.06em;
}
&__badge {
display: inline-flex;
align-items: center;
padding: 2px 10px;
border-radius: 999px;
font-size: 10px;
font-weight: 700;
background: #dbeafe;
color: #1d4ed8;
border: 1px solid #bfdbfe;
text-transform: uppercase;
&--active {
background: #dcfce7 !important;
color: #15803d !important;
border-color: #bbf7d0 !important;
}
}
}
// ── Body ─────────────────────────────────────────────────────────────────────
.preview-body {
padding: 1rem 1.25rem;
}
// ── Subsection (inside Settings) ─────────────────────────────────────────────
.preview-subsection {
margin-bottom: 1rem;
&__title {
font-size: 0.82rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #666;
margin-bottom: 0.6rem;
}
}
.preview-divider {
margin: 0.75rem 0 1rem;
}
// ── Grid ─────────────────────────────────────────────────────────────────────
.preview-grid {
display: grid;
gap: 0.85rem 1.5rem;
&--three {
grid-template-columns: repeat(3, 1fr);
@media (width <= 768px) {
grid-template-columns: repeat(2, 1fr);
}
@media (width <= 480px) {
grid-template-columns: 1fr;
}
}
}
// ── Field ─────────────────────────────────────────────────────────────────────
.preview-field {
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.preview-label {
font-size: 0.68rem;
color: #94a3b8;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.preview-value {
font-size: 0.9rem;
color: #1e293b;
font-weight: 500;
}
// ── Yes/No badge ─────────────────────────────────────────────────────────────
.preview-badge {
display: inline-block;
padding: 0.15rem 0.6rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
background: #fef2f2;
color: #dc2626;
width: fit-content;
&--yes {
background: #f0fdf4;
color: #15803d;
}
&--warn {
background: #fef3c7;
color: #92400e;
}
}
// ── Tables ───────────────────────────────────────────────────────────────────
.preview-table {
width: 100%;
margin-top: 1rem;
}
.irc-table {
width: 100%;
tr.incentives-row {
height: 0;
> td {
padding: 0;
}
.incentives {
overflow: hidden;
}
.mat-card {
border-radius: 0;
}
}
}
.margin-t {
margin-top: 1em;
}
// ── Section badge variant for tenure ─────────────────────────────────────────
.preview-section__badge--tenure {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
background: #dcfce7;
color: #16a34a;
margin-left: auto;
}
// ── Tenure + Rate banner ──────────────────────────────────────────────────────
.preview-tenure-banner {
display: flex;
align-items: center;
gap: 20px;
padding: 14px 18px;
background: #f0fdf4;
border: 1.5px solid #86efac;
border-radius: 10px;
margin-bottom: 16px;
flex-wrap: wrap;
&__left {
display: flex;
align-items: center;
gap: 10px;
> i {
font-size: 20px;
color: #16a34a;
}
}
&__label {
display: block;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #4b5563;
}
&__value {
display: block;
font-size: 22px;
font-weight: 800;
color: #0f172a;
line-height: 1.2;
}
&__divider {
width: 1px;
height: 40px;
background: #86efac;
}
&__right {
display: flex;
flex-direction: column;
gap: 2px;
}
&__rate-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #4b5563;
}
&__rate {
font-size: 26px;
font-weight: 800;
color: #16a34a;
line-height: 1.2;
}
&__slab {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #374151;
margin-left: auto;
i {
color: #16a34a;
font-size: 11px;
}
}
}
// ── Matched slab row highlight ────────────────────────────────────────────────
.preview-slab-row--matched td {
background: #dcfce7 !important;
border-left: 3px solid #16a34a;
}
// ── Senior Citizen Status Banner (preview) ────────────────────────────────────
.preview-sc-status {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 14px;
border-radius: 8px;
margin-bottom: 10px;
font-size: 13px;
font-weight: 600;
&--applied {
background: #ede9fe;
border: 1.5px solid #a78bfa;
color: #4c1d95;
}
&--notice {
background: #fef3c7;
border: 1.5px solid #fcd34d;
color: #78350f;
}
&__bonus {
margin-left: auto;
flex-shrink: 0;
background: #7c3aed;
color: #fff;
padding: 3px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
}
}
.preview-tenure-banner--sc {
border-color: #a78bfa;
background: #f5f3ff;
.preview-tenure-banner__left > i {
color: #5b21b6;
}
.preview-tenure-banner__divider {
background: #a78bfa;
}
}
// ── Legend below table ────────────────────────────────────────────────────────
.preview-slab-legend {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
font-size: 12px;
color: #4b5563;
&__dot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 2px;
background: #dcfce7;
border: 2px solid #16a34a;
flex-shrink: 0;
}
}
// ── Misc ──────────────────────────────────────────────────────────────────────
.preview-muted {
color: #94a3b8;
font-style: italic;
}
.preview-mono {
font-family: monospace;
font-size: 0.88rem;
color: #334155;
}
// ── Dormancy timeline ─────────────────────────────────────────────────────────
.preview-dormancy-timeline {
display: flex;
align-items: flex-start;
margin-bottom: 14px;
}
.preview-dorm-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
flex: 1;
&__dot {
width: 36px;
height: 36px;
border-radius: 50%;
border: 3px solid;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
&--inactive {
border-color: #f59e0b;
background: #fffbeb;
&::after {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background: #f59e0b;
}
}
&--dormant {
border-color: #ef4444;
background: #fef2f2;
&::after {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background: #ef4444;
}
}
&--escheat {
border-color: #7c3aed;
background: #f5f3ff;
&::after {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background: #7c3aed;
}
}
}
&__body {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 2px;
}
&__label {
font-size: 12px;
font-weight: 700;
color: #1e293b;
}
&__days {
font-size: 10.5px;
color: #64748b;
line-height: 1.3;
}
}
.preview-dorm-connector {
flex: 0 0 40px;
height: 3px;
background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
margin-top: 16px;
border-radius: 2px;
}
.preview-dorm-flags {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.preview-dorm-flag {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 12px;
border-radius: 20px;
font-size: 11.5px;
font-weight: 600;
background: #f1f5f9;
color: #94a3b8;
border: 1px solid #e2e8f0;
i {
font-size: 11px;
}
&--on {
background: #f0fdf4;
color: #15803d;
border-color: #bbf7d0;
}
}
// ── Status of Account (SOA) ───────────────────────────────────────────────────
.preview-soa-status-row {
display: flex;
align-items: center;
gap: 10px;
}
.preview-soa-tile {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 20px;
border-radius: 999px;
font-size: 14px;
font-weight: 700;
background: #eff6ff;
color: #1d4ed8;
border: 2px solid #bfdbfe;
i {
font-size: 16px;
}
}
.preview-soa-table-wrap {
margin-top: 14px;
overflow-x: auto;
border-radius: 8px;
border: 1px solid #e2e8f0;
}
.preview-soa-tbl {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.preview-soa-th {
background: #f8fafc;
padding: 8px 12px;
text-align: left;
font-weight: 600;
color: #475569;
border-bottom: 1px solid #e2e8f0;
white-space: nowrap;
}
.preview-soa-td {
padding: 10px 12px;
border-bottom: 1px solid #f1f5f9;
color: #0f172a;
vertical-align: middle;
}
.preview-soa-tr--primary {
background: #f0f9ff;
.preview-soa-td {
font-weight: 600;
}
}
.preview-soa-primary-tag {
display: inline-block;
margin-left: 6px;
padding: 1px 8px;
border-radius: 999px;
font-size: 10px;
font-weight: 700;
background: #dbeafe;
color: #1d4ed8;
border: 1px solid #bfdbfe;
vertical-align: middle;
}
// ── Product feature flag rows (same style as details step) ────────────────────
.preview-feature-list {
margin-top: 1rem;
border-top: 1px solid #e0e0e0;
}
.preview-feature-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 0;
border-bottom: 1px solid #f0f0f0;
gap: 1rem;
}
.preview-feature-info {
display: flex;
flex-direction: column;
gap: 0.15rem;
strong {
font-size: 0.88rem;
font-weight: 600;
color: #222;
}
span {
font-size: 0.78rem;
color: #26a69a;
margin: 0;
}
}
.preview-feature-choices {
display: flex;
gap: 0.5rem;
flex-shrink: 0;
}
.rad-yn {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.2rem 0.75rem;
border-radius: 20px;
border: 2px solid #ccc;
font-size: 0.82rem;
color: #999;
cursor: default;
&::before {
content: '';
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid #ccc;
display: inline-block;
}
&--active {
border-color: #4caf50;
color: #2e7d32;
font-weight: 600;
&::before {
border-color: #4caf50;
background: #4caf50;
}
}
}
button.preview-submit-row__primary,
.mat-mdc-raised-button.mat-primary.preview-submit-row__primary,
.preview-submit-row__primary {
background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
--mdc-protected-button-container-color: transparent !important;
--mdc-filled-button-container-color: transparent !important;
color: #fff !important;
box-shadow: 0 4px 12px -2px rgb(4 120 87 / 35%) !important;
}