388 lines
7.0 KiB
SCSS
388 lines
7.0 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/.
|
|
*/
|
|
|
|
@use 'sass:color';
|
|
|
|
$blue: #2563eb;
|
|
$blue-light: #eff6ff;
|
|
$green: #16a34a;
|
|
$green-light: #dcfce7;
|
|
$border: #e2e8f0;
|
|
$text: #1e293b;
|
|
$muted: #64748b;
|
|
$gray-bg: #f8fafc;
|
|
$purple: #7c3aed;
|
|
$purple-light: #f5f3ff;
|
|
|
|
:host {
|
|
display: block;
|
|
}
|
|
|
|
// ─── Wrapper ───────────────────────────────────────────────────
|
|
.nom-section {
|
|
border: 1px solid $border;
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
margin-top: 20px;
|
|
overflow: visible;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
// ─── Header ────────────────────────────────────────────────────
|
|
.nom-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
padding: 14px 20px;
|
|
background: $gray-bg;
|
|
border-bottom: 1px solid $border;
|
|
border-radius: 14px 14px 0 0;
|
|
|
|
&__left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
|
|
i {
|
|
color: $purple;
|
|
font-size: 15px;
|
|
}
|
|
}
|
|
|
|
&__title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: $text;
|
|
}
|
|
}
|
|
|
|
// ─── Mode toggle tabs ──────────────────────────────────────────
|
|
.nom-mode-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nom-tab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 14px;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
border: 1.5px solid $border;
|
|
background: #fff;
|
|
color: $muted;
|
|
transition: all 0.18s;
|
|
|
|
i {
|
|
font-size: 11px;
|
|
}
|
|
|
|
&:hover {
|
|
border-color: $blue;
|
|
color: $blue;
|
|
background: $blue-light;
|
|
}
|
|
|
|
&--active {
|
|
border-color: $blue;
|
|
background: $blue;
|
|
color: #fff;
|
|
|
|
&:hover {
|
|
background: color.adjust(#2563eb, $lightness: -5%);
|
|
}
|
|
}
|
|
}
|
|
|
|
// ─── Body ──────────────────────────────────────────────────────
|
|
.nom-body {
|
|
padding: 20px;
|
|
overflow: visible;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
// ─── Manual form grid ──────────────────────────────────────────
|
|
.nom-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.nom-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
|
|
@media (width <= 600px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.nom-field {
|
|
width: 100%;
|
|
|
|
&--full {
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.nom-section-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
color: $blue;
|
|
margin: 8px 0 4px;
|
|
|
|
i {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.nom-hint {
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
color: $muted;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.nom-flags {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
margin: 8px 0 12px;
|
|
}
|
|
|
|
// ─── Search (link mode) ────────────────────────────────────────
|
|
.nom-search-wrap {
|
|
position: relative;
|
|
z-index: 1000;
|
|
overflow: visible;
|
|
}
|
|
|
|
.nom-results {
|
|
margin-top: 4px;
|
|
border: 1px solid $border;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
|
|
overflow: hidden;
|
|
max-height: 260px;
|
|
overflow-y: auto;
|
|
|
|
&__loading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 14px 16px;
|
|
font-size: 13px;
|
|
color: $muted;
|
|
}
|
|
}
|
|
|
|
.nom-result-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
border-bottom: 1px solid $border;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
&:hover {
|
|
background: $blue-light;
|
|
}
|
|
|
|
&__icon {
|
|
color: $muted;
|
|
font-size: 20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
&__info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
&__name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: $text;
|
|
}
|
|
|
|
&__meta {
|
|
font-size: 11px;
|
|
color: $muted;
|
|
}
|
|
}
|
|
|
|
.nom-no-results {
|
|
padding: 12px 0;
|
|
font-size: 13px;
|
|
color: $muted;
|
|
text-align: center;
|
|
}
|
|
|
|
// ─── Selected client card ──────────────────────────────────────
|
|
.nom-client-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px 16px;
|
|
border: 1px solid $border;
|
|
border-radius: 10px;
|
|
background: $gray-bg;
|
|
margin-bottom: 14px;
|
|
|
|
&__avatar {
|
|
width: 46px;
|
|
height: 46px;
|
|
border-radius: 50%;
|
|
background: $blue-light;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&__photo {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
&__avatar-icon {
|
|
color: $blue;
|
|
font-size: 26px;
|
|
width: 26px;
|
|
height: 26px;
|
|
}
|
|
|
|
&__info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
&__name {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: $text;
|
|
}
|
|
|
|
&__meta {
|
|
font-size: 12px;
|
|
color: $muted;
|
|
}
|
|
|
|
&__remove {
|
|
flex: 0 0 auto;
|
|
color: $muted;
|
|
}
|
|
}
|
|
|
|
.nom-fetching {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: $muted;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
// ─── Linked client details grid ────────────────────────────────
|
|
.nom-details-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 14px 24px;
|
|
padding: 14px 16px;
|
|
border: 1px solid $border;
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
margin-bottom: 14px;
|
|
|
|
@media (width <= 600px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.nom-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
&__label {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
color: $muted;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
&__value {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: $text;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
}
|
|
|
|
.nom-verified {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: $green;
|
|
background: $green-light;
|
|
border-radius: 999px;
|
|
padding: 2px 8px;
|
|
|
|
mat-icon {
|
|
font-size: 12px;
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
}
|
|
|
|
// ─── Extras for linked (relationship + share) ──────────────────
|
|
.nom-linked-extras {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
margin-top: 4px;
|
|
|
|
@media (width <= 600px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|