/* Shared list layout: toolbar above + table card below (separate).
   body.veeble-list is added by table-list.js on list pages. Tokens: veeble-tokens.css */
body.veeble-list .table-container {
    position: relative;
    margin-top: 18px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Toolbar sits above the table — no shared white card */
body.veeble-list .table-top {
    position: relative;
    z-index: 30;
    margin: 0 0 14px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.veeble-list .table-top .d-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.veeble-list .table-top .d-flex > label {
    display: none !important;
}

body.veeble-list .view-filter-btns {
    position: relative;
    flex: 0 0 auto;
    z-index: 40;
}

body.veeble-list .view-filter-btns.open,
body.veeble-list .view-filter-btns .dropdown.open,
body.veeble-list .view-filter-btns .btn-group.open {
    z-index: 1060;
}

body.veeble-list .view-filter-btns .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin: 0;
    padding: 0 14px !important;
    color: var(--inv-black) !important;
    background: #fff !important;
    border: 1px solid #e4e7f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

body.veeble-list .view-filter-btns .dropdown-toggle .status,
body.veeble-list .view-filter-btns .dropdown-toggle .status-icon {
    display: none !important;
}

body.veeble-list .view-filter-btns .dropdown-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: var(--inv-black);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 7v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 7v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.veeble-list .view-filter-btns .dropdown-toggle .ls-caret {
    margin-left: 2px;
    color: var(--inv-muted);
    font-size: 10px;
}

/* Status filter menu: prefer full list; if tall, scroll inside (caps vs short tables) */
body.veeble-list .view-filter-btns .dropdown-menu {
    min-width: 200px;
    max-width: min(320px, calc(100vw - 32px));
    max-height: min(240px, 42vh, calc(100vh - 160px));
    margin-top: 8px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: 1px solid #e7eaf2;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
    z-index: 1070 !important;
}

body.veeble-list .view-filter-btns .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    /* Default for "All Entries"; .status overrides with Lagom --status-* */
    color: #344054;
    white-space: nowrap;
}

/* Light hover only — do not override status text color */
body.veeble-list .view-filter-btns .dropdown-menu > li > a:hover,
body.veeble-list .view-filter-btns .dropdown-menu > li.active > a,
body.veeble-list .view-filter-btns .dropdown-menu > li > a:focus {
    background: #f3f4f6 !important;
    color: unset !important;
}

body.veeble-list #clearFilters {
    flex: 0 0 auto;
    color: var(--inv-blue) !important;
    font-weight: 600;
}

body.veeble-list .table-top .table-toolbar-search {
    position: relative;
    flex: 1 1 0;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
}

body.veeble-list .table-top .table-toolbar-search .form-control {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 16px 0 42px;
    color: var(--inv-black);
    background: #fff !important;
    border: 1px solid #e4e7f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 14px;
}

body.veeble-list .table-top .table-toolbar-search .form-control::placeholder {
    color: #a0a6b2;
}

body.veeble-list .table-top .table-toolbar-search .form-control:focus {
    border-color: var(--inv-blue) !important;
    box-shadow: 0 0 0 3px rgba(50, 79, 245, 0.12) !important;
}

body.veeble-list .table-top .table-toolbar-search .search-field-icon {
    position: absolute;
    top: 50% !important;
    left: 14px;
    right: auto;
    display: flex;
    align-items: center;
    color: #a0a6b2;
    pointer-events: none;
    transform: translateY(-50%) !important;
}

body.veeble-list .dataTables_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 0;
}

/* Table card only — separate from the filter/search row above */
body.veeble-list .dataTables_wrapper .listtable {
    flex: 1 0 100%;
    width: 100%;
    order: 1;
    margin: 0;
    padding: 0;
    background: var(--inv-card, var(--card-bg, #fff)) !important;
    border: 1px solid var(--inv-line, var(--veeble-border, #e7eaf2)) !important;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-card, 0 1px 2px rgba(16, 24, 40, 0.04)) !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

body.veeble-list .dataTables_wrapper .dataTables_filter,
body.veeble-list .dataTables_wrapper .dataTables_info {
    display: none !important;
}

body.veeble-list table.table-list {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    background: transparent !important;
}

body.veeble-list table.table-list thead th {
    padding: 14px 16px !important;
    color: var(--inv-muted) !important;
    background: #f7f8fb !important;
    border: 0 !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
}

body.veeble-list table.table-list thead th:first-child {
    border-radius: 12px 0 0 12px;
}

body.veeble-list table.table-list thead th:last-child {
    border-radius: 0 12px 12px 0;
    text-align: right;
}

body.veeble-list table.table-list tbody td {
    padding: 18px 16px !important;
    color: #3c4250;
    background: #fff !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--inv-line) !important;
    font-size: 14px;
    vertical-align: middle;
}

body.veeble-list table.table-list tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.veeble-list table.table-list tbody td:first-child {
    color: var(--inv-black);
    font-weight: 700;
}

body.veeble-list table.table-list .btn-table-collapse {
    display: none;
}

body.veeble-list table.table-list td .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

body.veeble-list table.table-list td .status::before,
body.veeble-list table.table-list td .status::after,
body.veeble-list table.table-list td .status .status-icon {
    display: none !important;
}

/*
 * Status colors = Lagom theme vars (--status-active, etc.)
 * Do not hardcode hex — match Lagom / WHMCS status palette.
 */
body.veeble-list table.table-list td .status-active,
body.veeble-list table.table-list td .status-completed,
body.veeble-list table.table-list td .status-answered {
    color: var(--status-active) !important;
    background: color-mix(in srgb, var(--status-active) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-paid {
    color: var(--status-paid) !important;
    background: color-mix(in srgb, var(--status-paid) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-pending,
body.veeble-list table.table-list td .status-pendingregistration,
body.veeble-list table.table-list td .status-pending-registration,
body.veeble-list table.table-list td .status-pendingtransfer,
body.veeble-list table.table-list td .status-pending-transfer,
body.veeble-list table.table-list td .status-draft,
body.veeble-list table.table-list td .status-open {
    color: var(--status-pending) !important;
    background: color-mix(in srgb, var(--status-pending) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-payment-pending {
    color: var(--status-payment-pending) !important;
    background: color-mix(in srgb, var(--status-payment-pending) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-suspended {
    color: var(--status-suspended) !important;
    background: color-mix(in srgb, var(--status-suspended) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-grace {
    color: var(--status-grace) !important;
    background: color-mix(in srgb, var(--status-grace) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-on-hold,
body.veeble-list table.table-list td .status-onhold {
    color: var(--status-onhold) !important;
    background: color-mix(in srgb, var(--status-onhold) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-in-progress,
body.veeble-list table.table-list td .status-inprogress {
    color: var(--status-inprogress) !important;
    background: color-mix(in srgb, var(--status-inprogress) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-customer-reply,
body.veeble-list table.table-list td .status-customerreply {
    color: var(--status-customer-reply) !important;
    background: color-mix(in srgb, var(--status-customer-reply) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-terminated {
    color: var(--status-terminated) !important;
    background: color-mix(in srgb, var(--status-terminated) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-cancelled,
body.veeble-list table.table-list td .status-canceled {
    color: var(--status-cancelled) !important;
    background: color-mix(in srgb, var(--status-cancelled) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-fraud {
    color: var(--status-fraud) !important;
    background: color-mix(in srgb, var(--status-fraud) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-expired {
    color: var(--status-expired) !important;
    background: color-mix(in srgb, var(--status-expired) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-unpaid {
    color: var(--status-unpaid) !important;
    background: color-mix(in srgb, var(--status-unpaid) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-collections {
    color: var(--status-collections) !important;
    background: color-mix(in srgb, var(--status-collections) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-closed {
    color: var(--status-closed) !important;
    background: color-mix(in srgb, var(--status-closed) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-refunded {
    color: var(--status-refunded) !important;
    background: color-mix(in srgb, var(--status-refunded) 12%, #fff) !important;
}

body.veeble-list table.table-list td .status-redemption,
body.veeble-list table.table-list td .status-transferredaway,
body.veeble-list table.table-list td .status-transferred-away,
body.veeble-list table.table-list td .status-monitoring {
    color: var(--status-default) !important;
    background: color-mix(in srgb, var(--status-default) 12%, #fff) !important;
}

/*
 * Filter dropdown — text + Lagom ::before dot MUST share the same --status-* var.
 * (Dot was Lagom-correct; link color was forcing different text.)
 */
body.veeble-list .view-filter-btns .dropdown-menu .status {
    background: transparent !important;
    padding: 0 !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status::before,
body.veeble-list .view-filter-btns .dropdown-menu .status .status-icon {
    display: inline-block !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status .filter-name {
    color: inherit !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-active,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-completed,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-answered {
    color: var(--status-active) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-active::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-completed::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-answered::before {
    background: var(--status-active) !important;
    background-color: var(--status-active) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-paid {
    color: var(--status-paid) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-paid::before {
    background: var(--status-paid) !important;
    background-color: var(--status-paid) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-pending,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pendingregistration,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pending-registration,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pendingtransfer,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pending-transfer,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-draft,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-open {
    color: var(--status-pending) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pending::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pendingregistration::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pending-registration::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pendingtransfer::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-pending-transfer::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-draft::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-open::before {
    background: var(--status-pending) !important;
    background-color: var(--status-pending) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-payment-pending {
    color: var(--status-payment-pending) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-payment-pending::before {
    background: var(--status-payment-pending) !important;
    background-color: var(--status-payment-pending) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-suspended {
    color: var(--status-suspended) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-suspended::before {
    background: var(--status-suspended) !important;
    background-color: var(--status-suspended) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-grace {
    color: var(--status-grace) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-grace::before {
    background: var(--status-grace) !important;
    background-color: var(--status-grace) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-on-hold,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-onhold {
    color: var(--status-onhold) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-on-hold::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-onhold::before {
    background: var(--status-onhold) !important;
    background-color: var(--status-onhold) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-in-progress,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-inprogress {
    color: var(--status-inprogress) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-in-progress::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-inprogress::before {
    background: var(--status-inprogress) !important;
    background-color: var(--status-inprogress) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-customer-reply,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-customerreply {
    color: var(--status-customer-reply) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-customer-reply::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-customerreply::before {
    background: var(--status-customer-reply) !important;
    background-color: var(--status-customer-reply) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-terminated {
    color: var(--status-terminated) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-terminated::before {
    background: var(--status-terminated) !important;
    background-color: var(--status-terminated) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-cancelled,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-canceled {
    color: var(--status-cancelled) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-cancelled::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-canceled::before {
    background: var(--status-cancelled) !important;
    background-color: var(--status-cancelled) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-fraud {
    color: var(--status-fraud) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-fraud::before {
    background: var(--status-fraud) !important;
    background-color: var(--status-fraud) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-expired {
    color: var(--status-expired) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-expired::before {
    background: var(--status-expired) !important;
    background-color: var(--status-expired) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-unpaid {
    color: var(--status-unpaid) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-unpaid::before {
    background: var(--status-unpaid) !important;
    background-color: var(--status-unpaid) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-collections {
    color: var(--status-collections) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-collections::before {
    background: var(--status-collections) !important;
    background-color: var(--status-collections) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-closed {
    color: var(--status-closed) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-closed::before {
    background: var(--status-closed) !important;
    background-color: var(--status-closed) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-refunded {
    color: var(--status-refunded) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-refunded::before {
    background: var(--status-refunded) !important;
    background-color: var(--status-refunded) !important;
}

body.veeble-list .view-filter-btns .dropdown-menu .status.status-redemption,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-monitoring {
    color: var(--status-default) !important;
}
body.veeble-list .view-filter-btns .dropdown-menu .status.status-redemption::before,
body.veeble-list .view-filter-btns .dropdown-menu .status.status-monitoring::before {
    background: var(--status-default) !important;
    background-color: var(--status-default) !important;
}

body.veeble-list table.table-list td.cell-action {
    text-align: right;
    white-space: nowrap;
}

body.veeble-list table.table-list .btn-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    margin: 0;
    padding: 0 14px !important;
    color: var(--inv-blue) !important;
    background: var(--inv-blue-soft) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 600;
}

body.veeble-list table.table-list .btn-manage:hover,
body.veeble-list table.table-list .btn-manage:focus {
    color: #fff !important;
    background: var(--inv-blue) !important;
}

body.veeble-list .dataTables_length,
body.veeble-list .dataTables_paginate {
    margin: 14px 8px 4px !important;
    padding: 0 !important;
    float: none !important;
}

body.veeble-list .dataTables_length {
    order: 2;
}

body.veeble-list .dataTables_paginate {
    order: 3;
    margin-left: auto !important;
}

body.veeble-list .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--inv-muted);
    font-size: 14px;
    font-weight: 400;
}

body.veeble-list .dataTables_length select {
    width: auto !important;
    height: 36px;
    min-width: 64px;
    padding: 0 28px 0 12px;
    color: var(--inv-black);
    background-color: #fff !important;
    border: 1px solid #e4e7f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.veeble-list .dataTables_paginate .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.veeble-list .dataTables_paginate .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: #6b7280 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 14px;
    text-decoration: none !important;
}

body.veeble-list .dataTables_paginate .page-item.previous .page-link::before {
    content: "‹";
    margin-right: 6px;
}

body.veeble-list .dataTables_paginate .page-item.next .page-link::after {
    content: "›";
    margin-left: 6px;
}

body.veeble-list .dataTables_paginate .page-item.active .page-link {
    color: #fff !important;
    background: var(--inv-blue) !important;
}

body.veeble-list .dataTables_paginate .page-item.disabled .page-link {
    color: #c5c9d3 !important;
    pointer-events: none;
}

body.veeble-list .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    color: var(--inv-blue) !important;
    background: var(--inv-blue-soft) !important;
}

/* Empty state: toolbar still above; message in its own card */
body.veeble-list .table-container--empty {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.veeble-list .message-no-data {
    margin-top: 0;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e7eaf2;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
    text-align: center;
}

body.veeble-list .message-no-data .message-title {
    color: var(--inv-black);
}

@media (max-width: 767px) {
    /*
     * Mobile toolbar: Inactive switcher first (full width),
     * then filter + search stacked below — not side-by-side with inactive.
     */
    body.veeble-list .table-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    body.veeble-list .table-top > [data-inactive-services],
    body.veeble-list .table-top > [data-inactive-domains],
    body.veeble-list .table-top > [data-inactive-tickets],
    body.veeble-list .table-top > label[data-inactive-services],
    body.veeble-list .table-top > label.d-flex[data-inactive-services] {
        order: -1;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 14px;
        background: #fff;
        border: 1px solid #e4e7f0;
        border-radius: 12px;
        box-sizing: border-box;
        gap: 12px;
    }

    body.veeble-list .table-top > .d-flex {
        order: 1;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }

    body.veeble-list .view-filter-btns,
    body.veeble-list .table-top .table-toolbar-search {
        flex: 0 0 auto;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.veeble-list .view-filter-btns .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    /* Mobile: full-width status menu, scroll inside so every status is reachable */
    body.veeble-list .view-filter-btns .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: min(55vh, calc(100vh - 160px));
        margin-top: 6px;
        padding: 8px;
    }

    body.veeble-list .view-filter-btns .dropdown-menu > li > a {
        padding: 12px 14px;
        font-size: 15px;
    }

    body.veeble-list .dataTables_paginate {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Header: no + control — keep header padding normal (don't shift title) */
    body.veeble-list table.table-list thead th:first-child,
    body.veeble-list table.dataTable thead th:first-child {
        position: relative !important;
        padding-left: 16px !important;
    }

    body.veeble-list table.table-list thead .btn-table-collapse,
    body.veeble-list table.dataTable thead .btn-table-collapse {
        display: none !important;
    }

    /* Body rows: leave room for the expand control on the left */
    body.veeble-list table.table-list tbody td:first-child,
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child,
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child {
        position: relative !important;
        padding-left: 52px !important;
    }

    /* Hide DataTables default + glyph (Lagom uses .btn-table-collapse) */
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child::before,
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child::before {
        display: none !important;
        content: none !important;
    }

    /* Plus control: left-aligned chip, content stays to the right */
    body.veeble-list table.table-list .btn-table-collapse,
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child .btn-table-collapse,
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child .btn-table-collapse {
        position: absolute !important;
        top: 50% !important;
        left: 10px !important;
        right: auto !important;
        bottom: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--veeble-blue, #324ff5) !important;
        background: rgba(50, 79, 245, 0.1) !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 2;
    }

    body.veeble-list table.table-list .btn-table-collapse::before,
    body.veeble-list table.dataTable .btn-table-collapse::before {
        font-family: var(--font-family-icons-small, "lagom-small-icons") !important;
        font-size: 12px;
        line-height: 1;
        content: "\e931" !important; /* plus */
    }

    /* Open row: blue chip + minus icon */
    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr.parent .btn-table-collapse,
    body.veeble-list table.table-list tbody tr.parent .btn-table-collapse {
        color: #fff !important;
        background: var(--veeble-blue, #324ff5) !important;
    }

    body.veeble-list table.dataTable.dtr-inline.collapsed > tbody > tr.parent .btn-table-collapse::before,
    body.veeble-list table.table-list tbody tr.parent .btn-table-collapse::before {
        content: "\e92c" !important; /* minus */
    }

    /* Expanded child row — full details under the row */
    body.veeble-list table.dataTable > tbody > tr.child,
    body.veeble-list table.table-list > tbody > tr.child {
        background: #f7f8fb !important;
    }

    body.veeble-list table.dataTable > tbody > tr.child > td,
    body.veeble-list table.table-list > tbody > tr.child > td {
        padding: 10px 14px 14px 52px !important;
        border-bottom: 1px solid var(--inv-line, #e7eaf2) !important;
        background: #f7f8fb !important;
    }

    body.veeble-list table.dataTable > tbody > tr.child ul.dtr-details,
    body.veeble-list table.table-list > tbody > tr.child ul.dtr-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
    }

    body.veeble-list table.dataTable > tbody > tr.child ul.dtr-details > li,
    body.veeble-list table.table-list > tbody > tr.child ul.dtr-details > li {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 8px 0;
        border-bottom: 1px solid #eef0f5;
    }

    body.veeble-list table.dataTable > tbody > tr.child ul.dtr-details > li:last-child,
    body.veeble-list table.table-list > tbody > tr.child ul.dtr-details > li:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    body.veeble-list table.dataTable > tbody > tr.child .dtr-title,
    body.veeble-list table.table-list > tbody > tr.child .dtr-title {
        flex: 0 0 42%;
        color: var(--inv-muted, #667085);
        font-size: 12px;
        font-weight: 600;
    }

    body.veeble-list table.dataTable > tbody > tr.child .dtr-data,
    body.veeble-list table.table-list > tbody > tr.child .dtr-data {
        flex: 1 1 auto;
        text-align: right;
        color: var(--inv-black, #101828);
        font-size: 13px;
        font-weight: 600;
        word-break: break-word;
    }
}
