359 lines
5.5 KiB
SCSS
359 lines
5.5 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/.
|
|
*/
|
|
|
|
.ra-intro {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 11px 14px;
|
|
margin-bottom: 14px;
|
|
border: 1px solid #bfdbfe;
|
|
border-radius: 8px;
|
|
background: #eff6ff;
|
|
color: #1e40af;
|
|
font-size: 12.5px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.ra-intro-icon {
|
|
flex: 0 0 auto;
|
|
font-size: 20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.ra-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
padding-bottom: 14px;
|
|
}
|
|
|
|
.ra-control {
|
|
width: 170px;
|
|
}
|
|
|
|
.ra-check {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ra-spacer {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.ra-pending-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 12px;
|
|
border: 1px solid #fdba74;
|
|
border-radius: 999px;
|
|
background: #fff7ed;
|
|
color: #c2410c;
|
|
font-size: 12.5px;
|
|
font-weight: 700;
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
}
|
|
|
|
.ra-error {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 6px;
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ra-demo {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid #fde68a;
|
|
border-radius: 6px;
|
|
background: #fffbeb;
|
|
color: #92400e;
|
|
font-size: 12.5px;
|
|
line-height: 1.5;
|
|
|
|
mat-icon {
|
|
flex: 0 0 auto;
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|
|
|
|
.ra-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: 12.5px;
|
|
padding: 14px 16px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
td {
|
|
padding: 12px 16px;
|
|
font-size: 13px;
|
|
color: #1e293b;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
}
|
|
|
|
.ra-row:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
/* Anything still owed a decision is tinted, so the queue reads at a glance. */
|
|
.ra-row-pending {
|
|
background: #fffbeb;
|
|
|
|
&:hover {
|
|
background: #fef3c7;
|
|
}
|
|
}
|
|
|
|
.col-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.col-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.ra-stacked {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.ra-stacked-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.ra-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ra-sub {
|
|
color: #64748b;
|
|
font-size: 11.5px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ra-rules-cell {
|
|
max-width: 260px;
|
|
|
|
.ra-sub {
|
|
display: block;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.ra-count {
|
|
display: inline-block;
|
|
min-width: 30px;
|
|
padding: 3px 9px;
|
|
border-radius: 999px;
|
|
background: #1a237e;
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.ra-high {
|
|
font-weight: 700;
|
|
color: #b91c1c;
|
|
font-size: 12.5px;
|
|
|
|
&.ra-high-zero {
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
.ra-amount {
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ra-risk {
|
|
font-weight: 700;
|
|
|
|
&.ra-risk-low {
|
|
color: #15803d;
|
|
}
|
|
|
|
&.ra-risk-medium {
|
|
color: #b45309;
|
|
}
|
|
|
|
&.ra-risk-high {
|
|
color: #b91c1c;
|
|
}
|
|
|
|
&.ra-risk-none {
|
|
color: #94a3b8;
|
|
}
|
|
}
|
|
|
|
.ra-state {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.03em;
|
|
white-space: nowrap;
|
|
|
|
&.ra-state-new {
|
|
background: #fee2e2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
&.ra-state-again {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
&.ra-state-done {
|
|
background: #dcfce7;
|
|
color: #15803d;
|
|
}
|
|
}
|
|
|
|
.ra-actions {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ra-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 5px 11px;
|
|
margin: 2px;
|
|
border-radius: 6px;
|
|
border: 1px solid transparent;
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
|
|
mat-icon {
|
|
font-size: 15px;
|
|
width: 15px;
|
|
height: 15px;
|
|
}
|
|
}
|
|
|
|
.ra-btn-detail {
|
|
border-color: #cbd5e1;
|
|
background: #fff;
|
|
color: #334155;
|
|
|
|
&:hover {
|
|
border-color: #1a237e;
|
|
color: #1a237e;
|
|
}
|
|
}
|
|
|
|
.ra-btn-review {
|
|
border-color: #c7d2fe;
|
|
background: #eef2ff;
|
|
color: #3730a3;
|
|
|
|
&:hover {
|
|
background: #e0e7ff;
|
|
border-color: #a5b4fc;
|
|
}
|
|
}
|
|
|
|
/* Detail row is always rendered by multiTemplateDataRows; the padding collapses when empty so a
|
|
collapsed row leaves no gap. */
|
|
.ra-detail-cell {
|
|
padding: 0 !important;
|
|
border-bottom: 0 !important;
|
|
}
|
|
|
|
.ra-detail {
|
|
padding: 12px 16px 16px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.ra-detail-tbl {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 12.5px;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
|
|
th {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
font-weight: 700;
|
|
font-size: 10.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
padding: 8px 10px;
|
|
text-align: left;
|
|
}
|
|
|
|
td {
|
|
padding: 8px 10px;
|
|
border-top: 1px solid #f1f5f9;
|
|
color: #1e293b;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
.ra-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 48px 24px;
|
|
color: #64748b;
|
|
text-align: center;
|
|
max-width: 520px;
|
|
margin: 0 auto;
|
|
|
|
mat-icon {
|
|
font-size: 48px;
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
}
|