/** * 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; badges, filters and muted text are shared with the day book. Only what belongs to the account register lives here. */ .ar-summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; &__item { flex: 1 1 180px; padding: 12px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; &--in { border-left: 4px solid #16a34a; } &--out { border-left: 4px solid #dc2626; } } &__label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; } &__value { display: block; margin-top: 4px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: #0d1b2a; } } /* Checkbox sits inside a pg-field, which is laid out for inputs — this keeps the label and box on one line without fighting that. */ .ar-check { &__box { display: flex; align-items: center; gap: 6px; height: 38px; font-size: 12px; color: #475569; white-space: nowrap; } } /* Marks the accounts that actually moved on the chosen date — the reason someone opens a register for a past day at all. */ .ar-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; &--in { background: #dcfce7; color: #15803d; } &--out { background: #fee2e2; color: #b91c1c; } } .ar-row--opened td:first-child { box-shadow: inset 3px 0 0 #22c55e; } .ar-row--closed td:first-child { box-shadow: inset 3px 0 0 #ef4444; } /* Only shown on paper: the screen already states the date in the toolbar. */ .ar-printhead { display: none; } /* A register is meant to be printed and filed, so paper gets its own treatment: the toolbar and filters go, the table gains borders, and rows are not split across pages. */ @media print { .ar-noprint { display: none !important; } .ar-printhead { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 800; color: #000; } .pg { padding: 0; } .ar-summary__item { border: 1px solid #999; } .pg-table { font-size: 10px; th, td { border: 1px solid #999; padding: 4px 6px; color: #000; } } tr { page-break-inside: avoid; } /* Table headers repeat on every page, so a multi-page register stays readable. */ thead { display: table-header-group; } }