/* Superadmin — All Businesses table (theme tokens) */
html[data-theme="light"],
html:not([data-theme="dark"]) {
    --table-card-bg: #ffffff;
    --table-header-bg: #ffffff;
    --table-filter-bg: #f8fafc;
    --table-border: #e2e8f0;
    --table-border-soft: #f1f5f9;
    --table-text: #0f172a;
    --table-muted: #64748b;
    --table-input-bg: #ffffff;
    --table-input-border: #cbd5e1;
    --table-input-placeholder: #94a3b8;
    --table-hover: #f8fafc;
    --table-sort-icon: #94a3b8;
    --table-sort-active: #2563eb;
    --table-sort-active-bg: #eff6ff;
    --table-row-bg: #ffffff;
    --table-row-alt-bg: #f8fafc;
    --table-hover-bg: #eef2ff;
    --table-action-shadow: -10px 0 16px rgba(15, 23, 42, 0.12);
    --bt-bg: var(--table-card-bg);
    --bt-surface: #f8fafc;
    --bt-border: #e2e8f0;
    --bt-border-soft: #f1f5f9;
    --bt-text: #0f172a;
    --bt-text-muted: #64748b;
    --bt-hover: #f1f5f9;
    --bt-row-alt: #fafbfc;
    --bt-header-bg: var(--table-header-bg);
    --bt-input-bg: #ffffff;
    --bt-input-border: #cbd5e1;
    --bt-btn-bg: #ffffff;
    --bt-btn-border: #cbd5e1;
    --bt-btn-text: #334155;
    --bt-btn-hover-bg: #f8fafc;
    --bt-primary: #2563eb;
    --bt-primary-hover: #1d4ed8;
    --bt-primary-text: #ffffff;
    --bt-badge-success-bg: #dcfce7;
    --bt-badge-success-text: #15803d;
    --bt-badge-success-border: #bbf7d0;
    --bt-badge-inactive-bg: #f1f5f9;
    --bt-badge-inactive-text: #64748b;
    --bt-badge-inactive-border: #e2e8f0;
    --bt-badge-subscription-bg: #eff6ff;
    --bt-badge-subscription-text: #1d4ed8;
    --bt-badge-subscription-border: #bfdbfe;
    --bt-badge-muted-bg: #f1f5f9;
    --bt-badge-muted-text: #94a3b8;
    --bt-badge-waiting-bg: #cffafe;
    --bt-badge-waiting-text: #0e7490;
    --bt-badge-waiting-border: #a5f3fc;
    --bt-badge-declined-bg: #fee2e2;
    --bt-badge-declined-text: #b91c1c;
    --bt-badge-declined-border: #fecaca;
    --bt-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --bt-menu-bg: #ffffff;
    --bt-menu-border: #e2e8f0;
    --bt-menu-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    --bt-menu-hover: #f1f5f9;
    --bt-danger-text: #b91c1c;
    --bt-danger-hover: #fef2f2;
    --bt-action-bg: #eff6ff;
    --bt-action-border: #93c5fd;
    --bt-action-icon: #2563eb;
    --bt-action-hover-bg: #dbeafe;
    --bt-action-shadow: 0 1px 3px rgba(37, 99, 235, 0.14);
    --bt-scrollbar-track: #f1f5f9;
    --bt-scrollbar-thumb: #cbd5e1;
    --bt-scrollbar-thumb-hover: #94a3b8;
    --bt-scrollbar-corner: #f1f5f9;
}

html[data-theme="dark"],
html[data-theme="dark"] body.dark-mode,
body.dark-mode {
    --table-card-bg: #111827;
    --table-header-bg: #273449;
    --table-filter-bg: #172033;
    --table-border: #2d3a4f;
    --table-border-soft: #243044;
    --table-text: #e2e8f0;
    --table-muted: #94a3b8;
    --table-input-bg: #1a2438;
    --table-input-border: #3d4f66;
    --table-input-placeholder: #7c8da6;
    --table-hover: rgba(59, 130, 246, 0.1);
    --table-sort-icon: #7c8da6;
    --table-sort-active: #60a5fa;
    --table-sort-active-bg: #243c5c;
    --table-row-bg: #111827;
    --table-row-alt-bg: #1e293b;
    --table-hover-bg: #24324a;
    --table-action-shadow: -10px 0 16px rgba(0, 0, 0, 0.35);
    --bt-bg: var(--table-card-bg);
    --bt-surface: #182235;
    --bt-border: var(--ot-border, #475569);
    --bt-border-soft: var(--ot-border-light, #334155);
    --bt-text: var(--ot-text, #e2e8f0);
    --bt-text-muted: var(--ot-text-muted, #94a3b8);
    --bt-hover: rgba(59, 130, 246, 0.1);
    --bt-row-alt: rgba(30, 41, 59, 0.22);
    --bt-header-bg: var(--table-header-bg);
    --bt-input-bg: var(--table-input-bg);
    --bt-input-border: var(--table-input-border);
    --bt-btn-bg: var(--ot-surface-muted, #334155);
    --bt-btn-border: var(--ot-border, #475569);
    --bt-btn-text: var(--ot-text, #e2e8f0);
    --bt-btn-hover-bg: #475569;
    --bt-primary: var(--ot-primary, #3b82f6);
    --bt-primary-hover: var(--ot-primary-hover, #60a5fa);
    --bt-primary-text: #f8fafc;
    --bt-badge-success-bg: rgba(34, 197, 94, 0.18);
    --bt-badge-success-text: #4ade80;
    --bt-badge-success-border: rgba(74, 222, 128, 0.35);
    --bt-badge-inactive-bg: rgba(100, 116, 139, 0.2);
    --bt-badge-inactive-text: #cbd5e1;
    --bt-badge-inactive-border: rgba(148, 163, 184, 0.3);
    --bt-badge-subscription-bg: rgba(59, 130, 246, 0.18);
    --bt-badge-subscription-text: #93c5fd;
    --bt-badge-subscription-border: rgba(147, 197, 253, 0.35);
    --bt-badge-muted-bg: rgba(100, 116, 139, 0.2);
    --bt-badge-muted-text: #94a3b8;
    --bt-badge-waiting-bg: rgba(6, 182, 212, 0.18);
    --bt-badge-waiting-text: #67e8f9;
    --bt-badge-waiting-border: rgba(103, 232, 249, 0.35);
    --bt-badge-declined-bg: rgba(239, 68, 68, 0.18);
    --bt-badge-declined-text: #fca5a5;
    --bt-badge-declined-border: rgba(252, 165, 165, 0.35);
    --bt-shadow: var(--ot-shadow, 0 1px 3px rgba(0, 0, 0, 0.35));
    --bt-menu-bg: var(--ot-surface, #1e293b);
    --bt-menu-border: var(--ot-border, #475569);
    --bt-menu-shadow: var(--ot-shadow-md, 0 12px 28px rgba(0, 0, 0, 0.45));
    --bt-menu-hover: var(--ot-surface-muted, #334155);
    --bt-danger-text: #fca5a5;
    --bt-danger-hover: rgba(127, 29, 29, 0.55);
    --bt-action-bg: rgba(59, 130, 246, 0.14);
    --bt-action-border: rgba(96, 165, 250, 0.45);
    --bt-action-icon: #93c5fd;
    --bt-action-hover-bg: rgba(59, 130, 246, 0.26);
    --bt-action-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
    --bt-scrollbar-track: #1a2438;
    --bt-scrollbar-thumb: #475569;
    --bt-scrollbar-thumb-hover: #64748b;
    --bt-scrollbar-corner: #1a2438;
}

/* Card component shell */
#scrollable-container .sa-page {
    min-width: 0;
    max-width: 100%;
}

.sa-page .business-table-card,
.business-table-component {
    background: var(--table-card-bg, var(--bt-bg));
    border: 1px solid var(--table-border, var(--bt-border));
    border-radius: 16px;
    box-shadow: var(--bt-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: calc(100vh - 156px);
}

.sa-page .business-table-card > .business-table-header {
    border-radius: 15px 15px 0 0;
}

#sellListTable.business-table-component.business-table-card,
#invoiceListTable.business-table-component.business-table-card,
#quotationListTable.business-table-component.business-table-card {
    max-height: calc(100vh - 160px);
    height: calc(100vh - 160px);
    min-height: 420px;
}

.business-table-component .business-table-footer {
    flex: 0 0 auto;
    margin-top: auto;
    border-radius: 0 0 15px 15px;
}

.business-table-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    background: var(--bt-bg);
    border-top: 1px solid var(--bt-border-soft);
    overflow: hidden;
}

.business-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--bt-border-soft);
}

.business-table-header__copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
    min-width: 0;
    flex: 1;
}

.business-table-header__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bt-text);
    line-height: 1.2;
}

.business-table-header__subtitle {
    margin: 0;
    font-size: 0.74rem;
    color: var(--bt-text-muted);
    line-height: 1.2;
}

.business-table-header__subtitle::before {
    content: '·';
    margin-right: 8px;
    color: var(--bt-text-muted);
    opacity: 0.65;
}

.business-table-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 7px;
    background: var(--bt-primary);
    color: var(--bt-primary-text) !important;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
}

.business-table-add-btn:hover,
.business-table-add-btn:focus {
    background: var(--bt-primary-hover);
    color: var(--bt-primary-text) !important;
}

/* Toolbar */
.business-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bt-border-soft);
    background: var(--bt-surface);
}

.business-table-toolbar__start,
.business-table-toolbar__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.business-table-toolbar__end {
    margin-left: auto;
}

.business-table-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--bt-btn-border);
    border-radius: 6px;
    background: var(--bt-btn-bg);
    color: var(--bt-btn-text);
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.business-table-filters-btn:hover,
.business-table-filters-btn:focus,
.business-table-filters-btn[aria-expanded="true"] {
    background: var(--bt-btn-hover-bg);
    border-color: var(--bt-input-border);
    color: var(--bt-text);
}

.business-table-filters-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.business-table-clear-filters-btn.is-active {
    border-color: color-mix(in srgb, var(--bt-primary) 45%, var(--bt-btn-border));
    background: color-mix(in srgb, var(--bt-primary) 10%, var(--bt-btn-bg));
    color: var(--bt-primary);
}

.business-table-toolbar__exports .dt-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
}

.business-table-toolbar__exports .dt-buttons .btn,
.business-table-toolbar__exports .dt-buttons a.tw-dw-btn,
.business-table-toolbar__exports .dt-buttons .dt-button,
.business-table-toolbar__exports .dt-buttons a.dt-button,
.business-table-toolbar__exports .dt-buttons .business-table-export-btn {
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid var(--bt-btn-border) !important;
    border-radius: 6px !important;
    background: var(--bt-btn-bg) !important;
    color: var(--bt-btn-text) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.business-table-toolbar__exports .dt-buttons .btn:hover,
.business-table-toolbar__exports .dt-buttons a.tw-dw-btn:hover,
.business-table-toolbar__exports .dt-buttons .dt-button:hover,
.business-table-toolbar__exports .dt-buttons a.dt-button:hover,
.business-table-toolbar__exports .dt-buttons .business-table-export-btn:hover {
    background: var(--bt-btn-hover-bg) !important;
    color: var(--bt-text) !important;
    text-decoration: none !important;
}

.business-table-toolbar__search .dataTables_filter {
    margin: 0 !important;
    float: none !important;
    text-align: right;
}

.business-table-toolbar__search .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    font-size: 0;
    color: transparent;
}

.business-table-search {
    width: 220px;
    max-width: 100%;
    padding: 7px 10px 7px 32px !important;
    border: 1px solid var(--bt-input-border) !important;
    border-radius: 8px !important;
    background: var(--bt-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 10px center !important;
    color: var(--bt-text) !important;
    font-size: 0.78rem !important;
}

.business-table-search::placeholder {
    color: var(--bt-text-muted);
    font-style: italic;
}

html[data-theme="dark"] .business-table-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
}

/* Collapsible filters */
.business-table-filters {
    padding: 0 20px;
    border-bottom: 1px solid var(--bt-border-soft);
    background: var(--bt-surface);
}

.business-table-filters:not(.in) {
    display: none;
}

.business-table-filters.in {
    padding-top: 16px;
    padding-bottom: 16px;
}

.business-table-filters__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
}

.business-table-filters__field label {
    display: block;
    margin-bottom: 4px;
    color: var(--bt-text-muted);
    font-size: 0.74rem;
    font-weight: 500;
}

.business-table-filters__field .form-control,
.business-table-filters__field .select2-container--default .select2-selection--single {
    background: var(--bt-input-bg) !important;
    border-color: var(--bt-input-border) !important;
    color: var(--bt-text) !important;
    font-size: 0.78rem;
    min-height: 34px;
}

.business-table-filters__field .form-control::placeholder,
.business-table-filters .business-advanced-filter::placeholder {
    font-style: italic;
    color: var(--table-input-placeholder, var(--bt-text-muted));
}

.business-table-filters .select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-style: italic;
    color: var(--table-input-placeholder, var(--bt-text-muted)) !important;
}

.business-table-filters__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bt-border-soft);
}

.business-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.business-table-btn--primary {
    border: 1px solid var(--bt-primary);
    background: var(--bt-primary);
    color: var(--bt-primary-text);
}

.business-table-btn--primary:hover,
.business-table-btn--primary:focus {
    background: var(--bt-primary-hover);
    border-color: var(--bt-primary-hover);
    color: var(--bt-primary-text);
}

.business-table-btn--ghost {
    border: 1px solid var(--bt-btn-border);
    background: var(--bt-btn-bg);
    color: var(--bt-btn-text);
}

.business-table-btn--ghost:hover,
.business-table-btn--ghost:focus {
    background: var(--bt-btn-hover-bg);
    color: var(--bt-text);
}

/* Table scroll area */
.business-table-scroll-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.business-table-component .business-table-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.business-table-component .business-table-scroll-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.business-table-component .business-table-scroll-main {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: auto !important;
    overscroll-behavior: contain;
}

.business-table-scroll-top,
.business-table-scroll-bottom,
.business-table-scroll-main,
.business-table-scroll .dataTables_wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--bt-scrollbar-thumb) var(--bt-scrollbar-track);
}

.business-table-scroll-top::-webkit-scrollbar,
.business-table-scroll-bottom::-webkit-scrollbar,
.business-table-scroll-main::-webkit-scrollbar,
.business-table-scroll .dataTables_wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.business-table-scroll-top::-webkit-scrollbar-track,
.business-table-scroll-bottom::-webkit-scrollbar-track,
.business-table-scroll-main::-webkit-scrollbar-track,
.business-table-scroll .dataTables_wrapper::-webkit-scrollbar-track {
    background: var(--bt-scrollbar-track);
    border-radius: 0;
}

.business-table-scroll-top::-webkit-scrollbar-thumb,
.business-table-scroll-bottom::-webkit-scrollbar-thumb,
.business-table-scroll-main::-webkit-scrollbar-thumb,
.business-table-scroll .dataTables_wrapper::-webkit-scrollbar-thumb {
    background: var(--bt-scrollbar-thumb);
    border-radius: 0;
    border: 2px solid var(--bt-scrollbar-track);
}

.business-table-scroll-top::-webkit-scrollbar-thumb:hover,
.business-table-scroll-bottom::-webkit-scrollbar-thumb:hover,
.business-table-scroll-main::-webkit-scrollbar-thumb:hover,
.business-table-scroll .dataTables_wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--bt-scrollbar-thumb-hover);
}

.business-table-scroll-main::-webkit-scrollbar-corner {
    background: var(--bt-scrollbar-corner);
}

/* Flat hscroll: pane scrolls horizontally (hidden native H bar); top/bottom are the visible H UI */
.business-table-hscroll-zone .business-table-scroll-top,
.business-table-hscroll-zone .business-table-scroll-bottom {
    display: none;
}

.business-table-hscroll-zone .business-table-pane {
    overflow-x: scroll !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: var(--bt-scrollbar-thumb) var(--bt-scrollbar-track);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
    overscroll-behavior: contain;
}

.business-table-hscroll-zone .business-table-pane::-webkit-scrollbar {
    width: 10px;
}

.business-table-hscroll-zone .business-table-pane::-webkit-scrollbar:horizontal {
    height: 0 !important;
}

.business-table-hscroll-zone--active .business-table-scroll-top,
.business-table-hscroll-zone--active .business-table-scroll-bottom,
.business-table-component.business-table-hscroll-zone--active .business-table-scroll-top,
.business-table-component.business-table-hscroll-zone--active .business-table-scroll-bottom {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    flex: 0 0 12px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
}

.business-table-scroll-top {
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    height: 12px;
    min-height: 12px;
    flex: 0 0 12px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.business-table-scroll-top.is-hidden,
.business-table-scroll-bottom.is-hidden {
    display: none;
}

.business-table-scroll-top-inner {
    height: 1px;
}

.business-table-scroll-bottom {
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    height: 12px;
    min-height: 12px;
    flex: 0 0 12px;
    margin-top: 6px;
    -webkit-overflow-scrolling: touch;
}

.business-table-scroll-bottom-inner {
    height: 1px;
}

.business-table-body--flat {
    overflow: hidden;
    min-width: 0;
}

.business-table-hscroll-zone {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.business-table-pane,
.business-table-component .business-table-pane {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
    overscroll-behavior: contain;
}

/* When table is wider than the pane, keep the right edge scrollable and visible */
.business-table-hscroll-zone--active .business-table-pane > .dataTables_wrapper,
.business-table-hscroll-zone--active .business-table-pane > .dataTables_wrapper.form-inline,
.business-table-pane.business-table-pane--hscroll > .dataTables_wrapper,
.business-table-pane.business-table-pane--hscroll > .dataTables_wrapper.form-inline {
    padding-right: 16px;
    box-sizing: content-box;
}

#superadmin_business_table.business-table th.bt-col-created,
#superadmin_business_table.business-table td.bt-col-created {
    padding-right: 14px !important;
    box-sizing: border-box;
}

.business-table-pane > .dataTables_wrapper,
.business-table-pane > .dataTables_wrapper.form-inline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0;
    overflow: visible;
}

/* When horizontal scroll is active, JS sets an explicit width on the wrapper. */
.business-table-hscroll-zone--active .business-table-pane > .dataTables_wrapper,
.business-table-hscroll-zone--active .business-table-pane > .dataTables_wrapper.form-inline,
.business-table-pane.business-table-pane--hscroll > .dataTables_wrapper,
.business-table-pane.business-table-pane--hscroll > .dataTables_wrapper.form-inline {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Fit container when horizontal scroll is not active (prevents runaway width growth). */
.business-table-hscroll-zone:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper,
.business-table-hscroll-zone:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper.form-inline,
.business-table-component:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper,
.business-table-component:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper.form-inline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.business-table-hscroll-zone:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper table.dataTable,
.business-table-component:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper table.dataTable {
    width: 100% !important;
    max-width: 100% !important;
}

.business-table-hscroll-zone .business-table-pane#business_table_scroll {
    min-height: 280px;
    max-height: calc(100vh - 300px);
}

.business-table-scroll-main {
    overflow: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 280px;
    max-height: calc(100vh - 300px);
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Sticky header/footer inside the table scroll pane (All Businesses pattern). */
.business-table-scroll-main table.ajax_view.business-table thead tr.table-label-row th,
.business-table-scroll-main table.ajax_view.business-table thead tr.table-filter-row th,
.business-table-pane table.ajax_view.business-table thead tr.table-label-row th,
.business-table-pane table.ajax_view.business-table thead tr.table-filter-row th,
.business-table-scroll-main table.omniteq-business-table thead tr.table-label-row th,
.business-table-scroll-main table.omniteq-business-table thead tr.table-filter-row th,
.business-table-pane table.omniteq-business-table thead tr.table-label-row th,
.business-table-pane table.omniteq-business-table thead tr.table-filter-row th,
#scrollable-container .business-table-scroll-main table.ajax_view.business-table thead tr.table-label-row th,
#scrollable-container .business-table-scroll-main table.ajax_view.business-table thead tr.table-filter-row th,
#scrollable-container .business-table-pane table.ajax_view.business-table thead tr.table-label-row th,
#scrollable-container .business-table-pane table.ajax_view.business-table thead tr.table-filter-row th,
#scrollable-container .business-table-scroll-main table.omniteq-business-table thead tr.table-label-row th,
#scrollable-container .business-table-scroll-main table.omniteq-business-table thead tr.table-filter-row th,
#scrollable-container .business-table-pane table.omniteq-business-table thead tr.table-label-row th,
#scrollable-container .business-table-pane table.omniteq-business-table thead tr.table-filter-row th {
    position: sticky !important;
    z-index: 12;
}

.business-table-scroll-main table.ajax_view.business-table thead tr.table-filter-row th,
.business-table-pane table.ajax_view.business-table thead tr.table-filter-row th,
.business-table-scroll-main table.omniteq-business-table thead tr.table-filter-row th,
.business-table-pane table.omniteq-business-table thead tr.table-filter-row th,
#scrollable-container .business-table-scroll-main table.ajax_view.business-table thead tr.table-filter-row th,
#scrollable-container .business-table-pane table.ajax_view.business-table thead tr.table-filter-row th,
#scrollable-container .business-table-scroll-main table.omniteq-business-table thead tr.table-filter-row th,
#scrollable-container .business-table-pane table.omniteq-business-table thead tr.table-filter-row th {
    z-index: 11;
    top: var(--bt-header-label-height, 38px) !important;
}

.business-table-scroll-main table.ajax_view.business-table thead tr.table-label-row th,
.business-table-pane table.ajax_view.business-table thead tr.table-label-row th,
#scrollable-container .business-table-scroll-main table.ajax_view.business-table thead tr.table-label-row th,
#scrollable-container .business-table-pane table.ajax_view.business-table thead tr.table-label-row th {
    top: 0 !important;
}

.business-table-scroll-main table.ajax_view.business-table tfoot tr.footer-total td,
.business-table-pane table.ajax_view.business-table tfoot tr.footer-total td,
#scrollable-container .business-table-scroll-main table.ajax_view.business-table tfoot tr.footer-total td,
#scrollable-container .business-table-pane table.ajax_view.business-table tfoot tr.footer-total td {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10;
    background: var(--table-header-bg, var(--bt-header-bg)) !important;
    box-shadow: 0 -2px 0 var(--table-border, var(--bt-border));
}

.business-table-scroll .dataTables_wrapper {
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.business-table-scroll-main > .dataTables_wrapper,
.business-table-scroll-main > .dataTables_wrapper.form-inline {
    display: inline-block !important;
    width: max-content !important;
    max-width: none !important;
    min-width: max-content !important;
}

/* Prevent DataTables scrollX / sizing clones from collapsing the real header rows */
.business-table-scroll .dataTables_scrollHead {
    display: none !important;
}

#superadmin_business_table.business-table thead tr.table-label-row,
table.ajax_view.business-table thead tr.table-label-row,
#superadmin_business_table.business-table thead tr.table-filter-row ,
table.ajax_view.business-table thead tr.table-filter-row {
    height: auto !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th,
table.ajax_view.business-table thead tr.table-label-row th,
#superadmin_business_table.business-table thead tr.table-filter-row th ,
table.ajax_view.business-table thead tr.table-filter-row th {
    height: auto !important;
}

#superadmin_business_table.business-table thead .dataTables_sizing ,
table.ajax_view.business-table thead .dataTables_sizing,
table.omniteq-business-table thead .dataTables_sizing {
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    line-height: 0 !important;
    visibility: collapse !important;
}

#superadmin_business_table.business-table,
table.ajax_view.business-table,
table.omniteq-business-table {
    width: max-content !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    background: var(--table-card-bg, var(--bt-bg));
    --bt-header-label-height: 38px;
}

table.omniteq-business-table.dataTable {
    width: max-content !important;
    max-width: none !important;
    clear: none !important;
}

#superadmin_business_table.business-table,
#scrollable-container #superadmin_business_table.business-table {
    min-width: 1494px !important;
}

#superadmin_business_table.business-table thead ,
table.ajax_view.business-table thead {
    background: var(--table-card-bg, var(--bt-bg));
}

#superadmin_business_table.business-table th,
table.ajax_view.business-table th,
#superadmin_business_table.business-table td ,
table.ajax_view.business-table td {
    white-space: nowrap;
    vertical-align: middle;
}

#superadmin_business_table.business-table tbody td ,
table.ajax_view.business-table tbody td,
table.omniteq-business-table tbody td {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Beat generic sa-page table header rules */
.sa-page #superadmin_business_table.business-table thead tr.table-label-row th,
table.ajax_view.business-table thead tr.table-label-row th,
.sa-page #superadmin_business_table.business-table thead tr.table-filter-row th ,
table.ajax_view.business-table thead tr.table-filter-row th {
    background-image: none !important;
}


/* Label row — sortable headers */
#superadmin_business_table.business-table thead tr.table-label-row th ,
table.ajax_view.business-table thead tr.table-label-row th,
table.omniteq-business-table thead tr.table-label-row th {
    background: var(--table-header-bg, var(--bt-header-bg)) !important;
    color: var(--table-text, var(--bt-text)) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    padding: 10px 12px 9px !important;
    border-top: 1px solid var(--table-border-soft, var(--bt-border-soft)) !important;
    border-bottom: none !important;
    white-space: nowrap !important;
    vertical-align: bottom !important;
    text-align: left !important;
    position: sticky !important;
    top: 0;
    z-index: 12;
    background-clip: padding-box;
    background-image: none !important;
    -webkit-font-smoothing: antialiased;
    box-shadow: none;
}

/* Filter row — column filters */
#superadmin_business_table.business-table thead tr.table-filter-row th ,
table.ajax_view.business-table thead tr.table-filter-row th,
table.omniteq-business-table thead tr.table-filter-row th {
    background: var(--table-filter-bg, var(--bt-surface)) !important;
    padding: 8px 12px !important;
    border-top: none !important;
    border-bottom: 2px solid var(--table-border, var(--bt-border)) !important;
    vertical-align: middle !important;
    text-align: left !important;
    position: sticky !important;
    top: var(--bt-header-label-height, 38px);
    z-index: 11;
    cursor: default !important;
    background-clip: padding-box;
    background-image: none !important;
    box-shadow: inset 0 1px 0 var(--table-border, var(--bt-border));
    line-height: normal;
    font-size: 0;
}

#superadmin_business_table.business-table thead tr.table-filter-row th:before,
table.ajax_view.business-table thead tr.table-filter-row th:before,
#superadmin_business_table.business-table thead tr.table-filter-row th:after,
table.ajax_view.business-table thead tr.table-filter-row th:after,
#superadmin_business_table.business-table thead tr.table-filter-row th.sorting:before,
table.ajax_view.business-table thead tr.table-filter-row th.sorting:before,
#superadmin_business_table.business-table thead tr.table-filter-row th.sorting:after,
table.ajax_view.business-table thead tr.table-filter-row th.sorting:after,
#superadmin_business_table.business-table thead tr.table-filter-row th.sorting_asc:before,
table.ajax_view.business-table thead tr.table-filter-row th.sorting_asc:before,
#superadmin_business_table.business-table thead tr.table-filter-row th.sorting_asc:after,
table.ajax_view.business-table thead tr.table-filter-row th.sorting_asc:after,
#superadmin_business_table.business-table thead tr.table-filter-row th.sorting_desc:before,
table.ajax_view.business-table thead tr.table-filter-row th.sorting_desc:before,
#superadmin_business_table.business-table thead tr.table-filter-row th.sorting_desc:after ,
table.ajax_view.business-table thead tr.table-filter-row th.sorting_desc:after,
table.omniteq-business-table thead tr.table-filter-row th:before,
table.omniteq-business-table thead tr.table-filter-row th:after,
table.omniteq-business-table thead tr.table-filter-row th.sorting:before,
table.omniteq-business-table thead tr.table-filter-row th.sorting:after,
table.omniteq-business-table thead tr.table-filter-row th.sorting_asc:before,
table.omniteq-business-table thead tr.table-filter-row th.sorting_asc:after,
table.omniteq-business-table thead tr.table-filter-row th.sorting_desc:before,
table.omniteq-business-table thead tr.table-filter-row th.sorting_desc:after {
    display: none !important;
    content: none !important;
}

#superadmin_business_table.business-table thead tr.table-filter-row .column-filter ,
table.ajax_view.business-table thead tr.table-filter-row .column-filter {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid var(--table-input-border, var(--bt-input-border));
    border-radius: 6px;
    background: var(--table-input-bg, var(--bt-input-bg));
    color: var(--table-text, var(--bt-text));
    font-size: 11px;
    font-weight: 400;
    padding: 0 10px;
    outline: none;
    box-sizing: border-box;
    line-height: 32px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

#superadmin_business_table.business-table thead tr.table-filter-row select.column-filter ,
table.ajax_view.business-table thead tr.table-filter-row select.column-filter {
    padding-right: 24px;
    background-color: var(--table-input-bg, var(--bt-input-bg));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    cursor: pointer;
}

html[data-theme="dark"] #superadmin_business_table.business-table thead tr.table-filter-row select.column-filter,
table.ajax_view.business-table thead tr.table-filter-row select.column-filter,
body.dark-mode #superadmin_business_table.business-table thead tr.table-filter-row select.column-filter ,
table.ajax_view.business-table thead tr.table-filter-row select.column-filter {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8da6' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

#superadmin_business_table.business-table thead tr.table-filter-row .column-filter::placeholder ,
table.ajax_view.business-table thead tr.table-filter-row .column-filter::placeholder {
    color: var(--table-input-placeholder, var(--bt-text-muted));
    opacity: 1;
    font-style: italic;
}

#superadmin_business_table.business-table thead tr.table-filter-row select.column-filter ,
table.ajax_view.business-table thead tr.table-filter-row select.column-filter {
    font-style: italic;
}

#superadmin_business_table.business-table thead tr.table-filter-row .column-filter:focus ,
table.ajax_view.business-table thead tr.table-filter-row .column-filter:focus {
    border-color: var(--bt-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bt-primary) 18%, transparent);
}

#superadmin_business_table.business-table thead tr.table-filter-row .column-filter option ,
table.ajax_view.business-table thead tr.table-filter-row .column-filter option {
    background: var(--table-card-bg, var(--bt-bg));
    color: var(--table-text, var(--bt-text));
}

/* Sortable label cells — beat global DataTables `position: relative` */
#superadmin_business_table.business-table thead tr.table-label-row th.sorting,
table.ajax_view.business-table thead tr.table-label-row th.sorting,
#scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc,
#scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc,
#scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc_disabled,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc_disabled,
#scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc_disabled,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc_disabled,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc_disabled,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc_disabled,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc_disabled ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc_disabled,
table.omniteq-business-table thead tr.table-label-row th.sorting,
table.omniteq-business-table thead tr.table-label-row th.sorting_asc,
table.omniteq-business-table thead tr.table-label-row th.sorting_desc,
table.omniteq-business-table thead tr.table-label-row th.sorting_asc_disabled,
table.omniteq-business-table thead tr.table-label-row th.sorting_desc_disabled {
    position: sticky !important;
    top: 0;
    z-index: 13;
    cursor: pointer;
    padding-right: 28px !important;
    user-select: none;
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting:after,
table.ajax_view.business-table thead tr.table-label-row th.sorting:after,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after {
    position: absolute !important;
    display: block !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    vertical-align: middle !important;
    opacity: 0.45;
    color: var(--table-sort-icon, var(--bt-text-muted)) !important;
    font-size: 0.62em !important;
    line-height: 1 !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:before ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:before {
    right: 14px !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting:after,
table.ajax_view.business-table thead tr.table-label-row th.sorting:after,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after {
    right: 6px !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after {
    opacity: 1;
    color: var(--table-sort-active, var(--bt-primary)) !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:before ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:before {
    opacity: 0.2;
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc {
    color: var(--table-text, var(--bt-text)) !important;
    background: var(--table-sort-active-bg, color-mix(in srgb, var(--bt-primary) 8%, var(--table-header-bg, var(--bt-header-bg)))) !important;
    box-shadow: inset 0 -2px 0 var(--table-sort-active, var(--bt-primary));
}

#superadmin_business_table.business-table thead tr.table-label-row th.sorting:hover,
table.ajax_view.business-table thead tr.table-label-row th.sorting:hover,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:hover,
table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:hover,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:hover ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:hover {
    background: color-mix(in srgb, var(--bt-primary) 5%, var(--table-header-bg, var(--bt-header-bg))) !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th.action-column,
table.ajax_view.business-table thead tr.table-label-row th.action-column,
#superadmin_business_table.business-table thead tr.table-filter-row th.action-column ,
table.ajax_view.business-table thead tr.table-filter-row th.action-column {
    text-align: center !important;
    cursor: default !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

#superadmin_business_table.business-table thead tr.table-filter-row th.action-column ,
table.ajax_view.business-table thead tr.table-filter-row th.action-column {
    padding: 8px !important;
}

#superadmin_business_table.business-table thead tr.table-label-row th.action-column:before,
table.ajax_view.business-table thead tr.table-label-row th.action-column:before,
#superadmin_business_table.business-table thead tr.table-label-row th.action-column:after,
table.ajax_view.business-table thead tr.table-label-row th.action-column:after,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_disabled:before,
table.ajax_view.business-table thead tr.table-label-row th.sorting_disabled:before,
#superadmin_business_table.business-table thead tr.table-label-row th.sorting_disabled:after ,
table.ajax_view.business-table thead tr.table-label-row th.sorting_disabled:after {
    display: none !important;
    content: none !important;
}

#superadmin_business_table.business-table tbody td ,
table.ajax_view.business-table tbody td,
table.omniteq-business-table tbody td {
    box-sizing: border-box !important;
    padding: 12px 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--table-border-soft, var(--bt-border-soft)) !important;
    color: var(--table-text, var(--bt-text)) !important;
    background: var(--table-row-bg, var(--table-card-bg, var(--bt-bg))) !important;
}

#superadmin_business_table.business-table tbody tr:nth-child(even) td ,
table.ajax_view.business-table tbody tr:nth-child(even) td,
table.ajax_view.business-table tbody tr.even td,
table.omniteq-business-table tbody tr:nth-child(even) td,
table.omniteq-business-table tbody tr.even td {
    background: var(--table-row-alt-bg, var(--bt-row-alt)) !important;
}

#superadmin_business_table.business-table tbody tr:nth-child(odd) td ,
table.ajax_view.business-table tbody tr:nth-child(odd) td,
table.ajax_view.business-table tbody tr.odd td,
table.omniteq-business-table tbody tr:nth-child(odd) td,
table.omniteq-business-table tbody tr.odd td {
    background: var(--table-row-bg, var(--table-card-bg, var(--bt-bg))) !important;
}

#superadmin_business_table.business-table tbody tr:hover td ,
table.ajax_view.business-table tbody tr:hover td,
table.omniteq-business-table tbody tr:hover td {
    background: var(--table-hover-bg, var(--table-hover, var(--bt-hover))) !important;
}

#superadmin_business_table.business-table tfoot tr.footer-total td,
table.ajax_view.business-table tfoot tr.footer-total td {
    background: var(--table-header-bg, var(--bt-header-bg)) !important;
    color: var(--table-text, var(--bt-text)) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    border-top: 2px solid var(--table-border, var(--bt-border)) !important;
    border-bottom: none !important;
    vertical-align: middle !important;
}

#superadmin_business_table .bt-col-action,
#superadmin_business_table .action-column,
table.ajax_view.business-table .bt-col-action,
table.ajax_view.business-table .action-column,
table.omniteq-business-table .bt-col-action,
table.omniteq-business-table .action-column {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    text-align: center !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

table.ajax_view.business-table tbody tr.sa-action-row-open,
#superadmin_business_table tbody tr.sa-action-row-open {
    position: relative;
    z-index: 30;
}

#superadmin_business_table.business-table th.action-column,
table.ajax_view.business-table th.action-column,
#superadmin_business_table.business-table td.action-column ,
table.ajax_view.business-table td.action-column {
    border-right: 1px solid var(--table-border, var(--bt-border));
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Column widths */
#superadmin_business_table .bt-col-business,
table.ajax_view.business-table[id^="fuel_"] .bt-col-business,
table.omniteq-business-table[id^="fuel_"] .bt-col-business { width: 260px; min-width: 260px; max-width: 260px; }
#superadmin_business_table .bt-col-owner,
table.ajax_view.business-table[id^="fuel_"] .bt-col-owner,
table.omniteq-business-table[id^="fuel_"] .bt-col-owner { width: 210px; min-width: 210px; max-width: 210px; }
#superadmin_business_table .bt-col-contact,
table.ajax_view.business-table[id^="fuel_"] .bt-col-contact,
table.omniteq-business-table[id^="fuel_"] .bt-col-contact { width: 150px; min-width: 150px; max-width: 150px; white-space: nowrap !important; }
#superadmin_business_table .bt-col-location,
table.ajax_view.business-table[id^="fuel_"] .bt-col-location,
table.omniteq-business-table[id^="fuel_"] .bt-col-location { width: 300px; min-width: 300px; max-width: 300px; }
#superadmin_business_table .bt-col-status,
table.ajax_view.business-table[id^="fuel_"] .bt-col-status,
table.omniteq-business-table[id^="fuel_"] .bt-col-status { width: 120px; min-width: 120px; max-width: 120px; }
#superadmin_business_table .bt-col-subscription,
table.ajax_view.business-table[id^="fuel_"] .bt-col-subscription,
table.omniteq-business-table[id^="fuel_"] .bt-col-subscription { width: 210px; min-width: 210px; max-width: 210px; }
#superadmin_business_table .bt-col-created,
table.ajax_view.business-table[id^="fuel_"] .bt-col-created,
table.omniteq-business-table[id^="fuel_"] .bt-col-created { width: 180px; min-width: 180px; max-width: 180px; }

.business-table-filters__grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-table-filters__field--checkbox .business-table-filters__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding-top: 2px;
    color: var(--bt-text);
    font-size: 0.78rem;
}

.business-table-filters__field--checkbox .business-table-filters__checkbox .icheckbox_square-blue,
.business-table-filters__field--checkbox .business-table-filters__checkbox .iradio_square-blue {
    margin: 0;
}

/* Cell content */
.business-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.business-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bt-avatar-bg);
    color: var(--bt-avatar-text);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.business-cell__text,
.business-stack {
    min-width: 0;
    flex: 1;
}

.business-name {
    font-weight: 600;
    color: var(--bt-text) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-subtext {
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--bt-text-muted) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#superadmin_business_table .bt-col-location,
#superadmin_business_table.business-table td.bt-col-location,
table.ajax_view.business-table td.bt-col-location,
#superadmin_business_table.business-table th.bt-col-location ,
table.ajax_view.business-table th.bt-col-location {
    white-space: normal !important;
}

.business-location {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    color: var(--bt-text-muted) !important;
    font-size: 0.74rem;
    line-height: 1.4;
    white-space: normal;
}

/* Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.status-badge--active,
.sa-status-badge--active {
    background: var(--bt-badge-success-bg);
    color: var(--bt-badge-success-text) !important;
    border: 1px solid var(--bt-badge-success-border);
}

.status-badge--inactive,
.sa-status-badge--inactive {
    background: var(--bt-badge-inactive-bg);
    color: var(--bt-badge-inactive-text) !important;
    border: 1px solid var(--bt-badge-inactive-border);
}

.status-badge--subscription {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--bt-badge-subscription-bg);
    color: var(--bt-badge-subscription-text) !important;
    border: 1px solid var(--bt-badge-subscription-border);
    font-size: 0.7rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge--waiting,
.sa-status-badge--waiting {
    background: var(--bt-badge-waiting-bg);
    color: var(--bt-badge-waiting-text) !important;
    border: 1px solid var(--bt-badge-waiting-border);
}

.status-badge--declined,
.sa-status-badge--declined {
    background: var(--bt-badge-declined-bg);
    color: var(--bt-badge-declined-text) !important;
    border: 1px solid var(--bt-badge-declined-border);
}

.status-badge--muted {
    background: var(--bt-badge-muted-bg);
    color: var(--bt-badge-muted-text) !important;
}

table.ajax_view.business-table .payment-status-label .label,
table.omniteq-business-table .payment-status-label .label {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

table.ajax_view.business-table .payment-status-label .label.bg-aqua,
table.omniteq-business-table .payment-status-label .label.bg-aqua {
    background: var(--bt-badge-subscription-bg) !important;
    color: var(--bt-badge-subscription-text) !important;
    border-color: var(--bt-badge-subscription-border);
}

table.ajax_view.business-table .payment-status-label .label.bg-light-green,
table.ajax_view.business-table .payment-status-label .label.label-success,
table.omniteq-business-table .payment-status-label .label.bg-light-green,
table.omniteq-business-table .payment-status-label .label.label-success {
    background: var(--bt-badge-success-bg) !important;
    color: var(--bt-badge-success-text) !important;
    border-color: var(--bt-badge-success-border);
}

table.ajax_view.business-table .payment-status-label .label.bg-yellow,
table.ajax_view.business-table .payment-status-label .label.label-warning,
table.omniteq-business-table .payment-status-label .label.bg-yellow,
table.omniteq-business-table .payment-status-label .label.label-warning {
    background: var(--bt-badge-waiting-bg) !important;
    color: var(--bt-badge-waiting-text) !important;
    border-color: var(--bt-badge-waiting-border);
}

table.ajax_view.business-table .payment-status-label .label.bg-red,
table.ajax_view.business-table .payment-status-label .label.label-danger,
table.omniteq-business-table .payment-status-label .label.bg-red,
table.omniteq-business-table .payment-status-label .label.label-danger {
    background: var(--bt-badge-declined-bg) !important;
    color: var(--bt-badge-declined-text) !important;
    border-color: var(--bt-badge-declined-border);
}

/* Global business-table action button (All Businesses pattern) */
#scrollable-container .business-table-component .btn-group.sa-action-dropdown,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown,
.business-table-component .btn-group.sa-action-dropdown,
.business-table-component .sa-action-dropdown.action-menu-button,
table.ajax_view.business-table .btn-group.sa-action-dropdown,
table.ajax_view.business-table .sa-action-dropdown.action-menu-button,
table.omniteq-business-table .btn-group.sa-action-dropdown,
table.omniteq-business-table .sa-action-dropdown.action-menu-button {
    display: inline-flex !important;
    vertical-align: middle !important;
}

#scrollable-container .business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
.business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border: 1px solid var(--bt-action-border) !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bt-primary) 8%, var(--bt-action-bg)) 0%, var(--bt-action-bg) 100%) !important;
    color: var(--bt-action-icon) !important;
    box-shadow: var(--bt-action-shadow) !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

#scrollable-container .business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
.business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

#scrollable-container .business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
#scrollable-container .business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
.business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
.business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bt-primary) 16%, var(--bt-action-hover-bg)) 0%, var(--bt-action-hover-bg) 100%) !important;
    border-color: var(--bt-primary) !important;
    color: var(--bt-primary) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22), 0 0 0 2px color-mix(in srgb, var(--bt-primary) 20%, transparent) !important;
    transform: translateY(-1px);
}

#scrollable-container .business-table-component .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
.business-table-component .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
table.ajax_view.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
table.omniteq-business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle {
    background: linear-gradient(180deg, var(--bt-primary-hover) 0%, var(--bt-primary) 100%) !important;
    border-color: var(--bt-primary) !important;
    color: var(--bt-primary-text) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), 0 0 0 2px color-mix(in srgb, var(--bt-primary) 28%, transparent) !important;
    transform: translateY(-1px);
}

#scrollable-container .business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
.business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active {
    transform: translateY(0) scale(0.97);
}

#scrollable-container .business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
#scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
#scrollable-container table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
.business-table-component .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
table.omniteq-business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0;
}

/* Legacy duplicate selectors kept for specificity over bard-tables */
#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown.action-menu-button,
table.ajax_view.business-table .sa-action-dropdown.action-menu-button,
table.omniteq-business-table .sa-action-dropdown.action-menu-button,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown ,
table.ajax_view.business-table .btn-group.sa-action-dropdown,
table.omniteq-business-table .btn-group.sa-action-dropdown {
    display: inline-flex !important;
    vertical-align: middle !important;
}

#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle ,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border: 1px solid var(--bt-action-border) !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bt-primary) 8%, var(--bt-action-bg)) 0%, var(--bt-action-bg) 100%) !important;
    color: var(--bt-action-icon) !important;
    box-shadow: var(--bt-action-shadow) !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after ,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus ,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bt-primary) 16%, var(--bt-action-hover-bg)) 0%, var(--bt-action-hover-bg) 100%) !important;
    border-color: var(--bt-primary) !important;
    color: var(--bt-primary) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22), 0 0 0 2px color-mix(in srgb, var(--bt-primary) 20%, transparent) !important;
    transform: translateY(-1px);
}

#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
table.ajax_view.business-table .sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle ,
table.ajax_view.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle {
    background: linear-gradient(180deg, var(--bt-primary-hover) 0%, var(--bt-primary) 100%) !important;
    border-color: var(--bt-primary) !important;
    color: var(--bt-primary-text) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), 0 0 0 2px color-mix(in srgb, var(--bt-primary) 28%, transparent) !important;
    transform: translateY(-1px);
}

#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active ,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:active {
    transform: translateY(0) scale(0.97);
}

#scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg,
#scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg ,
table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle svg {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0;
}

.sa-action-dropdown__menu {
    z-index: 1080 !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: min(24rem, calc(100vw - 16px)) !important;
    height: auto !important;
    max-height: none;
    padding: 4px 0;
    margin: 0 !important;
    border: 1px solid var(--bt-menu-border);
    border-radius: 8px;
    background: var(--bt-menu-bg);
    box-shadow: var(--bt-menu-shadow);
    font-size: 0.76rem;
    overflow: hidden;
}

/* Keep menus hidden until the action button is opened (Bootstrap default was overridden) */
table.ajax_view.business-table .btn-group.sa-action-dropdown:not(.open) > .dropdown-menu.sa-action-dropdown__menu,
.business-table-scroll .btn-group.sa-action-dropdown:not(.open) > .dropdown-menu.sa-action-dropdown__menu {
    display: none !important;
}

/* Floated copy appended to body while open inside scrollable tables */
.dropdown-menu.bo-table-dropdown-menu.sa-action-dropdown__menu,
body > .dropdown-menu.sa-floating-action-menu,
body > .dropdown-menu.bo-table-dropdown-menu.sa-action-dropdown__menu {
    display: block;
    z-index: 10050 !important;
    position: fixed !important;
}

.sa-action-dropdown__menu > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-action-dropdown__menu > li > a,
.sa-action-dropdown__menu > li > button {
    display: block;
    width: auto;
    min-width: 100%;
    padding: 7px 14px;
    border: 0;
    background: transparent;
    color: var(--bt-text);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
}

.sa-action-dropdown__menu > li > a:hover,
.sa-action-dropdown__menu > li > a:focus,
.sa-action-dropdown__menu > li > button:hover,
.sa-action-dropdown__menu > li > button:focus {
    background: var(--bt-menu-hover);
    color: var(--bt-text);
    text-decoration: none;
}

.sa-action-dropdown__menu > li > a.delete_business_confirmation {
    color: var(--bt-danger-text);
}

.sa-action-dropdown__menu > li > a.delete_business_confirmation:hover,
.sa-action-dropdown__menu > li > a.delete_business_confirmation:focus {
    background: var(--bt-danger-hover);
}

/* Footer */
.business-table-dt-hidden {
    display: none !important;
}

.business-table-dt-hidden .dt-buttons,
.business-table-dt-hidden .dataTables_filter,
.business-table-dt-hidden .dataTables_length,
.business-table-dt-hidden .dataTables_info,
.business-table-dt-hidden .dataTables_paginate {
    display: none !important;
}

.business-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 8px 16px 14px;
    border-top: 1px solid var(--bt-border-soft);
    background: var(--bt-surface);
    color: var(--bt-text-muted);
    font-size: 0.72rem;
    flex-shrink: 0;
    min-height: 0;
}

.business-table-footer__start,
.business-table-footer__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.business-table-footer__end {
    justify-content: flex-end;
}

.business-table-footer .dataTables_length,
.business-table-footer .dataTables_info,
.business-table-footer .dataTables_paginate {
    margin: 0 !important;
    float: none !important;
    color: var(--bt-text-muted);
    font-size: 0.72rem;
}

.business-table-footer .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: 500;
    color: var(--bt-text-muted);
    line-height: 1.2;
}

.business-table-footer .dataTables_length select {
    margin: 0;
    padding: 3px 6px;
    min-height: 26px;
    border: 1px solid var(--bt-input-border);
    border-radius: 6px;
    background: var(--bt-input-bg);
    color: var(--bt-text);
    font-size: 0.72rem;
}

.business-table-footer .dataTables_info {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    color: var(--bt-text-muted);
    white-space: nowrap;
    line-height: 1.2;
}

.business-table-footer .dataTables_paginate {
    display: inline-flex !important;
    align-items: center !important;
}

.business-table-footer .dataTables_paginate .pagination {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 3px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-radius: 0 !important;
}

.business-table-footer .dataTables_paginate .pagination > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    float: none !important;
}

.business-table-footer .dataTables_paginate .pagination > li > a,
.business-table-footer .dataTables_paginate .pagination > li > span,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 1.75rem;
    min-height: 26px;
    padding: 3px 8px !important;
    margin: 0 !important;
    border: 1px solid var(--bt-btn-border) !important;
    border-radius: 6px !important;
    background: var(--bt-btn-bg) !important;
    color: var(--bt-btn-text) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    float: none !important;
    cursor: pointer;
}

.business-table-footer .dataTables_paginate .pagination > li.previous > a,
.business-table-footer .dataTables_paginate .pagination > li.next > a,
.business-table-footer .dataTables_paginate .pagination > li.paginate_button.previous > a,
.business-table-footer .dataTables_paginate .pagination > li.paginate_button.next > a {
    min-width: 4rem;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.business-table-footer .dataTables_paginate .pagination > li.active > a,
.business-table-footer .dataTables_paginate .pagination > li.active > span,
.business-table-footer .dataTables_paginate .pagination > li.paginate_button.current > a,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button.current,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button.current a {
    background: var(--bt-primary) !important;
    border-color: var(--bt-primary) !important;
    color: var(--bt-primary-text) !important;
}

.business-table-footer .dataTables_paginate .pagination > li > a:hover,
.business-table-footer .dataTables_paginate .pagination > li > span:hover,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button:not(.disabled):not(.current) a:hover {
    background: var(--bt-btn-hover-bg) !important;
    color: var(--bt-text) !important;
    border-color: var(--bt-input-border) !important;
}

.business-table-footer .dataTables_paginate .pagination > li.disabled > a,
.business-table-footer .dataTables_paginate .pagination > li.disabled > span,
.business-table-footer .dataTables_paginate .pagination > li.paginate_button.disabled > a,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button.disabled,
#scrollable-container .business-table-footer .dataTables_paginate .paginate_button.disabled a {
    background: var(--bt-border-soft) !important;
    border-color: var(--bt-border-soft) !important;
    color: var(--bt-text-muted) !important;
    opacity: 0.75;
    cursor: not-allowed !important;
    pointer-events: none;
}

#superadmin_business_table .bt-col-hidden {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.business-table-scroll .dataTables_processing {
    display: none !important;
}

.business-table-card.is-loading .business-table-scroll-main tbody {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

@media (max-width: 768px) {
    .business-table-header {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

    .business-table-header__copy {
        flex: 1 1 100%;
    }

    .business-table-add-btn {
        margin-left: auto;
    }

    .business-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .business-table-toolbar__end {
        margin-left: 0;
        width: 100%;
    }

    .business-table-toolbar__search .dataTables_filter label {
        width: 100%;
    }

    .business-table-search {
        width: 100%;
    }

    .business-table-filters__grid {
        grid-template-columns: 1fr;
    }

    .business-table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px;
    }
}

@media (max-width: 1100px) {
    .business-table-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Dark mode — explicit overrides (beats global table / DataTables rules) */
html[data-theme="dark"] .sa-page .business-table-card,
body.dark-mode .sa-page .business-table-card {
    background: var(--table-card-bg) !important;
    border-color: var(--table-border) !important;
    box-shadow: var(--bt-shadow), 0 0 0 1px rgba(51, 65, 85, 0.45) !important;
}

html[data-theme="dark"] .sa-page .business-table-header,
body.dark-mode .sa-page .business-table-header {
    background: var(--table-card-bg) !important;
    border-color: var(--bt-border-soft) !important;
}

html[data-theme="dark"] .sa-page .business-table-toolbar,
html[data-theme="dark"] .sa-page .business-table-footer,
html[data-theme="dark"] .sa-page .business-table-filters,
body.dark-mode .sa-page .business-table-toolbar,
body.dark-mode .sa-page .business-table-footer,
body.dark-mode .sa-page .business-table-filters {
    background: var(--bt-surface) !important;
    border-color: var(--bt-border-soft) !important;
}

html[data-theme="dark"] .sa-page .business-table-body,
body.dark-mode .sa-page .business-table-body {
    background: var(--table-card-bg) !important;
    border-color: var(--bt-border-soft) !important;
}

html[data-theme="dark"] .sa-page .business-table-header__title,
body.dark-mode .sa-page .business-table-header__title {
    color: var(--bt-text) !important;
}

html[data-theme="dark"] .sa-page .business-table-scroll,
body.dark-mode .sa-page .business-table-scroll {
    background: var(--bt-bg) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead th,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead th,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody td,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead th,
body.dark-mode #scrollable-container table.ajax_view.business-table thead th,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody td {
    color: var(--bt-text) !important;
    border-color: var(--bt-border-soft) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead th,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead th,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead th,
body.dark-mode #scrollable-container table.ajax_view.business-table thead th {
    border-color: var(--bt-border-soft) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th {
    background: var(--table-header-bg) !important;
    color: var(--table-text) !important;
    font-weight: 700 !important;
    border-color: var(--table-border-soft) !important;
    box-shadow: inset 0 -1px 0 var(--table-border-soft);
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th {
    background: var(--table-filter-bg) !important;
    color: var(--table-muted) !important;
    border-color: var(--table-border) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row .column-filter,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-filter-row .column-filter,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row .column-filter,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-filter-row .column-filter {
    background: var(--table-input-bg) !important;
    border-color: var(--table-input-border) !important;
    color: var(--table-text) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row .column-filter::placeholder,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-filter-row .column-filter::placeholder,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row .column-filter::placeholder,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-filter-row .column-filter::placeholder {
    color: var(--table-input-placeholder) !important;
    font-style: italic;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc {
    background-color: var(--table-sort-active-bg) !important;
    background-image: none !important;
    box-shadow: inset 0 -2px 0 var(--table-sort-active);
    z-index: 13 !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th,
html[data-theme="dark"] .business-table-pane table.ajax_view.business-table thead tr.table-label-row th,
html[data-theme="dark"] .business-table-pane table.ajax_view.business-table thead tr.table-filter-row th,
html[data-theme="dark"] .business-table-scroll-main table.ajax_view.business-table thead tr.table-label-row th,
html[data-theme="dark"] .business-table-scroll-main table.ajax_view.business-table thead tr.table-filter-row th,
body.dark-mode .business-table-pane table.ajax_view.business-table thead tr.table-label-row th,
body.dark-mode .business-table-pane table.ajax_view.business-table thead tr.table-filter-row th,
body.dark-mode .business-table-scroll-main table.ajax_view.business-table thead tr.table-label-row th,
body.dark-mode .business-table-scroll-main table.ajax_view.business-table thead tr.table-filter-row th {
    background-clip: padding-box !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th:has(.column-filter:focus),
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th:has(.column-filter:focus),
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th:has(.column-filter:focus),
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th:has(.column-filter:focus) {
    background-color: var(--table-filter-bg) !important;
    z-index: 12 !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody td.sorting_1,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody td.sorting_1,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody td.sorting_1,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody td.sorting_1 {
    background-color: #1a2740 !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody tr.even td.sorting_1,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody tr.even td.sorting_1,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody tr.even td.sorting_1,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody tr.even td.sorting_1 {
    background-color: #24324f !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting:before,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting:after,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:before,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:before,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting:before,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting:after,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:before,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:before,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting:before,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting:after,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:before,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:before,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting:before,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting:after,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:before,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:before,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after {
    color: var(--table-sort-icon) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_asc:after,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-label-row th.sorting_desc:after,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_asc:after,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-label-row th.sorting_desc:after {
    color: var(--table-sort-active) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th.action-column,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th.action-column,
body.dark-mode #scrollable-container #superadmin_business_table.business-table thead tr.table-filter-row th.action-column,
body.dark-mode #scrollable-container table.ajax_view.business-table thead tr.table-filter-row th.action-column {
    background: var(--table-filter-bg) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody td,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody td {
    background: var(--table-row-bg) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody tr:nth-child(even) td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody tr:nth-child(even) td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody tr.even td,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody tr:nth-child(even) td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody tr:nth-child(even) td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody tr.even td {
    background: var(--table-row-alt-bg) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody tr:nth-child(odd) td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody tr:nth-child(odd) td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody tr.odd td,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody tr:nth-child(odd) td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody tr:nth-child(odd) td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody tr.odd td {
    background: var(--table-row-bg) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table tbody tr:hover td,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table tbody tr:hover td,
body.dark-mode #scrollable-container #superadmin_business_table.business-table tbody tr:hover td,
body.dark-mode #scrollable-container table.ajax_view.business-table tbody tr:hover td {
    background: var(--table-hover-bg) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.22) 0%, var(--bt-action-bg) 100%) !important;
    border-color: var(--bt-action-border) !important;
    color: var(--bt-action-icon) !important;
    box-shadow: var(--bt-action-shadow) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
body.dark-mode #scrollable-container table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
body.dark-mode #scrollable-container table.ajax_view.business-table .sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus,
body.dark-mode #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:hover,
body.dark-mode #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown .action-menu-button__toggle.dropdown-toggle:focus {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.34) 0%, var(--bt-action-hover-bg) 100%) !important;
    border-color: var(--bt-primary) !important;
    color: #bfdbfe !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28), 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
html[data-theme="dark"] #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
html[data-theme="dark"] #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container #superadmin_business_table.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container table.ajax_view.business-table .sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle,
body.dark-mode #scrollable-container table.ajax_view.business-table .btn-group.sa-action-dropdown.open .action-menu-button__toggle.dropdown-toggle {
    background: linear-gradient(180deg, var(--bt-primary-hover) 0%, var(--bt-primary) 100%) !important;
    border-color: var(--bt-primary) !important;
    color: var(--bt-primary-text) !important;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

html[data-theme="dark"] .business-table-scroll,
html[data-theme="dark"] .business-table-scroll-top,
html[data-theme="dark"] .business-table-scroll-bottom,
html[data-theme="dark"] .business-table-pane,
html[data-theme="dark"] .business-table-scroll .dataTables_wrapper,
body.dark-mode .business-table-scroll,
body.dark-mode .business-table-scroll-top,
body.dark-mode .business-table-scroll-bottom,
body.dark-mode .business-table-pane,
body.dark-mode .business-table-scroll .dataTables_wrapper {
    scrollbar-color: var(--bt-scrollbar-thumb) var(--bt-scrollbar-track);
}

html[data-theme="dark"] .business-table-pane::-webkit-scrollbar-track,
html[data-theme="dark"] .business-table-scroll-bottom::-webkit-scrollbar-track,
html[data-theme="dark"] .business-table-scroll-top::-webkit-scrollbar-track,
body.dark-mode .business-table-pane::-webkit-scrollbar-track,
body.dark-mode .business-table-scroll-bottom::-webkit-scrollbar-track,
body.dark-mode .business-table-scroll-top::-webkit-scrollbar-track {
    background: var(--bt-scrollbar-track);
}

html[data-theme="dark"] .business-table-pane::-webkit-scrollbar-thumb,
html[data-theme="dark"] .business-table-scroll-bottom::-webkit-scrollbar-thumb,
html[data-theme="dark"] .business-table-scroll-top::-webkit-scrollbar-thumb,
body.dark-mode .business-table-pane::-webkit-scrollbar-thumb,
body.dark-mode .business-table-scroll-bottom::-webkit-scrollbar-thumb,
body.dark-mode .business-table-scroll-top::-webkit-scrollbar-thumb {
    background: var(--bt-scrollbar-thumb);
    border-color: var(--bt-scrollbar-track);
}

html[data-theme="dark"] .business-table-pane::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .business-table-scroll-bottom::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .business-table-scroll-top::-webkit-scrollbar-thumb:hover,
body.dark-mode .business-table-pane::-webkit-scrollbar-thumb:hover,
body.dark-mode .business-table-scroll-bottom::-webkit-scrollbar-thumb:hover,
body.dark-mode .business-table-scroll-top::-webkit-scrollbar-thumb:hover {
    background: var(--bt-scrollbar-thumb-hover);
}

html[data-theme="dark"] .business-table-pane::-webkit-scrollbar-corner,
body.dark-mode .business-table-pane::-webkit-scrollbar-corner {
    background: var(--bt-scrollbar-corner);
}

html[data-theme="dark"] .business-table-hscroll-zone,
html[data-theme="dark"] .business-table-pane,
html[data-theme="dark"] .business-table-scroll-top,
html[data-theme="dark"] .business-table-scroll-bottom,
body.dark-mode .business-table-hscroll-zone,
body.dark-mode .business-table-pane,
body.dark-mode .business-table-scroll-top,
body.dark-mode .business-table-scroll-bottom {
    color-scheme: dark;
}

html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons .btn,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons a.tw-dw-btn,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons .dt-button,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons a.dt-button,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons .business-table-export-btn,
body.dark-mode .business-table-toolbar__exports .dt-buttons .btn,
body.dark-mode .business-table-toolbar__exports .dt-buttons a.tw-dw-btn,
body.dark-mode .business-table-toolbar__exports .dt-buttons .dt-button,
body.dark-mode .business-table-toolbar__exports .dt-buttons a.dt-button,
body.dark-mode .business-table-toolbar__exports .dt-buttons .business-table-export-btn {
    background: var(--bt-btn-bg) !important;
    border-color: var(--bt-btn-border) !important;
    color: var(--bt-btn-text) !important;
}

html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons .btn:hover,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons a.tw-dw-btn:hover,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons .dt-button:hover,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons a.dt-button:hover,
html[data-theme="dark"] .business-table-toolbar__exports .dt-buttons .business-table-export-btn:hover,
body.dark-mode .business-table-toolbar__exports .dt-buttons .btn:hover,
body.dark-mode .business-table-toolbar__exports .dt-buttons a.tw-dw-btn:hover,
body.dark-mode .business-table-toolbar__exports .dt-buttons .dt-button:hover,
body.dark-mode .business-table-toolbar__exports .dt-buttons a.dt-button:hover,
body.dark-mode .business-table-toolbar__exports .dt-buttons .business-table-export-btn:hover {
    background: var(--bt-btn-hover-bg) !important;
    color: var(--bt-text) !important;
}

html[data-theme="dark"] .business-table-filters .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .business-table-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bt-text) !important;
}

html[data-theme="dark"] .dropdown-menu.bo-table-dropdown-menu.sa-action-dropdown__menu,
html[data-theme="dark"] .dropdown-menu.sa-action-dropdown__menu,
body.dark-mode .dropdown-menu.bo-table-dropdown-menu.sa-action-dropdown__menu,
body.dark-mode .dropdown-menu.sa-action-dropdown__menu {
    background: var(--bt-menu-bg) !important;
    border-color: var(--bt-menu-border) !important;
}

html[data-theme="dark"] .business-table-footer .dataTables_paginate .pagination > li > a,
html[data-theme="dark"] .business-table-footer .dataTables_paginate .pagination > li > span,
html[data-theme="dark"] #scrollable-container .business-table-footer .dataTables_paginate .paginate_button a,
body.dark-mode .business-table-footer .dataTables_paginate .pagination > li > a,
body.dark-mode .business-table-footer .dataTables_paginate .pagination > li > span,
body.dark-mode #scrollable-container .business-table-footer .dataTables_paginate .paginate_button a {
    background: var(--bt-btn-bg) !important;
    border-color: var(--bt-btn-border) !important;
    color: var(--bt-text) !important;
}

html[data-theme="dark"] .business-table-footer .dataTables_paginate .pagination > li.disabled > a,
html[data-theme="dark"] #scrollable-container .business-table-footer .dataTables_paginate .paginate_button.disabled a,
body.dark-mode .business-table-footer .dataTables_paginate .pagination > li.disabled > a,
body.dark-mode #scrollable-container .business-table-footer .dataTables_paginate .paginate_button.disabled a {
    background: var(--table-filter-bg) !important;
    border-color: var(--table-border-soft) !important;
    color: var(--bt-text-muted) !important;
}

/* Shared column widths (standard Superadmin tables) */
table.ajax_view.business-table .bt-col-checkbox,
table.omniteq-business-table .bt-col-checkbox {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
}

table.ajax_view.business-table .bt-col-ref,
table.omniteq-business-table .bt-col-ref {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

table.ajax_view.business-table .bt-col-ref-wide,
table.omniteq-business-table .bt-col-ref-wide {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

table.ajax_view.business-table thead tr.table-label-row th.bt-col-ref-wide {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    word-break: normal;
    hyphens: none;
}

table.ajax_view.business-table .bt-col-compact,
table.omniteq-business-table .bt-col-compact {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

table.ajax_view.business-table .bt-col-email,
table.omniteq-business-table .bt-col-email,
#contact_table.business-table .bt-col-email,
#contact_table.omniteq-business-table .bt-col-email {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

table.ajax_view.business-table#contact_table tbody td.bt-col-email,
table.omniteq-business-table#contact_table tbody td.bt-col-email {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

table.ajax_view.business-table .bt-col-amount,
table.omniteq-business-table .bt-col-amount {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    text-align: right !important;
}

table.ajax_view.business-table .bt-col-date,
table.omniteq-business-table .bt-col-date {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

table.ajax_view.business-table .bt-col-status,
table.omniteq-business-table .bt-col-status {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

table.ajax_view.business-table .bt-col-business-name,
table.omniteq-business-table .bt-col-business-name {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

table.ajax_view.business-table .bt-col-contact {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

table.ajax_view.business-table .bt-col-location,
table.omniteq-business-table .bt-col-location {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    white-space: normal !important;
}

table.ajax_view.business-table .bt-col-created {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

table.ajax_view.business-table .bt-col-center {
    text-align: center !important;
}

table.ajax_view.business-table .bt-col-notes {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
}

#superadmin_subscription_table.business-table,
#superadmin_Coupons_table.business-table {
    min-width: max-content !important;
    width: max-content !important;
}

#activeUsersTableComponent.business-table-card {
    width: 100%;
    min-height: 420px;
}

#activeUsersTableComponent .business-table-body,
#activeUsersTableComponent .business-table-body--flat,
#activeUsersTableComponent .business-table-hscroll-zone,
#activeUsersTableComponent .business-table-pane {
    width: 100%;
    max-width: 100%;
}

#activeUsersTableComponent .business-table-pane > .dataTables_wrapper,
#activeUsersTableComponent .business-table-pane > .dataTables_wrapper.form-inline {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

#activeUsersTableComponent .business-table-scroll-top,
#activeUsersTableComponent .business-table-scroll-bottom {
    display: none !important;
}

#activeUsersTableComponent.business-table-hscroll-zone--active .business-table-scroll-top,
#activeUsersTableComponent.business-table-hscroll-zone--active .business-table-scroll-bottom {
    display: none !important;
}

#superadmin_ActiveUsers_table.business-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

#superadmin_ActiveUsers_table.business-table th.bt-col-ref,
#superadmin_ActiveUsers_table.business-table td.bt-col-ref {
    width: 22%;
    min-width: 0;
    max-width: none;
}

#superadmin_ActiveUsers_table.business-table th.bt-col-business-name,
#superadmin_ActiveUsers_table.business-table td.bt-col-business-name {
    width: 26%;
    min-width: 0;
    max-width: none;
}

#superadmin_ActiveUsers_table.business-table th.bt-col-compact,
#superadmin_ActiveUsers_table.business-table td.bt-col-compact {
    width: 17%;
    min-width: 0;
    max-width: none;
}

#superadmin_ActiveUsers_table.business-table th.bt-col-date,
#superadmin_ActiveUsers_table.business-table td.bt-col-date {
    width: 18%;
    min-width: 0;
    max-width: none;
}

#activeUsersTableComponent .business-table-pane {
    min-height: 280px;
    overflow-x: hidden;
}

#activeUsersTableComponent .business-table-hscroll-zone,
#activeUsersTableComponent .business-table-toolbar,
#activeUsersTableComponent .business-table-footer {
    width: 100%;
}

#superadmin_ActiveUsers_table.business-table tbody td.bt-col-ref,
#superadmin_ActiveUsers_table.business-table tbody td.bt-col-business-name,
#superadmin_ActiveUsers_table.business-table tbody td.bt-col-date {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

#superadmin_ActiveUsers_table.business-table tbody td.bt-col-compact {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#message-history.business-table {
    min-width: 920px !important;
}

#businessUsersTableComponent table.ajax_view.business-table {
    min-width: 820px !important;
}

#sell_table.business-table,
#scrollable-container #sell_table.business-table {
    min-width: 3594px !important;
    width: max-content !important;
}

#expense_table.business-table,
#scrollable-container #expense_table.business-table {
    min-width: 1540px !important;
    width: max-content !important;
}

#payment_account_table.business-table,
#scrollable-container #payment_account_table.business-table {
    min-width: 1400px !important;
    width: max-content !important;
}

#sellListTable .business-table-hscroll-zone,
#invoiceListTable .business-table-hscroll-zone,
#quotationListTable .business-table-hscroll-zone {
    flex: 1 1 auto;
    min-height: 0;
}

#sellListTable .business-table-pane,
#invoiceListTable .business-table-pane,
#quotationListTable .business-table-pane {
    flex: 1 1 auto;
    min-height: 0;
}

#sellListTable .business-table-scroll-top,
#sellListTable .business-table-scroll-bottom,
#invoiceListTable .business-table-scroll-top,
#invoiceListTable .business-table-scroll-bottom,
#quotationListTable .business-table-scroll-top,
#quotationListTable .business-table-scroll-bottom {
    flex-shrink: 0;
}

#sellListTable .business-table-hscroll-zone--active .business-table-scroll-top,
#sellListTable .business-table-hscroll-zone--active .business-table-scroll-bottom,
.business-table-hscroll-zone--active .business-table-scroll-top,
.business-table-hscroll-zone--active .business-table-scroll-bottom,
.business-table-component.business-table-hscroll-zone--active .business-table-scroll-top,
.business-table-component.business-table-hscroll-zone--active .business-table-scroll-bottom {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
}

#businessTableComponent.business-table-component.business-table-card {
    max-height: calc(100vh - 200px);
    height: calc(100vh - 200px);
    min-height: 420px;
    border-radius: 0 !important;
}

#businessTableComponent .business-table-toolbar,
#businessTableComponent .business-table-filters,
#businessTableComponent .business-table-body,
#businessTableComponent .business-table-body--flat,
#businessTableComponent .business-table-hscroll-zone,
#businessTableComponent .business-table-pane,
#businessTableComponent .business-table-footer,
#businessTableComponent .business-table-pane > .dataTables_wrapper,
#businessTableComponent #superadmin_business_table_wrapper,
#businessTableComponent #superadmin_business_table {
    border-radius: 0 !important;
}

#businessTableComponent .business-table-body--flat {
    flex: 1 1 auto;
    min-height: 0;
}

#businessTableComponent .business-table-hscroll-zone {
    flex: 1 1 auto;
    min-height: 0;
}

#businessTableComponent .business-table-pane {
    flex: 1 1 auto;
    min-height: 0;
}

#businessTableComponent .business-table-scroll-top,
#businessTableComponent .business-table-scroll-bottom {
    flex-shrink: 0;
}

#businessTableComponent .business-table-pane > .dataTables_wrapper,
#businessTableComponent .business-table-pane > .dataTables_wrapper.form-inline,
#businessTableComponent #superadmin_business_table_wrapper {
    display: inline-block !important;
    width: max-content !important;
    max-width: none !important;
    min-width: max-content !important;
}

#superadmin_business_table.business-table,
#scrollable-container #superadmin_business_table.business-table {
    width: max-content !important;
}

.business-table-card--standard.business-table-component.business-table-card {
    max-height: calc(100vh - 200px);
    height: calc(100vh - 200px);
    min-height: 420px;
    border-radius: 0 !important;
}

.business-table-card--standard .business-table-toolbar,
.business-table-card--standard .business-table-filters,
.business-table-card--standard .business-table-body,
.business-table-card--standard .business-table-body--flat,
.business-table-card--standard .business-table-hscroll-zone,
.business-table-card--standard .business-table-pane,
.business-table-card--standard .business-table-footer,
.business-table-card--standard .business-table-pane > .dataTables_wrapper,
.business-table-card--standard .dataTables_wrapper,
.business-table-card--standard table.ajax_view.business-table {
    border-radius: 0 !important;
}

.business-table-card--standard .business-table-body--flat,
.business-table-card--standard .business-table-hscroll-zone,
.business-table-card--standard .business-table-pane {
    flex: 1 1 auto;
    min-height: 0;
}

.business-table-card--standard .business-table-scroll-top,
.business-table-card--standard .business-table-scroll-bottom {
    flex-shrink: 0;
}

.business-table-card--standard .business-table-pane > .dataTables_wrapper,
.business-table-card--standard .business-table-pane > .dataTables_wrapper.form-inline {
    display: inline-block !important;
    width: max-content !important;
    max-width: none !important;
    min-width: max-content !important;
}

.business-table-card--standard .business-table-hscroll-zone:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper,
.business-table-card--standard .business-table-hscroll-zone:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper.form-inline,
.business-table-card--standard.business-table-component:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper,
.business-table-card--standard.business-table-component:not(.business-table-hscroll-zone--active) .business-table-pane > .dataTables_wrapper.form-inline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

#sell_table.business-table tfoot tr.footer-total td:first-child {
    text-align: left;
}

#sell_table.business-table tfoot tr.footer-total td.bt-col-location strong {
    white-space: nowrap;
}

.business-table-card--nested {
    margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Global rollout — auto-enhanced widgets & backoffice table overrides  */
/* ------------------------------------------------------------------ */

.omniteq-table-enhanced.business-table-card,
.omniteq-table-enhanced.tw-bg-white.tw-shadow-sm,
.omniteq-table-enhanced.box-primary {
    min-height: 0;
}

.omniteq-table-enhanced .box-header.omniteq-table-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--bt-border-soft);
}

.omniteq-table-enhanced .box-header .box-title.business-table-header__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bt-text);
}

.omniteq-table-enhanced .box-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.omniteq-table-enhanced .box-tools .business-table-add-btn {
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

#scrollable-container .omniteq-table-enhanced .business-table-scroll .dataTables_scrollHead {
    display: none !important;
}

#scrollable-container table.backoffice-data-table.business-table,
#scrollable-container table.backoffice-data-table.business-table.dataTable,
#scrollable-container .omniteq-table-enhanced table.backoffice-data-table.business-table {
    width: max-content !important;
    table-layout: fixed !important;
}

#scrollable-container .omniteq-table-enhanced .dataTables_wrapper {
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

#scrollable-container .omniteq-table-enhanced .dataTables_wrapper .dataTables_scroll {
    overflow: visible !important;
}

#scrollable-container .omniteq-table-enhanced .dataTables_wrapper .dataTables_scrollBody {
    overflow: visible !important;
    max-height: none !important;
}

#scrollable-container .omniteq-table-enhanced .bo-table-scroll-nav {
    display: none !important;
}

/* Hub tables — row / cell parity with All Businesses */
.sa-page .business-table-component table.business-table tbody td {
    padding: 12px 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--table-border-soft, var(--bt-border-soft)) !important;
    color: var(--table-text, var(--bt-text)) !important;
}

.sa-page .business-table-component table.business-table thead tr.table-label-row th {
    padding: 10px 12px 9px !important;
    font-size: 11px !important;
}

.sa-page .business-table-component table.business-table thead tr.table-filter-row th {
    padding: 8px 12px !important;
}

.business-table-component table.business-table th,
.business-table-component table.business-table td {
    box-sizing: border-box !important;
}

.business-table-component table.business-table tbody td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-table-component table.business-table tbody td.bt-col-action,
.business-table-component table.business-table tbody td.action-column {
    overflow: visible !important;
    text-overflow: clip;
}

.business-table-component table.business-table td.bt-col-location {
    white-space: normal !important;
}

/* Back-office invoice & estimate lists */
#invoiceListTable #invoice_table,
#scrollable-container #invoiceListTable #invoice_table {
    min-width: 1524px !important;
    width: max-content !important;
}

#quotationListTable #quotation_table,
#scrollable-container #quotationListTable #quotation_table {
    min-width: 1074px !important;
    width: max-content !important;
}

/* Contact list — match All Businesses table chrome in light and dark themes */
#contactListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#sellListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#invoiceListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#quotationListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#sellReturnBusinessTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#shipmentsBusinessTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#discountsBusinessTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#quoteToCashBusinessTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#onlineOrdersBusinessTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#contractsBusinessTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#crmLeadListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

.business-table-card--kanban > .business-table-toolbar .business-table-toolbar__exports,
.business-table-card--kanban > .business-table-toolbar .business-table-toolbar__search,
.business-table-card--kanban > .business-table-body > .business-table-footer {
    display: none;
}

#crmLeadListTable.business-table-card--kanban .business-table-scroll-shell,
#crmLeadListTable.business-table-card--kanban .business-table-scroll-main {
    overflow: visible;
}

#crmLeadListTable.business-table-card--kanban .lead-kanban-board {
    min-height: calc(100vh - 280px);
}

#crmLeadListTable.business-table-card--kanban .meta-tasks-wrapper {
    min-height: calc(100vh - 300px);
}

#projectListTable.business-table-card--kanban .business-table-scroll-shell,
#projectListTable.business-table-card--kanban .business-table-scroll-main {
    overflow: visible;
}

#projectListTable.business-table-card--kanban .project-kanban-board {
    min-height: calc(100vh - 280px);
}

#projectListTable.business-table-card--kanban .meta-tasks-wrapper {
    min-height: calc(100vh - 300px);
}

#crmFollowUpPage.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#crmCampaignListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#crmAllContactLoginListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#crmCommissionListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#crmLeadToCustomerListTable.business-table-card--standard {
    min-height: auto;
}

#crmProposalListTable.business-table-card--standard,
#taxonomyListTable.business-table-card--standard,
#projectListTable.business-table-card--standard,
#myTaskListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#hrmDashboardSalesTargetsListTable.business-table-card--standard {
    min-height: auto;
}

#salesTargetListTable.business-table-card--standard,
#leaveListTable.business-table-card--standard,
#payrollListPage.business-table-card--standard,
#attendanceListPage.business-table-card--standard,
#hrDocumentsListPage.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

table.ajax_view.business-table#hr_payslips_table .bt-col-ref,
table.omniteq-business-table#hr_payslips_table .bt-col-ref,
table.ajax_view.business-table#hr_payslips_table thead tr.table-label-row th.bt-col-ref,
table.omniteq-business-table#hr_payslips_table thead tr.table-label-row th.bt-col-ref,
table.ajax_view.business-table#hr_payslips_table thead tr.table-filter-row th.bt-col-ref,
table.omniteq-business-table#hr_payslips_table thead tr.table-filter-row th.bt-col-ref,
table.ajax_view.business-table#hr_payslips_table tbody td.bt-col-ref,
table.omniteq-business-table#hr_payslips_table tbody td.bt-col-ref,
table.ajax_view.business-table#my_payrolls .bt-col-ref,
table.omniteq-business-table#my_payrolls .bt-col-ref,
table.ajax_view.business-table#my_payrolls thead tr.table-label-row th.bt-col-ref,
table.omniteq-business-table#my_payrolls thead tr.table-label-row th.bt-col-ref,
table.ajax_view.business-table#my_payrolls thead tr.table-filter-row th.bt-col-ref,
table.omniteq-business-table#my_payrolls thead tr.table-filter-row th.bt-col-ref,
table.ajax_view.business-table#my_payrolls tbody td.bt-col-ref,
table.omniteq-business-table#my_payrolls tbody td.bt-col-ref {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    white-space: nowrap !important;
}

table.ajax_view.business-table#payrolls_table .bt-col-ref,
table.omniteq-business-table#payrolls_table .bt-col-ref,
table.ajax_view.business-table#payrolls_table thead tr.table-label-row th.bt-col-ref,
table.omniteq-business-table#payrolls_table thead tr.table-label-row th.bt-col-ref,
table.ajax_view.business-table#payrolls_table thead tr.table-filter-row th.bt-col-ref,
table.omniteq-business-table#payrolls_table thead tr.table-filter-row th.bt-col-ref,
table.ajax_view.business-table#payrolls_table tbody td.bt-col-ref,
table.omniteq-business-table#payrolls_table tbody td.bt-col-ref {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    white-space: nowrap !important;
}

table.ajax_view.business-table#leave_table .bt-col-ref,
table.omniteq-business-table#leave_table .bt-col-ref,
table.ajax_view.business-table#leave_table thead tr.table-label-row th.bt-col-ref,
table.omniteq-business-table#leave_table thead tr.table-label-row th.bt-col-ref,
table.ajax_view.business-table#leave_table thead tr.table-filter-row th.bt-col-ref,
table.omniteq-business-table#leave_table thead tr.table-filter-row th.bt-col-ref,
table.ajax_view.business-table#leave_table tbody td.bt-col-ref,
table.omniteq-business-table#leave_table tbody td.bt-col-ref {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    white-space: nowrap !important;
}

#customerGroupListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#productListPage.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#stockTransferListTable.business-table-card--standard,
#stockAdjustmentListTable.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#purchaseRequisitionListTable.business-table-card--standard,
#purchaseOrderListTable.business-table-card--standard,
#purchaseListTable.business-table-card--standard,
#purchaseReturnListTable.business-table-card--standard,
#expenseListTable.business-table-card--standard,
#paymentAccountListPage.business-table-card--standard {
    min-height: calc(100vh - 156px);
}

#productListPage .product-stock-report-pane {
    padding: 0 16px 16px;
}

.business-table-card--tabbed > .business-table-body > .business-table-footer,
.business-table-card--tabbed > .business-table-toolbar .business-table-toolbar__exports,
.business-table-card--tabbed > .business-table-toolbar .business-table-toolbar__search {
    display: none;
}

.business-table-tabs {
    margin: 0;
}

.business-table-tabs > .nav-tabs {
    margin-bottom: 0;
    padding: 0 16px;
}

.business-table-tabs > .tab-content {
    padding-top: 0;
}

table.ajax_view.business-table#sell_table td.bt-col-notes,
table.omniteq-business-table#sell_table td.bt-col-notes {
    white-space: normal !important;
}

table.ajax_view.business-table#sell_table td.bt-col-business-name,
table.omniteq-business-table#sell_table td.bt-col-business-name {
    white-space: normal !important;
}

table.ajax_view.business-table#invoice_table td.bt-col-business-name,
table.omniteq-business-table#invoice_table td.bt-col-business-name,
table.ajax_view.business-table#invoice_table td.bt-col-location,
table.omniteq-business-table#invoice_table td.bt-col-location,
table.ajax_view.business-table#quotation_table td.bt-col-business-name,
table.omniteq-business-table#quotation_table td.bt-col-business-name,
table.ajax_view.business-table#quotation_table td.bt-col-location,
table.omniteq-business-table#quotation_table td.bt-col-location,
table.ajax_view.business-table#sell_return_table td.bt-col-business-name,
table.omniteq-business-table#sell_return_table td.bt-col-business-name,
table.ajax_view.business-table#sell_return_table td.bt-col-location,
table.omniteq-business-table#sell_return_table td.bt-col-location,
table.ajax_view.business-table#shipments_table td.bt-col-business-name,
table.omniteq-business-table#shipments_table td.bt-col-business-name,
table.ajax_view.business-table#shipments_table td.bt-col-location,
table.omniteq-business-table#shipments_table td.bt-col-location,
table.ajax_view.business-table#discounts_table td.bt-col-business-name,
table.omniteq-business-table#discounts_table td.bt-col-business-name,
table.ajax_view.business-table#discounts_table td.bt-col-notes,
table.omniteq-business-table#discounts_table td.bt-col-notes,
table.ajax_view.business-table#discounts_table td.bt-col-location,
table.omniteq-business-table#discounts_table td.bt-col-location,
table.ajax_view.business-table#quote_to_cash_table td.bt-col-business-name,
table.omniteq-business-table#quote_to_cash_table td.bt-col-business-name,
table.ajax_view.business-table#online_orders_table td.bt-col-business-name,
table.omniteq-business-table#online_orders_table td.bt-col-business-name,
table.ajax_view.business-table#online_orders_table td.bt-col-location,
table.omniteq-business-table#online_orders_table td.bt-col-location,
table.ajax_view.business-table#contracts_table td.bt-col-business-name,
table.omniteq-business-table#contracts_table td.bt-col-business-name,
table.ajax_view.business-table#contracts_table td.bt-col-ref,
table.omniteq-business-table#contracts_table td.bt-col-ref,
table.ajax_view.business-table#leads_table td.bt-col-business-name,
table.omniteq-business-table#leads_table td.bt-col-business-name,
table.ajax_view.business-table#leads_table td.bt-col-notes,
table.omniteq-business-table#leads_table td.bt-col-notes,
table.ajax_view.business-table#leads_table td.bt-col-date,
table.omniteq-business-table#leads_table td.bt-col-date,
table.ajax_view.business-table#follow_up_table td.bt-col-business-name,
table.omniteq-business-table#follow_up_table td.bt-col-business-name,
table.ajax_view.business-table#follow_up_table td.bt-col-notes,
table.omniteq-business-table#follow_up_table td.bt-col-notes,
table.ajax_view.business-table#follow_up_table td.bt-col-date,
table.omniteq-business-table#follow_up_table td.bt-col-date,
table.ajax_view.business-table#recursive_follow_up_table td.bt-col-business-name,
table.omniteq-business-table#recursive_follow_up_table td.bt-col-business-name,
table.ajax_view.business-table#recursive_follow_up_table td.bt-col-notes,
table.omniteq-business-table#recursive_follow_up_table td.bt-col-notes,
table.ajax_view.business-table#campaigns_table td.bt-col-business-name,
table.omniteq-business-table#campaigns_table td.bt-col-business-name,
table.ajax_view.business-table#all_contact_login_table td.bt-col-business-name,
table.omniteq-business-table#all_contact_login_table td.bt-col-business-name,
table.ajax_view.business-table#all_contact_login_table td.bt-col-created,
table.omniteq-business-table#all_contact_login_table td.bt-col-created,
table.ajax_view.business-table#commission_table td.bt-col-business-name,
table.omniteq-business-table#commission_table td.bt-col-business-name,
table.ajax_view.business-table#commission_table td.bt-col-created,
table.omniteq-business-table#commission_table td.bt-col-created,
table.ajax_view.business-table#follow_ups_by_user_table td.bt-col-created,
table.omniteq-business-table#follow_ups_by_user_table td.bt-col-created,
table.ajax_view.business-table#follow_ups_by_contact_table td.bt-col-business-name,
table.omniteq-business-table#follow_ups_by_contact_table td.bt-col-business-name,
table.ajax_view.business-table#lead_to_customer_conversion td.bt-col-created,
table.omniteq-business-table#lead_to_customer_conversion td.bt-col-created,
table.ajax_view.business-table#proposals td.bt-col-business-name,
table.omniteq-business-table#proposals td.bt-col-business-name,
table.ajax_view.business-table#proposals td.bt-col-notes,
table.omniteq-business-table#proposals td.bt-col-notes,
table.ajax_view.business-table#proposals td.bt-col-created,
table.omniteq-business-table#proposals td.bt-col-created,
table.ajax_view.business-table#category_table td.bt-col-business-name,
table.omniteq-business-table#category_table td.bt-col-business-name,
table.ajax_view.business-table#category_table td.bt-col-notes,
table.omniteq-business-table#category_table td.bt-col-notes,
table.ajax_view.business-table#customer_groups_table td.bt-col-business-name,
table.omniteq-business-table#customer_groups_table td.bt-col-business-name,
table.ajax_view.business-table#customer_groups_table td.bt-col-compact,
table.omniteq-business-table#customer_groups_table td.bt-col-compact,
table.ajax_view.business-table#product_table td.bt-col-business-name,
table.omniteq-business-table#product_table td.bt-col-business-name,
table.ajax_view.business-table#product_table td.bt-col-location,
table.omniteq-business-table#product_table td.bt-col-location,
table.ajax_view.business-table#product_table td.bt-col-compact,
table.omniteq-business-table#product_table td.bt-col-compact,
table.ajax_view.business-table#stock_transfer_table td.bt-col-ref,
table.omniteq-business-table#stock_transfer_table td.bt-col-ref,
table.ajax_view.business-table#stock_transfer_table td.bt-col-location,
table.omniteq-business-table#stock_transfer_table td.bt-col-location,
table.ajax_view.business-table#stock_transfer_table td.bt-col-notes,
table.omniteq-business-table#stock_transfer_table td.bt-col-notes,
table.ajax_view.business-table#stock_adjustment_table td.bt-col-ref,
table.omniteq-business-table#stock_adjustment_table td.bt-col-ref,
table.ajax_view.business-table#stock_adjustment_table td.bt-col-location,
table.omniteq-business-table#stock_adjustment_table td.bt-col-location,
table.ajax_view.business-table#stock_adjustment_table td.bt-col-notes,
table.omniteq-business-table#stock_adjustment_table td.bt-col-notes,
table.ajax_view.business-table#stock_adjustment_table td.bt-col-created,
table.omniteq-business-table#stock_adjustment_table td.bt-col-created,
table.ajax_view.business-table#purchase_requisition_table td.bt-col-ref,
table.omniteq-business-table#purchase_requisition_table td.bt-col-ref,
table.ajax_view.business-table#purchase_requisition_table td.bt-col-location,
table.omniteq-business-table#purchase_requisition_table td.bt-col-location,
table.ajax_view.business-table#purchase_requisition_table td.bt-col-created,
table.omniteq-business-table#purchase_requisition_table td.bt-col-created,
table.ajax_view.business-table#purchase_order_table td.bt-col-ref,
table.omniteq-business-table#purchase_order_table td.bt-col-ref,
table.ajax_view.business-table#purchase_order_table td.bt-col-location,
table.omniteq-business-table#purchase_order_table td.bt-col-location,
table.ajax_view.business-table#purchase_order_table td.bt-col-business-name,
table.omniteq-business-table#purchase_order_table td.bt-col-business-name,
table.ajax_view.business-table#purchase_order_table td.bt-col-created,
table.omniteq-business-table#purchase_order_table td.bt-col-created,
table.ajax_view.business-table#purchase_table td.bt-col-ref,
table.omniteq-business-table#purchase_table td.bt-col-ref,
table.ajax_view.business-table#purchase_table td.bt-col-location,
table.omniteq-business-table#purchase_table td.bt-col-location,
table.ajax_view.business-table#purchase_table td.bt-col-business-name,
table.omniteq-business-table#purchase_table td.bt-col-business-name,
table.ajax_view.business-table#purchase_table td.bt-col-created,
table.omniteq-business-table#purchase_table td.bt-col-created,
table.ajax_view.business-table#purchase_return_datatable td.bt-col-ref,
table.omniteq-business-table#purchase_return_datatable td.bt-col-ref,
table.ajax_view.business-table#purchase_return_datatable td.bt-col-location,
table.omniteq-business-table#purchase_return_datatable td.bt-col-location,
table.ajax_view.business-table#purchase_return_datatable td.bt-col-business-name,
table.omniteq-business-table#purchase_return_datatable td.bt-col-business-name,
table.ajax_view.business-table#expense_table .bt-col-ref,
table.omniteq-business-table#expense_table .bt-col-ref,
table.ajax_view.business-table#expense_table thead tr.table-label-row th.bt-col-ref,
table.omniteq-business-table#expense_table thead tr.table-label-row th.bt-col-ref,
table.ajax_view.business-table#expense_table thead tr.table-filter-row th.bt-col-ref,
table.omniteq-business-table#expense_table thead tr.table-filter-row th.bt-col-ref,
table.ajax_view.business-table#expense_table tbody td.bt-col-ref,
table.omniteq-business-table#expense_table tbody td.bt-col-ref {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    white-space: nowrap !important;
}

table.ajax_view.business-table#expense_table td.bt-col-ref,
table.omniteq-business-table#expense_table td.bt-col-ref,
table.ajax_view.business-table#expense_table td.bt-col-location,
table.omniteq-business-table#expense_table td.bt-col-location,
table.ajax_view.business-table#expense_table td.bt-col-business-name,
table.omniteq-business-table#expense_table td.bt-col-business-name,
table.ajax_view.business-table#expense_table td.bt-col-created,
table.omniteq-business-table#expense_table td.bt-col-created,
table.ajax_view.business-table#expense_table td.bt-col-notes,
table.omniteq-business-table#expense_table td.bt-col-notes {
    white-space: normal !important;
}

table.ajax_view.business-table#payment_account_table .bt-col-ref,
table.omniteq-business-table#payment_account_table .bt-col-ref,
table.ajax_view.business-table#payment_account_table thead tr.table-label-row th.bt-col-ref,
table.omniteq-business-table#payment_account_table thead tr.table-label-row th.bt-col-ref,
table.ajax_view.business-table#payment_account_table thead tr.table-filter-row th.bt-col-ref,
table.omniteq-business-table#payment_account_table thead tr.table-filter-row th.bt-col-ref,
table.ajax_view.business-table#payment_account_table tbody td.bt-col-ref,
table.omniteq-business-table#payment_account_table tbody td.bt-col-ref {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    white-space: nowrap !important;
}

table.ajax_view.business-table#payment_account_table td.bt-col-business-name,
table.omniteq-business-table#payment_account_table td.bt-col-business-name,
table.ajax_view.business-table#payment_account_table td.bt-col-notes,
table.omniteq-business-table#payment_account_table td.bt-col-notes,
table.ajax_view.business-table#payment_account_table td.bt-col-compact,
table.omniteq-business-table#payment_account_table td.bt-col-compact,
table.ajax_view.business-table#payment_account_table td.bt-col-created,
table.omniteq-business-table#payment_account_table td.bt-col-created {
    white-space: normal !important;
}

.payment-account-types-tab__toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 12px;
}

.payment-account-types-pane {
    padding: 0 16px 16px;
}

.payment-account-alert {
    margin: 0 0 16px;
}

.fuel-page-alert,
.fuel-page-intro {
    margin: 0 0 16px;
}

.fuel-pumps-overview-pane,
.payment-account-types-pane {
    padding: 0 16px 16px;
}

/* Fuel station list pages — full section width + table card fill */
#scrollable-container:has(.fuel-station-page-shell) {
    overflow-x: hidden;
}

#scrollable-container > .fuel-station-page-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    #scrollable-container > .fuel-station-page-shell {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
}

.fuel-station-page-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 1rem);
    overflow-x: hidden;
}

.fuel-station-page-shell .fuel-module-nav,
.fuel-station-page-shell .module-hero--hub {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.fuel-station-page-shell > section.fuel-station-page-header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    padding: 4px 0 0;
    margin: 0 0 20px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fuel-station-page-shell > section.fuel-station-page-header .module-hero--hub {
    margin: 0;
}

.fuel-station-page-shell > section.fuel-station-page-header .hub-dashboard-header__nav {
    margin-top: 0;
}

.fuel-station-page-shell > section.content.sa-page.fuel-station-list-section {
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

.fuel-station-page-shell > section.content.sa-page.fuel-station-list-section > .business-table-card,
.fuel-station-page-shell > section.content.sa-page.fuel-station-list-section > .business-table-component {
    flex: 1 1 auto;
    min-height: 420px;
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.fuel-station-page-shell > section.content.sa-page.fuel-station-list-section > :not(.business-table-card):not(.business-table-component) {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
}

.fuel-station-page-shell .business-table-card--standard.business-table-component.business-table-card {
    height: auto !important;
    max-height: none !important;
    min-height: 420px;
    width: 100%;
    max-width: none;
}

.fuel-station-page-shell .business-table-toolbar,
.fuel-station-page-shell .business-table-filters,
.fuel-station-page-shell .business-table-body,
.fuel-station-page-shell .business-table-footer {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.fuel-station-page-shell .business-table-hscroll-zone,
.fuel-station-page-shell .business-table-pane {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.fuel-station-page-shell #fuelSalesListTable.business-table-card--standard,
.fuel-station-page-shell #fuelTanksListTable.business-table-card--standard,
.fuel-station-page-shell #fuelDeliveriesListTable.business-table-card--standard,
.fuel-station-page-shell #fuelReconListTable.business-table-card--standard,
.fuel-station-page-shell #fuelAttendantsListTable.business-table-card--standard,
.fuel-station-page-shell #fuelGradesListTable.business-table-card--standard,
.fuel-station-page-shell #fuelDipsListTable.business-table-card--standard,
.fuel-station-page-shell #fuelCashupsListTable.business-table-card--standard,
.fuel-station-page-shell #fuelFleetListTable.business-table-card--standard,
.fuel-station-page-shell #fuelPumpsListPage.business-table-card--standard,
.fuel-station-page-shell #fuelDashboardTanksTable.business-table-card--standard,
.fuel-station-page-shell #fuelReportListTable.business-table-card--standard,
.fuel-station-page-shell #fuelGenericListTable.business-table-card--standard {
    min-height: 420px;
}

#fuel_sales_table.business-table,
#fuel_tanks_table.business-table,
#fuel_deliveries_table.business-table,
#fuel_recon_table.business-table,
#fuel_attendants_table.business-table,
#fuel_grades_table.business-table,
#fuel_dip_table.business-table,
#fuel_cashup_table.business-table,
#fuel_fleet_table.business-table,
#fuel_nozzles_table.business-table,
#fuel_pumps_table.business-table,
#fuel_dashboard_tanks_table.business-table,
#fuel_report_table.business-table,
#scrollable-container #fuel_sales_table.business-table,
#scrollable-container #fuel_tanks_table.business-table,
#scrollable-container #fuel_deliveries_table.business-table,
#scrollable-container #fuel_recon_table.business-table,
#scrollable-container #fuel_attendants_table.business-table,
#scrollable-container #fuel_grades_table.business-table,
#scrollable-container #fuel_dip_table.business-table,
#scrollable-container #fuel_cashup_table.business-table,
#scrollable-container #fuel_fleet_table.business-table,
#scrollable-container #fuel_nozzles_table.business-table,
#scrollable-container #fuel_pumps_table.business-table,
#scrollable-container #fuel_dashboard_tanks_table.business-table,
#scrollable-container #fuel_report_table.business-table {
    width: max-content !important;
}

/* Fuel station shell — table grid spans full card width (scroll when columns overflow) */
.fuel-station-page-shell .business-table-pane > .dataTables_wrapper,
.fuel-station-page-shell .business-table-pane > .dataTables_wrapper.form-inline {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
}

.fuel-station-page-shell table.ajax_view.business-table,
.fuel-station-page-shell table.omniteq-business-table,
#scrollable-container .fuel-station-page-shell table.ajax_view.business-table,
#scrollable-container .fuel-station-page-shell table.omniteq-business-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: fixed;
}

.fuel-station-page-shell #fuel_sales_table.business-table,
#scrollable-container .fuel-station-page-shell #fuel_sales_table.business-table {
    width: 100% !important;
    min-width: 100% !important;
}

table.ajax_view.business-table#fuel_sales_table td.bt-col-business,
table.omniteq-business-table#fuel_sales_table td.bt-col-business,
table.ajax_view.business-table#fuel_deliveries_table td.bt-col-business,
table.omniteq-business-table#fuel_deliveries_table td.bt-col-business,
table.ajax_view.business-table#fuel_recon_table td.bt-col-business,
table.omniteq-business-table#fuel_recon_table td.bt-col-business,
table.ajax_view.business-table#fuel_nozzles_table td.bt-col-business,
table.omniteq-business-table#fuel_nozzles_table td.bt-col-business,
table.ajax_view.business-table#fuel_sales_table .bt-col-pump,
table.omniteq-business-table#fuel_sales_table .bt-col-pump,
table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-pump,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-pump,
table.ajax_view.business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-pump,
table.omniteq-business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-pump,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-pump,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-pump {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    text-align: center !important;
}

table.ajax_view.business-table#fuel_sales_table .bt-col-payment,
table.omniteq-business-table#fuel_sales_table .bt-col-payment,
table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-payment,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-payment,
table.ajax_view.business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-payment,
table.omniteq-business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-payment,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-payment,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-payment {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.ajax_view.business-table#fuel_sales_table .bt-col-grade,
table.omniteq-business-table#fuel_sales_table .bt-col-grade,
table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-grade,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-grade,
table.ajax_view.business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-grade,
table.omniteq-business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-grade,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-grade,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-grade {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-amount,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-amount,
table.ajax_view.business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-amount,
table.omniteq-business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-amount,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-amount,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-amount {
    text-align: right !important;
}

table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-status,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-status,
table.ajax_view.business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-status,
table.omniteq-business-table#fuel_sales_table thead tr.table-filter-row th.bt-col-status,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-status,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-status {
    text-align: center !important;
}

table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-date,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-date,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-date,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-date {
    text-align: left !important;
    white-space: nowrap !important;
}

table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-grade,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-grade,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-grade,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-grade {
    text-align: left !important;
}

table.ajax_view.business-table#fuel_sales_table thead tr.table-label-row th.bt-col-payment,
table.omniteq-business-table#fuel_sales_table thead tr.table-label-row th.bt-col-payment,
table.ajax_view.business-table#fuel_sales_table tbody td.bt-col-payment,
table.omniteq-business-table#fuel_sales_table tbody td.bt-col-payment {
    text-align: left !important;
}

table.ajax_view.business-table#fuel_deliveries_table td.bt-col-business,
table.omniteq-business-table#fuel_deliveries_table td.bt-col-business,
table.ajax_view.business-table#fuel_recon_table td.bt-col-business,
table.omniteq-business-table#fuel_recon_table td.bt-col-business,
table.ajax_view.business-table#fuel_nozzles_table td.bt-col-business,
table.omniteq-business-table#fuel_nozzles_table td.bt-col-business,
table.ajax_view.business-table#fuel_dip_table td.bt-col-notes,
table.omniteq-business-table#fuel_dip_table td.bt-col-notes,
table.ajax_view.business-table#fuel_fleet_table td.bt-col-notes,
table.omniteq-business-table#fuel_fleet_table td.bt-col-notes,
table.ajax_view.business-table#fuel_report_table td,
table.omniteq-business-table#fuel_report_table td {
    white-space: normal !important;
}

.business-table-view-toggle {
    margin-left: 8px;
}

table.ajax_view.business-table#sell_table .payment-status-label,
table.omniteq-business-table#sell_table .payment-status-label,
table.ajax_view.business-table#invoice_table .payment-status-label,
table.omniteq-business-table#invoice_table .payment-status-label,
table.ajax_view.business-table#sell_return_table .payment-status-label,
table.omniteq-business-table#sell_return_table .payment-status-label,
table.ajax_view.business-table#shipments_table .payment-status-label,
table.omniteq-business-table#shipments_table .payment-status-label,
table.ajax_view.business-table#expense_table .payment-status-label,
table.omniteq-business-table#expense_table .payment-status-label,
table.ajax_view.business-table#purchase_table .payment-status-label,
table.omniteq-business-table#purchase_table .payment-status-label {
    text-decoration: none;
}

button.business-table-add-btn {
    border: none;
    cursor: pointer;
}

button.business-table-add-btn:hover,
button.business-table-add-btn:focus {
    color: var(--bt-primary-text) !important;
}

table.ajax_view.business-table#contact_table td.bt-col-business-name,
table.omniteq-business-table#contact_table td.bt-col-business-name,
table.ajax_view.business-table#contact_table td.bt-col-notes,
table.omniteq-business-table#contact_table td.bt-col-notes {
    white-space: normal !important;
}

html[data-theme="dark"] .business-table-filters__field--checkbox .business-table-filters__checkbox,
body.dark-mode .business-table-filters__field--checkbox .business-table-filters__checkbox {
    color: var(--bt-text);
}

html[data-theme="dark"] .business-table-filters .select2-container--default .select2-selection--single,
body.dark-mode .business-table-filters .select2-container--default .select2-selection--single {
    background: var(--bt-input-bg) !important;
    border-color: var(--bt-input-border) !important;
    color: var(--bt-text) !important;
}

html[data-theme="dark"] .business-table-filters .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .business-table-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bt-text) !important;
}

html[data-theme="dark"] .business-table-filters .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.dark-mode .business-table-filters .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--bt-text-muted) transparent transparent transparent;
}

#invoiceListTable .dataTables_wrapper table.dataTable,
#quotationListTable .dataTables_wrapper table.dataTable,
#sellListTable .dataTables_wrapper table.dataTable {
    width: max-content !important;
    max-width: none !important;
}

#invoiceListTable .business-table-body--flat,
#quotationListTable .business-table-body--flat,
#sellListTable .business-table-body--flat {
    flex: 1 1 auto;
    min-height: 0;
}

#invoiceListTable .business-table-pane > .dataTables_wrapper,
#invoiceListTable .business-table-pane > .dataTables_wrapper.form-inline,
#quotationListTable .business-table-pane > .dataTables_wrapper,
#quotationListTable .business-table-pane > .dataTables_wrapper.form-inline,
#sellListTable .business-table-pane > .dataTables_wrapper,
#sellListTable .business-table-pane > .dataTables_wrapper.form-inline {
    display: inline-block !important;
    width: max-content !important;
    max-width: none !important;
    min-width: max-content !important;
}

/* Dashboard home widgets — compact business-table cards */
.bard-widgets-grid .business-table-card--dashboard.business-table-component {
    min-height: 0;
    max-height: none;
    height: auto;
}

.bard-widgets-grid .business-table-card--dashboard .business-table-header {
    padding: 8px 12px;
    gap: 8px;
}

.bard-widgets-grid .business-table-card--dashboard .business-table-header__title {
    font-size: 1rem;
}

.bard-widgets-grid .business-table-card--dashboard .business-table-header__subtitle {
    font-size: 0.72rem;
}

.bard-widgets-grid .dashboard-widget-header {
    flex-wrap: wrap;
}

.bard-widgets-grid .dashboard-widget-filter {
    min-width: 10rem;
    max-width: 12rem;
    flex-shrink: 0;
}

.bard-widgets-grid .dashboard-widget-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 8px;
    border-bottom: 1px solid var(--bt-border-soft);
}

.bard-widgets-grid .dashboard-widget-kpi {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border-soft);
    font-size: 0.72rem;
    color: var(--bt-text-muted);
    white-space: nowrap;
}

.bard-widgets-grid .dashboard-widget-kpi__label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.64rem;
}

.bard-widgets-grid .dashboard-widget-kpi__value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bt-text);
}

.bard-widgets-grid .dashboard-widget-kpi--danger .dashboard-widget-kpi__value {
    color: var(--bt-badge-declined-text);
}

.bard-widgets-grid .dashboard-widget-kpi--warning .dashboard-widget-kpi__value {
    color: var(--bt-badge-waiting-text);
}

.bard-widgets-grid .business-table-card--dashboard .dashboard-widget-body {
    flex: 0 1 auto;
    min-height: 0;
}

.bard-widgets-grid .business-table-card--dashboard .business-table-pane {
    max-height: 220px;
}

.bard-widgets-grid .business-table-card--dashboard .dashboard-widget-footer {
    padding: 4px 10px;
    min-height: 0;
}

.bard-widgets-grid .business-table-card--dashboard .dashboard-widget-footer .dataTables_info,
.bard-widgets-grid .business-table-card--dashboard .dashboard-widget-footer .dataTables_length,
.bard-widgets-grid .business-table-card--dashboard .dashboard-widget-footer .dataTables_paginate {
    font-size: 0.72rem;
}

.bard-widgets-grid .business-table-card--dashboard .dashboard-widget-mounts {
    display: none !important;
}

.bard-widgets-grid .business-table-card--dashboard table.omniteq-business-table th,
.bard-widgets-grid .business-table-card--dashboard table.omniteq-business-table td {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bard-widgets-grid .business-table-card--dashboard table.omniteq-business-table td.bt-col-action,
.bard-widgets-grid .business-table-card--dashboard table.omniteq-business-table td.action-column {
    overflow: visible !important;
    text-overflow: clip;
}

.bard-widgets-grid .dashboard-widget-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--bt-primary);
    white-space: nowrap;
    text-decoration: none;
}

.bard-widgets-grid .dashboard-widget-action:hover {
    color: var(--bt-primary-hover);
    text-decoration: none;
}

.bard-widgets-grid .dashboard-widget-empty {
    padding: 1rem 1.25rem 1.25rem;
    text-align: center;
    color: var(--bt-text-muted);
}

.bard-widgets-grid .dashboard-widget-empty i {
    color: var(--bt-badge-success-text);
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.bard-widgets-grid .dashboard-widget-empty h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bt-text);
}

.bard-widgets-grid .dashboard-widget-empty p {
    margin: 0;
    font-size: 0.78rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.bard-widgets-grid .business-table-card--dashboard .status-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .bard-widgets-grid .dashboard-widget-filter {
        width: 100%;
        max-width: none;
    }

    .bard-widgets-grid .dashboard-widget-kpis {
        flex-direction: column;
        align-items: stretch;
    }
}
