- Add cashier deposit service and submit flow via maker-checker - New CashierDepositService: submit, approve, reject, list endpoints - Transaction-entry: cashier SD deposit goes to deposit-requests instead of direct credit - Checker inbox: new Deposit Requests tab with approve/reject review dialog - Cashier nav: My Deposit Requests tracking page - Withdrawal requests: show voucher_no from backend instead of JS-padded id - clerk-withdrawal.service: disburse denominationData accepts null for non-cash - Role-based checker enforcement: only manager/head-cashier can approve/reject - Maker cannot approve own request (self-approval blocked at backend) - Denomination total validation: breakdown must match transaction amount Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
417 lines
6.5 KiB
SCSS
417 lines
6.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/.
|
|
*/
|
|
|
|
:host {
|
|
display: block;
|
|
}
|
|
|
|
.mdr-table {
|
|
td,
|
|
th {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
.mdr-row {
|
|
cursor: default;
|
|
transition: background 0.1s;
|
|
|
|
&:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
&--rejected td {
|
|
background: #fff5f5;
|
|
}
|
|
|
|
&--approved td {
|
|
background: #f0fdf4;
|
|
}
|
|
}
|
|
|
|
.mdr-voucher {
|
|
font-weight: 700;
|
|
color: #1e40af;
|
|
letter-spacing: 0.06em;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mdr-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
white-space: nowrap;
|
|
|
|
&--pending {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
&--approved {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
&--rejected {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
}
|
|
|
|
.mdr-rejection {
|
|
max-width: 200px;
|
|
}
|
|
|
|
.mdr-rejection-text {
|
|
font-size: 12px;
|
|
color: #991b1b;
|
|
font-style: italic;
|
|
}
|
|
|
|
.mdr-none {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.mdr-actions-cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mdr-btn-view {
|
|
font-size: 12px;
|
|
height: 30px;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.mdr-th-action {
|
|
width: 100px;
|
|
}
|
|
|
|
.mdr-btn-refresh {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
color: #64748b;
|
|
font-family: inherit;
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
&:hover:not(:disabled) {
|
|
background: #f1f5f9;
|
|
color: #0d1b2a;
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
.mdr-select {
|
|
height: 32px;
|
|
min-width: 120px;
|
|
padding: 0 10px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 7px;
|
|
font-size: 13px;
|
|
color: #0d1b2a;
|
|
font-family: inherit;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: #1353a0;
|
|
}
|
|
}
|
|
|
|
.pg-filter-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.pg-fb-sep {
|
|
width: 1px;
|
|
height: 22px;
|
|
background: #e2e8f0;
|
|
flex-shrink: 0;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.pg-presets {
|
|
display: inline-flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.pg-preset-chip {
|
|
height: 28px;
|
|
padding: 0 12px;
|
|
border-radius: 14px;
|
|
border: 1px solid #e2e8f0;
|
|
background: #fff;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
border-color: #1353a0;
|
|
color: #1353a0;
|
|
background: #eff6ff;
|
|
}
|
|
|
|
&--active {
|
|
background: #1353a0;
|
|
border-color: #1353a0;
|
|
color: #fff;
|
|
|
|
&:hover {
|
|
background: #0f4080;
|
|
}
|
|
}
|
|
}
|
|
|
|
.pg-date-range {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
|
|
&__sep {
|
|
color: #94a3b8;
|
|
font-size: 16px;
|
|
font-weight: 300;
|
|
padding: 0 2px;
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
.pg-date-box {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 32px;
|
|
padding: 0 6px 0 10px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
transition: border-color 0.15s;
|
|
|
|
&:hover {
|
|
border-color: #cbd5e1;
|
|
}
|
|
|
|
&:focus-within {
|
|
border-color: #1353a0;
|
|
}
|
|
|
|
&__lbl {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #94a3b8;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
&__input {
|
|
border: none;
|
|
outline: none;
|
|
font-size: 13px;
|
|
width: 72px;
|
|
color: #0d1b2a;
|
|
font-family: inherit;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
|
|
&::placeholder {
|
|
color: #cbd5e1;
|
|
}
|
|
}
|
|
|
|
&__btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: #94a3b8;
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
&:hover {
|
|
color: #1353a0;
|
|
background: #eff6ff;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ── View modal ──────────────────────────────────────────────────────────────
|
|
|
|
.mdr-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgb(13 27 42 / 55%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 24px;
|
|
}
|
|
|
|
.mdr-modal {
|
|
background: #fff;
|
|
border-radius: 14px;
|
|
width: min(560px, 100%);
|
|
max-height: 90vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
box-shadow: 0 24px 64px rgb(13 27 42 / 35%);
|
|
|
|
&__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 18px 22px;
|
|
background: linear-gradient(135deg, #1e40af, #1e3a8a);
|
|
color: #fff;
|
|
}
|
|
|
|
&__eyebrow {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
&__title {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
&__close {
|
|
border: none;
|
|
background: rgb(255 255 255 / 15%);
|
|
color: #fff;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
mat-icon {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
&:hover {
|
|
background: rgb(255 255 255 / 28%);
|
|
}
|
|
}
|
|
|
|
&__body {
|
|
padding: 18px 22px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
&__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 14px 22px;
|
|
border-top: 1px solid #e2e8f0;
|
|
background: #f8fafc;
|
|
}
|
|
}
|
|
|
|
.mdr-detail-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px 18px;
|
|
}
|
|
|
|
.mdr-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
|
|
&--wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
&__lbl {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #94a3b8;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
&__val {
|
|
font-size: 13px;
|
|
color: #0d1b2a;
|
|
font-weight: 500;
|
|
|
|
&--reject {
|
|
color: #b91c1c;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mdr-hint {
|
|
margin-top: 14px;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cell-mono {
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 12px;
|
|
}
|