- 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>
607 lines
9.2 KiB
SCSS
607 lines
9.2 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;
|
|
}
|
|
|
|
.dri-tab {
|
|
padding: 0;
|
|
}
|
|
|
|
.dri-action-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 14px 20px;
|
|
background: #fff;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
|
|
&__left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
&__icon {
|
|
font-size: 28px;
|
|
width: 28px;
|
|
height: 28px;
|
|
color: #1e40af;
|
|
}
|
|
|
|
&__title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #0d1b2a;
|
|
}
|
|
|
|
&__sub {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
margin-top: 2px;
|
|
}
|
|
}
|
|
|
|
.dri-filter-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 20px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.dri-fb-sep {
|
|
width: 1px;
|
|
height: 22px;
|
|
background: #e2e8f0;
|
|
flex-shrink: 0;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.dri-filter-select {
|
|
height: 34px;
|
|
min-width: 130px;
|
|
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: #1e40af;
|
|
}
|
|
}
|
|
|
|
.dri-presets {
|
|
display: inline-flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.dri-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: #1e40af;
|
|
color: #1e40af;
|
|
background: #eff6ff;
|
|
}
|
|
|
|
&--active {
|
|
background: #1e40af;
|
|
border-color: #1e40af;
|
|
color: #fff;
|
|
|
|
&:hover {
|
|
background: #1e3a8a;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dri-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;
|
|
}
|
|
}
|
|
|
|
.dri-date-box {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 34px;
|
|
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: #1e40af;
|
|
}
|
|
|
|
&__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: 76px;
|
|
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: #1e40af;
|
|
background: #eff6ff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dri-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
border-radius: 7px;
|
|
font-family: inherit;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
border: 1px solid #e2e8f0;
|
|
transition: background 0.15s;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
font-size: 13px;
|
|
background: #fff;
|
|
color: #0d1b2a;
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&--refresh {
|
|
padding: 0 8px;
|
|
color: #64748b;
|
|
|
|
&:hover:not(:disabled) {
|
|
background: #f1f5f9;
|
|
}
|
|
}
|
|
|
|
&--review {
|
|
background: #1e40af;
|
|
color: #fff;
|
|
border-color: #1e40af;
|
|
|
|
&:hover {
|
|
background: #1e3a8a;
|
|
}
|
|
}
|
|
|
|
&--approve {
|
|
background: #15803d;
|
|
color: #fff;
|
|
border-color: #15803d;
|
|
|
|
&:hover:not(:disabled) {
|
|
background: #166534;
|
|
}
|
|
}
|
|
|
|
&--reject {
|
|
background: #b91c1c;
|
|
color: #fff;
|
|
border-color: #b91c1c;
|
|
|
|
&:hover:not(:disabled) {
|
|
background: #991b1b;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dri-table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.dri-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
|
|
th,
|
|
td {
|
|
padding: 10px 14px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
|
|
th {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
background: #f8fafc;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.num {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
.dri-row {
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
|
|
&:hover td {
|
|
background: #eff6ff;
|
|
}
|
|
}
|
|
|
|
.dri-row--approved td {
|
|
background: #f0fdf4;
|
|
}
|
|
|
|
.dri-th-id {
|
|
width: 90px;
|
|
}
|
|
|
|
.dri-th-action {
|
|
width: 100px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dri-action-cell {
|
|
text-align: center;
|
|
}
|
|
|
|
.dri-client {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.dri-amount {
|
|
font-weight: 700;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.dri-dt {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.dri-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 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;
|
|
}
|
|
}
|
|
|
|
.cell-mono {
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.dri-voucher {
|
|
font-weight: 700;
|
|
color: #1e40af;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
// ── Review modal ────────────────────────────────────────────────────────────
|
|
|
|
.dri-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;
|
|
}
|
|
|
|
.dri-modal {
|
|
background: #fff;
|
|
border-radius: 14px;
|
|
width: min(640px, 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;
|
|
}
|
|
}
|
|
|
|
.dri-detail-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px 18px;
|
|
}
|
|
|
|
.dri-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;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dri-denoms {
|
|
margin-top: 16px;
|
|
|
|
&__title {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #475569;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
&__table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
|
|
th,
|
|
td {
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
text-align: left;
|
|
}
|
|
|
|
th {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.num {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
&__total td {
|
|
font-weight: 700;
|
|
color: #1e40af;
|
|
border-top: 2px solid #e2e8f0;
|
|
}
|
|
}
|
|
|
|
.dri-result {
|
|
margin-top: 14px;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
|
|
&--error {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
}
|
|
|
|
.dri-reject-box {
|
|
margin-top: 14px;
|
|
|
|
&__lbl {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #475569;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
&__input {
|
|
width: 100%;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: #b91c1c;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Empty state (re-use checker inbox styles)
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
color: #94a3b8;
|
|
|
|
.empty-icon {
|
|
font-size: 40px;
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
margin: 12px 0 4px;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 13px;
|
|
color: #94a3b8;
|
|
margin: 0;
|
|
}
|
|
}
|