/** * 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/. */ /* Page chrome comes from cashier-shared.scss; the badges, panel and comparison tiles are shared with the day book. Only what is specific to the day register lives here. */ /* Read-only notice for a cashier. Defined here rather than borrowed from the exceptions screen so this component does not depend on another component's stylesheet. */ .ve-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; color: #1e40af; font-size: 12px; mat-icon { font-size: 18px; width: 18px; height: 18px; } } .bd-success { padding: 10px 14px; margin-bottom: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; color: #14532d; font-size: 13px; } /* One row per never-closed day, inside the shared red exception panel. */ .bd-missed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; font-size: 12px; border-top: 1px dotted #fecaca; &__age { color: #b91c1c; } /* Pushed right so the date and age read before the action. */ &__act { margin-left: auto; height: 28px; font-size: 11px; } } /* The branch's current day — the one thing someone opening this screen is looking for. */ .bd-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; border-radius: 8px; /* No day open at all: nothing is running, so the amber "in progress" edge would mislead. */ &--shut { border-left-color: #94a3b8; background: #f8fafc; } &__main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } &__date { font-size: 15px; color: #0d1b2a; } .pg-btn { margin-left: auto; } } .bd-panel { margin-bottom: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; /* A late close is a different act from an ordinary one, and looks like it. */ &--late { border-left: 4px solid #dc2626; } &__wide { display: block; margin-top: 12px; max-width: 640px; } } /* The closing figure's arithmetic, laid out as a running sum so each line can be checked against the screen it came from. */ .bd-calc { max-width: 520px; margin-bottom: 14px; padding: 10px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12px; &__row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: #475569; &--in .bd-calc__amt { color: #15803d; } &--out .bd-calc__amt { color: #b91c1c; } &--total { margin-top: 4px; padding-top: 8px; border-top: 2px solid #e2e8f0; font-weight: 800; font-size: 14px; color: #0d1b2a; } } &__amt { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; } } .bd-hint { margin: 10px 0 0; font-size: 11px; color: #94a3b8; } .bd-note { max-width: 280px; font-size: 11px; line-height: 1.4; }