/*
 * Smart Jobs theme - a thin skin over stock Bootstrap 5.3.
 *
 * Every page is built from standard Bootstrap markup (navbar, card,
 * card-header, table, modal, badge, utilities). This file only re-tunes
 * Bootstrap's own CSS variables for a high-tech look and adds a handful of
 * hooks (.app-*) for the shell. Light and dark modes use Bootstrap's native
 * color modes: <html data-bs-theme="light|dark">.
 */

/* ---------- Tokens ---------------------------------------------------- */
:root,
[data-bs-theme="light"] {
    --sj-accent: #00d4aa;
    --sj-accent-rgb: 0, 212, 170;
    --sj-shell: #0b1220;
    --sj-shell-2: #111a2e;
    --sj-shell-border: rgba(148, 163, 184, .12);
    --sj-glow: 0 0 0 1px rgba(var(--bs-primary-rgb), .12), 0 8px 24px -12px rgba(var(--bs-primary-rgb), .35);

    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-primary-text-emphasis: #1e40af;
    --bs-primary-bg-subtle: #dbeafe;
    --bs-primary-border-subtle: #bfdbfe;
    --bs-link-color: #2563eb;
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: #1d4ed8;
    --bs-link-hover-color-rgb: 29, 78, 216;

    /* Noto Sans + Noto Sans Lao from Google Fonts (views/templates/fonts.php);
       system fonts after them are the offline fallback. */
    --bs-body-font-family: "Noto Sans", "Noto Sans Lao", "Segoe UI", "Leelawadee UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --bs-body-font-size: .9375rem;
    --bs-body-bg: #f3f6fb;
    --bs-body-color: #0f172a;
    --bs-secondary-color: rgba(15, 23, 42, .6);
    --bs-tertiary-bg: #eef2f8;
    --bs-border-color: #e2e8f0;
    --bs-border-radius: .5rem;
    --bs-border-radius-lg: .75rem;
    --bs-focus-ring-color: rgba(var(--bs-primary-rgb), .25);

    --sj-card-bg: #ffffff;
    --sj-grid-line: rgba(37, 99, 235, .05);
}

[data-bs-theme="dark"] {
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
    --bs-primary-text-emphasis: #93c5fd;
    --bs-primary-bg-subtle: rgba(59, 130, 246, .15);
    --bs-primary-border-subtle: rgba(59, 130, 246, .35);
    --bs-link-color: #60a5fa;
    --bs-link-color-rgb: 96, 165, 250;
    --bs-link-hover-color: #93c5fd;
    --bs-link-hover-color-rgb: 147, 197, 253;

    --bs-body-bg: #070c17;
    --bs-body-color: #dbe4f0;
    --bs-secondary-color: rgba(219, 228, 240, .6);
    --bs-secondary-bg: #121b2e;
    --bs-tertiary-bg: #0e1626;
    --bs-border-color: #1e293b;
    --bs-emphasis-color: #f8fafc;

    --sj-card-bg: #0d1524;
    --sj-grid-line: rgba(148, 163, 184, .045);
}

/* ---------- Lao (ລາວ) -------------------------------------------------- */
/* <html lang="lo"> when the interface is in Lao: Noto Sans Lao (Google
   Fonts) leads, Noto Sans covers Latin text and numbers. Offline fallbacks:
   Windows Leelawadee UI, Apple Lao Sangam MN, and the common Lao office
   fonts Phetsarath OT / Saysettha OT. */
html:lang(lo) {
    --bs-body-font-family: "Noto Sans Lao", "Noto Sans", "Leelawadee UI", "Lao Sangam MN", "Phetsarath OT", "Saysettha OT", "Lao UI", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-line-height: 1.65;
}
/* Lao has no letter case, and extra letter-spacing pulls vowel/tone marks
   away from their consonants - keep spacing natural. */
html:lang(lo) .table > thead th,
html:lang(lo) .app-sidebar .sidebar-heading,
html:lang(lo) .text-uppercase,
html:lang(lo) h1, html:lang(lo) h2, html:lang(lo) h3, html:lang(lo) h4, html:lang(lo) h5, html:lang(lo) h6 {
    letter-spacing: 0;
}
html:lang(lo) .table > thead th { font-size: .78rem; }

/* ---------- Base ------------------------------------------------------- */
body {
    background-color: var(--bs-body-bg);
    background-image:
        linear-gradient(var(--sj-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--sj-grid-line) 1px, transparent 1px);
    background-size: 32px 32px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 650;
    letter-spacing: -.01em;
}

.font-monospace,
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons: re-point primary at the theme blue ----------------- */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #1d4ed8;
    --bs-btn-hover-border-color: #1d4ed8;
    --bs-btn-active-bg: #1e40af;
    --bs-btn-active-border-color: #1e40af;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    box-shadow: 0 6px 16px -8px rgba(var(--bs-primary-rgb), .8);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.btn { font-weight: 500; }

/* Fields sit on cards, so match the card surface rather than the page */
.form-control,
.form-select { background-color: var(--sj-card-bg); }

.form-label { font-size: .85rem; margin-bottom: .35rem; }
.form-label.fw-bold { font-weight: 600 !important; }

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(var(--bs-primary-rgb), .6);
    box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
}

/* ---------- Cards ------------------------------------------------------ */
.card {
    --bs-card-bg: var(--sj-card-bg);
    --bs-card-border-color: var(--bs-border-color);
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-y: .875rem;
    --bs-card-cap-padding-x: 1.25rem;
}

.card.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .18) !important; }
[data-bs-theme="dark"] .card.shadow-sm { box-shadow: 0 0 0 1px rgba(148, 163, 184, .04), 0 12px 32px -18px rgba(0, 0, 0, .8) !important; }

.card-header h5,
.card-header h6 { font-size: .95rem; font-weight: 600; }

/* Stat tile: a normal .card with an accent rail and an icon chip */
.stat-tile { position: relative; overflow: hidden; }
.stat-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-primary), var(--sj-accent));
}
.stat-tile .stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .625rem;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    font-size: 1.1rem;
}
.stat-tile .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Page title row */
.page-title h1 { font-size: 1.5rem; }
.page-title h1 > i {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-size: 1rem;
    vertical-align: middle;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
}

/* ---------- Tables ----------------------------------------------------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(var(--bs-primary-rgb), .05);
    margin-bottom: 0;
}
.table > thead th {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    border-bottom-width: 1px;
    white-space: nowrap;
}
.table > :not(caption) > * > * { padding: .7rem 1rem; vertical-align: middle; }
.table-sm > :not(caption) > * > * { padding: .45rem .75rem; }
.table .font-monospace { white-space: nowrap; }

.badge { font-weight: 600; letter-spacing: .02em; }

/* DataTables (bs4 build) chrome inside a card body */
.dataTables_wrapper { padding: 1rem 1rem .75rem; }
.dataTables_wrapper > .row:nth-child(2) { margin: 0 -1rem; }
.dataTables_wrapper > .row:nth-child(2) > div { padding: 0; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    display: inline-block;
    width: auto;
    padding: .3rem .6rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--sj-card-bg);
    color: var(--bs-body-color);
}
.dataTables_wrapper .dataTables_info { color: var(--bs-secondary-color); font-size: .85rem; padding-top: 1rem; }
.dataTables_wrapper .pagination { margin: .75rem 0 0; }
.page-link { color: var(--bs-primary); background-color: var(--sj-card-bg); border-color: var(--bs-border-color); }
.page-item.active .page-link { background-color: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.page-item.disabled .page-link { background-color: var(--sj-card-bg); }
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------- Modals ----------------------------------------------------- */
.modal { --bs-modal-bg: var(--sj-card-bg); }
.modal-content { border: 1px solid var(--bs-border-color); box-shadow: 0 24px 64px -24px rgba(2, 6, 23, .5); }
.modal-header { border-bottom-color: var(--bs-border-color); }
.modal-header .modal-title i { color: var(--bs-primary); }
/* Frosted backdrop - blurs the page behind via the backdrop itself, never
   via a filter on an ancestor of the modal (that would blur the modal too). */
.modal-backdrop { --bs-backdrop-bg: #020617; --bs-backdrop-opacity: .45; backdrop-filter: blur(4px); }

/* ---------- App shell: top bar ---------------------------------------- */
.app-topbar {
    height: 56px;
    background: rgba(11, 18, 32, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--sj-shell-border);
}
.app-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--sj-accent-rgb), .6), rgba(var(--bs-primary-rgb), .6), transparent);
}
.app-brand {
    font-weight: 700;
    letter-spacing: .01em;
    font-size: 1.05rem;
}
.app-brand .brand-mark {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: linear-gradient(135deg, var(--bs-primary), var(--sj-accent));
    color: #fff;
    font-size: .85rem;
    box-shadow: 0 0 18px -4px rgba(var(--sj-accent-rgb), .7);
}
.brand-accent { color: var(--sj-accent); }

.app-topbar .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sj-accent), var(--bs-primary));
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

/* ---------- App shell: sidebar (Bootstrap dashboard pattern) ---------- */
.app-sidebar {
    background: linear-gradient(180deg, var(--sj-shell) 0%, var(--sj-shell-2) 100%);
    border-right: 1px solid var(--sj-shell-border);
}

@media (min-width: 768px) {
    .app-sidebar {
        position: sticky;
        top: 56px;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }
}

.app-sidebar .sidebar-heading {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(148, 163, 184, .7);
}

.app-sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    color: rgba(226, 232, 240, .78);
    font-size: .9rem;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}
.app-sidebar .nav-link .nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 163, 184, .45);
    flex-shrink: 0;
}
.app-sidebar .nav-link:hover { color: #fff; background: rgba(148, 163, 184, .08); }
.app-sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), .28), rgba(var(--bs-primary-rgb), .06));
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), .3);
}
.app-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sj-accent);
    box-shadow: 0 0 10px rgba(var(--sj-accent-rgb), .9);
}
.app-sidebar .nav-link.active .nav-dot { background: var(--sj-accent); box-shadow: 0 0 8px rgba(var(--sj-accent-rgb), .9); }

.app-sidebar .sidebar-footer { border-top: 1px solid var(--sj-shell-border); color: rgba(148, 163, 184, .7); }

/* ---------- Main content ---------------------------------------------- */
.app-main { min-height: calc(100vh - 56px); }

.app-footer {
    color: var(--bs-secondary-color);
    font-size: .8rem;
    border-top: 1px solid var(--bs-border-color);
}
.app-footer .status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sj-accent);
    box-shadow: 0 0 8px rgba(var(--sj-accent-rgb), .9);
    margin-right: .4rem;
}

.breadcrumb { font-size: .82rem; margin-bottom: 0; }

/* ---------- Third-party widgets --------------------------------------- */
/* searchable-select.js injects a fixed white menu - follow the color mode */
.ss-menu { background: var(--sj-card-bg) !important; border-color: var(--bs-border-color) !important; color: var(--bs-body-color); }
.ss-item:hover, .ss-item.active { background: rgba(var(--bs-primary-rgb), .1) !important; }

/* ---------- Phones (< 768px) ------------------------------------------ */
/*
 * .table-cards: a list table that becomes one card per row on phones -
 * the first cell (or .cell-title) is the card heading, every other cell is a
 * "Column  value" line (labels come from the footer script's data-label),
 * and the action buttons sit along the bottom.
 * .table-cards-form: an item editor (invoice/quotation/PO lines, ticket
 * parts) - each line becomes a card with its fields stacked, qty and price
 * side by side, the line amount underneath and the remove button top-right.
 */
@media screen and (max-width: 767.98px) {
    .app-main { padding-top: 1rem !important; }

    /* Top bar: brand + language + help + theme + avatar + menu on one line */
    .app-topbar { flex-wrap: nowrap; }
    .app-topbar .app-brand { padding-left: .75rem !important; padding-right: .5rem !important; flex-shrink: 0; }
    .app-topbar > .d-flex { gap: 0 !important; padding-right: .25rem !important; min-width: 0; }
    .app-topbar .nav-link.px-2 { padding-left: .45rem !important; padding-right: .45rem !important; }
    .app-topbar .navbar-toggler { padding: .25rem .4rem; margin-left: .15rem !important; }
    .app-topbar .navbar-toggler-icon { width: 1.3em; height: 1.3em; }

    /* Long chips (e.g. bank accounts on invoices) wrap instead of overflowing */
    .alert .badge { white-space: normal; text-align: start; line-height: 1.4; }

    .page-title { margin-bottom: 1rem !important; padding-bottom: .75rem !important; gap: .75rem !important; }
    .page-title h1 { font-size: 1.2rem; }
    .page-title h1 > i { width: 2rem; height: 2rem; font-size: .9rem; }
    .page-title p { font-size: .85rem; }
    .page-title > div:last-child:not(:first-child) { width: 100%; display: flex; flex-wrap: wrap; gap: .5rem; }
    .page-title > div:last-child:not(:first-child) > .btn { flex: 1 1 auto; margin: 0 !important; }

    .card-body.p-4 { padding: 1rem !important; }
    .table-sm > :not(caption) > * > * { padding: .4rem .5rem; }
    .card-header { --bs-card-cap-padding-x: 1rem; }

    /* Filter pills scroll sideways instead of wrapping into a tall block */
    .nav-scroll { position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
    .nav-scroll::-webkit-scrollbar { display: none; }
    .nav-scroll .nav-link { white-space: nowrap; }

    /* Save/Cancel stay in reach at the bottom of long forms */
    .form-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 1.5rem -1rem -1rem !important;
        padding: .75rem 1rem !important;
        background: var(--sj-card-bg);
        border-top: 1px solid var(--bs-border-color);
        border-radius: 0 0 var(--bs-border-radius-lg) var(--bs-border-radius-lg);
        box-shadow: 0 -10px 20px -14px rgba(15, 23, 42, .45);
    }
    .form-actions > .btn { flex: 1 1 0; }

    /* DataTables controls: full-width search, compact info and paging */
    .dataTables_wrapper { padding: .75rem .75rem .5rem; }
    .dataTables_wrapper > .row:nth-child(2) { margin: 0 -.75rem; }
    .dataTables_wrapper .dataTables_length { display: none; }
    .dataTables_wrapper .dataTables_filter { text-align: start !important; }
    .dataTables_wrapper .dataTables_filter label { display: block; width: 100%; margin: 0; }
    .dataTables_wrapper .dataTables_filter input { width: 100% !important; margin: 0 !important; padding: .5rem .75rem !important; }
    .dataTables_wrapper .dataTables_info { padding-top: .25rem; font-size: .8rem; text-align: center !important; }
    .dataTables_wrapper .dataTables_paginate .pagination { justify-content: center !important; }
    .dataTables_wrapper .dt-buttons { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
    .dataTables_wrapper .dt-buttons .btn { flex: 1 1 auto; border-radius: var(--bs-border-radius) !important; }

    /* --- .table-cards: list rows as cards --- */
    .table-cards > thead { display: none; }
    .table-cards,
    .table-cards > tbody,
    .table-cards > tfoot,
    .table-cards > tfoot > tr,
    .table-cards > tfoot > tr > td { display: block; width: 100%; }
    .table-cards { border: 0; }
    .table-cards > tbody > tr {
        position: relative;
        display: flex;
        flex-direction: column;
        margin: 0 .75rem .75rem;
        padding: .6rem .85rem;
        border: 1px solid var(--bs-border-color) !important;
        border-radius: var(--bs-border-radius-lg);
        background: var(--sj-card-bg);
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    }
    .table-cards > tbody > tr:first-child { margin-top: .75rem; }
    .table-cards > tbody > tr > td {
        position: relative;
        display: block;
        padding: .3rem 0 .3rem 42% !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        text-align: end !important;
        overflow-wrap: anywhere;
        min-height: 1.9rem;
    }
    .table-cards > tbody > tr > td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: .35rem;
        width: 40%;
        text-align: start;
        font-size: .75rem;
        font-weight: 600;
        color: var(--bs-secondary-color);
        overflow-wrap: normal;
    }
    .table-cards > tbody > tr > td.cell-title {
        order: -1;
        padding: .1rem 2rem .5rem 0 !important;
        margin-bottom: .3rem;
        border-bottom: 1px solid var(--bs-border-color) !important;
        text-align: start !important;
        font-size: 1rem;
        font-weight: 650;
    }
    .table-cards > tbody > tr > td.cell-actions {
        order: 99;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .4rem;
        padding: .6rem 0 .1rem !important;
        margin-top: .3rem;
        border-top: 1px solid var(--bs-border-color) !important;
    }
    .table-cards > tbody > tr > td.cell-actions .btn { margin: 0 !important; padding: .4rem .8rem; }
    .table-cards > tbody > tr > td.cell-actions form { display: contents !important; }
    .table-cards > tbody > tr > td.cell-full { padding: 1.5rem .5rem !important; text-align: center !important; }
    .table-cards > tbody > tr:has(> td.cell-full) { border-style: dashed !important; }
    .table-cards > tbody > tr > td.cell-title::before,
    .table-cards > tbody > tr > td.cell-actions::before,
    .table-cards > tbody > tr > td.cell-full::before,
    .table-cards > tbody > tr > td[data-label=""]::before { display: none; }
    .table-cards > tbody > tr > td[data-label=""]:not(.cell-title):not(.cell-actions):not(.cell-full) { padding-left: 0 !important; }

    /* --- .table-cards-form: editable line items --- */
    .table-cards-form > tbody > tr {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .6rem .75rem;
        margin: 0 0 .75rem;
        padding: .75rem;
        background: var(--bs-tertiary-bg);
    }
    .table-cards-form > tbody > tr:first-child { margin-top: 0; }
    .table-cards-form > tbody > tr > td {
        flex: 1 1 100%;
        padding: 0 !important;
        min-height: 0;
        text-align: start !important;
    }
    .table-cards-form > tbody > tr > td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: .2rem;
    }
    .table-cards-form > tbody > tr > td.seq-cell { flex: 1 1 auto; padding-right: 3rem !important; font-weight: 700; color: var(--bs-primary); }
    .table-cards-form > tbody > tr > td.seq-cell::before { display: inline; content: "#"; font-size: inherit; color: inherit; }
    .table-cards-form > tbody > tr > td.cell-half { flex: 1 1 calc(50% - .4rem); min-width: 0; }
    .table-cards-form > tbody > tr > td.amount-cell,
    .table-cards-form > tbody > tr > td.part-amount {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding-top: .5rem !important;
        border-top: 1px dashed var(--bs-border-color) !important;
        font-weight: 650;
    }
    .table-cards-form > tbody > tr > td.amount-cell::before,
    .table-cards-form > tbody > tr > td.part-amount::before { margin: 0; }
    .table-cards-form > tbody > tr > td.cell-actions {
        position: absolute;
        top: .5rem;
        right: .5rem;
        width: auto;
        flex: none;
        padding: 0 !important;
        margin: 0;
        border: 0 !important;
    }
    /* Seq-less editors (ticket parts): keep the first field clear of the remove button */
    .table-cards-form > tbody > tr > td:first-child:not(.seq-cell) { padding-right: 2.75rem !important; }
    .table-cards-form .form-control-sm,
    .table-cards-form .form-select-sm { min-height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; font-size: 1rem; }
    .table-cards > tbody > tr > td:empty { display: none; }
    .table-cards > tfoot > tr > td { padding: .25rem 0 !important; border: 0 !important; }
}

/* ---------- Print ------------------------------------------------------ */
@media print {
    .no_print, .no-print { display: none !important; }
    body { background: #fff !important; }
}
