
    /* DataTable footer: the entry count and the pager share one row. They used to be
       two sibling block-level divs stacked on top of each other, which cost a whole
       line under every table. Flex, not floats — floats would need a clearfix and
       still collapse the row height. */
    .dt-footer {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px; flex-wrap: wrap; margin-top: 6px;
    }
    .dt-footer .dataTables_info {
        padding: 0; margin: 0; float: none; white-space: nowrap;
    }
    .dt-footer .dataTables_paginate {
        margin: 0; padding: 0; float: none;
    }
    .dt-footer .dataTables_paginate .pagination { margin: 0; }
    /* One page of results -> the pager hides itself, so the count centres oddly on
       its own; keep it left-aligned either way. */
    .dt-footer > :only-child { margin-right: auto; }
    /* Phones: the count on one line, the page numbers on the next, both centred
       (owner 2026-11-08) */
    @media (max-width: 767px) {
        .dt-footer { flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 8px !important; }
        .dt-footer .dataTables_info, .dt-footer .dataTables_paginate { width: 100%; text-align: center !important;
            justify-content: center !important; margin: 0 !important; float: none !important; }
        .dt-footer > :only-child { margin: 0 auto !important; }
        .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { float: none !important; text-align: center !important; }
        .dataTables_wrapper .dataTables_paginate { display: flex !important; justify-content: center !important; flex-wrap: wrap; }
        /* one line per value, the table scrolls sideways -- every table alike (owner 2026-11-08:
           /users squeezed Name to 79px and each row grew tall); a cell's own <br> still breaks */
        table.dataTable > tbody > tr > td, table.dataTable > thead > tr > th { white-space: nowrap !important; }
    }
    /* Horizontal scrolling: only the table moves (dom "dt-scroll" in common.js), and the
       .table-responsive frame around it stops scrolling, so the scrollbar sits directly
       under the rows with the count and the page numbers BELOW it (mekhea.com/products,
       2026-10-03: the bar used to run under the pager). */
    .dt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* A table's own card inside a tab panel (the customer / employee page tabs: Tasks, Ledger,
       Documents ...): the panel is already the frame, so the card loses its border, shadow and
       margin -- no card inside a card (owner 2026-11-08, /customer/<id>/tasks) */
    .mk-tabs-panel .tab-pane .body_card, .mk-tabs-panel .tab-pane .box.box-primary {
        border: 0 !important; box-shadow: none !important; margin: 0 !important; background: transparent !important; }
    .mk-tabs-panel .tab-pane .body_card > .tw-p-2 { padding: 0 !important; }
    .mk-tabs-panel .tab-pane .body_card .tw-py-2 { padding-top: 0 !important; padding-bottom: 0 !important; }

    /* The page around its cards: 8px from the screen edge, the same small gap the card
       keeps around its table (owner 2026-11-05: "the card also smaller gap from the
       screen"). AdminLTE's section padding was 15px. */
    section.content, section.content-header { padding-left: 8px !important; padding-right: 8px !important; }
    /* …so a Bootstrap .row straight in the page pulls out 8px, not its own 15px: at 15 it
       stuck 7px past the screen and every such page had a sideways scrollbar (Purchase &
       Sell, Profit / Loss, Stock report; owner 2026-11-06). Its columns keep an 8px gutter,
       so a card in a column lines up with the filter card above it. */
    section.content > .row { margin-left: -8px; margin-right: -8px; }
    section.content > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

    /* The pager (owner 2026-11-05): soft rounded page buttons, the current one filled
       blue with a thin border, and round chevron buttons for previous / next. */
    .dataTables_wrapper .dataTables_paginate { display: inline-flex; align-items: center; gap: 4px; }
    .dataTables_wrapper .dataTables_paginate span { display: inline-flex; align-items: center; gap: 4px; }
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 32px; height: 32px; padding: 0 9px !important; margin: 0 !important;
        display: inline-flex !important; align-items: center; justify-content: center;
        border: 1px solid transparent !important; border-radius: 9px !important;
        background: transparent !important; box-shadow: none !important;
        color: var(--mk-slate-700, #334155) !important; font-size: 13px; font-weight: 600; line-height: 1;
        transition: background .15s, color .15s, border-color .15s; }
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #eff6ff !important; border-color: #bfdbfe !important; color: #1d4ed8 !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        background: linear-gradient(180deg, #3b82f6, #2563eb) !important; color: #fff !important;
        border: 1px solid #1d4ed8 !important; box-shadow: 0 2px 6px rgba(37,99,235,.35) !important; }
    /* previous / next: a round chevron, the word hidden */
    .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next) {
        width: 32px; min-width: 32px; padding: 0 !important; font-size: 0 !important;
        border-radius: 50% !important; background: #fff !important; border: 1px solid var(--mk-slate-200, #e2e8f0) !important;
        box-shadow: 0 1px 2px rgba(15,23,42,.08) !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next)::before {
        font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 12px; color: #2563eb; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.previous::before { content: '\f053'; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.next::before { content: '\f054'; }
    .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next):hover {
        background: #2563eb !important; border-color: #2563eb !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next):hover::before { color: #fff; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
        opacity: .4; cursor: default; background: #fff !important; border-color: var(--mk-slate-200, #e2e8f0) !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled::before { color: var(--mk-slate-400, #94a3b8) !important; }
    .dataTables_wrapper .dataTables_paginate .ellipsis { padding: 0 4px; color: var(--mk-slate-400, #94a3b8); }
    .table-responsive:has(> .dataTables_wrapper > .dt-scroll) { overflow-x: visible; }
