.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;
}

.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;
}
}
