feat(cashier): integrate expected balance, settlement verification, and reconciliation checks

This commit is contained in:
Jaanu423
2026-05-28 22:30:08 +05:30
parent 7ccaffa7f1
commit 6433ae068d
10 changed files with 1362 additions and 201 deletions
@@ -79,6 +79,211 @@
}
}
/* ── Action buttons cell ── */
.action-btns {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}
.btn-view {
color: #1e40af;
&:hover {
background: #eff6ff;
}
}
.td-note {
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ── Detail overlay ── */
.detail-overlay {
position: fixed;
inset: 0;
background: rgb(15 23 42 / 45%);
z-index: 1000;
display: flex;
align-items: flex-start;
justify-content: flex-end;
padding: 0;
backdrop-filter: blur(2px);
}
.detail-panel {
width: 480px;
max-width: 100vw;
height: 100vh;
background: #fff;
display: flex;
flex-direction: column;
overflow-y: auto;
box-shadow: -4px 0 24px rgb(0 0 0 / 15%);
&__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 20px 16px;
border-bottom: 1px solid #e2e8f0;
position: sticky;
top: 0;
background: #fff;
z-index: 1;
}
&__title {
display: flex;
align-items: center;
gap: 10px;
mat-icon {
font-size: 22px;
height: 22px;
width: 22px;
color: #1e40af;
}
}
&__type {
display: block;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #64748b;
}
&__id {
font-size: 18px;
font-weight: 800;
color: #0f172a;
}
&__close {
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 6px;
display: flex;
align-items: center;
color: #64748b;
&:hover {
background: #f1f5f9;
color: #0f172a;
}
mat-icon {
font-size: 20px;
height: 20px;
width: 20px;
}
}
}
/* ── Meta grid ── */
.detail-meta {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
padding: 16px 20px;
border-bottom: 1px solid #f1f5f9;
&__item {
padding: 8px 4px;
border-bottom: 1px solid #f8fafc;
&--full {
grid-column: 1 / -1;
}
}
&__label {
display: block;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #94a3b8;
margin-bottom: 2px;
}
&__val {
font-size: 13px;
font-weight: 500;
color: #1e293b;
&--amount {
font-size: 16px;
font-weight: 800;
color: #0f172a;
}
}
}
/* ── Reversal info ── */
.detail-reversal {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
background: #fef2f2;
border-bottom: 1px solid #fecaca;
font-size: 12px;
color: #991b1b;
mat-icon {
font-size: 18px;
height: 18px;
width: 18px;
color: #dc2626;
flex-shrink: 0;
}
&__reason {
opacity: 0.8;
}
}
/* ── Denomination section ── */
.detail-denom-head {
display: flex;
align-items: center;
gap: 8px;
padding: 14px 20px 8px;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #1e40af;
mat-icon {
font-size: 16px;
height: 16px;
width: 16px;
}
}
.detail-denom-table {
margin: 0 20px 20px;
width: calc(100% - 40px);
border: 1px solid #e2e8f0;
border-radius: 8px;
overflow: hidden;
}
.detail-denom-total td {
background: #f8fafc;
border-top: 2px solid #e2e8f0;
}
.pg-btn--danger {
background: linear-gradient(135deg, #ef4444, #b91c1c);
color: #fff;