.stock-list-page {
    --stock-accent: #fe8e3c;
    --stock-primary: #ff596f;
    --stock-ink: #283252;
    --stock-muted: #77809a;
    --stock-line: #e3e8f0;
    --stock-soft: #f6f8fb;
    --stock-card: #fff;
    --stock-header-bg: #f5f7fb;
    --stock-filter-header-bg: #fafbfc;
    --stock-upper-bg: linear-gradient(135deg, #fff 0%, #fffaf7 100%);
    --stock-title-header-height: 64px;
}

.stock-list-page .account-wrapper {
    max-width: 1480px;
    margin: 0 auto;
}

html.dashboard-wide-layout .view-wrapper.stock-list-page.is-webapp .page-content-wrapper,
html.dashboard-wide-layout .view-wrapper.stock-list-page.is-webapp .page-content,
html.dashboard-wide-layout .view-wrapper.stock-list-page.is-webapp .page-content-inner,
html.dashboard-wide-layout .view-wrapper.stock-list-page.is-webapp .account-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

html.dashboard-wide-layout .view-wrapper.stock-list-page.is-webapp .page-content {
    padding-right: 20px !important;
    padding-left: 20px !important;
}

.stock-list-page .stock-list-shell {
    overflow: hidden !important;
    border-radius: 14px !important;
}

.stock-list-page .stock-list-header {
    overflow: visible;
    border-bottom: 0 !important;
    border-radius: 13px 13px 0 0 !important;
    background: var(--stock-upper-bg) !important;
}

.stock-list-page .stock-list-shell > hr {
    display: none !important;
}

.stock-list-page .stock-list-body {
    border-top: 1px solid var(--stock-line);
    border-radius: 0 0 13px 13px;
    background: #fff !important;
}

.stock-list-page .stock-list-heading {
    width: 100%;
    flex-wrap: wrap;
}

.stock-list-page .stock-list-title-wrap {
    flex: 1 1 360px;
}

.stock-list-page .stock-list-heading .get_stock_filter_text {
    max-width: 780px !important;
    margin: 4px 0 0;
    color: var(--stock-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.4;
}

.stock-list-page .stock-list-heading .get_item_filter_text {
    max-width: 780px !important;
    margin: 4px 0 0;
    color: var(--stock-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.4;
}

.stock-list-page .stock-list-heading .code-trigger {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid #f0c5a5;
    border-radius: 50%;
    background: #fff8f2;
    color: #d97732;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.stock-list-page .stock-list-heading .code-trigger:hover,
.stock-list-page .stock-list-heading .code-trigger:focus {
    border-color: var(--stock-accent);
    background: #fff3e8;
    color: #c96520;
}

.stock-list-page .stock-list-heading .code-trigger svg {
    width: 17px;
    height: 17px;
}

.stock-list-page .stock-saved-filters {
    flex: 0 0 100%;
    width: 100%;
}

.stock-list-page .stock-saved-filters .message {
    margin: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.stock-list-page .stock-saved-filters .user_filter_html {
    align-items: center;
    gap: 6px;
    margin: 0 !important;
}

.stock-list-page .stock-saved-filters .user_filter_html:empty {
    display: none;
}

.stock-list-page .stock-saved-filters .user_filter_html > .control {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.stock-list-page .stock-saved-filters .button,
.stock-list-page .stock-saved-filters .tag {
    min-height: 30px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    background: #fff;
    color: #59637b;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: none;
}

.stock-list-page .stock-saved-filters .tags.has-addons {
    align-items: stretch;
    height: 30px;
    margin: 0 !important;
}

.stock-list-page .stock-saved-filters .select_user_filter {
    display: inline-flex;
    height: 30px;
    margin: 0 !important;
}

.stock-list-page .stock-saved-filters .select_user_filter > .label {
    display: inline-flex;
    align-items: center;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    border-radius: 8px 0 0 8px;
    padding: 0 9px;
    font-size: 0.7rem;
    line-height: 1;
}

.stock-list-page .stock-saved-filters .stock-saved-filter-default {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 10px !important;
    font-size: 0.7rem;
    line-height: 1 !important;
    white-space: nowrap;
}

.stock-list-page .stock-saved-filters .del_user_filter {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 !important;
    color: #59637b;
}

.stock-list-page .stock-saved-filters .del_user_filter::before {
    position: static;
    display: block;
    width: auto;
    height: auto;
    background: none;
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transform: none;
}

.stock-list-page .stock-saved-filters .del_user_filter::after {
    display: none;
}

.stock-list-page .stock-saved-filters .del_user_filter:hover,
.stock-list-page .stock-saved-filters .del_user_filter:focus {
    border-color: #f3b0b9;
    background: #fff2f4;
    color: var(--stock-primary);
}

.stock-list-page .stock-filter-panel {
    width: 100%;
    margin-top: 14px;
    border-top: 1px solid var(--stock-line);
    padding-top: 14px !important;
}

.stock-list-page .stock-filter-panel .highlight,
.stock-list-page .stock-filter-panel .form-body,
.stock-list-page .stock-filter-panel .fieldset {
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.stock-list-page .stock-filter-panel .fieldset-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.stock-list-page .stock-filter-panel .fieldset-heading h4 {
    margin: 0;
}

.stock-list-page .stock-filter-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.stock-list-page .stock-filter-heading-actions .button {
    min-height: 38px;
    margin: 0 !important;
    border-radius: 9px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: none;
}

.stock-list-page .stock-filter-heading-actions .button.is-outlined {
    border-color: #f0c5a5;
    background: #fff;
    color: #d97732;
}

.stock-list-page .stock-filter-heading-actions .button.is-outlined:hover,
.stock-list-page .stock-filter-heading-actions .button.is-outlined:focus {
    border-color: var(--stock-accent);
    background: #fff8f2;
    color: #c96520;
}

.stock-list-page .stock-filter-panel .fieldset-heading h4,
.stock-list-page .stock-filter-panel .column > h4 {
    color: #59637b;
    font-size: 0.78rem;
    font-weight: 700;
}

.stock-list-page .stock-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 10px !important;
}

@media (min-width: 1201px) {
    html.dashboard-wide-layout .stock-list-page .stock-filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 171px));
        justify-content: start;
    }
}

.stock-list-page .stock-filter-grid > .column {
    width: auto !important;
    padding: 0 !important;
}

.stock-list-page .stock-filter-grid > .column[style*="display: none"] {
    display: none !important;
}

.stock-list-page .stock-filter-panel .field {
    margin-bottom: 0;
}

.stock-list-page .stock-filter-panel .input,
.stock-list-page .stock-filter-panel select,
.stock-list-page .stock-filter-panel .select,
.stock-list-page .stock-filter-panel .select2-container,
.stock-list-page .stock-filter-panel .select2-selection {
    width: 100% !important;
    height: 38px;
    border-color: #dfe3ea;
    border-radius: 9px;
    background: #fff;
    font-size: 0.82rem;
    box-shadow: none;
}

.stock-list-page .stock-filter-panel .select2-selection {
    display: flex;
    align-items: center;
}

.stock-list-page .stock-filter-panel .input:focus,
.stock-list-page .stock-filter-panel select:focus {
    border-color: var(--stock-accent);
    box-shadow: 0 0 0 3px rgba(254, 142, 60, 0.1);
}

.stock-list-page .stock-filter-panel .field.has-addons .button {
    height: 38px;
    border-color: #dfe3ea;
}

.stock-list-page .stock-filter-panel .field.has-addons .control:first-child .input,
.stock-list-page .stock-filter-panel .field.has-addons .control:first-child .button {
    border-radius: 9px 0 0 9px;
}

.stock-list-page .stock-filter-panel .field.has-addons .control:last-child .input,
.stock-list-page .stock-filter-panel .field.has-addons .control:last-child .button {
    border-radius: 0 9px 9px 0;
}

.stock-list-page .stock-export-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.stock-list-page .stock-export-dropdown .dropdown-menu {
    min-width: 238px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 6px 0 0 !important;
    box-shadow: none !important;
}

.stock-list-page .stock-export-dropdown .dropdown-content {
    overflow: hidden;
    border: 1px solid var(--stock-line);
    border-radius: 11px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 12px 30px rgba(40, 50, 82, 0.13);
}

.stock-list-page .stock-export-dropdown .stock-export-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    border-radius: 8px;
    padding: 8px 10px;
    color: #59637b;
    font-size: 0.74rem;
    font-weight: 700;
}

.stock-list-page .stock-export-dropdown .stock-export-option .icon {
    flex: 0 0 20px;
    color: #d97732;
}

.stock-list-page .stock-export-dropdown .stock-export-option:hover,
.stock-list-page .stock-export-dropdown .stock-export-option:focus {
    background: #fff7f0;
    color: #c96520;
}

.stock-list-page .stock-export-trigger {
    min-width: 104px;
    justify-content: center;
}

.stock-list-page .stock-export-trigger .stock-export-caret {
    margin-left: 2px !important;
    transition: transform 0.18s ease;
}

.stock-list-page .stock-export-dropdown.is-active .stock-export-caret {
    transform: rotate(180deg);
}

.stock-list-page .account-box.is-form .form-body.stock-list-body {
    margin: 0 !important;
    padding: 18px 20px 20px !important;
}

.stock-list-page .stock-list-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px 14px;
    margin: 0 0 12px !important;
}

.stock-list-page .stock-list-toolbar > .column {
    width: auto !important;
    padding: 0 !important;
}

.stock-list-page .stock-list-toolbar .stock-bulk-tools {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
}

.stock-list-page .stock-list-toolbar .stock-bulk-tools > .dropdown {
    margin: 0 !important;
}

.stock-list-page .stock-list-toolbar .stock-bulk-tools .button,
.stock-list-page .stock-list-toolbar .stock-warehouse-tools .button {
    min-height: 38px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.stock-list-page .stock-list-toolbar .stock-legend {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    color: #59637b;
    font-size: 0.72rem;
    line-height: 1.4;
}

.stock-list-page .stock-list-toolbar .stock-legend b {
    font-size: 0.72rem;
    font-weight: 700;
}

.stock-list-page .stock-list-toolbar .stock-legend .status_indicator {
    flex: 0 0 auto;
    margin: 0 1px 0 0;
}

.stock-list-page .stock-specific-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f2f2f2;
    color: #555;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.stock-list-page .stock-specific-trigger:hover {
    background: #eaeaea;
}

.stock-list-page .stock-specific-trigger.is-active {
    border-color: #ffb5c0;
}

.stock-list-page .stock-specific-trigger:focus-visible,
#stock_specific_panel button:focus-visible,
#stock_specific_panel select:focus-visible {
    outline: 2px solid #ff596f;
    outline-offset: 2px;
}

#stock_specific_panel[hidden],
.stock-list-page .stock-specific-summary[hidden] {
    display: none !important;
}

.stock-list-page .stock-specific-summary {
    display: block;
    margin-top: 4px;
    color: #d7385e;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#stock_specific_panel {
    z-index: 1100 !important;
}

#stock_specific_panel .modal-content {
    height: auto;
    width: 540px;
    max-width: calc(100vw - 24px);
}

#stock_specific_panel .modal-card {
    height: auto;
    width: 100%;
    max-height: calc(100dvh - 32px);
}

#stock_specific_panel .modal-card-head,
#stock_specific_panel .modal-card-body,
#stock_specific_panel .modal-card-foot {
    padding: 16px;
}

#stock_specific_panel .modal-card-body {
    overflow-y: auto;
}

#stock_specific_panel .stock-specific-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#stock_specific_panel .stock-specific-match-field {
    grid-column: 1 / -1;
}

#stock_specific_panel .stock-specific-field label {
    display: block;
    margin-bottom: 4px;
    color: #59637b;
    font-size: 13px;
    font-weight: 700;
}

#stock_specific_panel .stock-specific-field select {
    width: 100%;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #d8dfe7;
    border-radius: 8px;
    background: #fff;
    color: #283252;
    font-size: 14px;
}

#stock_specific_panel .stock-specific-help {
    margin: 12px 0 0;
    color: #707a91;
    font-size: 12px;
    line-height: 1.5;
}

#stock_specific_panel .modal-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#stock_specific_panel .stock-specific-footer-actions {
    display: flex;
    gap: 8px;
}

#stock_specific_panel .modal-card-foot button {
    white-space: nowrap;
    height: 36px;
    min-height: 36px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#stock_specific_panel .stock-specific-clear {
    padding: 0;
    border: 0;
    background: transparent;
    color: #707a91;
}

#stock_specific_panel #stock_specific_apply {
    background: #ff596f;
    border-color: #ff596f;
    color: #fff;
}

.is-dark .stock-list-page .stock-specific-trigger {
    background: #323641;
    color: #dce1ed;
}

.is-dark #stock_specific_panel .stock-specific-field label {
    color: #dce1ed;
}

.is-dark #stock_specific_panel select {
    background: #323641;
    border-color: #4c5263;
    color: #dce1ed;
}

.stock-list-page .stock-list-toolbar .datatable-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    flex-basis: 100%;
    margin: -3px 0 0;
    color: var(--stock-muted);
    font-size: 0.7rem;
}

.stock-list-page .stock-list-toolbar .dataTables_info {
    float: none;
    padding: 0;
}

.stock-list-page .stock-quantity-summary {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.stock-list-page .stock-quantity-summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.stock-list-page .stock-quantity-summary-item strong {
    color: var(--stock-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stock-list-page .stock-quantity-summary-item.is-negative strong {
    color: #d7385e;
}

.stock-list-page .stock-quantity-summary-filter {
    height: 36px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #d8dfe7;
    border-radius: 999px;
    color: var(--stock-muted);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.stock-list-page .stock-quantity-summary-filter:hover,
.stock-list-page .stock-quantity-summary-filter.is-active {
    border-color: #ff596f;
    background: #fff1f3;
    color: #d7385e;
}

.stock-list-page .stock-quantity-summary-filter:focus-visible {
    outline: 2px solid #ff596f;
    outline-offset: 2px;
}

.stock-list-page .stock-list-toolbar .stock-warehouse-tools {
    justify-self: end;
}

.stock-list-page .stock-list-toolbar .stock-warehouse-tools .right {
    float: none !important;
    margin: 0 !important;
}

.stock-list-page .stock-list-toolbar .stock-warehouse-tools .field {
    margin: 0;
}

.stock-list-page .stock-list-toolbar .stock-warehouse-tools .button.is-static,
.stock-list-page .stock-list-toolbar .stock-warehouse-tools select,
.stock-list-page .stock-list-toolbar .stock-warehouse-tools .select2-selection {
    height: 38px;
    border-color: var(--stock-line);
    background: #fff;
    font-size: 0.76rem;
}

.stock-list-page .stock-list-toolbar .stock-warehouse-tools .button.is-static {
    border-radius: 9px 0 0 9px;
    background: var(--stock-soft);
    color: #68728a;
    font-weight: 800;
}

.stock-list-page .stock-list-toolbar #warehouse_id,
.stock-list-page .stock-list-toolbar .stock-warehouse-tools .select2-container {
    width: 180px !important;
}

.stock-list-page .stock-list-toolbar .stock-warehouse-tools .select2-selection {
    border-radius: 0;
}

.stock-list-page .stock-list-toolbar #infotop select {
    min-width: 72px;
    height: 38px;
    border: 1px solid var(--stock-line);
    border-radius: 0 9px 9px 0;
    background: #fff;
    color: var(--stock-ink);
    padding: 0 24px 0 9px;
    font-size: 0.76rem;
}

.stock-list-page .stock-list-toolbar .stock-quick-search {
    grid-column: 1 / -1;
}

.stock-list-page .stock-list-toolbar .stock-quick-search .field {
    margin: 0;
}

.stock-list-page .stock-list-toolbar .stock-quick-search .input {
    height: 40px;
    border-color: var(--stock-line);
    border-radius: 9px 0 0 9px;
    background: #fff;
    font-size: 0.82rem;
    box-shadow: none;
}

.stock-list-page .stock-list-toolbar .stock-quick-search .input:focus {
    border-color: var(--stock-accent);
    box-shadow: 0 0 0 3px rgba(254, 142, 60, 0.1);
}

.stock-list-page .stock-list-toolbar .stock-quick-search .button {
    width: 42px;
    height: 40px;
    border-color: var(--stock-line);
    font-weight: 800;
}

.stock-list-page .stock-list-toolbar .stock-quick-search .control:last-child .button {
    border-radius: 0 9px 9px 0;
}

.stock-list-page .stock-toolbar-spacer {
    display: none !important;
}

.stock-list-page .stock-table-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: min(72vh, 760px);
    max-height: min(72vh, 760px);
    min-height: 180px;
    overflow: auto !important;
    border: 1px solid var(--stock-line);
    border-radius: 14px;
    background: #fff;
}

.stock-list-page .stock-table-wrap > .simplebar-wrapper {
    height: 100% !important;
    max-height: 100% !important;
}

.stock-list-page .stock-table-wrap .simplebar-content-wrapper {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.stock-list-page:not(.product-list-page) .stock-table-wrap.is-stock-table-fitted {
    width: 100%;
    max-width: 100%;
}

.stock-list-page .stock-table-wrap.is-horizontal-dragging {
    cursor: grabbing;
}

.stock-list-page .stock-table-wrap.is-horizontal-dragging,
.stock-list-page .stock-table-wrap.is-horizontal-dragging * {
    -webkit-user-select: none !important;
    user-select: none !important;
}

body.stock-column-resizing,
body.stock-column-resizing *,
body.product-column-resizing,
body.product-column-resizing * {
    cursor: col-resize !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.stock-list-page #users-datatable_wrapper {
    width: 100%;
    min-width: 0;
}

.stock-list-page table.dataTable,
.stock-list-page #users-datatable {
    width: 100% !important;
    min-width: 1120px !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.stock-list-page #users-datatable thead th {
    position: sticky;
    top: 0;
    z-index: 122;
    height: 46px;
    border: 0;
    border-bottom: 1px solid var(--stock-line);
    background: var(--stock-header-bg) !important;
    background-clip: padding-box;
    padding: 9px 8px;
    color: #657088;
    font-size: calc(0.68rem + 3px);
    font-weight: 800;
    vertical-align: middle;
}

.stock-list-page #users-datatable thead tr:first-child > th {
    top: 0 !important;
    z-index: 122;
    height: var(--stock-title-header-height) !important;
    box-sizing: border-box;
    background: var(--stock-header-bg) !important;
}

.stock-list-page #users-datatable thead tr:nth-child(2) > th {
    top: var(--stock-title-header-height) !important;
    z-index: 121;
    box-sizing: border-box;
    background: var(--stock-filter-header-bg) !important;
    box-shadow: 0 2px 0 rgba(40, 50, 82, 0.05);
}

.stock-list-page #users-datatable thead tr:last-child th.get_total_price {
    height: 42px;
    box-sizing: border-box;
    background: var(--stock-filter-header-bg) !important;
    padding: 4px 8px !important;
    overflow: hidden;
}

.stock-list-page #users-datatable thead th.get_total_price input,
.stock-list-page #users-datatable thead th.get_total_price select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 34px;
    margin: 0;
    box-sizing: border-box;
}

.stock-list-page #users-datatable tbody td {
    border: 0;
    border-bottom: 1px solid #edf0f5;
    background: #fff;
    padding: 12px 8px;
    color: var(--stock-ink);
    font-size: 0.7rem;
    line-height: 1.42;
    vertical-align: middle;
    overflow-wrap: anywhere;
    -webkit-user-select: text;
    user-select: text;
}

.stock-list-page #users-datatable tbody tr:last-child td {
    border-bottom: 0;
}

.stock-list-page #users-datatable tbody tr:hover td {
    background: #fffaf8;
}

.stock-list-page:not(.product-list-page) #users-datatable thead tr:first-child > th {
    overflow: visible;
}

.stock-list-page:not(.product-list-page) #users-datatable .stock-column-label {
    pointer-events: none;
}

.stock-list-page:not(.product-list-page) #users-datatable .stock-column-resizer {
    position: absolute;
    top: 0;
    right: -6px;
    z-index: 12;
    display: block;
    width: 12px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
}

.stock-list-page:not(.product-list-page) #users-datatable .stock-column-resizer::after {
    position: absolute;
    top: 8px;
    right: 5px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: rgba(101, 112, 136, 0.16);
    content: "";
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.stock-list-page:not(.product-list-page) #users-datatable .stock-column-resizer:hover::after,
.stock-list-page:not(.product-list-page) #users-datatable .stock-column-resizer:focus-visible::after,
.stock-list-page:not(.product-list-page) #users-datatable .stock-column-resizer.is-active::after {
    background: #ff596f;
    box-shadow: 0 0 0 2px rgba(255, 89, 111, 0.14);
}

.stock-list-page:not(.product-list-page) #users-datatable .stock-column-resizer:focus-visible {
    outline: 0;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable {
    width: var(--stock-resized-table-width) !important;
    min-width: var(--stock-resized-table-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(1),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(1) {
    width: var(--stock-column-1-width) !important;
    min-width: var(--stock-column-1-width) !important;
    max-width: var(--stock-column-1-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(2),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(2) {
    width: var(--stock-column-2-width) !important;
    min-width: var(--stock-column-2-width) !important;
    max-width: var(--stock-column-2-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(3),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(3) {
    width: var(--stock-column-3-width) !important;
    min-width: var(--stock-column-3-width) !important;
    max-width: var(--stock-column-3-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(4),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(4) {
    width: var(--stock-column-4-width) !important;
    min-width: var(--stock-column-4-width) !important;
    max-width: var(--stock-column-4-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(5),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(5) {
    width: var(--stock-column-5-width) !important;
    min-width: var(--stock-column-5-width) !important;
    max-width: var(--stock-column-5-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(6),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(6) {
    width: var(--stock-column-6-width) !important;
    min-width: var(--stock-column-6-width) !important;
    max-width: var(--stock-column-6-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(7),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(7) {
    width: var(--stock-column-7-width) !important;
    min-width: var(--stock-column-7-width) !important;
    max-width: var(--stock-column-7-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable th:nth-child(8),
.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable td:nth-child(8) {
    width: var(--stock-column-8-width) !important;
    min-width: var(--stock-column-8-width) !important;
    max-width: var(--stock-column-8-width) !important;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable tbody td {
    overflow: hidden;
}

.stock-list-page:not(.product-list-page) #users-datatable.is-stock-column-resizable tbody td:nth-child(7) > .row-action {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* The two factory-code columns use the same resize flow as the stock columns. */
.stock-list-page:not(.product-list-page) #users-datatable.has-vendor-code-columns.is-stock-column-resizable th:nth-child(9),
.stock-list-page:not(.product-list-page) #users-datatable.has-vendor-code-columns.is-stock-column-resizable td:nth-child(9) {
    width: var(--stock-column-9-width) !important;
    min-width: var(--stock-column-9-width) !important;
    max-width: var(--stock-column-9-width) !important;
}
.stock-list-page:not(.product-list-page) #users-datatable.has-vendor-code-columns.is-stock-column-resizable th:nth-child(10),
.stock-list-page:not(.product-list-page) #users-datatable.has-vendor-code-columns.is-stock-column-resizable td:nth-child(10) {
    width: var(--stock-column-10-width) !important;
    min-width: var(--stock-column-10-width) !important;
    max-width: var(--stock-column-10-width) !important;
}
.stock-list-page:not(.product-list-page) #users-datatable.has-vendor-code-columns.is-stock-column-resizable tbody td:nth-child(9) > .row-action {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.stock-list-page #users-datatable tbody td:nth-child(1) > div > .control {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.stock-list-page #users-datatable tbody td:nth-child(1) > div > .control > br {
    display: none;
}

.stock-list-page #users-datatable tbody td:nth-child(1) > div > .control > code {
    display: block;
    max-width: 100%;
    margin: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.stock-list-page #users-datatable th:nth-child(1),
.stock-list-page #users-datatable td:nth-child(1) {
    width: 62px !important;
    text-align: center;
}

.stock-list-page #users-datatable th:nth-child(2),
.stock-list-page #users-datatable td:nth-child(2) {
    width: 94px !important;
    text-align: center;
}

.stock-list-page #users-datatable th:nth-child(3),
.stock-list-page #users-datatable td:nth-child(3) {
    width: auto !important;
}

.stock-list-page #users-datatable th:nth-child(4),
.stock-list-page #users-datatable td:nth-child(4),
.stock-list-page #users-datatable th:nth-child(5),
.stock-list-page #users-datatable td:nth-child(5) {
    width: 92px !important;
    text-align: center;
}

.stock-list-page #users-datatable th:nth-child(6),
.stock-list-page #users-datatable td:nth-child(6) {
    width: 68px !important;
    text-align: center !important;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) th:nth-child(7),
.stock-list-page #users-datatable.has-vendor-code-columns th:nth-child(9),
.stock-list-page #users-datatable:not(.has-vendor-code-columns) td:nth-child(7),
.stock-list-page #users-datatable.has-vendor-code-columns td:nth-child(9) {
    width: 150px !important;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) th:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns th:nth-child(10),
.stock-list-page #users-datatable:not(.has-vendor-code-columns) td:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns td:nth-child(10) {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    box-sizing: border-box;
    padding-right: 6px !important;
    padding-left: 6px !important;
    text-align: center !important;
}

.stock-list-page #users-datatable col.stock-actions-col {
    width: 60px !important;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) thead th:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns thead th:nth-child(10) {
    right: 0;
    z-index: 130;
    position: sticky !important;
    border-left: 1px solid var(--stock-line);
    background: var(--stock-header-bg) !important;
    box-shadow: -8px 0 14px rgba(45, 54, 78, 0.06);
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) thead tr:first-child > th:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns thead tr:first-child > th:nth-child(10) {
    z-index: 130;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) thead tr:nth-child(2) > th:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns thead tr:nth-child(2) > th:nth-child(10) {
    z-index: 129;
    background: var(--stock-filter-header-bg) !important;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) tbody td:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns tbody td:nth-child(10) {
    right: 0;
    z-index: 100;
    position: sticky !important;
    border-left: 1px solid #edf0f5;
    background: #fff !important;
    box-shadow: -8px 0 14px rgba(45, 54, 78, 0.06);
    isolation: isolate;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) tbody tr:hover td:nth-child(8),
.stock-list-page #users-datatable.has-vendor-code-columns tbody tr:hover td:nth-child(10) {
    background: #fffaf8 !important;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) tbody td:nth-child(7),
.stock-list-page #users-datatable.has-vendor-code-columns tbody td:nth-child(9) {
    overflow: hidden;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) tbody td:nth-child(8) > .row-action,
.stock-list-page #users-datatable.has-vendor-code-columns tbody td:nth-child(10) > .row-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    max-width: 32px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

.stock-list-page #users-datatable:not(.has-vendor-code-columns) tbody td:nth-child(8) > .row-action .button,
.stock-list-page #users-datatable.has-vendor-code-columns tbody td:nth-child(10) > .row-action .button {
    margin: 0 auto;
}

.stock-list-page #users-datatable tbody td:nth-child(2) img.is-user {
    width: 68px !important;
    height: 68px;
    border: 1px solid #edf0f5;
    border-radius: 10px !important;
    background: #f7f8fb;
    object-fit: contain;
}

.stock-list-page #users-datatable tbody td:nth-child(4) > .stock-available-cell-container,
.stock-list-page #users-datatable tbody td:nth-child(5) > div,
.stock-list-page #users-datatable tbody td:nth-child(6) > div {
    display: flex !important;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 112px !important;
    margin-right: auto;
    margin-left: auto;
}

.stock-list-page #users-datatable tbody td:nth-child(4) > .stock-available-cell-container {
    gap: 4px;
    height: auto;
    padding-bottom: 4px;
}

.stock-list-page #users-datatable tbody td:nth-child(5) > div,
.stock-list-page #users-datatable tbody td:nth-child(6) > div {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    text-align: center !important;
}

.stock-list-page #users-datatable tbody td:nth-child(5) span[id^="warehouse_qty_oh_"],
.stock-list-page #users-datatable tbody td:nth-child(6) .show_incoming_detail {
    width: 100% !important;
    text-align: center !important;
}

.stock-list-page #users-datatable .stock-available-cell-wrap {
    display: flex !important;
    align-items: center;
    flex-direction: column;
    width: 60px;
    padding-bottom: 0 !important;
}

.stock-list-page #users-datatable .total_price.existed_qty {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.stock-list-page #users-datatable .total_price.existed_qty > .dropdown {
    order: 1;
    transform: translateY(-2px);
}

.stock-list-page #users-datatable .total_price.existed_qty button.hideeditqty {
    position: relative;
    justify-content: center;
    width: 60px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    color: var(--stock-ink);
    font-size: 16px !important;
    font-weight: 700 !important;
}

.stock-list-page #users-datatable .total_price.existed_qty button.hideeditqty > span[id^="warehouse_qty_wi_"] {
    width: auto !important;
    text-align: center !important;
}

.stock-list-page #users-datatable .total_price.existed_qty .stock_qty_value,
.stock-list-page #users-datatable tbody td:nth-child(5) .stock_qty_value,
.stock-list-page #users-datatable tbody td:nth-child(6) .show_incoming_detail {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.stock-list-page #users-datatable tbody td:nth-child(6) .show_incoming_detail {
    display: block;
}

.stock-list-page #users-datatable .stock-adjustment-record-link {
    order: 2;
    position: static !important;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    margin-top: 3px;
    color: var(--stock-accent);
    font-size: 15px;
    font-weight: 400;
    line-height: 26px !important;
}

.stock-list-page #users-datatable .stock-available-cell-container.is-shared-stock {
    min-height: 154px !important;
}

.stock-list-page #users-datatable .stock-available-cell-container.is-shared-stock .stock-adjustment-record-link {
    z-index: 4;
}

.stock-list-page #users-datatable .total_price.existed_qty > .status_indicator {
    order: 3;
}

.stock-list-page #users-datatable .total_price.existed_qty > br {
    display: none;
}

.stock-list-page #users-datatable .stock-all-warehouse-badge {
    bottom: auto !important;
    left: auto !important;
    position: static !important;
    flex: 0 0 auto;
    margin-top: 0;
    transform: none !important;
}

.stock-list-page #users-datatable .shared-stock-estimated-availability,
.stock-list-page #users-datatable .shared-stock-source-product {
    position: static !important;
    flex: 0 0 auto;
    color: #8a5a00;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: none !important;
    white-space: nowrap;
}

.stock-list-page #users-datatable .shared-stock-source-product {
    color: var(--stock-accent);
}

.stock-list-page #users-datatable .stock-photo-editor {
    position: relative;
    display: inline-flex;
    width: 68px;
    height: 68px;
    vertical-align: middle;
}

.stock-list-page #users-datatable .stock-photo-edit-button {
    position: absolute;
    right: -5px;
    bottom: -5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--stock-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(56, 65, 86, 0.14);
    color: var(--stock-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.stock-list-page #users-datatable .stock-photo-edit-button:hover,
.stock-list-page #users-datatable .stock-photo-edit-button:focus {
    border-color: var(--stock-accent);
    box-shadow: 0 4px 12px rgba(255, 91, 116, 0.2);
    color: var(--stock-accent);
}

.stock-list-page #users-datatable .stock-photo-edit-button i {
    font-size: 13px;
    line-height: 1;
}

.stock-list-page #users-datatable .h-avatar {
    min-width: 0 !important;
}

.stock-list-page #users-datatable .show_item_name {
    color: var(--stock-ink);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.stock-list-page #users-datatable code {
    border-radius: 6px;
    background: #f4f6fa;
    padding: 2px 5px;
    color: #59627a !important;
    font-size: 0.64rem;
    white-space: normal;
}

.stock-list-page #users-datatable .tag {
    border-radius: 7px;
    font-size: 0.63rem;
    font-weight: 800;
}

.product-list-page #users-datatable .product-special-tag {
	font-weight: 700 !important;
	margin-left: 5px;
}

.product-list-page #users-datatable .product-special-tag--reservation {
	background: #e8f1ff !important;
	color: #356ac3 !important;
}

.product-list-page #users-datatable .product-special-tag--voucher {
	background: #f3e8ff !important;
	color: #7c3aed !important;
}

.product-list-page #users-datatable .product-special-tag--water-voucher {
	background: #fff4e5 !important;
	color: #b45309 !important;
}

.product-list-page #users-datatable .product-special-tag--water-plan {
	background: #e7f8f2 !important;
	color: #08785c !important;
}

.stock-list-page #users-datatable .row-action {
    min-width: 0 !important;
    max-width: none !important;
    color: var(--stock-ink);
    text-align: left !important;
}

.stock-list-page #users-datatable .row-action > span {
    display: block;
    padding-right: 0 !important;
    font-size: calc(0.68rem + 2px);
    line-height: 1.65;
}

.stock-list-page #users-datatable .stock-price-cell {
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    container-type: inline-size;
    text-align: left !important;
}

.stock-list-page #users-datatable .stock-price-card {
    position: relative;
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
    color: var(--stock-ink);
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: left;
}

.stock-list-page #users-datatable .stock-price-flags {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stock-list-page #users-datatable .stock-price-flags:empty {
    display: none;
}

.stock-list-page #users-datatable .stock-price-line {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr) 22px;
    gap: 4px;
    min-width: 0;
}

.stock-list-page #users-datatable .stock-price-line-primary {
    min-height: 30px;
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    background: #f7f9fc;
    padding: 3px 4px 3px 7px;
}

.stock-list-page #users-datatable .stock-price-pos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 3px;
}

.stock-list-page #users-datatable .stock-price-pos-list .stock-price-line {
    min-height: 24px;
    border: 1px solid #f0f2f6;
    border-radius: 6px;
    background: #fff;
    padding: 2px 4px;
}

.stock-list-page #users-datatable .stock-price-pos-list .stock-price-line:last-child {
    border-bottom: 1px solid #f0f2f6;
}

.stock-list-page #users-datatable .stock-price-label {
    min-width: 0;
    color: #7a849a;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.stock-list-page #users-datatable .stock-price-line-primary .stock-price-label {
    color: #4f5a72;
    font-weight: 800;
}

.stock-list-page #users-datatable .stock-price-amount {
    display: inline-flex;
    align-items: baseline;
    justify-self: end;
    gap: 5px;
    min-width: 0;
    color: var(--stock-ink);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}

.stock-list-page #users-datatable .stock-price-line-primary .stock-price-amount {
    font-size: 0.88rem;
}

.stock-list-page #users-datatable .stock-price-card .status_indicator {
    position: static !important;
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border: 1px solid #fff;
    vertical-align: middle;
}

.stock-list-page #users-datatable .stock-price-edit,
.stock-list-page #users-datatable .stock-price-actions a[class*="_price-panel"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #e1e6ef;
    border-radius: 7px;
    background: #fff;
    color: #ff596f;
    font-size: 11px;
    line-height: 1;
}

.stock-list-page #users-datatable .stock-price-edit:hover,
.stock-list-page #users-datatable .stock-price-edit:focus,
.stock-list-page #users-datatable .stock-price-actions a[class*="_price-panel"]:hover,
.stock-list-page #users-datatable .stock-price-actions a[class*="_price-panel"]:focus {
    border-color: #ff596f;
    box-shadow: 0 3px 9px rgba(255, 89, 111, 0.14);
}

.stock-list-page #users-datatable .stock-price-edit-spacer {
    width: 22px;
    height: 1px;
}

.stock-list-page #users-datatable .stock-price-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    padding-top: 1px;
}

.stock-list-page #users-datatable .stock-price-detail-link,
.stock-list-page #users-datatable .stock-price-actions .show_wholesale_price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 23px;
    border: 1px solid rgba(255, 89, 111, 0.2);
    border-radius: 999px;
    background: #fff3f5;
    padding: 2px 7px;
    color: #ff596f !important;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.2;
}

.stock-list-page #users-datatable .stock-price-actions .stock-member-price-display:empty,
.stock-list-page #users-datatable .stock-price-actions .stock-member-lv-price-display:empty {
    display: none;
}

.stock-list-page #users-datatable .stock-member-price-display,
.stock-list-page #users-datatable .stock-member-lv-price-display {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.stock-list-page #users-datatable .stock-special-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 23px;
    border: 1px solid rgba(255, 89, 111, 0.24);
    border-radius: 8px;
    background: #fff7f8;
    padding: 3px 7px;
    color: #c9485b;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.stock-list-page #users-datatable .stock-special-price-badge.is-zero {
    border-color: rgba(214, 73, 92, 0.28);
    background: #fff0f2;
    color: #d6495c;
}

.stock-list-page #users-datatable .stock-special-price-amount {
    color: var(--stock-ink);
    font-size: 0.74rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.stock-list-page #users-datatable .stock-price-actions .tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    height: auto !important;
    min-height: 22px;
    line-height: 1.2 !important;
}

@container (min-width: 260px) {
    .stock-list-page #users-datatable .stock-price-pos-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stock-list-page #users-datatable .stock-price-pos-list .stock-price-line {
        align-content: center;
        grid-template-areas:
            "label edit"
            "amount edit";
        grid-template-columns: minmax(0, 1fr) 20px;
        gap: 0 3px;
        min-height: 34px;
        padding: 3px 4px;
    }

    .stock-list-page #users-datatable .stock-price-pos-list .stock-price-label {
        grid-area: label;
        font-size: 0.62rem;
    }

    .stock-list-page #users-datatable .stock-price-pos-list .stock-price-amount {
        grid-area: amount;
        justify-self: start;
        font-size: 0.72rem;
    }

    .stock-list-page #users-datatable .stock-price-pos-list .stock-price-edit,
    .stock-list-page #users-datatable .stock-price-pos-list .stock-price-edit-spacer {
        grid-area: edit;
    }

    .stock-list-page #users-datatable .stock-price-actions {
        justify-content: flex-end;
        padding-top: 0;
    }
}

@container (min-width: 300px) {
    .stock-list-page #users-datatable .stock-price-card {
        align-items: center;
        grid-template-areas:
            "online actions"
            "pos pos";
        grid-template-columns: minmax(126px, 1fr) auto;
        column-gap: 6px;
        row-gap: 3px;
    }

    .stock-list-page #users-datatable .stock-price-line-primary {
        grid-area: online;
    }

    .stock-list-page #users-datatable .stock-price-pos-list {
        grid-area: pos;
    }

    .stock-list-page #users-datatable .stock-price-actions {
        grid-area: actions;
    }
}

@container (min-width: 520px) {
    .stock-list-page #users-datatable .stock-price-card {
        align-items: center;
        grid-template-areas: "online pos actions";
        grid-template-columns: minmax(126px, 0.72fr) minmax(240px, 1.5fr) auto;
        column-gap: 7px;
    }

    .stock-list-page #users-datatable .stock-price-line-primary {
        align-self: stretch;
    }

    .stock-list-page #users-datatable .stock-price-pos-list .stock-price-line {
        position: relative;
    }

    .stock-list-page #users-datatable .stock-price-actions {
        flex-wrap: nowrap;
    }
}

.stock-list-page #users-datatable .row-action hr {
    height: 1px;
    margin: 5px 0;
    background: #edf0f5 !important;
}

.stock-list-page #users-datatable .stock-money {
    display: inline-flex;
    align-items: baseline;
    color: var(--stock-ink);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}

.stock-list-page #users-datatable .stock-money__affix,
.stock-list-page #users-datatable .stock-money__fraction,
.stock-list-page #users-datatable .currencySymbol {
    font-size: 70%;
    font-weight: 800;
}

.stock-list-page #users-datatable .stock-money__affix {
    margin-right: 2px;
}

.stock-list-page #users-datatable .stock-money__fraction {
    margin-left: 1px;
}

.stock-price-detail-modal .modal-content {
    width: min(760px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 32px));
    max-width: 760px;
    max-height: none;
}

.stock-wholesale-modal .modal-content,
.stock-wholesale-add-modal .modal-content {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
}

.stock-price-detail-modal .modal-card,
.stock-wholesale-modal .modal-card,
.stock-wholesale-add-modal .modal-card {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e2e7ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(35, 43, 69, 0.18);
}

.stock-price-detail-modal .modal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(27, 35, 58, 0.22);
}

.stock-price-detail-modal .modal-card-head,
.stock-wholesale-modal .modal-card-head,
.stock-wholesale-add-modal .modal-card-head {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 12px;
    border-bottom: 1px solid #e8ebf1;
    background: #fff;
    padding: 15px 20px;
}

.stock-price-detail-modal .modal-card-head {
    flex: 0 0 68px;
    min-height: 68px;
    padding: 10px 18px;
}

.stock-modal-heading {
    min-width: 0;
}

.stock-modal-heading h3 {
    margin: 0;
    color: var(--stock-ink);
    font-size: 1.17rem;
    font-weight: 800;
    line-height: 1.3;
}

.stock-modal-heading p {
    margin: 3px 0 0;
    color: #929bb0;
    font-size: 0.81rem;
    line-height: 1.35;
}

.stock-price-detail-modal .modal-card-head > .h-modal-close,
.stock-wholesale-modal .modal-card-head > .h-modal-close,
.stock-wholesale-add-modal .modal-card-head > .h-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e7ef;
    border-radius: 50%;
    background: #fff;
    color: #8b94a7;
}

.stock-price-detail-modal .modal-card-head > .h-modal-close {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.stock-price-detail-modal .modal-card-head > .h-modal-close:hover {
    background: #f3f5f8;
}

.stock-price-detail-modal .modal-card-body,
.stock-wholesale-modal .modal-card-body,
.stock-wholesale-add-modal .modal-card-body {
    max-height: min(76vh, 760px);
    overflow-y: auto;
    background: #f7f8fb;
    padding: 18px 20px;
}

.stock-price-detail-modal .modal-card-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f6f8fb;
    padding: 14px;
}

.stock-price-detail-body,
.stock-wholesale-list-wrap {
    padding: 0 !important;
}

.stock-price-modal-content {
    display: grid;
    gap: 14px;
}

.stock-price-modal-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
}

.stock-price-modal-product > div {
    min-width: 0;
}

.stock-price-modal-product h4 {
    overflow: hidden;
    margin: 0;
    color: var(--stock-ink);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-price-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 5px;
    color: #929bb0;
    font-size: 0.7rem;
}

.stock-price-modal-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(255, 89, 111, 0.26);
    border-radius: 9px;
    background: #fff3f5;
    padding: 7px 11px;
    color: #ff596f !important;
    font-size: 0.7rem;
    font-weight: 800;
}

.stock-price-copy-panel {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.stock-price-copy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
}

.stock-price-copy-head h5 {
    margin: 0;
    color: var(--stock-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.stock-price-copy-head p {
    margin: 2px 0 0;
    color: #929bb0;
    font-size: 0.66rem;
    line-height: 1.35;
}

.stock-price-copy-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-price-copy-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 34px !important;
    border: 1px solid rgba(255, 89, 111, 0.28) !important;
    border-radius: 9px !important;
    background: #fff3f5 !important;
    padding: 6px 11px !important;
    color: #ff596f !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
}

.stock-price-copy-button.is-copied {
    border-color: rgba(43, 167, 122, 0.28) !important;
    background: #eef8f5 !important;
    color: #238b67 !important;
}

.stock-price-copy-button.is-copy-error {
    border-color: rgba(214, 73, 92, 0.28) !important;
    background: #fff0f2 !important;
    color: #d6495c !important;
}

.stock-price-copy-text {
    display: block;
    width: 100%;
    min-height: 82px;
    resize: vertical;
    border: 1px solid #e1e6ef !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    padding: 9px 11px !important;
    color: var(--stock-ink) !important;
    font-family: inherit;
    font-size: 0.78rem !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.55 !important;
    cursor: text;
    box-shadow: none !important;
    -webkit-user-select: text;
    user-select: text;
}

.stock-member-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stock-member-price-channel {
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
}

.stock-member-price-channel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e8ebf1;
    background: #f2f5fa;
    padding: 9px 12px;
    color: #667188;
    font-size: 0.72rem;
    font-weight: 800;
}

.stock-member-price-base {
    color: var(--stock-ink);
    font-size: 0.9rem;
}

.stock-member-price-levels {
    padding: 3px 12px;
}

.stock-member-price-level {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    min-height: 32px;
    border-bottom: 1px solid #f0f2f6;
    color: #5f6a80;
    font-size: 0.72rem;
}

.stock-member-price-level:last-child {
    border-bottom: 0;
}

.stock-member-price-level-name {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-member-price-discount,
.stock-member-price-specific {
    border-radius: 999px;
    background: #fff0f3;
    padding: 2px 6px;
    color: #ff596f;
    font-size: 0.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.stock-member-price-specific {
    background: #eef8f5;
    color: #2ba77a;
}

.stock-member-price-level-amount {
    grid-column: 3;
    color: var(--stock-ink);
    font-weight: 800;
}

.stock-member-price-empty {
    padding: 14px 0;
    color: #9aa3b6;
    font-size: 0.72rem;
    text-align: center;
}

.stock-price-modal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
}

.stock-price-modal-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    border-right: 1px solid #e8ebf1;
    padding: 11px 13px;
    color: var(--stock-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.stock-price-modal-summary > div:last-child {
    border-right: 0;
}

.stock-price-modal-summary > div > .clang_text {
    color: #7d879c;
    font-size: 0.68rem;
    font-weight: 700;
}

.stock-price-modal-flags {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.stock-price-detail-modal .stock-money,
.stock-wholesale-modal .stock-money {
    display: inline-flex;
    align-items: baseline;
    color: inherit;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}

.stock-price-detail-modal .stock-money__affix,
.stock-price-detail-modal .stock-money__fraction,
.stock-wholesale-modal .stock-money__affix,
.stock-wholesale-modal .stock-money__fraction {
    font-size: 70%;
}

.stock-price-detail-modal .stock-money__affix,
.stock-wholesale-modal .stock-money__affix {
    margin-right: 2px;
}

.stock-price-detail-modal .stock-money__fraction,
.stock-wholesale-modal .stock-money__fraction {
    margin-left: 1px;
}

.stock-price-modal-loading,
.stock-price-modal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
    border: 1px dashed #dce2eb;
    border-radius: 12px;
    background: #fff;
    color: #8f99ae;
    font-size: 0.76rem;
}

.stock-price-detail-footer {
    flex: 0 0 62px;
    min-height: 62px;
    border-top: 1px solid #e8ebf1;
    background: #fff;
    padding: 9px 16px;
}

.stock-price-detail-footer .h-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    height: 40px;
    border: 1px solid #ff596f;
    border-radius: 9px;
    background: #ff596f;
    padding: 7px 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.stock-wholesale-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.stock-wholesale-add {
    min-height: 36px !important;
    border-radius: 9px !important;
    background: #ff596f !important;
    padding: 7px 12px !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
}

.stock-wholesale-add .icon {
    margin-right: 3px !important;
}

.stock-wholesale-setting-card {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
}

.stock-wholesale-setting-copy h4 {
    margin: 0;
    color: var(--stock-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.stock-wholesale-setting-copy > p {
    margin: 4px 0 0;
    color: #8490a5;
    font-size: 0.68rem;
    line-height: 1.4;
}

.stock-wholesale-setting-copy .stock-wholesale-pos-note {
    display: inline-flex;
    margin-top: 8px;
    border-radius: 7px;
    background: #fff3f5;
    padding: 5px 7px;
    color: #ff596f;
    font-weight: 700;
}

.stock-wholesale-setting-control label {
    display: block;
    margin-bottom: 5px;
    color: #7d879c;
    font-size: 0.65rem;
    font-weight: 800;
}

.stock-wholesale-setting-control .select,
.stock-wholesale-setting-control select {
    width: 100%;
}

.stock-wholesale-list-wrap {
    margin-top: 12px;
}

.stock-wholesale-table {
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
}

.stock-wholesale-table-head,
.stock-wholesale-row {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) 48px;
    gap: 12px;
}

.stock-wholesale-table-head {
    min-height: 38px;
    border-bottom: 1px solid #e3e8f0;
    background: #f2f5fa;
    padding: 7px 12px;
    color: #7b869c;
    font-size: 0.65rem;
    font-weight: 800;
}

.stock-wholesale-table-head span:last-child {
    text-align: center;
}

.stock-wholesale-row {
    min-height: 54px;
    border-bottom: 1px solid #edf0f5;
    padding: 8px 12px;
}

.stock-wholesale-row:last-child {
    border-bottom: 0;
}

.stock-wholesale-threshold {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #7d879c;
    font-size: 0.68rem;
}

.stock-wholesale-threshold strong {
    color: var(--stock-ink);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.stock-wholesale-offer {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--stock-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.stock-wholesale-offer-value {
    color: #ff596f;
    font-size: 0.92rem;
}

.stock-wholesale-offer-prefix {
    color: #7d879c;
    font-size: 0.65rem;
}

.stock-wholesale-action {
    text-align: center;
}

.stock-wholesale-action .remove_wholesale_price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ffd6dc;
    border-radius: 8px;
    background: #fff6f7;
    color: #ff596f;
}

.stock-wholesale-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 150px;
    border: 1px dashed #dce2eb;
    border-radius: 12px;
    background: #fff;
    color: #98a1b3;
    font-size: 0.7rem;
    text-align: center;
}

.stock-wholesale-empty strong {
    color: var(--stock-ink);
    font-size: 0.82rem;
}

.stock-wholesale-add-modal .modal-form .fieldset {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 6px 10px 2px;
}

.stock-wholesale-add-modal .modal-form h4 {
    margin-bottom: 6px;
    color: #7d879c;
    font-size: 0.68rem;
    font-weight: 800;
}

.stock-wholesale-add-modal .select,
.stock-wholesale-add-modal select {
    width: 100%;
}

.stock-wholesale-add-modal .modal-card-foot {
    border-top: 1px solid #e8ebf1;
    background: #fff;
    padding: 12px 20px;
}

@media only screen and (max-width: 700px) {
    .stock-price-detail-modal .modal-card-head,
    .stock-wholesale-modal .modal-card-head,
    .stock-wholesale-add-modal .modal-card-head {
        min-height: 64px;
        padding: 12px 14px;
    }

    .stock-price-detail-modal .modal-card-body,
    .stock-wholesale-modal .modal-card-body,
    .stock-wholesale-add-modal .modal-card-body {
        padding: 12px;
    }

    .stock-price-modal-product {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-price-copy-head {
        align-items: flex-start;
    }

    .stock-member-price-grid,
    .stock-price-modal-summary {
        grid-template-columns: 1fr;
    }

    .stock-price-modal-summary > div {
        border-right: 0;
        border-bottom: 1px solid #e8ebf1;
    }

    .stock-price-modal-summary > div:last-child {
        border-bottom: 0;
    }

    .stock-wholesale-setting-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stock-wholesale-header-actions .stock-wholesale-add > span:last-child {
        display: none;
    }

    .stock-wholesale-add {
        width: 36px;
        min-width: 36px;
        padding: 7px !important;
    }

    .stock-wholesale-add .icon {
        margin: 0 !important;
    }
}

.stock-list-page #users-datatable .row-action:last-child .is-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--stock-line);
    border-radius: 8px;
    background: #fff;
}

.stock-list-page .stock-empty-state {
    min-height: 300px;
    border-top: 0;
    background: #fff;
}

.stock-list-page.has-empty-stock-list #users-datatable,
.stock-list-page.has-empty-stock-list #users-datatable_wrapper,
.stock-list-page.has-empty-stock-list .stock-list-pagination {
    display: none !important;
}

.stock-list-page.has-empty-stock-list .stock-table-wrap {
    height: 300px;
    min-height: 300px;
    overflow: hidden !important;
}

.stock-list-page.has-empty-stock-list .stock-empty-state {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Keep the existing column filters editable when they produce no matches. */
.stock-list-page.has-empty-stock-list.has-empty-stock-filters #users-datatable {
    display: table !important;
}

.stock-list-page.has-empty-stock-list.has-empty-stock-filters #users-datatable_wrapper {
    display: block !important;
}

.stock-list-page.has-empty-stock-list.has-empty-stock-filters #users-datatable > tbody {
    display: none !important;
}

.stock-list-page.has-empty-stock-list.has-empty-stock-filters .stock-table-wrap {
    height: calc(300px + var(--stock-title-header-height) + 44px);
    overflow: auto !important;
    container-type: inline-size;
}

.stock-list-page.has-empty-stock-list.has-empty-stock-filters .simplebar-content {
    min-width: max(100%, var(--stock-table-content-width, 1120px));
}

.stock-list-page.has-empty-stock-list.has-empty-stock-filters .stock-empty-state {
    position: sticky;
    left: 0;
    width: 100cqw;
}

.stock-list-page .stock-list-pagination {
    display: flex;
    justify-content: flex-end;
    min-height: 38px;
    padding-top: 10px;
}

.product-list-page .product-filter-actions {
    display: flex;
    align-items: flex-end;
    grid-column: span 3;
    justify-content: flex-end;
}

.product-list-page .product-filter-actions > h4 {
    display: none;
}

.product-list-page .product-filter-actions .field {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
}

.product-list-page .product-filter-actions .button {
    min-height: 38px;
    margin: 0 !important;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: none;
}

.product-list-page .product-delete-log {
    align-items: flex-end !important;
    position: static !important;
    padding: 0 !important;
}

.product-list-page .product-delete-log .field,
.product-list-page .product-delete-log #show_cube_product_delete_log {
    position: static !important;
    margin: 0 !important;
}

.product-list-page .account-box.is-form .form-body.stock-list-body {
    padding: 18px 20px 20px !important;
}

.product-list-page #datatablepagination.stock-list-pagination {
    margin: 0 !important;
    padding: 0 20px 20px;
}

.product-list-page .product-load-progress {
    margin: 0 0 12px;
    border: 1px solid #e3e8f0;
    border-radius: 11px;
    background: #f8fafc;
    padding: 10px 12px 9px;
}

.product-list-page .product-load-progress[hidden] {
    display: none !important;
}

.product-list-page .product-load-progress__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: #59637b;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-list-page .product-load-progress__meta strong {
    color: var(--stock-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.product-list-page .product-load-progress .progress {
    height: 5px;
    margin: 0;
    border-radius: 999px;
    overflow: hidden;
    accent-color: var(--stock-primary);
}

.product-list-page .product-load-progress .progress::-webkit-progress-value {
    background: var(--stock-primary);
}

.product-list-page .product-load-progress .progress::-moz-progress-bar {
    background: var(--stock-primary);
}

.product-list-page .product-load-progress__timing {
    min-height: 0;
    margin-top: 5px;
    color: #8991a7;
    font-size: 0.66rem;
    line-height: 1.35;
}

.product-list-page #users-datatable {
    min-width: 1180px !important;
}

.product-list-page #users-datatable th:nth-child(1),
.product-list-page #users-datatable td:nth-child(1) {
    width: 72px !important;
}

.product-list-page #users-datatable th:nth-child(2),
.product-list-page #users-datatable td:nth-child(2) {
    width: 76px !important;
}

.product-list-page #users-datatable th:nth-child(3),
.product-list-page #users-datatable td:nth-child(3) {
    width: 94px !important;
    text-align: center !important;
}

.product-list-page #users-datatable th:nth-child(4),
.product-list-page #users-datatable td:nth-child(4) {
    width: auto !important;
    text-align: left !important;
}

.product-list-page #users-datatable th:nth-child(5),
.product-list-page #users-datatable td:nth-child(5) {
    width: 124px !important;
    text-align: center !important;
}

.product-list-page #users-datatable th:nth-child(6),
.product-list-page #users-datatable td:nth-child(6) {
    width: 190px !important;
    text-align: center !important;
}

.product-list-page #users-datatable th:nth-child(7),
.product-list-page #users-datatable td:nth-child(7) {
    width: 164px !important;
    text-align: center !important;
}

.product-list-page #users-datatable thead tr:first-child > th {
    position: sticky;
    top: 0 !important;
    padding-right: 27px !important;
}

.product-list-page #users-datatable thead tr:first-child > th:last-child {
    padding-right: 12px !important;
}

.product-list-page #users-datatable .product-column-label {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    font-size: 1rem !important;
    vertical-align: middle;
    white-space: nowrap;
    pointer-events: none;
}

.product-list-page #users-datatable .product-column-resizer {
    position: absolute;
    top: 10px;
    right: -5px;
    bottom: 10px;
    z-index: 150;
    display: block;
    width: 12px;
    border: 0;
    background: transparent;
    cursor: col-resize;
    touch-action: none;
}

.product-list-page #users-datatable .product-column-resizer::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    width: 2px;
    border-radius: 999px;
    background: #d7dce7;
    content: "";
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.product-list-page #users-datatable .product-column-resizer:hover::after,
.product-list-page #users-datatable .product-column-resizer:focus-visible::after,
.product-list-page #users-datatable .product-column-resizer.is-active::after {
    background: #ff596f;
    opacity: 1;
}

.product-list-page #users-datatable .product-column-resizer:focus-visible {
    outline: 2px solid rgba(255, 89, 111, 0.28);
    outline-offset: -2px;
}

.product-list-page #users-datatable.is-product-column-resizable {
    width: var(--product-resized-table-width) !important;
    min-width: var(--product-resized-table-width) !important;
    table-layout: fixed !important;
}

.product-list-page .product-table-wrap.is-product-table-fitted {
    width: 100%;
    max-width: 100%;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(1),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(1) {
    width: var(--product-column-1-width) !important;
    min-width: var(--product-column-1-width) !important;
    max-width: var(--product-column-1-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(2),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(2) {
    width: var(--product-column-2-width) !important;
    min-width: var(--product-column-2-width) !important;
    max-width: var(--product-column-2-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(3),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(3) {
    width: var(--product-column-3-width) !important;
    min-width: var(--product-column-3-width) !important;
    max-width: var(--product-column-3-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(4),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(4) {
    width: var(--product-column-4-width) !important;
    min-width: var(--product-column-4-width) !important;
    max-width: var(--product-column-4-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(5),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(5) {
    width: var(--product-column-5-width) !important;
    min-width: var(--product-column-5-width) !important;
    max-width: var(--product-column-5-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(6),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(6) {
    width: var(--product-column-6-width) !important;
    min-width: var(--product-column-6-width) !important;
    max-width: var(--product-column-6-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(7),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(7) {
    width: var(--product-column-7-width) !important;
    min-width: var(--product-column-7-width) !important;
    max-width: var(--product-column-7-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable th:nth-child(8),
.product-list-page #users-datatable.is-product-column-resizable td:nth-child(8) {
    width: var(--product-column-8-width) !important;
    min-width: var(--product-column-8-width) !important;
    max-width: var(--product-column-8-width) !important;
}

.product-list-page #users-datatable.is-product-column-resizable tbody td {
    overflow: hidden;
}

.product-list-page #users-datatable.is-product-column-resizable tbody td:nth-child(4) {
    overflow: hidden;
}

.product-list-page #users-datatable tbody td:nth-child(3) img.is-user {
    width: 68px !important;
    height: 68px;
    box-sizing: border-box;
    border: 1px solid #edf0f5;
    border-radius: 10px !important;
    background: #f7f8fb;
    object-fit: contain;
}

.product-list-page #users-datatable .product-photo-cell {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.product-list-page #users-datatable .product-photo-cell .aicrafted_amount {
    justify-content: center;
    max-width: 100%;
    margin: 0;
    font-size: 0.6rem !important;
}

.product-list-page #users-datatable .product-photo-cell .aicrafted_amount .magic_brush_title {
    font-size: 0.7rem !important;
}

.product-list-page #users-datatable tbody td:nth-child(4) {
    overflow: visible;
}

.product-list-page #users-datatable tbody .edit_index_id {
    display: block;
    width: 100% !important;
    max-width: 72px;
    min-width: 0;
    height: 34px;
    margin: 0 auto;
    box-sizing: border-box;
}

.product-list-page #users-datatable thead th,
.product-list-page #users-datatable tbody td,
.product-list-page #users-datatable thead th *,
.product-list-page #users-datatable tbody td * {
    font-size: 1rem !important;
}

.product-list-page #users-datatable tbody td:nth-child(2),
.product-list-page #users-datatable tbody td:nth-child(2) * {
    font-size: 0.8rem !important;
}

.product-list-page #users-datatable tbody td .dashboard_hide_id_area {
    font-size: 0.6rem !important;
    white-space: nowrap;
}

.product-list-page #users-datatable tbody td .batch-category-display {
    font-size: 0.8rem !important;
    line-height: 1.45;
}

.product-list-page #users-datatable tbody .batch-product-meta-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin-top: 4px;
    vertical-align: middle;
}

.product-list-page #users-datatable tbody .batch-product-title-line {
    font-size: 0.8rem !important;
}

/* Shared compact profile labels, beside product/variant names in both lists. */
.stock-list-page #users-datatable tbody .special-shipping-badge[data-item-id] {
    display: inline-block;
    max-width: min(240px, 100%);
    margin: 2px 0 2px 6px;
    padding: 2px 8px;
    border: 1px solid #ffd6de;
    border-radius: 999px;
    background: #fff1f4;
    color: #a42f4b;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stock-list-page #users-datatable tbody .special-shipping-badge[hidden] {
    display: none !important;
}
.is-dark .stock-list-page #users-datatable tbody .special-shipping-badge {
    border-color: #744452;
    background: #462f37;
    color: #ffc1cf;
}

.product-list-page #users-datatable tbody .batch-product-title-line > b.rem-90,
.product-list-page #users-datatable tbody .batch-product-title-line > b.rem-90 * {
    font-size: 1rem !important;
    font-weight: 400 !important;
}

.product-list-page #users-datatable tbody .batch-product-title-line > span,
.product-list-page #users-datatable tbody .batch-product-title-line > a.edit_sku,
.product-list-page #users-datatable tbody .batch-product-title-line > a.edit_sku *,
.product-list-page #users-datatable tbody .batch-product-meta-line,
.product-list-page #users-datatable tbody .batch-product-meta-line * {
    font-size: 0.8rem !important;
}

.product-list-page #users-datatable .product_stock_qty_bracket {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.product-list-page #users-datatable .product_stock_qty_bracket .product_stock_qty_display {
    gap: 0 !important;
}

.product-list-page #users-datatable .product_stock_summary_line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}

.product-list-page #users-datatable .product_stock_cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    min-width: 0 !important;
    white-space: nowrap;
}

.product-list-page #users-datatable .product_stock_cell.product_stock_cell_has_subitems {
    flex-direction: column !important;
    gap: 4px;
}

.product-list-page #users-datatable .product_stock_subitem_count {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    white-space: nowrap;
}

.product-list-page #users-datatable .product_stock_detail_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    line-height: 1;
}

.product-list-page #users-datatable .product_stock_summary_line + .warehouse_class {
    margin-left: 0;
    white-space: nowrap;
}

.product-list-page #users-datatable tbody td:nth-child(5) {
    vertical-align: middle !important;
}

.product-list-page #users-datatable tbody td:nth-child(5) > div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-list-page #users-datatable tbody td:nth-child(6) > div,
.product-list-page #users-datatable tbody td:nth-child(7) > div {
    min-height: 0 !important;
}

.product-list-page #users-datatable tbody td:nth-child(8) > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    margin: 0 auto;
}

.product-list-page.has-empty-stock-list .product-load-progress {
    display: none !important;
}

.is-dark .product-list-page .product-load-progress {
    border-color: #34394a;
    background: #202330;
}

.is-dark .product-list-page .product-load-progress__meta {
    color: #d7dae8;
}

.is-dark .stock-list-page .stock-list-shell,
.is-dark .stock-list-page .stock-list-body,
.is-dark .stock-list-page .stock-table-wrap,
.is-dark .stock-list-page #users-datatable tbody td {
    border-color: #34394a !important;
    background: #242735 !important;
}

.is-dark .stock-list-page .stock-list-header {
    border-color: #34394a !important;
    background: linear-gradient(135deg, #242735 0%, #2b2932 100%) !important;
}

.is-dark .stock-list-page .stock-filter-panel {
    border-color: #34394a;
}

.is-dark .stock-list-page .stock-filter-panel .input,
.is-dark .stock-list-page .stock-filter-panel select,
.is-dark .stock-list-page .stock-filter-panel .select2-selection,
.is-dark .stock-list-page .stock-list-toolbar .input,
.is-dark .stock-list-page .stock-list-toolbar select,
.is-dark .stock-list-page .stock-list-toolbar .select2-selection,
.is-dark .stock-list-page .stock-list-heading .code-trigger,
.is-dark .stock-list-page .stock-saved-filters .button,
.is-dark .stock-list-page .stock-saved-filters .tag {
    border-color: #3d4254;
    background: #202330;
    color: #e4e6ef;
}

.is-dark .stock-list-page .stock-export-dropdown .dropdown-content {
    border-color: #3d4254;
    background: #202330;
}

.is-dark .stock-list-page .stock-export-dropdown .stock-export-option {
    color: #d9dce6;
}

.is-dark .stock-list-page .stock-export-dropdown .stock-export-option:hover,
.is-dark .stock-list-page .stock-export-dropdown .stock-export-option:focus {
    background: #2b2e3d;
    color: #ffb078;
}

.is-dark .stock-list-page #users-datatable thead th {
    border-color: #3a3f50;
    background: var(--stock-header-bg) !important;
    color: #aeb5c7;
}

.is-dark .stock-list-page {
    --stock-header-bg: #2c3040;
    --stock-filter-header-bg: #252938;
}

.is-dark .stock-list-page #users-datatable tbody tr:hover td {
    background: #2c2b35 !important;
}

.is-dark .stock-list-page #users-datatable code {
    background: #303443;
    color: #cbd0de !important;
}

.is-dark .stock-list-page #users-datatable .stock-money {
    color: #f1f2f7;
}

.is-dark .stock-list-page #users-datatable .stock-price-line-primary {
    border-color: #3a4051;
    background: #202432;
}

.is-dark .stock-list-page #users-datatable .stock-price-pos-list .stock-price-line {
    border-color: #343a4b;
}

.is-dark .stock-list-page #users-datatable .stock-price-label {
    color: #aeb5c7;
}

.is-dark .stock-list-page #users-datatable .stock-price-line-primary .stock-price-label,
.is-dark .stock-list-page #users-datatable .stock-price-amount {
    color: #eef0f6;
}

.is-dark .stock-list-page #users-datatable .stock-price-edit,
.is-dark .stock-list-page #users-datatable .stock-price-actions a[class*="_price-panel"] {
    border-color: #414759;
    background: #292e3d;
}

.is-dark .stock-list-page #users-datatable .stock-price-detail-link,
.is-dark .stock-list-page #users-datatable .stock-price-actions .show_wholesale_price {
    border-color: rgba(255, 89, 111, 0.32);
    background: rgba(255, 89, 111, 0.1);
}

@media (max-width: 1200px) {
    .stock-list-page .stock-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .stock-list-page .stock-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stock-list-page .stock-list-toolbar {
        grid-template-columns: 1fr;
    }

    .stock-list-page .stock-list-toolbar .stock-warehouse-tools {
        width: 100% !important;
        justify-self: stretch;
    }

    .stock-list-page .stock-list-toolbar .stock-warehouse-tools .field {
        display: flex;
    }

    .stock-list-page .stock-list-toolbar #warehouse_id,
    .stock-list-page .stock-list-toolbar .stock-warehouse-tools .select2-container {
        flex: 1 1 auto;
        width: auto !important;
    }
}

@media (max-width: 760px) {
    .stock-list-page .stock-filter-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .stock-list-page .stock-list-heading {
        position: relative;
        align-items: flex-start;
        flex-direction: row;
    }

    .stock-list-page .stock-list-title-wrap {
        flex: 1 1 calc(100% - 54px);
    }

    .stock-list-page .account-box.is-form .form-body.stock-list-body {
        padding: 12px !important;
    }

    .product-list-page .account-box.is-form .form-body.stock-list-body {
        padding: 12px !important;
    }

    .product-list-page #datatablepagination.stock-list-pagination {
        padding: 0 12px 12px;
    }

    .stock-list-page .stock-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-list-page .stock-list-toolbar .stock-bulk-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-list-page .stock-list-toolbar .stock-legend {
        flex-wrap: wrap;
    }

    .stock-list-page .stock-list-toolbar .stock-warehouse-tools .field {
        flex-wrap: wrap;
    }

    .stock-list-page .stock-list-toolbar .stock-warehouse-tools .control:first-child {
        flex: 0 0 auto;
    }

    .stock-list-page .stock-list-toolbar .stock-warehouse-tools .control:nth-child(2) {
        flex: 1 1 160px;
    }
}

@media (max-width: 520px) {
    .stock-list-page .stock-filter-heading-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .stock-list-page .stock-filter-heading-actions .button {
        width: 100%;
        padding-right: 8px;
        padding-left: 8px;
    }

    .stock-list-page .stock-filter-grid {
        grid-template-columns: 1fr;
    }

    .stock-list-page .stock-export-dropdown,
    .stock-list-page .stock-export-dropdown .dropdown-menu {
        width: 100%;
    }

    .stock-list-page .stock-list-toolbar .stock-quick-search .field.has-addons {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px 42px;
    }
}

/* Permission-scoped warehouse export picker. */
.stock-warehouse-export-modal.h-modal .modal-content { width: 560px; max-width: calc(100vw - 24px); }
.stock-warehouse-export-modal.h-modal .modal-card { width: 100%; max-height: calc(100vh - 32px); border-radius: 14px; overflow: hidden; background: #fff; }
.stock-warehouse-export-modal .modal-card-head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 1px solid #e5e7ee; }
.stock-warehouse-export-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stock-warehouse-export-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #fff3ea; color: #d97732; }
.stock-warehouse-export-heading h3 { margin: 0; font-size: 17px; font-weight: 700; color: #283252; }
.stock-warehouse-export-heading p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #707a90; }
.stock-warehouse-export-close-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border: 0; border-radius: 50%; color: #6b7280; background: #f4f5f8; cursor: pointer; }
.stock-warehouse-export-modal .modal-card-body { padding: 16px 20px; overflow-y: auto; background: #fff; }
.stock-warehouse-export-help { margin: 0 0 12px; font-size: 13px; color: #707a90; }
.stock-warehouse-export-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 10px; }
.stock-warehouse-export-check { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; color: #283252; font-size: 13px; font-weight: 600; }
.stock-warehouse-export-check input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: #ff596f; }
#warehouse_export_selection_count { color: #707a90; font-size: 12px; white-space: nowrap; }
#warehouse_export_picker_message { margin: 0; font-size: 13px; line-height: 1.6; color: #707a90; }
#warehouse_export_picker_message:empty { display: none; }
#warehouse_export_picker_message.is-error { color: #c33c54; }
.stock-warehouse-export-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stock-warehouse-export-choice { padding: 8px 10px; border: 1px solid #e1e5ed; border-radius: 8px; min-width: 0; box-sizing: border-box; }
.stock-warehouse-export-choice span { overflow-wrap: anywhere; }
.stock-warehouse-export-choice:has(input:checked) { border-color: #ff596f; background: #fff6f7; }
.stock-warehouse-export-modal .modal-card-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #e5e7ee; background: #fff; }
.stock-warehouse-export-modal .modal-card-foot .button.h-button { height: 36px; min-height: 36px; margin: 0; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.stock-warehouse-export-modal .button.h-button.is-primary { background: #ff596f; border-color: #ff596f; color: #fff; }
.stock-warehouse-export-modal button:disabled { opacity: .5; cursor: not-allowed; }
.stock-warehouse-export-modal input:focus-visible, .stock-warehouse-export-modal button:focus-visible { outline: 2px solid #ff596f; outline-offset: 3px; }
@media (max-width: 480px) {
    .stock-warehouse-export-choices { grid-template-columns: minmax(0, 1fr); }
    .stock-warehouse-export-modal .modal-card-head, .stock-warehouse-export-modal .modal-card-body { padding: 14px; }
    .stock-warehouse-export-modal .modal-card-foot { padding: 12px 14px; }
}
