.table-pro-wrapper,
.global-listing-page .table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.page-data-area {
    width: 100%;
    max-width: 100%;
}

.content-wrapper,
.main-content,
.page-content {
    max-width: none !important;
}

.wide-data-page .container,
.wide-data-page .container-fluid {
    max-width: 100% !important;
}

.app-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-content .table-responsive > table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.table-pro,
.global-listing-page .listing-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.table-pro th,
.table-pro td,
.global-listing-page .listing-table th,
.global-listing-page .listing-table td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.table-pro td,
.global-listing-page .listing-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-pro tbody tr,
.global-listing-page .listing-table tbody tr {
    min-height: 58px;
}

.table-pro .text-cell,
.global-listing-page .listing-table .text-cell {
    max-width: 220px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.table-pro .compact-cell,
.global-listing-page .listing-table .compact-cell {
    line-height: 1.25;
}

.table-pro .number-cell,
.global-listing-page .listing-table .number-cell {
    text-align: right;
    white-space: nowrap;
}

.table-pro .status-cell,
.global-listing-page .listing-table .status-cell {
    width: 120px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.table-pro .action-cell,
.global-listing-page .listing-table .action-cell {
    width: 130px;
    min-width: 130px;
}


.table-pro .cell-name,
.table-pro .cell-title,
.table-pro .product-name-cell,
.global-listing-page .cell-title,
.global-listing-page .product-name-cell {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
    font-weight: 700;
    font-size: 14px;
    max-height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.table-pro .table-picture,
.table-pro .table-avatar,
.table-pro .table-logo,
.global-listing-page .table-picture,
.global-listing-page .table-avatar,
.global-listing-page .table-logo {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.table-scroll-lock {
    max-height: calc(100dvh - var(--topbar-height, 72px) - 220px);
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.page-has-summary .table-scroll-lock {
    max-height: calc(100dvh - var(--topbar-height, 72px) - 280px);
}

.page-simple-list .table-scroll-lock {
    max-height: calc(100dvh - var(--topbar-height, 72px) - 190px);
}

.global-listing-page[data-has-summary="1"] .table-scroll-lock {
    max-height: calc(100dvh - var(--topbar-height, 72px) - 280px);
}

.table-pro th,
.global-listing-page .listing-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
}

.table-pro th.gmt-th-sortable,
.global-listing-page .listing-table th.gmt-th-sortable {
    cursor: pointer;
}

.gmt-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.25rem;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.gmt-sort-link:hover {
    color: #0f172a;
    text-decoration: none;
}

.gmt-sort-label {
    min-width: 0;
}

.gmt-sort-icon {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 0.8rem;
    min-width: 0.8rem;
}

.gmt-sort-caret {
    display: block;
    width: 0;
    height: 0;
    opacity: 0.42;
    transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.gmt-sort-caret-up {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #94a3b8;
}

.gmt-sort-caret-down {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #94a3b8;
}

.gmt-th-sortable:hover .gmt-sort-caret,
.gmt-sort-link:focus-visible .gmt-sort-caret {
    opacity: 0.85;
}

.gmt-th-sorted .gmt-sort-link {
    color: #0f172a;
}

.gmt-sort-state-asc .gmt-sort-caret-up {
    opacity: 1;
    border-bottom-color: #2563eb;
    transform: translateY(-1px);
}

.gmt-sort-state-asc .gmt-sort-caret-down {
    opacity: 0.2;
}

.gmt-sort-state-desc .gmt-sort-caret-down {
    opacity: 1;
    border-top-color: #2563eb;
    transform: translateY(1px);
}

.gmt-sort-state-desc .gmt-sort-caret-up {
    opacity: 0.2;
}

.gmt-sort-state-default .gmt-sort-caret-up,
.gmt-sort-state-default .gmt-sort-caret-down {
    opacity: 0.55;
}

.dataTables_wrapper table.dataTable thead th.sorting,
.dataTables_wrapper table.dataTable thead th.sorting_asc,
.dataTables_wrapper table.dataTable thead th.sorting_desc {
    position: relative;
    padding-right: 1.6rem !important;
    cursor: pointer;
}

.dataTables_wrapper table.dataTable thead th.sorting::before,
.dataTables_wrapper table.dataTable thead th.sorting_asc::before,
.dataTables_wrapper table.dataTable thead th.sorting_desc::before,
.dataTables_wrapper table.dataTable thead th.sorting::after,
.dataTables_wrapper table.dataTable thead th.sorting_asc::after,
.dataTables_wrapper table.dataTable thead th.sorting_desc::after {
    content: "";
    position: absolute;
    right: 0.65rem;
    width: 0;
    height: 0;
    transition: opacity 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.dataTables_wrapper table.dataTable thead th.sorting::before,
.dataTables_wrapper table.dataTable thead th.sorting_asc::before,
.dataTables_wrapper table.dataTable thead th.sorting_desc::before {
    top: calc(50% - 0.5rem);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #94a3b8;
    opacity: 0.45;
}

.dataTables_wrapper table.dataTable thead th.sorting::after,
.dataTables_wrapper table.dataTable thead th.sorting_asc::after,
.dataTables_wrapper table.dataTable thead th.sorting_desc::after {
    top: calc(50% + 0.1rem);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #94a3b8;
    opacity: 0.45;
}

.dataTables_wrapper table.dataTable thead th.sorting_asc::before {
    border-bottom-color: #2563eb;
    opacity: 1;
    transform: translateY(-1px);
}

.dataTables_wrapper table.dataTable thead th.sorting_asc::after {
    opacity: 0.18;
}

.dataTables_wrapper table.dataTable thead th.sorting_desc::after {
    border-top-color: #2563eb;
    opacity: 1;
    transform: translateY(1px);
}

.dataTables_wrapper table.dataTable thead th.sorting_desc::before {
    opacity: 0.18;
}

.table-pro .col-actions,
.global-listing-page .listing-table .col-actions,
.global-listing-page .listing-table th:last-child,
.global-listing-page .listing-table td:last-child {
    position: sticky;
    right: 0;
    background: #ffffff;
    z-index: 6;
}

.table-pro .action-cell,
.global-listing-page .listing-table .action-cell {
    position: sticky;
    right: 0;
    background: #ffffff;
    z-index: 6;
    box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}

.table-pro td.col-actions,
.table-pro th.col-actions,
.global-listing-page .listing-table td.col-actions,
.global-listing-page .listing-table th.col-actions {
    overflow: visible !important;
}

.table-pro .dropdown,
.table-pro .btn-group,
.global-listing-page .listing-table .dropdown,
.global-listing-page .listing-table .btn-group {
    position: static !important;
}

.table-pro .col-picture,
.global-listing-page .col-picture,
.table-pro .col-avatar,
.global-listing-page .col-avatar,
.table-pro .col-logo,
.global-listing-page .col-logo {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    text-align: center;
}

.table-pro .col-product,
.global-listing-page .col-product {
    width: 320px !important;
    min-width: 280px !important;
    max-width: 360px !important;
}

.table-pro .col-actions,
.global-listing-page .listing-table .col-actions {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

.table-pro .col-actions,
.global-listing-page .listing-table .col-actions {
    box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}

.dropdown-menu {
    z-index: 9999;
}

.dropdown-menu.gmt-dropdown-portal {
    position: fixed;
    transform: none !important;
}

.btn-action-group,
.gmt-action-dropdown {
    position: relative;
}

.btn-action-group .dropdown-toggle,
.gmt-action-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0.375rem 0.75rem;
    border-radius: 10px;
    border-color: #d8dee8;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}

.btn-action-group .dropdown-toggle:hover,
.btn-action-group .dropdown-toggle:focus,
.gmt-action-dropdown .dropdown-toggle:hover,
.gmt-action-dropdown .dropdown-toggle:focus,
.btn-action-group.is-open .dropdown-toggle,
.gmt-action-dropdown.is-open .dropdown-toggle {
    background: #f8fafc;
    border-color: #93c5fd;
    color: #0f172a;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.btn-action-group .dropdown-toggle.no-caret::after,
.gmt-action-dropdown .dropdown-toggle.no-caret::after {
    display: none;
}

.dropdown-menu.gmt-action-menu {
    min-width: 196px;
    max-width: min(280px, calc(100vw - 24px));
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    overflow: hidden;
}

.dropdown-menu.gmt-action-menu.is-measuring {
    display: block;
    visibility: hidden;
    pointer-events: none;
}

.dropdown-menu.gmt-action-menu .dropdown-header {
    padding: 0.45rem 0.7rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
}

.dropdown-menu.gmt-action-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-color: rgba(148, 163, 184, 0.18);
}

.dropdown-menu.gmt-action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.dropdown-menu.gmt-action-menu .dropdown-item:hover,
.dropdown-menu.gmt-action-menu .dropdown-item:focus {
    background: #eff6ff;
    color: #0f172a;
    transform: translateX(1px);
}

.dropdown-menu.gmt-action-menu .dropdown-item i {
    flex: 0 0 1rem;
    width: 1rem;
    text-align: center;
}

.dropdown-menu.gmt-action-menu .dropdown-item.text-danger {
    color: #b91c1c;
}

.dropdown-menu.gmt-action-menu .dropdown-item.text-danger:hover,
.dropdown-menu.gmt-action-menu .dropdown-item.text-danger:focus {
    background: #fef2f2;
    color: #991b1b;
}

.dropdown-menu.gmt-action-menu form {
    margin: 0;
}

.dropdown-menu {
    transition: opacity 120ms ease, transform 120ms ease;
    transform-origin: top right;
}

.dropdown-menu.show {
    opacity: 1;
}

.table-pro .col-check,
.global-listing-page .col-check {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: center;
}

.table-pro .col-sku,
.global-listing-page .col-sku {
    width: 190px !important;
    min-width: 180px !important;
    max-width: 220px !important;
}

.table-pro .col-category,
.global-listing-page .col-category {
    width: 160px !important;
    min-width: 150px !important;
    max-width: 200px !important;
}

.table-pro .col-price,
.global-listing-page .col-price,
.table-pro .col-cost-sell,
.global-listing-page .col-cost-sell,
.table-pro .col-value,
.global-listing-page .col-value {
    width: 150px !important;
    min-width: 140px !important;
    max-width: 190px !important;
    text-align: right;
}

.table-pro .col-stock,
.global-listing-page .col-stock {
    width: 110px !important;
    min-width: 100px !important;
    max-width: 140px !important;
    text-align: center;
}

.table-pro .col-date,
.global-listing-page .col-date,
.table-pro .col-updated,
.global-listing-page .col-updated {
    width: 130px !important;
    min-width: 120px !important;
    max-width: 170px !important;
    text-align: center;
}

.inventory-products-table {
    min-width: 1450px;
}

.gmt-mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    .global-listing-page .table-responsive {
        display: none;
    }

    .gmt-mobile-cards {
        display: block;
        padding: 12px;
    }

    .gmt-mobile-card {
        background: #fff;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .gmt-mobile-card-title {
        font-weight: 700;
        color: #0f172a;
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .gmt-mobile-card-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 5px 0;
        border-top: 1px dashed rgba(148, 163, 184, 0.45);
        font-size: 0.875rem;
    }

    .gmt-mobile-card-row:first-of-type {
        border-top: none;
    }

    .gmt-mobile-card-label {
        color: #64748b;
        font-weight: 600;
        flex: 0 0 auto;
        max-width: 45%;
    }

    .gmt-mobile-card-value {
        color: #0f172a;
        font-weight: 500;
        text-align: right;
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gmt-mobile-card-actions {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

.gmt-mobile-card-media {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
}

.gmt-mobile-card-media img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

body.system-mode-advanced .global-listing-page .table-responsive,
body.system-mode-advanced .table-pro-wrapper .table-responsive,
body.system-mode-advanced .data-results-wrapper .table-responsive,
body.system-mode-advanced .table-scroll-wrapper .table-responsive {
    display: block !important;
}

body.system-mode-advanced .gmt-mobile-cards {
    display: none !important;
}

body.system-mode-advanced .global-listing-page .content-card,
body.system-mode-advanced .global-listing-page .pro-data-panel {
    border-radius: 16px;
    overflow: visible;
}

body.system-mode-advanced .global-listing-page .filters-section,
body.system-mode-advanced .global-listing-page .data-toolbar {
    position: sticky;
    top: calc(var(--topbar-height, 72px) + 8px);
    z-index: 25;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.system-mode-advanced .global-listing-page .pro-data-toolbar {
    gap: 0.75rem;
}

body.system-mode-advanced .global-listing-page .pro-toolbar-strip {
    gap: 0.5rem;
}

body.system-mode-advanced .global-listing-page .pro-toolbar-group {
    gap: 0.4rem;
}

body.system-mode-advanced .global-listing-page .pro-search-box {
    position: sticky;
    left: 0;
    z-index: 2;
}

body.system-mode-advanced .global-listing-page .table-scroll-lock {
    max-height: calc(100dvh - var(--topbar-height, 72px) - 210px);
    border-radius: 12px;
}

body.system-mode-advanced .global-listing-page .listing-table,
body.system-mode-advanced .table-pro {
    min-width: 980px;
    font-size: 0.78rem;
}

body.system-mode-advanced .global-listing-page .listing-table th,
body.system-mode-advanced .global-listing-page .listing-table td,
body.system-mode-advanced .table-pro th,
body.system-mode-advanced .table-pro td {
    padding: 8px 10px;
}

body.system-mode-advanced .global-listing-page .listing-table tbody tr,
body.system-mode-advanced .table-pro tbody tr {
    min-height: 44px;
}

body.system-mode-advanced .global-listing-page .listing-table th,
body.system-mode-advanced .table-pro th {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

body.system-mode-advanced .global-listing-page .listing-table td,
body.system-mode-advanced .table-pro td {
    line-height: 1.25;
}

body.system-mode-advanced .global-listing-page .listing-table .dropdown-toggle,
body.system-mode-advanced .table-pro .dropdown-toggle {
    min-height: 30px;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
}
}
