.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-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-radius: 13px 13px 0 0 !important;
}

.stock-list-page .stock-list-body {
    border-radius: 0 0 13px 13px;
}

.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 .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: 14px 0 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-list-toolbar .datatable-info {
    flex-basis: 100%;
    margin: -3px 0 0;
    color: var(--stock-muted);
    font-size: 0.7rem;
}

.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%;
    min-height: 180px;
    overflow: auto !important;
    border: 1px solid var(--stock-line);
    border-radius: 14px;
    background: #fff;
}

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

.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: 4;
    height: 46px;
    border: 0;
    border-bottom: 1px solid var(--stock-line);
    background: #f5f7fb;
    padding: 9px 8px;
    color: #657088;
    font-size: calc(0.68rem + 3px);
    font-weight: 800;
    vertical-align: middle;
}

.stock-list-page #users-datatable thead tr:last-child th.get_total_price {
    height: 42px;
    box-sizing: border-box;
    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 #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 th:nth-child(7),
.stock-list-page #users-datatable td:nth-child(7) {
    width: 150px !important;
}

.stock-list-page #users-datatable th:nth-child(8),
.stock-list-page #users-datatable td:nth-child(8) {
    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 thead th:nth-child(8) {
    right: 0;
    z-index: 8;
    position: sticky !important;
    border-left: 1px solid var(--stock-line);
    background: #f5f7fb;
    box-shadow: -8px 0 14px rgba(45, 54, 78, 0.06);
}

.stock-list-page #users-datatable tbody td:nth-child(8) {
    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 tbody tr:hover td:nth-child(8) {
    background: #fffaf8 !important;
}

.stock-list-page #users-datatable tbody td:nth-child(7) {
    overflow: hidden;
}

.stock-list-page #users-datatable tbody td:nth-child(8) > .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 tbody td:nth-child(8) > .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(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 .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: 0;
    left: 50% !important;
    position: absolute !important;
    transform: translateX(-50%) !important;
}

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

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

.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 .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: 62px !important;
}

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

.product-list-page #users-datatable th:nth-child(3),
.product-list-page #users-datatable td:nth-child(3) {
    width: 116px !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: 150px !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 tbody td:nth-child(3) img.is-user {
    width: 80px !important;
    height: 80px;
    border: 1px solid #edf0f5;
    border-radius: 10px !important;
    background: #f7f8fb;
    object-fit: contain;
}

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

.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-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: #2c3040;
    color: #aeb5c7;
}

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

@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 0 !important;
    }

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