
     @keyframes audit-pending-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); transform: scale(1); }
        70%  { box-shadow: 0 0 0 8px rgba(241, 196, 15, 0); transform: scale(1.06); }
        100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); transform: scale(1); }
    }
    .audit-pending-pulse {
        animation: audit-pending-pulse 1.4s infinite;
        display: inline-block;
        border-radius: 4px;
    }

    /* ── Center popup that drops in from the top, for FORM popups ──
       Applies to any modal carrying class "right-drawer" OR any modal that
       contains a <form> (so Add/Edit/Create popups appear as a centered
       drop-from-top modal). Modals without a form (confirmations, how-to
       guides, image viewers, etc.) stay default-centered. */
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) { padding:0 !important; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-dialog {
        margin:30px auto !important;
        /* !important so per-form inline widths don't make popups different sizes */
        width:94vw !important; max-width:820px !important;
        transform:translateY(-48px) !important; opacity:0;
        transition:transform .28s ease, opacity .28s ease !important;
    }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer).in .modal-dialog,
    .modal:is(.right-drawer, :has(form)):not(.no-drawer).show .modal-dialog { transform:translateY(0) !important; opacity:1 !important; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-content {
        max-height:calc(100vh - 60px); border:0; border-radius:14px;
        display:flex; flex-direction:column;
        box-shadow:0 24px 60px rgba(0,0,0,.28);
    }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-content > form { flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-header { flex:0 0 auto; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-body { flex:1 1 auto; overflow-y:auto; min-height:0 !important; display:flex; flex-direction:column; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-body > form { flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-footer { flex:0 0 auto; }
    .modal:is(.right-drawer, :has(form)):not(.no-drawer) .modal-body .text-right:last-child { margin-top:auto; position:sticky; bottom:0; background:#fff; padding:14px 0 6px; border-top:1px solid #e5e7eb; z-index:2; }

    /* Clickable rows: any table row that has a "View" action (eye icon) becomes
       clickable (the global handler in app.js opens that row's View). */
    table.table > tbody > tr:has(.fa-eye),
    table.table > tbody > tr:has(.fa-eye-open),
    table.table > tbody > tr:has(.glyphicon-eye-open),
    table.dataTable > tbody > tr:has(.fa-eye),
    table.dataTable > tbody > tr:has(.fa-eye-open),
    table.dataTable > tbody > tr:has(.glyphicon-eye-open) { cursor: pointer; }
    table.table > tbody > tr:has(.fa-eye):hover,
    table.table > tbody > tr:has(.glyphicon-eye-open):hover,
    table.dataTable > tbody > tr:has(.fa-eye):hover,
    table.dataTable > tbody > tr:has(.glyphicon-eye-open):hover { background-color:#f1f5f9 !important; }


    /* ---- Tabs (.nav-tabs-custom): the smooth look first made for /franchisor/backup
       (owner 2026-11-04: "check in my core that work like this style") -- no box around
       the open tab, a rounded line under it that grows out from the middle, a soft tint
       on hover, and the pane fades in. A page colours its own tab with
       `.nav-tabs-custom > .nav-tabs > li.active > a[href="#x"]` (color + :after background). */
    .nav-tabs-custom > .nav-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:6px 10px 0;
        border-bottom:1px solid var(--mk-slate-200,#e2e8f0) !important; }
    .nav-tabs-custom > .nav-tabs > li { float:none; border:0 !important; margin:0 0 -1px !important; }
    .nav-tabs-custom > .nav-tabs > li > a { position:relative; border:0 !important;
        border-radius:10px 10px 0 0 !important; background:transparent !important;
        color:var(--mk-slate-500,#64748b) !important; font-weight:600;
        padding:12px 16px !important; margin:0 !important;
        transition:color .25s ease, background-color .25s ease; }
    .nav-tabs-custom > .nav-tabs > li > a:after { content:''; position:absolute; left:14px; right:14px;
        bottom:0; height:3px; border-radius:3px 3px 0 0; background:var(--mk-blue-500,#3b82f6);
        transform:scaleX(0); transition:transform .3s cubic-bezier(.4,0,.2,1); }
    .nav-tabs-custom > .nav-tabs > li > a:hover { background:var(--mk-slate-50,#f8fafc) !important;
        color:var(--mk-blue-950,#10192b) !important; }
    .nav-tabs-custom > .nav-tabs > li.active > a { color:var(--mk-blue-600,#2563eb) !important; }
    .nav-tabs-custom > .nav-tabs > li.active > a:after { transform:scaleX(1); }
    .nav-tabs-custom > .tab-content > .tab-pane.active { animation:mkTabFade .25s ease; }
    @keyframes mkTabFade { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

    /* ---- Filter cards: a switch / checkbox sits in a bordered box the height of the
       dropdowns beside it (owner 2026-11-04, /users then /customer) -- for every
       filter card, so no page draws its own. Green while it is on. */
    .compact-filter-body .form-group > label:has(input[type="checkbox"]),
    .compact-filter-body .form-group > .checkbox > label:has(input[type="checkbox"]) {
        display: flex !important; align-items: center; gap: 10px; width: 100%;
        min-height: 38px; margin: 0; padding: 6px 12px; cursor: pointer; font-weight: 600;
        border: 1px solid var(--mk-slate-300-2, #cbd5e1); border-radius: 8px;
        background: var(--mk-white, #fff); transition: border-color .15s, background .15s;
    }
    .compact-filter-body .form-group > label:has(input[type="checkbox"]):hover,
    .compact-filter-body .form-group > .checkbox > label:has(input[type="checkbox"]):hover {
        border-color: var(--mk-blue-400, #60a5fa); }
    .compact-filter-body .form-group > label:has(input[type="checkbox"]:checked),
    .compact-filter-body .form-group > .checkbox > label:has(input[type="checkbox"]:checked) {
        border-color: var(--mk-green-600, #16a34a); background: var(--mk-green-50, #f0fdf4); }

    /* Pinned table header (common.js slides the thead down while its table scrolls
       past the top bar): above the rows, with a soft shadow under it. */
    table.dataTable > thead.mk-thead-pinned { position: relative; z-index: 6; will-change: transform; }
    table.dataTable > thead.mk-thead-pinned > tr > th { box-shadow: 0 4px 8px -4px rgba(15, 23, 42, .35); }
    /* Rounded card (Settings > Table Style, owner 2026-11-12): every list table in a rounded frame with a soft shadow,
       whatever its style; the header and the last row follow the corners. */
    body.tbl-round table.dataTable, body.tbl-round table.table {
        border-collapse: separate !important; border-spacing: 0 !important; border-radius: 14px !important;
        overflow: hidden; border: 1px solid var(--mk-slate-200, #e2e8f0) !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
    }
    /* Rounded corners need separate borders (owner 2026-11-12: "maybe in the table style it conflict with the rounded
       card"). Every style: the outer edges are the frame's -- no line on the header's top, the first column's left or
       the last column's right. The row lines stay as each style draws them (Bootstrap ones on the cell's top). */
    body.tbl-round table.dataTable[class][class][class][class][class] > thead > tr:first-child > th, body.tbl-round table.table[class][class][class][class][class] > thead > tr:first-child > th { border-top-width: 0 !important; }
    body.tbl-round table.dataTable[class][class][class][class][class] > * > tr > :first-child, body.tbl-round table.table[class][class][class][class][class] > * > tr > :first-child { border-left-width: 0 !important; }
    body.tbl-round table.dataTable[class][class][class][class][class] > * > tr > :last-child, body.tbl-round table.table[class][class][class][class][class] > * > tr > :last-child { border-right-width: 0 !important; }
    /* Bordered draws all four sides of every cell: kept apart (separate borders) two cells show a 2px line, so each
       cell keeps only its right and bottom line */
    body.tbl-round.tablestyle-bordered table.dataTable[class][class][class][class][class] > * > tr > *, body.tbl-round.tablestyle-bordered table.table[class][class][class][class][class] > * > tr > * {
        border-top-width: 0 !important; border-left-width: 0 !important; }
    body.tbl-round.tablestyle-bordered table.dataTable[class][class][class][class][class] > tbody > tr:last-child > td, body.tbl-round.tablestyle-bordered table.table[class][class][class][class][class] > tbody > tr:last-child > td { border-bottom-width: 0 !important; }
    body.tbl-round table.dataTable > thead > tr:first-child > th:first-child,
    body.tbl-round table.table > thead > tr:first-child > th:first-child { border-top-left-radius: 13px; }
    body.tbl-round table.dataTable > thead > tr:first-child > th:last-child,
    body.tbl-round table.table > thead > tr:first-child > th:last-child { border-top-right-radius: 13px; }
    /* Table ⇄ Grid (owner 2026-11-12; common.js __gvSet): each row a card, the header's names as the card's labels */
    /* List | Cards switch (owner 2026-11-12: "redesign as list and card"): one rounded frame, two halves, the
       current view filled in */
    .mk-gv-seg { display: inline-flex; align-items: stretch; height: 38px; margin-left: 6px; padding: 3px; gap: 2px; vertical-align: middle;
        border-radius: 11px; background: var(--mk-slate-100, #f1f5f9); border: 1px solid var(--mk-slate-200, #e2e8f0); }
    .mk-gv-seg > button[data-gv][class], .mk-gv-seg > button[data-gv] {
        display: inline-flex !important; align-items: center; justify-content: center; width: 34px !important; height: auto !important;
        min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important;
        background: transparent !important; color: var(--mk-slate-500, #64748b) !important; box-shadow: none !important; cursor: pointer;
        transition: background .15s, color .15s; }
    .mk-gv-seg > button[data-gv]:hover { color: var(--mk-slate-800, #1e293b) !important; }
    .mk-gv-seg > button[data-gv][aria-pressed="true"] { background: var(--mk-white, #fff) !important; color: var(--mk-blue-500-2, #4f46e5) !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, .15) !important; }
    /* the one Table/Cards button: the same dark square as the gear, a white symbol (owner 2026-11-12) */
    .mk-gv-toggle[class][class][class][class][class][class][class][class][class][class] svg { width: 18px; height: 18px; color: #fff; }
    .mk-gv-toggle[aria-pressed="true"][class][class][class][class][class][class][class][class][class][class] {
        background: linear-gradient(135deg, #6366f1, #4f46e5) !important; box-shadow: 0 2px 6px rgba(79, 70, 229, .35) !important; }
    .mk-gv-toggle {
        display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: 6px;
        border: 0; border-radius: 10px; cursor: pointer; color: #fff !important; font-size: 1rem; vertical-align: middle;
        background: linear-gradient(135deg, #64748b, #475569); box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
    }
    .mk-gv-toggle i { color: #fff !important; }
    /* the pack's own picture fills the button (owner 2026-11-12) -- no grey square behind a picture that is a tile itself */
    .mk-gv-toggle:has(.mk-pack-ico), .mk-tools-toggle:has(.mk-pack-ico) {
        background: transparent !important; box-shadow: none !important; padding: 0 !important; overflow: hidden; }
    .mk-gv-toggle[class][class][class][class][class][class] .mk-pack-ico, .mk-tools-toggle[class][class][class][class][class][class] .mk-pack-ico { width: 38px !important; height: 38px !important;
        min-width: 38px; max-width: none !important; object-fit: contain; display: block; border-radius: 10px; }
    .mk-gv-toggle[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(99, 102, 241, .45) !important; }
    /* strong enough for the toolbar's own button rules (they padded it and showed the hidden ✕ beside the picture) */
    .mk-tools-toggle[class][class][class][class][class][class][class][class][class][class], .mk-gv-toggle[class][class][class][class][class][class][class][class][class][class] { padding: 0 !important; gap: 0 !important; width: 38px !important; min-width: 38px !important; justify-content: center !important; }
    .mk-tools-toggle[class][class][class][class][class][class][class][class][class][class] .mk-tools-x { display: none !important; }
    .mk-tools-toggle.is-open[class][class][class][class][class][class][class][class][class][class] { background: linear-gradient(135deg, #64748b, #475569) !important; }
    .mk-tools-toggle.is-open[class][class][class][class][class][class][class][class][class][class] .mk-pack-ico { display: none !important; }
    .mk-tools-toggle.is-open[class][class][class][class][class][class][class][class][class][class] .mk-tools-x { display: inline-flex !important; color: #fff !important; font-size: 16px !important; }
    .mk-gv-toggle[aria-pressed="true"] { background: linear-gradient(135deg, #6366f1, #4f46e5); }
    table.mk-grid-view[class][class][class][class][class] { display: block !important; border: 0 !important; box-shadow: none !important; background: transparent !important; width: 100% !important; }
    table.mk-grid-view[class][class][class][class][class] > thead { display: none !important; }
    table.mk-grid-view[class][class][class][class][class] > tbody { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 4px 2px 10px; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr {
        display: flex !important; flex-direction: column; position: relative; padding: 14px 14px 10px; border-radius: 16px;
        background: var(--mk-white, #fff) !important; border: 1px solid var(--mk-slate-200, #e2e8f0);
        box-shadow: 0 4px 14px rgba(15, 23, 42, .06); transition: box-shadow .15s, transform .15s;
    }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .12); transform: translateY(-2px); }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td {
        display: flex !important; align-items: baseline; justify-content: space-between; gap: 10px; width: auto !important;
        min-width: 0; padding: 4px 0 !important; border: 0 !important; background: transparent !important; text-align: right;
        white-space: normal !important; transform: none !important; box-shadow: none !important;
    }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td::before {
        content: attr(data-label); flex: 0 0 auto; max-width: 45%; text-align: left; font-size: 12px; font-weight: 600;
        color: var(--mk-slate-500, #64748b); white-space: normal;
    }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td[data-label=""]::before { display: none; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-empty { display: none !important; }
    /* the ⋮ menu top-right, the row's number a badge top-left, a picture large in the middle */
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-act { position: absolute; top: 10px; right: 10px; padding: 0 !important; z-index: 2; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-act::before { display: none; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-num, table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-rn {
        position: absolute; top: 12px; left: 12px; padding: 1px 8px !important; border-radius: 999px; font-size: 11px; font-weight: 800;
        background: var(--mk-slate-100, #f1f5f9) !important; color: var(--mk-slate-600, #475569); }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-num::before, table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-rn::before { display: none; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-img { justify-content: center !important; order: -1; padding: 18px 0 6px !important; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-img::before { display: none; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.mk-gv-img img { width: 72px !important; height: 72px !important; border-radius: 50%; object-fit: cover; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr:not(:has(> td.mk-gv-img)) { padding-top: 40px; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.dataTables_empty { grid-column: 1 / -1; justify-content: center; }
    table.mk-grid-view[class][class][class][class][class] > tbody > tr > td.dataTables_empty::before { display: none; }
    /* the total row: one bar under the cards, only the cells that say something */
    table.mk-grid-view[class][class][class][class][class] > tfoot { display: block !important; transform: none !important; }
    table.mk-grid-view[class][class][class][class][class] > tfoot > tr { display: flex !important; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px; border-radius: 12px; background: var(--mk-slate-50, #f8fafc); }
    table.mk-grid-view[class][class][class][class][class] > tfoot > tr > * { display: block !important; border: 0 !important; padding: 0 !important; background: transparent !important; }
    table.mk-grid-view[class][class][class][class][class] > tfoot > tr > *:empty { display: none !important; }
    /* Pinned total row (Settings > Table Style; common.js __pinFooters): on the screen's bottom edge, a shadow above it */
    table.dataTable > tfoot.mk-tfoot-pinned, .dataTables_scrollFoot.mk-tfoot-pinned { position: relative; z-index: 6; will-change: transform; }
    table.dataTable > tfoot.mk-tfoot-pinned > tr > *, .dataTables_scrollFoot.mk-tfoot-pinned tfoot > tr > * {
        box-shadow: 0 -4px 8px -4px rgba(15, 23, 42, .35); background-color: var(--mk-white, #fff); }

    /* Group the right-side buttons (Settings > Table Style; common.js adds the toggle). Until the code has looked at a
       toolbar it stays hidden, so a refresh never shows every button first and then folds them (owner 2026-11-12) */
    body.tbl-group-tools .box-tools:not([data-mk-checked]) { visibility: hidden; }
    @media all {   /* every width since 2026-11-12: phones keep the buttons in the toolbar line, grouped the same */
        body.tbl-group-tools .box-tools[data-mk-tools="closed"][class][class][class][class][class][class][class][class][class][class] > *:not(.mk-tools-toggle):not(.mkf-btn) { display: none !important; }
        body.tbl-group-tools .box-tools[data-mk-tools] > .mk-tools-toggle { order: -10; }
        /* the buttons as a drop-down list under Action, one per line (owner 2026-11-12) */
        body.tbl-group-tools .box-tools[data-mk-tools] { position: relative; }
        /* ...laid out as a grid of tiles: the icon large on top, the name under it (owner 2026-11-12: "drop down all
           to the grid"); a computer: four a row (fewer buttons, fewer columns); a phone: the screen's width, two a row
           (owner 2026-11-12) */
        .box-tools[data-mk-tools] > .mk-tools-menu {
            display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 1060; width: 300px;
            grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 14px;
            background: var(--mk-white, #fff); border: 1px solid var(--mk-slate-200, #e2e8f0);
            box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
        }
        .box-tools[data-mk-tools] > .mk-tools-menu:has(> :nth-child(3)) { width: 440px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .box-tools[data-mk-tools] > .mk-tools-menu:has(> :nth-child(4)) { width: 560px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
        .box-tools[data-mk-tools="open"] > .mk-tools-menu { display: grid; }
        /* a button that came wrapped (a plain <span>/<div> a permission check or a form put round it -- Export and Print on
           some lists, owner 2026-11-12: "button error"): the wrapper is just the grid cell, the button inside is the tile */
        .box-tools[data-mk-tools] > .mk-tools-menu > :is(span, div, form):has(> :is(a, button):only-child)[class][class][class][class][class][class][class][class][class][class][class],
        .box-tools[data-mk-tools] > .mk-tools-menu > :is(span, div, form):not([class]):has(> :is(a, button):only-child) {
            display: flex !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
            box-shadow: none !important; min-height: 86px !important; width: 100% !important; }
        /* html body + [class]x16: above the small-button size rule (html body.mk-app :is(.btn-xs, .tw-dw-btn-xs ...)), which
           kept Export / Print at 28px in the grid (owner 2026-11-12: "button error") */
        html body .box-tools[data-mk-tools] > .mk-tools-menu > *:not(.modal):not(script):not(style)[class][class][class][class][class][class][class][class][class][class][class][class][class][class][class][class],
        html body .box-tools[data-mk-tools] > .mk-tools-menu > :is(span, div, form) > :is(a, button):only-child[class][class][class][class][class][class][class][class][class][class][class][class][class][class][class][class],
        html body .box-tools[data-mk-tools] > .mk-tools-menu > form > button[class][class][class][class][class][class][class][class][class][class][class][class][class][class][class][class] {
            width: 100% !important; height: auto !important; min-height: 86px !important; max-height: none !important; margin: 0 !important;
            display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
            gap: 6px !important; padding: 10px 6px !important; text-align: center !important; white-space: normal !important;
            border-radius: 12px !important; font-size: 12.5px !important; line-height: 1.25 !important;
        }
        .box-tools[data-mk-tools] > .mk-tools-menu > :is(span, div, form) > :is(a, button):only-child[class] i { font-size: 22px !important; margin: 0 !important; }
        .box-tools[data-mk-tools] > .mk-tools-menu > *[class][class][class][class][class][class][class][class][class][class] i,
        .box-tools[data-mk-tools] > .mk-tools-menu > *[class][class][class][class][class][class][class][class][class][class] svg { font-size: 22px !important; width: auto; height: 22px; margin: 0 !important; }
        .box-tools[data-mk-tools] > .mk-tools-menu > *[class][class][class][class][class][class][class][class][class][class] img { width: 26px !important; height: 26px !important; margin: 0 !important; }
    }
    /* the right-hand buttons in the table's toolbar line: no negative margin pushing them past its edge (a phone cut the
       Action button off, owner 2026-11-12) */
    .dt-search-export > .box-tools[class][class][class][class][class][class] { margin-right: 0 !important; }
    /* A phone (owner 2026-11-12: "that line should be responsive, look better on the mobile screen"): one tidy line --
       slightly smaller squares (34px), even 5px gaps, the left tools from the left edge and filter + ⋯ on the right */
    @media (max-width: 575px) {
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] { gap: 5px !important; flex-wrap: nowrap !important; overflow: visible !important; align-items: center !important;
            --mk-tb-sq: 34px; }   /* the filter button's own size follows this (filter_style.html) */
        /* the search square: its label is the button, the magnifier is drawn in ::before */
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] .dataTables_filter label { height: 34px !important; min-height: 34px !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .dataTables_filter { margin: 0 !important; padding: 0 !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .mk-gv-toggle { margin-left: 0 !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] .dataTables_filter label:has(input[type="search"]:placeholder-shown:not(:focus)) {
            width: 34px !important; min-width: 34px !important; max-width: 34px !important; padding: 0 !important; gap: 0 !important; overflow: hidden; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] .dataTables_filter label::before { width: 34px !important; height: 34px !important; min-width: 34px !important; border-radius: 9px !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] .dataTables_filter label::before,
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .dt-buttons > button,
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] .dataTables_length select,
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .mk-gv-toggle,
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .box-tools > .mk-tools-toggle,
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .box-tools > .mkf-btn {
            width: 34px !important; min-width: 34px !important; height: 34px !important; min-height: 34px !important; border-radius: 9px !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .dt-buttons { gap: 5px !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .box-tools { gap: 5px !important; margin-left: auto !important; margin-right: 0 !important; flex-wrap: nowrap !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .box-tools > .mkf-btn img { width: 21px !important; height: 21px !important; }
        html body .dataTables_wrapper .dt-search-export[class][class][class][class][class][class][class][class][class][class][class] > .box-tools > .mk-tools-toggle .mk-pack-ico { width: 34px !important; height: 34px !important; min-width: 34px !important; max-width: 34px !important; }
    }
    /* a phone: across the whole screen (12px either side, common.js places it), two a row */
    @media (max-width: 767px) {
        .box-tools[data-mk-tools][class] > .mk-tools-menu[class] { width: auto !important; left: 12px !important; right: 12px !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-height: calc(100vh - 140px); overflow-y: auto; }
    }
    .mk-tools-toggle {
        display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer;
        width: 38px; height: 38px; padding: 0; border-radius: 10px; font-size: 1.05rem; font-weight: 600;
        border: 0; background: linear-gradient(135deg, #64748b, #475569) !important;
        color: #fff !important; box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
    }
    .mk-tools-toggle i { color: #fff !important; }
    .mk-tools-toggle:hover { filter: brightness(1.1); }
    .mk-tools-toggle .mk-tools-n { color: var(--mk-slate-500, #64748b); font-weight: 400; }
    [data-mk-tools="open"] .mk-tools-n { display: none; }


    /* ============================================================
       Business Settings tabs — uniform input / select / addon style
       so every field on every settings child has the same height & look.
       Scoped to .business-tab-content (the rendered settings tab wrapper).
       ============================================================ */
    .business-tab-content .form-control:not(textarea),
    .business-tab-content .input-group-addon {
        height: 38px !important;
        min-height: 38px !important;
    }
    .business-tab-content .input-group-addon {
        display: inline-flex !important; align-items: center; justify-content: center;
        min-width: 40px; background: #f3f4f6; border-color: #d1d5db; color: #6b7280;
    }
    /* The inline-flex addon above pulls the addon out of Bootstrap 3's
       table-cell flow, so make the input-group itself flex to keep the
       addon and the field on one line (plain inputs as well as select2). */
    .business-tab-content .input-group { display: flex !important; align-items: stretch; width: 100%; max-width: 100%; }
    .business-tab-content .input-group > .form-control { flex: 1 1 auto; width: 1% !important; }
    .business-tab-content .input-group > .input-group-addon,
    .business-tab-content .input-group > .input-group-btn { flex: 0 0 auto; }
    .business-tab-content .form-group { margin-bottom: 14px; }
    .business-tab-content label { font-weight: 600; }
    /* select2 single → match the 38px field height */
    .business-tab-content .select2-container--default .select2-selection--single {
        height: 38px !important; border-color: #d1d5db;
    }
    .business-tab-content .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px !important;
    }
    .business-tab-content .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important;
    }
    .business-tab-content .select2-container { width: 100% !important; }
