/* App-wide formatting for list UIs (v3).
   Two list styles are used across Ranalo:
     1. plain <table class="table ...">   -> wrapped in .table-responsive
     2. DashLite div-based .nk-tb-list     -> handled here

   .nk-tb-list is display:table, so columns share a fixed width and long
   cell text spills into the neighbouring column -> headings/values look
   like they overlap. The fix (applied at ALL widths now, so desktop reads
   the same as mobile): let the list size to its content and scroll inside
   its card, keep each cell on one line, and give the columns breathing room
   so neighbours never touch. Lists that fit still fill the card and don't
   scroll; crowded lists scroll instead of colliding.

   The :has() selector targets the .card-inner that directly wraps a list
   (supported by all current browsers). */
.card-inner:has(> .nk-tb-list) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nk-tb-list {
    width: auto;
    min-width: 100%;
}

.nk-tb-list .nk-tb-col {
    white-space: nowrap;
}

/* Keep each column's label/value clear of its neighbour. */
.nk-tb-list .nk-tb-col:not(:last-child) {
    padding-right: 16px;
}

/* Page-header row ("Title" + description on the left, page tools on the
   right). It's a flex space-between row; on a phone the description ends up
   in a lone flex item sized to its max-content, so a long line overflows
   the viewport and clips instead of wrapping. On small screens let the two
   halves stack so the description wraps to the available width. */
@media (max-width: 767.98px) {
    .nk-block-head .nk-block-between {
        display: block;
    }

    .nk-block-head .nk-block-between > .nk-block-head-content + .nk-block-head-content {
        margin-top: 10px;
    }

    .nk-block-des p {
        white-space: normal;
    }
}

/* Ranalo logo (2026-11-10): the blue mark in a white box and "Ranalo Credit",
   the same as the customer app's top bar, on every staff page. */
.rc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.rc-box { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center;
    box-shadow: 0 0 0 1px rgba(33, 59, 74, .15); flex: none; }
.rc-box img { height: 24px; width: auto; }
.rc-name { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: #213b4a; white-space: nowrap; }
.is-dark .rc-name, .dark-mode .rc-name, .is-theme .rc-name { color: #fff; }
.rc-lg .rc-box { width: 48px; height: 48px; border-radius: 11px; }
.rc-lg .rc-box img { height: 34px; }
.rc-lg .rc-name { font-size: 24px; }
