/* ==========================================================================
   Billing & Accounting — application styles
   Layered on top of Bootstrap 5. Kept small and free of animation so list and
   billing screens paint instantly.
   ========================================================================== */

:root {
    --bs-body-font-size: 0.9375rem;
    --app-sidebar-width: 250px;
    --app-header-height: 56px;
    --app-brand: #0f4c81;
    --app-brand-dark: #0b3a63;
    --app-accent: #f0f4f8;
    --app-border: #e2e8f0;
}

body {
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
}

/* Urdu ---------------------------------------------------------------------- */
html[lang="ur"] body,
.urdu {
    font-family: 'Jameel Noori Nastaleeq', 'Alvi Nastaleeq', 'Noto Nastaliq Urdu',
        'Urdu Typesetting', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.05rem;
    line-height: 2;
}

/* Keep numbers, codes and money in a Latin font even inside Urdu text, so
   amounts stay readable and columns line up. */
html[lang="ur"] .num,
html[lang="ur"] td.num,
html[lang="ur"] .font-mono,
.num {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: embed;
}

.font-mono {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.875em;
}

/* Layout ------------------------------------------------------------------- */
.app-header {
    height: var(--app-header-height);
    background: var(--app-brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-header a,
.app-header .btn-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.app-header a:hover {
    color: #fff;
}

.app-brand {
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--app-header-height));
}

.app-sidebar {
    width: var(--app-sidebar-width);
    flex: 0 0 var(--app-sidebar-width);
    background: #fff;
    border-inline-end: 1px solid var(--app-border);
    overflow-y: auto;
    max-height: calc(100vh - var(--app-header-height));
    position: sticky;
    top: var(--app-header-height);
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.25rem;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: var(--app-header-height);
        bottom: 0;
        inset-inline-start: 0;
        z-index: 1035;
        transform: translateX(-100%);
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
        transition: transform 0.18s ease-out;
    }

    [dir="rtl"] .app-sidebar {
        transform: translateX(100%);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        padding: 1rem 0.75rem;
    }
}

/* Collapsible search row for phones, revealed by the header's search icon. */
.app-search {
    display: none;
    background: var(--app-brand-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: var(--app-header-height);
    z-index: 1029;
}

.app-search.is-open {
    display: block;
}

/* Backdrop behind the off-canvas sidebar, so the menu reads as a layer over the
   page rather than a panel wedged beside it. */
.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1034;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease-out, visibility 0.18s;
}

.app-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* While the menu is open the page underneath must not scroll away behind it. */
body.nav-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .app-backdrop {
        display: none;
    }
}

/* Sidebar navigation ------------------------------------------------------- */
.nav-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 0.9rem 1rem 0.35rem;
}

html[lang="ur"] .nav-group-label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8rem;
}

.app-sidebar .nav-link {
    color: #334155;
    padding: 0.5rem 1rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-inline-start: 3px solid transparent;
}

.app-sidebar .nav-link:hover {
    background: var(--app-accent);
    color: var(--app-brand);
}

.app-sidebar .nav-link.active {
    background: var(--app-accent);
    color: var(--app-brand);
    font-weight: 600;
    border-inline-start-color: var(--app-brand);
}

.app-sidebar .nav-link i {
    width: 1.1rem;
    text-align: center;
    font-size: 1rem;
    flex: 0 0 auto;
}

/* Cards & tables ----------------------------------------------------------- */
.card {
    border: 1px solid var(--app-border);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--app-border);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.table > :not(caption) > * > * {
    padding: 0.5rem 0.6rem;
}

.table thead th {
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    white-space: nowrap;
    border-bottom: 1px solid var(--app-border);
}

html[lang="ur"] .table thead th {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
}

.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-hover > tbody > tr:hover > * {
    background-color: #f8fbff;
}

.table td.num,
.table th.num {
    text-align: end;
    white-space: nowrap;
}

/* A totals row that must stand out from the data above it. */
.row-total > * {
    background: #f1f5f9 !important;
    font-weight: 600;
    border-top: 2px solid #cbd5e1;
}

.row-grand > * {
    background: var(--app-brand) !important;
    color: #fff !important;
    font-weight: 700;
}

/* Stat tiles --------------------------------------------------------------- */
.stat-tile {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stat-tile .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.stat-tile .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

html[lang="ur"] .stat-tile .stat-label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
}

.stat-tile .stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #0f172a;
}

.stat-tile .stat-note {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0.1rem 0 0;
}

/* Forms -------------------------------------------------------------------- */
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-brand);
    box-shadow: 0 0 0 0.15rem rgba(15, 76, 129, 0.15);
}

.required-mark::after {
    content: ' *';
    color: #dc3545;
}

/* Document grids (invoice lines, journal lines) ----------------------------- */
.grid-table {
    margin-bottom: 0;
}

.grid-table th {
    font-size: 0.75rem;
}

.grid-table td {
    padding: 0.25rem !important;
    vertical-align: middle;
}

.grid-table .form-control,
.grid-table .form-select {
    border: 1px solid transparent;
    background: transparent;
    padding: 0.3rem 0.4rem;
    box-shadow: none;
}

.grid-table .form-control:hover,
.grid-table .form-select:hover {
    border-color: #e2e8f0;
    background: #fff;
}

.grid-table .form-control:focus,
.grid-table .form-select:focus {
    border-color: var(--app-brand);
    background: #fff;
    box-shadow: 0 0 0 0.15rem rgba(15, 76, 129, 0.12);
}

.grid-table input.num {
    text-align: end;
}

/* Search dropdown (customer / item pickers) -------------------------------- */
.picker {
    position: relative;
}

.picker-results {
    position: absolute;
    z-index: 1050;
    inset-inline-start: 0;
    top: 100%;
    width: 100%;
    min-width: 22rem;
    max-height: 17rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.375rem;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
    margin-top: 2px;
}

.picker-results button {
    display: block;
    width: 100%;
    text-align: start;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.picker-results button:last-child {
    border-bottom: 0;
}

.picker-results button:hover,
.picker-results button.is-active {
    background: var(--app-accent);
}

.picker-empty {
    padding: 0.6rem 0.7rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* Keyboard shortcut hints --------------------------------------------------- */
kbd {
    background: #1e293b;
    border-radius: 0.25rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.75rem;
    font-family: ui-monospace, Consolas, monospace;
}

.shortcut-bar {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Badges & misc ------------------------------------------------------------ */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.page-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
}

.empty-state i {
    font-size: 2.25rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.5rem;
}

.balance-dr {
    color: #b42318;
}

.balance-cr {
    color: #067647;
}

/* ==========================================================================
   Small screens
   --------------------------------------------------------------------------
   Two different problems, two different answers:

   Record lists (invoices, customers, receipts …) become one card per record —
   a phone reads a stack far better than it reads a nine-column table pushed
   sideways.

   Ledgers and financial statements stay columnar and scroll horizontally on
   purpose. Date / Voucher / Debit / Credit / Balance only means something as a
   row; stacking a trial balance would destroy the thing being read.
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Comfortable touch targets in dense action columns. */
    .table td .btn-sm,
    .table th .btn-sm {
        min-width: 2.25rem;
        min-height: 2.25rem;
    }

    .app-sidebar .nav-link {
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .nav-group-label {
        padding-top: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --bs-body-font-size: 0.9375rem;
    }

    .page-title {
        font-size: 1.05rem;
    }

    /* Header actions and filter rows are the two places things used to collide. */
    .app-main > .d-flex.flex-wrap > .d-flex.flex-wrap {
        width: 100%;
    }

    .app-main > .d-flex.flex-wrap > .d-flex.flex-wrap > .btn,
    .app-main > .d-flex.flex-wrap > .d-flex.flex-wrap > form > .btn {
        flex: 1 1 auto;
    }

    /* Card footers: stack the primary actions to full width so they are easy to
       hit and never overflow. */
    .card-footer .btn {
        flex: 1 1 auto;
        min-height: 2.6rem;
    }

    .card-footer .ms-auto {
        margin-inline-start: 0 !important;
    }

    /* ---------------------------------------------------------- stacked lists */

    table.table-stack {
        border: 0;
    }

    table.table-stack thead {
        /* Column names move onto each cell via data-label. */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    table.table-stack,
    table.table-stack tbody,
    table.table-stack tbody tr,
    table.table-stack tbody td {
        display: block;
        width: auto;
    }

    table.table-stack tbody tr {
        border: 1px solid var(--app-border);
        border-radius: 0.4rem;
        background: #fff;
        margin-bottom: 0.6rem;
        padding: 0.15rem 0.65rem 0.5rem;
    }

    table.table-stack tbody tr:hover > * {
        background: transparent;
    }

    table.table-stack tbody td {
        border: 0;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.4rem 0 !important;
        text-align: start !important;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 2.1rem;
    }

    table.table-stack tbody td:last-child {
        border-bottom: 0;
    }

    table.table-stack tbody td::before {
        content: attr(data-label);
        flex: 0 0 8.5rem;
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        white-space: normal;
    }

    html[lang="ur"] table.table-stack tbody td::before {
        text-transform: none;
        letter-spacing: normal;
        font-size: 0.85rem;
    }

    /* An empty cell would leave a lone floating label. */
    table.table-stack tbody td:empty {
        display: none;
    }

    /* The first cell reads as the card's title. */
    table.table-stack tbody td:first-child {
        font-size: 1rem;
        font-weight: 600;
        padding-top: 0.6rem !important;
        border-bottom: 1px solid var(--app-border);
    }

    table.table-stack tbody td:first-child::before {
        display: none;
    }

    /* Row actions sit as a button row at the foot of the card. */
    table.table-stack tbody td.cell-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.6rem !important;
    }

    table.table-stack tbody td.cell-actions::before {
        display: none;
    }

    table.table-stack tbody td.cell-actions .btn {
        min-height: 2.4rem;
        min-width: 2.6rem;
    }

    /* Totals rows carry no per-record meaning once stacked. */
    table.table-stack tfoot {
        display: block;
    }

    table.table-stack tfoot tr {
        display: block;
        border: 1px solid var(--app-border);
        border-radius: 0.4rem;
        background: var(--app-accent);
    }

    table.table-stack tfoot td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        border: 0 !important;
        padding: 0.35rem 0.65rem !important;
        text-align: start !important;
    }

    table.table-stack tfoot td::before {
        content: attr(data-label);
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #475569;
    }

    table.table-stack tfoot td:empty {
        display: none;
    }

    /* The stacked empty-state cell should not inherit card chrome. */
    table.table-stack tbody tr:has(td[colspan]) {
        border: 0;
        background: transparent;
        padding: 0;
    }

    table.table-stack tbody td[colspan] {
        display: block;
        text-align: center !important;
        border-bottom: 0;
    }

    table.table-stack tbody td[colspan]::before {
        display: none;
    }

    /* ------------------------------------------------ document line grids */
    /* Invoice lines and journal lines become one card per line: the same DOM,
       so the grid scripts keep working untouched. */

    table.grid-table {
        border: 0;
    }

    table.grid-table thead {
        display: none;
    }

    table.grid-table,
    table.grid-table tbody,
    table.grid-table tbody tr,
    table.grid-table tbody td,
    table.grid-table tfoot,
    table.grid-table tfoot tr,
    table.grid-table tfoot td {
        display: block;
        width: auto;
    }

    table.grid-table tbody tr {
        position: relative;
        border: 1px solid var(--app-border);
        border-radius: 0.45rem;
        background: #fff;
        margin-bottom: 0.7rem;
        padding: 0.5rem 0.65rem 0.65rem;
    }

    table.grid-table tbody td {
        border: 0 !important;
        padding: 0.25rem 0 !important;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    table.grid-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 5.5rem;
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
    }

    html[lang="ur"] table.grid-table tbody td::before {
        text-transform: none;
        letter-spacing: normal;
        font-size: 0.85rem;
    }

    table.grid-table tbody td[data-label]:not(.line-index) .form-control,
    table.grid-table tbody td[data-label] .form-select,
    table.grid-table tbody td[data-label] .input-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Controls need real borders once the hover affordance of a grid is gone. */
    table.grid-table .form-control,
    table.grid-table .form-select {
        border-color: #cbd5e1;
        background: #fff;
        min-height: 2.5rem;
    }

    table.grid-table input.num {
        text-align: start;
    }

    /* The row number becomes the card's corner marker. */
    table.grid-table .line-index {
        display: block;
        padding: 0 0 0.35rem !important;
        font-weight: 700;
        color: var(--app-brand);
        border-bottom: 1px solid var(--app-border) !important;
        margin-bottom: 0.3rem;
    }

    table.grid-table .line-index::before {
        content: none;
    }

    /* Remove-line button pinned to the card's top corner. */
    table.grid-table tbody td:last-child {
        position: absolute;
        top: 0.3rem;
        inset-inline-end: 0.4rem;
        padding: 0 !important;
        width: auto;
    }

    table.grid-table tbody td:last-child::before {
        content: none;
    }

    table.grid-table tbody td:last-child .btn {
        min-width: 2.25rem;
        min-height: 2.25rem;
    }

    /* Running line total, right-aligned as a footer to the card. */
    table.grid-table .line-total {
        justify-content: space-between;
        border-top: 1px solid var(--app-border) !important;
        margin-top: 0.35rem;
        padding-top: 0.5rem !important;
        font-size: 1.05rem;
    }

    table.grid-table tfoot tr {
        border: 1px solid var(--app-border);
        border-radius: 0.4rem;
        background: var(--app-accent);
        padding: 0.2rem 0.65rem;
    }

    table.grid-table tfoot td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        border: 0 !important;
        padding: 0.35rem 0 !important;
        text-align: start !important;
    }

    table.grid-table tfoot td::before {
        content: attr(data-label);
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #475569;
    }

    table.grid-table tfoot td:empty {
        display: none;
    }

    /* --------------------------------------------------------- odds and ends */

    .stat-tile {
        padding: 0.7rem 0.8rem;
        gap: 0.65rem;
    }

    .stat-tile .stat-icon {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1rem;
    }

    .stat-tile .stat-value {
        font-size: 1.05rem;
    }

    .shortcut-bar {
        display: none;         /* no function keys on a phone */
    }

    /* Report export buttons and date presets are button groups; let them wrap
       instead of pushing the page sideways. */
    .btn-group {
        flex-wrap: wrap;
    }

    .btn-group > .btn {
        flex: 1 1 auto;
        border-radius: 0.25rem !important;
        min-height: 2.4rem;
    }

    /* Filter rows: full width fields, so labels and controls stay readable. */
    .card-body form.row > .col-auto {
        flex: 1 1 auto;
    }

    .card-body form.row > .col-auto .btn,
    .card-body form.row > .col-auto .form-control,
    .card-body form.row > .col-auto .form-select {
        width: 100%;
    }

    /* Settings sub-navigation. */
    .nav-pills {
        gap: 0.35rem;
    }

    .picker-results {
        min-width: 0;
        width: 100%;
        max-height: 14rem;
    }

    /* Modals get room to breathe. */
    .modal-dialog {
        margin: 0.5rem;
    }

    /* Keep long unbroken values (emails, IBANs) from forcing a sideways scroll. */
    .app-main {
        overflow-wrap: break-word;
    }
}

/* Very narrow phones ------------------------------------------------------- */
@media (max-width: 400px) {
    table.table-stack tbody td::before,
    table.grid-table tbody td::before {
        flex-basis: 6.5rem;
    }

    .app-main {
        padding: 0.75rem 0.6rem;
    }
}

/* Print -------------------------------------------------------------------- */
@media print {
    .app-header,
    .app-sidebar,
    .no-print,
    .btn,
    nav {
        display: none !important;
    }

    .app-shell,
    .app-main {
        display: block;
        padding: 0;
        margin: 0;
    }

    body {
        background: #fff;
    }

    .card {
        border: 0;
        box-shadow: none;
    }
}

/* Dashboard: trend, ageing, attention ------------------------------------- */

/* A time series reads oldest to newest left to right in both languages: the
   dates along it are Latin numerals, and flipping the axis only makes the
   sequence harder to follow. */
.trend {
    direction: ltr;
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 9rem;
    padding: 0.25rem 0 0;
}

.trend-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.trend-bar {
    width: 100%;
    max-width: 2.25rem;
    min-height: 2px;
    border-radius: 0.25rem 0.25rem 0 0;
    background: var(--app-brand);
    transition: background 0.15s;
}

.trend-col.is-quiet .trend-bar {
    background: #e2e8f0;
}

.trend-col.is-today .trend-bar {
    background: #16a34a;
}

.trend-day {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.3rem;
    white-space: nowrap;
}

.trend-col.is-today .trend-day {
    color: #16a34a;
    font-weight: 600;
}

/* One row per ageing bucket: label, bar, amount. */
.ageing-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
}

.ageing-row + .ageing-row {
    border-top: 1px solid var(--app-border);
}

.ageing-label {
    flex: 0 0 8.5rem;
    font-size: 0.8125rem;
    color: #334155;
}

.ageing-track {
    flex: 1 1 auto;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: #f1f5f9;
    overflow: hidden;
}

.ageing-fill {
    height: 100%;
    border-radius: 0.25rem;
    background: var(--app-brand);
}

.ageing-fill.is-late {
    background: #f59e0b;
}

.ageing-fill.is-very-late {
    background: #dc3545;
}

.ageing-amount {
    flex: 0 0 auto;
    text-align: end;
    min-width: 7rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.ageing-count {
    flex: 0 0 4.5rem;
    text-align: end;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* The "somebody should look at this" strip. */
.attention {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.attention-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8125rem;
    color: #92400e;
    text-decoration: none;
}

.attention-item:hover {
    background: #fffbeb;
    color: #78350f;
}

.attention-item.is-urgent {
    border-color: #fca5a5;
    color: #b91c1c;
}

.attention-item.is-urgent:hover {
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 575.98px) {
    .ageing-label {
        flex-basis: 6rem;
    }

    .ageing-count {
        display: none;
    }
}
