- nomination-apply: show full KYC for linked family members via nested forkJoin, accordion expand/collapse cards, owner chips on KYC headers, 'Create as Client' button for manual entries - family-members-tab: show Linked Client / Manual Entry badges, entry type in detail grid, 'Create as Client' button navigating with prefill state - create-client + client-general-step: accept prefillData @Input from navigation state, patch form fields from family member data - Add MPL-2.0 headers to all election module files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
359 lines
6.3 KiB
SCSS
359 lines
6.3 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/.
|
|
*/
|
|
|
|
$primary: #1a73e8;
|
|
$primary-light: #e8f0fe;
|
|
$gray-50: #f8f9fa;
|
|
$gray-100: #f1f3f4;
|
|
$gray-200: #e8eaed;
|
|
$gray-500: #9aa0a6;
|
|
$gray-700: #5f6368;
|
|
$gray-900: #202124;
|
|
$white: #fff;
|
|
$green: #34a853;
|
|
$green-light: #e6f4ea;
|
|
$red: #ea4335;
|
|
$red-light: #fce8e6;
|
|
$blue-light: #e3f2fd;
|
|
$blue: #1565c0;
|
|
$orange: #e65100;
|
|
$orange-light: #fff3e0;
|
|
|
|
.nom-container {
|
|
padding: 20px 24px;
|
|
}
|
|
|
|
.section-divider {
|
|
margin: 28px 0 20px;
|
|
}
|
|
|
|
// Header
|
|
.nom-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
|
|
&__left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
&__icon {
|
|
font-size: 18px;
|
|
color: $primary;
|
|
}
|
|
|
|
&__mat-icon {
|
|
color: $primary;
|
|
font-size: 22px;
|
|
}
|
|
|
|
&__title {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: $gray-900;
|
|
}
|
|
|
|
&__badge {
|
|
background: $primary-light;
|
|
color: $primary;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
&__btn {
|
|
border-radius: 8px !important;
|
|
font-size: 13px !important;
|
|
font-weight: 600 !important;
|
|
height: 36px !important;
|
|
}
|
|
}
|
|
|
|
// Empty state
|
|
.nom-empty {
|
|
text-align: center;
|
|
padding: 48px 20px;
|
|
background: $gray-50;
|
|
border-radius: 10px;
|
|
border: 1px dashed $gray-200;
|
|
|
|
&__icon {
|
|
font-size: 36px;
|
|
color: $gray-500;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
&__mat-icon {
|
|
font-size: 36px;
|
|
width: 36px;
|
|
height: 36px;
|
|
color: $gray-500;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
&__text {
|
|
color: $gray-500;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
// Expansion panels
|
|
.nom-panel {
|
|
margin-bottom: 12px !important;
|
|
border-radius: 10px !important;
|
|
border: 1px solid $gray-200 !important;
|
|
box-shadow: 0 1px 3px rgb(0 0 0 / 6%) !important;
|
|
|
|
&::ng-deep .mat-expansion-panel-body {
|
|
padding: 0 20px 20px !important;
|
|
}
|
|
|
|
&__header {
|
|
height: auto !important;
|
|
min-height: 56px !important;
|
|
padding: 8px 20px !important;
|
|
}
|
|
|
|
&__title {
|
|
display: flex !important;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1;
|
|
}
|
|
|
|
&__type-icon {
|
|
font-size: 16px;
|
|
color: $primary;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: $primary-light;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
&__mat-icon {
|
|
font-size: 18px;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: $primary-light;
|
|
color: $primary;
|
|
border-radius: 6px;
|
|
|
|
&--nominee {
|
|
background: $green-light;
|
|
color: $green;
|
|
}
|
|
}
|
|
|
|
&__name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: $gray-900;
|
|
}
|
|
|
|
&__badge {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
padding: 2px 10px;
|
|
border-radius: 10px;
|
|
|
|
&--relation {
|
|
background: $blue-light;
|
|
color: $blue;
|
|
}
|
|
|
|
&--type {
|
|
background: $orange-light;
|
|
color: $orange;
|
|
}
|
|
|
|
&--linked {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
background: $green-light;
|
|
color: $green;
|
|
border: 1px solid color.adjust($green-light, $lightness: -8%);
|
|
|
|
mat-icon {
|
|
font-size: 12px;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
}
|
|
|
|
&--manual {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
background: $gray-100;
|
|
color: $gray-700;
|
|
border: 1px solid $gray-200;
|
|
|
|
mat-icon {
|
|
font-size: 12px;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__mat-icon--linked {
|
|
background: $green-light;
|
|
color: $green;
|
|
}
|
|
|
|
&__desc {
|
|
font-size: 12px;
|
|
color: $gray-500 !important;
|
|
flex: 0 !important;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
// Actions bar inside panel
|
|
.nom-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 0;
|
|
margin-bottom: 12px;
|
|
border-bottom: 1px solid $gray-100;
|
|
|
|
&__buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
&__edit,
|
|
&__delete {
|
|
border-radius: 6px !important;
|
|
font-size: 12px !important;
|
|
font-weight: 600 !important;
|
|
height: 32px !important;
|
|
}
|
|
|
|
&__create-client {
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
gap: 5px !important;
|
|
border-radius: 6px !important;
|
|
font-size: 12px !important;
|
|
font-weight: 700 !important;
|
|
height: 32px !important;
|
|
background: $green !important;
|
|
color: $white !important;
|
|
margin-left: auto;
|
|
|
|
mat-icon {
|
|
font-size: 15px;
|
|
height: 15px;
|
|
width: 15px;
|
|
}
|
|
|
|
&:hover {
|
|
background: color.adjust($green, $lightness: -8%) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Details grid
|
|
.nom-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 0;
|
|
border: 1px solid $gray-100;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
|
|
@media (width <= 768px) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
@media (width <= 480px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.nom-field {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid $gray-100;
|
|
border-right: 1px solid $gray-100;
|
|
transition: background 0.15s ease;
|
|
|
|
&:hover {
|
|
background: $gray-50;
|
|
}
|
|
|
|
&:nth-child(3n) {
|
|
border-right: none;
|
|
}
|
|
|
|
&__label {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: $gray-500;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
&__value {
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
color: $gray-900;
|
|
word-break: break-word;
|
|
|
|
&--mono {
|
|
font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
|
|
font-size: 13px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Entry-type pill inside expanded grid
|
|
.nom-type-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 3px 10px;
|
|
|
|
mat-icon {
|
|
font-size: 13px;
|
|
height: 13px;
|
|
width: 13px;
|
|
}
|
|
|
|
&--linked {
|
|
background: $green-light;
|
|
color: $green;
|
|
border: 1px solid color.adjust($green-light, $lightness: -8%);
|
|
}
|
|
|
|
&--manual {
|
|
background: $gray-100;
|
|
color: $gray-700;
|
|
border: 1px solid $gray-200;
|
|
}
|
|
}
|