/*
 * Application styles on top of Tabler (https://tabler.io). Only what Tabler does not provide.
 * Tabler's CSS variables use the --tblr- prefix.
 */

/* ---- Brand colour: violet ("tím"), replaces Tabler's default blue everywhere ----
 * Change the brand here (and --pub-grad in public.css): every Tabler primary colour derives from it. */
:root,
[data-bs-theme="light"] {
    --app-brand-700: #6d28d9;
    --app-brand-600: #7c3aed;
    --app-brand-400: #a78bfa;
    --app-accent: #f59e0b;
    --tblr-primary: #6d28d9;
    --tblr-primary-rgb: 109, 40, 217;
    --tblr-primary-fg: #fff;
    --tblr-primary-darken: #5b21b6;
    --tblr-primary-lt-rgb: 240, 235, 252;
    --tblr-link-color: #6d28d9;
    --tblr-link-color-rgb: 109, 40, 217;
    --tblr-link-hover-color: #5b21b6;
    --tblr-link-hover-color-rgb: 91, 33, 182;
    --tblr-focus-ring-color: rgba(109, 40, 217, .25);
}
[data-bs-theme="dark"] {
    /* Lighter violet keeps enough contrast on dark surfaces. */
    --tblr-primary: #8b5cf6;
    --tblr-primary-rgb: 139, 92, 246;
    --tblr-primary-fg: #fff;
    --tblr-primary-darken: #7c3aed;
    --tblr-link-color: #a78bfa;
    --tblr-link-color-rgb: 167, 139, 250;
    --tblr-link-hover-color: #c4b5fd;
    --tblr-link-hover-color-rgb: 196, 181, 253;
    --tblr-focus-ring-color: rgba(167, 139, 250, .3);
}
.btn-primary {
    --tblr-btn-bg: var(--tblr-primary);
    --tblr-btn-border-color: var(--tblr-primary);
    --tblr-btn-hover-bg: var(--tblr-primary-darken);
    --tblr-btn-hover-border-color: var(--tblr-primary-darken);
    --tblr-btn-active-bg: var(--tblr-primary-darken);
    --tblr-btn-color: var(--tblr-primary-fg);
    --tblr-btn-hover-color: var(--tblr-primary-fg);
}


/* GridView sort links: arrow showing the current direction */
a.asc::after,
a.desc::after {
    font-family: "tabler-icons";
    margin-left: .25rem;
    font-size: .875em;
}
a.asc::after { content: "\ea62"; }  /* ti-chevron-up */
a.desc::after { content: "\ea5f"; } /* ti-chevron-down */

.grid-view th,
.detail-view th {
    white-space: nowrap;
}
.detail-view th {
    width: 1%;
    color: var(--tblr-secondary);
    font-weight: var(--tblr-font-weight-medium, 500);
}

/* Captcha image readable on the dark theme */
[data-bs-theme="dark"] img[src*="captcha"] {
    filter: invert(1) hue-rotate(180deg);
}

/* ---- Monthly report bar chart (pure CSS, no chart library) ---- */

/* ---- Printing: content only ---- */
@media print {
    .page-wrapper { margin: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
}

/* ---- VietQR, invoice document & share (nhatro-9d) ---- */
.qr-box {
    width: 11rem;
    max-width: 100%;
    padding: .5rem;
    background: #fff; /* QR codes must stay dark-on-light to scan, also in dark mode */
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box svg .qr-dark, .qr-box svg path { fill: #000; }
.donate-qr-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.donate-qr-pair .qr-box { width: 100%; }
.donate-static-qr {
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}
.donate-static-qr img { display: block; width: 100%; height: auto; }
.invoice-pay { border-top: 1px dashed var(--tblr-border-color); padding-top: 1rem; }
@media (max-width: 575.98px) {
    .donate-qr-pair { grid-template-columns: 1fr; max-width: 20rem; margin-inline: auto; }
}
@media print {
    .invoice-document { border: 0; box-shadow: none; }
    .invoice-document .card-body { padding: 0; }
    .qr-box { width: 9rem; border: 0; }
    a[href]::after { content: none !important; }
}

/* ---- Printable legal documents: contract, deposit settlement (nhatro-9d) ---- */
.legal-doc { font-size: .95rem; line-height: 1.6; }
.legal-doc h2 { margin-top: 1.25rem; }
.legal-doc .signatures { min-height: 9rem; }
@media print {
    .legal-doc { border: 0; box-shadow: none; font-size: 12pt; }
    .legal-doc .card-body { padding: 0; }
    .legal-doc h2 { break-after: avoid; }
}

/* ---- Room map (nhatro-9d) ---- */
.room-floor { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--tblr-border-color); }
.room-floor:last-child { border-bottom: 0; }
.room-floor-label { width: 4.5rem; flex-shrink: 0; font-weight: 500; padding-top: .5rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .75rem; flex: 1; }
.room-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%;
    min-height: 5.5rem; padding: .6rem .75rem; text-align: left;
    background: var(--tblr-bg-surface); color: inherit;
    border: 1px solid var(--tblr-border-color); border-left: .3rem solid var(--room-color, var(--tblr-secondary));
    border-radius: var(--tblr-border-radius); transition: box-shadow .15s, transform .15s; position: relative;
}
.room-tile:hover, .room-tile:focus-visible { box-shadow: var(--tblr-box-shadow-card-hover, 0 2px 8px rgba(0,0,0,.12)); transform: translateY(-1px); }
.room-tile .room-code { font-weight: 600; font-size: 1.05rem; }
.room-tile .room-flags { position: absolute; top: .5rem; right: .6rem; display: flex; gap: .25rem; }
.room-tile .room-line { font-size: .8rem; max-width: 100%; }
.room-occupied { --room-color: var(--tblr-blue); }
.room-vacant { --room-color: var(--tblr-green); }
.room-maintenance { --room-color: var(--tblr-yellow); }
.room-inactive { --room-color: var(--tblr-gray-400, #adb5bd); opacity: .75; }
.room-overdue { background: color-mix(in srgb, var(--tblr-red) 7%, var(--tblr-bg-surface)); }
.legend-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; background: var(--room-color); }
@media (max-width: 575.98px) {
    .room-floor { flex-direction: column; gap: .5rem; }
    .room-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Dashboard charts (nhatro-9d) ---- */
[data-chart] { min-height: 260px; }
.chart-lg[data-chart] { min-height: 300px; }

/* ---- Meter batch entry, phone friendly (nhatro-9d) ---- */
.meter-row + .meter-row { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--tblr-border-color); }
.meter-cards { padding-bottom: 4.5rem; }
.meter-save-bar {
    /* No negative margin: it made the bar 8px wider than a phone screen (M5). */
    position: sticky; bottom: 0; z-index: 10; margin: 0; box-sizing: border-box; max-width: 100%;
    padding: .75rem 0; background: var(--tblr-bg-surface); border-top: 1px solid var(--tblr-border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
}
@media (max-width: 575.98px) {
    .meter-save-bar .btn { flex: 1 1 0; padding: .75rem; font-size: 1rem; }
}

/* ---- List pages: filters in a card-like bar (nhatro-9d) ---- */
.filter-bar {
    margin-left: 0; margin-right: 0; padding: .75rem .25rem;
    background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius);
}

/* =====================================================================
 * UI polish (nhatro-9d): AJAX feedback, typography, sidebar, lists
 * ===================================================================== */

/* Numbers line up in tables and figures. */
.table, .datagrid-content, .display-6, .h3, .room-tile { font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; }

/* Top progress bar while a page loads through htmx. */
.app-progress {
    position: fixed; top: 0; left: 0; z-index: 2000; height: 3px; width: 0; opacity: 0;
    background: linear-gradient(90deg, var(--app-brand-700, var(--tblr-primary)), var(--app-brand-400, #a78bfa));
    box-shadow: 0 0 6px color-mix(in srgb, var(--tblr-primary) 60%, transparent);
    transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .2s;
}
.app-progress.active { width: 85%; opacity: 1; }
.app-progress.done { width: 100%; opacity: 0; transition: width .2s, opacity .3s .15s; }
#app.is-loading .page-body { opacity: .6; transition: opacity .15s .1s; }

/* Toasts (flash messages and AJAX feedback). */
.toast-container { z-index: 1090; }
/* Above the sticky save bar of the meter entry, never on top of its buttons (Q6-8). */
body:has(.meter-save-bar) #toasts { bottom: 4.5rem !important; }
/* Offline meter entry (R7.5): queue status on top of every page until synced. */
.offline-banner { position: sticky; top: 0; z-index: 1080; }
.app-toast {
    min-width: 18rem; max-width: 26rem; border: 0; border-left: 4px solid var(--toast-color, var(--tblr-primary));
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12); animation: toast-in .2s ease-out;
}
.app-toast.alert-success { --toast-color: var(--tblr-green); }
.app-toast.alert-danger { --toast-color: var(--tblr-red); }
.app-toast.alert-warning { --toast-color: var(--tblr-yellow); }
.app-toast.alert-info { --toast-color: var(--tblr-azure); }
.app-toast .toast-icon { color: var(--toast-color); line-height: 1.2; }
.app-toast.hiding { opacity: 0; transform: translateX(1rem); transition: all .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }

/* Soft status badges with a dot. */
.app-badge { font-weight: 500; letter-spacing: 0; text-transform: none; padding: .3em .6em; }
.app-badge .status-dot { width: .45rem; height: .45rem; vertical-align: .1em; }
.page-title .app-badge { font-size: .75rem; vertical-align: middle; }

/* Sidebar: readable icons, clearer active item. */
.navbar-vertical .nav-link-icon .ti { font-size: 1.25rem; }
.navbar-vertical .navbar-brand { font-size: 1.05rem; }
.navbar-vertical .navbar-brand .brand-mark {
    display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .5rem;
    background: linear-gradient(135deg, var(--app-brand-700), var(--app-brand-400)); color: #fff; margin-right: .5rem; font-size: 1.15rem;
}
.brand-mark img, .pub-brand-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.navbar-vertical .dropdown-item.active, .navbar-vertical .dropdown-item:active {
    background: rgba(255, 255, 255, .08); color: #fff; font-weight: 500;
}

/* Page header & breadcrumbs. */
.page-header .page-title { font-size: 1.35rem; }
.breadcrumb { font-size: .8125rem; }

/* Filters: one tidy bar above the list. */
.filter-bar { padding: .625rem .375rem; box-shadow: var(--tblr-box-shadow-card, none); }
.filter-bar .form-control, .filter-bar .form-select { border-color: transparent; background-color: var(--tblr-bg-surface-secondary, var(--tblr-gray-50)); }
.filter-bar .form-control:focus, .filter-bar .form-select:focus { background-color: var(--tblr-bg-surface); border-color: var(--tblr-primary); }

/* Tables: quieter headers, comfortable rows. */
.card-table thead th { font-size: .6875rem; letter-spacing: .04em; color: var(--tblr-secondary); background: var(--tblr-bg-surface-tertiary, transparent); }
.card-table thead th a { color: inherit; text-decoration: none; }
.card-table thead th a:hover { color: var(--tblr-primary); }
.card-table td { vertical-align: middle; }

/* Dashboard: two stat tiles per row on phones. */
@media (max-width: 575.98px) {
    .stat-row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
    .stat-row .card-body { padding: .75rem; }
    .stat-row .avatar { width: 2rem; height: 2rem; }
    .stat-row .font-weight-medium { font-size: .95rem; }
    .stat-row .text-secondary { font-size: .75rem; }
    .page-header .btn-list .btn:not(.btn-icon) { padding-left: .6rem; padding-right: .6rem; }
}

/* Modals opened from templates. */
.modal .form-hint { font-size: .8rem; }
.btn-loading { pointer-events: none; }

/* Dashboard figures: the number is what matters. */
.stat-row .font-weight-medium { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.stat-row .font-weight-medium .small { font-size: .75rem; font-weight: 400; }
@media (max-width: 575.98px) { .stat-row .font-weight-medium { font-size: 1rem; } }

/* Tom Select inside Tabler forms. */
.ts-wrapper.multi .ts-control > .item { border-radius: var(--tblr-border-radius); }

/* Lists on phones: each table row becomes a card, the header shown in front of every value
   (data-label, set by app\widgets\CardGridView or by hand in report tables). */
.grid-empty { padding: 0; }
@media (max-width: 575.98px) {
    .table-mobile-cards thead { display: none; }
    .table-mobile-cards, .table-mobile-cards tbody, .table-mobile-cards tfoot,
    .table-mobile-cards tr, .table-mobile-cards td { display: block; width: 100%; }
    .table-mobile-cards tr { padding: .5rem 0; border-bottom: 1px solid var(--tblr-border-color); }
    .table-mobile-cards tbody tr:last-child { border-bottom: 0; }
    .table-mobile-cards td {
        display: flex; justify-content: space-between; align-items: center; gap: 1rem;
        padding: .3rem 1rem; border: 0; text-align: end; white-space: normal;
    }
    .table-mobile-cards td[data-label]:not([data-label=""])::before {
        content: attr(data-label); flex: 0 0 auto; max-width: 45%;
        font-size: .8rem; font-weight: 600; color: var(--tblr-secondary); text-align: start;
    }
    /* First column (code, room…) is the card title; action buttons sit at the end. */
    .table-mobile-cards td:first-child { font-weight: 600; }
    .table-mobile-cards td[data-label=""], .table-mobile-cards td:not([data-label]) { justify-content: flex-end; }
    .table-mobile-cards td[colspan] { display: block; text-align: start; }
    .table-mobile-cards td > .text-end, .table-mobile-cards td.text-end { text-align: end; }
}

/* Room map: on phones the room's actions open as a bottom sheet instead of a small dropdown
   (data-bs-display="static" keeps Popper from positioning it). */
@media (max-width: 575.98px) {
    .room-grid .room-actions.show {
        position: fixed; inset: auto 0 0 0; z-index: 1056; margin: 0; padding: .5rem 0 calc(.75rem + env(safe-area-inset-bottom));
        border-radius: 1rem 1rem 0 0; box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
        max-height: 70vh; overflow-y: auto; animation: room-sheet-in .15s ease-out;
    }
    .room-grid .room-actions .dropdown-header { font-size: 1rem; font-weight: 600; color: var(--tblr-body-color); }
    .room-grid .room-actions .dropdown-item { padding: .85rem 1.25rem; font-size: 1rem; }
}
.room-sheet-backdrop { position: fixed; inset: 0; z-index: 1055; background: rgba(0, 0, 0, .45); }
@keyframes room-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .room-grid .room-actions.show { animation: none; } }

/* Skip link (keyboard users) and focus target headings. */
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2000; padding: .5rem 1rem; border-radius: var(--tblr-border-radius); background: var(--tblr-bg-surface); box-shadow: var(--tblr-box-shadow); }
.page-title:focus, #main:focus { outline: none; }

/* Muted chart series ("Phải thu"), readable in light and dark mode (web/js/charts.js). */
:root { --app-chart-muted: #94a3b8; }
[data-bs-theme="dark"] { --app-chart-muted: #64748b; }

/* Report tabs: one scrollable row on narrow screens. */
.report-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
/* Wide screens: wrap instead of hiding the last tabs behind a scroll. */
@media (min-width: 992px) { .report-tabs { flex-wrap: wrap; overflow-x: visible; } }
.report-tabs .nav-link { white-space: nowrap; }

/* User guide (views/help/index.php). */
.help-toc { position: sticky; top: 1rem; }
.help-toc-link { display: flex; align-items: center; padding: .4rem .6rem; border-radius: .4rem; color: var(--tblr-body-color); text-decoration: none; font-size: .875rem; }
.help-toc-link:hover { background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.help-section { scroll-margin-top: 1rem; }
.help-section h4 { margin-top: 1.25rem; }
.help-section h4:first-of-type { margin-top: .25rem; }
.help-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; margin-right: .6rem; border-radius: .5rem; background: var(--tblr-primary-lt); color: var(--tblr-primary); font-size: 1.1rem; }
.help-steps { counter-reset: step; list-style: none; padding: 0; }
.help-steps > li { counter-increment: step; position: relative; padding: 0 0 .9rem 2.6rem; }
.help-steps > li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--tblr-primary); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.help-card { height: 100%; padding: 1rem; border: 1px solid var(--tblr-border-color); border-radius: .6rem; background: var(--tblr-bg-surface-secondary); }
.help-card strong { display: block; margin-bottom: .25rem; }
.help-num { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--app-accent); color: #fff; font-weight: 700; font-size: .8rem; margin-bottom: .5rem; }
.help-faq { border-bottom: 1px solid var(--tblr-border-color); padding: .75rem 0; }
.help-faq:last-child { border-bottom: 0; }
.help-faq summary { cursor: pointer; font-weight: 500; }
.help-faq p { margin: .5rem 0 0; color: var(--tblr-secondary); }
@media (max-width: 991.98px) {
    /* Phones/tablets: the table of contents becomes a horizontal chip row above the guide. */
    .help-toc { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; }
    .help-toc > div { display: none; }
    .help-toc-link { white-space: nowrap; border: 1px solid var(--tblr-border-color); }
}

/* "Hướng dẫn sử dụng" stands out: amber accent in the top bar and a card at the bottom of the sidebar. */
.btn-help {
    --help-fg: #92400e;
    color: var(--help-fg); background: #fef3c7; border: 1px solid #fcd34d; font-weight: 600;
    box-shadow: 0 2px 8px -2px rgba(245, 158, 11, .45);
}
.btn-help:hover, .btn-help:focus-visible, .btn-help.active { color: #fff; background: var(--app-accent); border-color: var(--app-accent); }
.btn-help .ti { font-size: 1.15rem; }
[data-bs-theme="dark"] .btn-help { --help-fg: #fcd34d; background: rgba(245, 158, 11, .15); border-color: rgba(245, 158, 11, .45); }
[data-bs-theme="dark"] .btn-help:hover, [data-bs-theme="dark"] .btn-help.active { color: #1c1917; background: var(--app-accent); }
.sidebar-help { padding: 1rem .75rem; }
.sidebar-help-link {
    display: flex; align-items: center; gap: .7rem; padding: .75rem; border-radius: .6rem; text-decoration: none;
    color: #fff; background: linear-gradient(135deg, rgba(245, 158, 11, .22), rgba(167, 139, 250, .18)); border: 1px solid rgba(245, 158, 11, .4);
}
.sidebar-help-link:hover, .sidebar-help-link.active { color: #fff; border-color: var(--app-accent); background: linear-gradient(135deg, rgba(245, 158, 11, .35), rgba(167, 139, 250, .25)); }
.sidebar-help-link strong { display: block; font-size: .875rem; }
.sidebar-help-link small { display: block; color: rgba(255, 255, 255, .65); font-size: .75rem; }
.sidebar-help-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: .5rem; background: var(--app-accent); color: #1c1917; font-size: 1.2rem; }

/* Donations (/ung-ho) and the low-key sidebar link. */
.donate-uses { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.donate-uses li { display: flex; gap: .6rem; align-items: center; }
.donate-uses .ti { color: var(--tblr-primary); font-size: 1.2rem; }
.donate-card { border-top: 3px solid var(--tblr-pink, #d6336c); }
.donate-info dt { font-weight: 500; color: var(--tblr-secondary); }
.donate-info dd { margin-bottom: .4rem; word-break: break-all; }
.sidebar-donate { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .6rem; padding: .35rem; border-radius: .5rem; font-size: .8rem; color: rgba(255, 255, 255, .6); text-decoration: none; }
.sidebar-donate:hover, .sidebar-donate.active { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar-donate .ti { color: #f472b6; }

/* ---- Mobile batch (M1–M7) ---- */
/* M1: page header on phones: title full width, actions wrap below it. */
@media (max-width: 575.98px) {
    .page-header .page-title { font-size: 1.2rem; line-height: 1.3; }
    .page-header .page-pretitle { white-space: normal; }
    .page-header-actions .btn-list { flex-wrap: wrap; gap: .5rem; }
}
/* M4: comfortable touch targets for row actions in phone cards; no sticky hover on touch screens. */
@media (max-width: 767.98px) {
    .table-mobile-cards td .btn-sm { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (hover: none) {
    .table-hover > tbody > tr:hover > * { --tblr-table-bg-state: transparent; --bs-table-bg-state: transparent; --tblr-table-accent-bg: transparent; --bs-table-accent-bg: transparent; }
}
/* M11: never break an amount in two; scale it to the tile. */
.stat-row .font-weight-medium { white-space: nowrap; font-size: clamp(1rem, 1.35vw, 1.25rem); }
/* M7: the occupancy tile matches its neighbours. */
#occupancy-trend .occupancy-spark { width: 96px; height: 36px; flex: 0 0 auto; }
#occupancy-trend .occupancy-spark .apexcharts-canvas { margin: 0 auto; }
@media (max-width: 575.98px) {
    .stat-row > .stat-wide { flex: 0 0 100%; max-width: 100%; }
}
/* M2: invoice lines on phones: two columns (description, amount); totals stay visible. */
@media (max-width: 575.98px) {
    .invoice-items td, .invoice-items th { padding-left: .25rem; padding-right: .25rem; }
    .invoice-items tfoot td[colspan] { white-space: normal; }
}
@media print {
    .invoice-items .d-sm-none { display: none !important; }
    .invoice-items .d-none.d-sm-table-cell { display: table-cell !important; }
}
/* Dark mode: the theme toggle has no light square behind it. */
[data-bs-theme="dark"] #theme-toggle:not(:hover) { background-color: transparent; border-color: transparent; }
/* M8: empty states inside cards stay small. */
.empty-compact .empty-title { font-size: 1rem; font-weight: 500; }
.empty-compact .empty-icon .ti { font-size: 1.75rem !important; }
.empty-compact .empty-icon { margin-bottom: .5rem; }
/* RC3: a voided receipt is visibly crossed. */
.receipt-voided .card-body { background: repeating-linear-gradient(-45deg, transparent 0 40px, rgba(214, 57, 57, .05) 40px 80px); }
/* RC6: one declaration sheet per printed page. */
@media print { .print-page-break { break-before: page; page-break-before: always; margin-top: 0 !important; } }
/* R6.7 simple mode: larger type and targets for landlords who only do the monthly routine. */
body.simple-mode { font-size: 1.0625rem; }
body.simple-mode .navbar-vertical .nav-link { font-size: 1.05rem; padding-top: .7rem; padding-bottom: .7rem; }
body.simple-mode .btn { min-height: 2.75rem; }
body.simple-mode .form-control, body.simple-mode .form-select { min-height: 2.75rem; font-size: 1rem; }
body.simple-mode .page-header .page-title { font-size: 1.5rem; }
