Adds a customer-account-scoped Cheque Book view under Clerk > Account Facilities (list + leaf detail, with stop-payment/report-lost/mark-used/ return actions), reachable via a new hover dropdown on the Account Facilities nav item. Also refreshes the Account Facilities page layout, and carries over a few chequebook service/detail-dialog fixes from the back-office module (used-leaf display, leaf-lookup dialog polish). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
132 lines
1.9 KiB
SCSS
132 lines
1.9 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/.
|
|
*/
|
|
|
|
.container {
|
|
padding: 16px;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.info-card {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px 24px;
|
|
|
|
div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.k {
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
color: rgb(0 0 0 / 50%);
|
|
}
|
|
}
|
|
|
|
.action-toolbar {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.add-form {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px 20px;
|
|
}
|
|
|
|
mat-form-field {
|
|
width: 100%;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.leaf-grid-wrapper {
|
|
background: #fff;
|
|
padding: 16px;
|
|
}
|
|
|
|
.leaf-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 14px;
|
|
}
|
|
|
|
.serial-circle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
border: 2px solid currentcolor;
|
|
background: #fff;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
cursor: pointer;
|
|
transition:
|
|
transform 0.1s ease,
|
|
box-shadow 0.1s ease;
|
|
|
|
&:hover {
|
|
transform: scale(1.06);
|
|
box-shadow: 0 2px 6px rgb(0 0 0 / 15%);
|
|
}
|
|
|
|
&.ok {
|
|
color: #28c07a;
|
|
}
|
|
|
|
&.used {
|
|
color: #1976d2;
|
|
}
|
|
|
|
&.bad {
|
|
color: #d32f2f;
|
|
}
|
|
|
|
&.warn {
|
|
color: #a16207;
|
|
}
|
|
|
|
&.neutral {
|
|
color: #757575;
|
|
}
|
|
|
|
&.returned {
|
|
color: #9333ea;
|
|
}
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 24px;
|
|
text-align: center;
|
|
color: rgb(0 0 0 / 50%);
|
|
}
|