/**
 * ZERTI admin layer: zerti-features-misc.css
 * Import/export and final cascade rules
 * Loaded via assets/css/zerti-admin.css manifest and includes/admin/assets.php.
 * @see docs/DESIGN-SYSTEM.md
 */

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-component-inventory-brands .zerti-inv-categories__tree-scroll.zerti-scrollbar-thin::-webkit-scrollbar-thumb,
    body.toplevel_page_zerti-admin #zertiAdmin .zerti-component-inventory-brands .zerti-inv-categories__tree-scroll::-webkit-scrollbar-thumb,
    body.toplevel_page_zerti-admin #zertiAdmin .zerti-component-inventory-attributes .zerti-inv-categories__tree-scroll.zerti-scrollbar-thin::-webkit-scrollbar-thumb,
    body.toplevel_page_zerti-admin #zertiAdmin .zerti-component-inventory-attributes .zerti-inv-categories__tree-scroll::-webkit-scrollbar-thumb {

        background-color: color-mix(in srgb, var(--zerti-docs-muted) 50%, var(--zerti-docs-border));
        border-radius: 999px;
    }
}


/* Inventory › backup (WooCommerce CSV import/export, zerti shell) */
/* Let the inner .zerti-inv-ie__scroll own vertical scroll (avoid panel-slot + body both scrolling). */
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-inventory-import-export) {
    overflow-x: hidden;
    overflow-y: hidden;
}

#zertiAdmin .zerti-component-inventory-import-export {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    width: 100%;
    max-width: none;
    align-self: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

/* Primary scroll surface — scrollable, no visible scrollbar (same as panel-slot). */
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie__scroll {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: inherit;
    unicode-bidi: isolate;
    box-sizing: border-box;
    padding-bottom: 0.5rem;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie__scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

/* Import/export — vertical tabs on the left (RTL: row-reverse), content on the right. */
#zertiAdmin .zerti-inv-ie-layout.zerti-wc-product-data {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--zerti-docs-border);
    border-radius: var(--zerti-wc-postbox-radius, 0.5rem);
    background: var(--zerti-docs-bg);
    overflow: hidden;
}

#zertiAdmin .zerti-inv-ie-layout__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    background: var(--zerti-docs-bg);
}

@media (min-width: 992px) {
    #zertiAdmin .zerti-inv-ie-layout__body {
        flex-direction: row-reverse;
        align-items: stretch;
        align-content: stretch;
    }
}

#zertiAdmin .zerti-inv-ie-nav {
    flex: 0 0 10.5rem;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

/* Undo WooCommerce admin ul.wc-tabs (float, padding, ::after filler). */
#zertiAdmin .zerti-inv-ie-nav ul.wc-tabs.zerti-inv-ie-tabs {
    float: none !important;
    position: static !important;
    line-height: inherit !important;
    box-sizing: border-box;
}

#zertiAdmin .zerti-inv-ie-nav ul.wc-tabs.zerti-inv-ie-tabs::after {
    display: none !important;
    content: none !important;
}

#zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs.zerti-inv-ie-tabs {
    flex: 1 1 auto;
    width: 10.5rem;
    max-width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    border-inline-start: 1px solid var(--zerti-docs-border);
    border-inline-end: none;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 48%, transparent);
}

#zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__item {
    flex: 0 0 auto;
}

#zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__link {
    border-inline-end: none;
    border-inline-start: 3px solid transparent;
    background: transparent;
}

#zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__item.active .zerti-wc-tabs__link,
#zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__link.active {
    color: var(--zerti-docs-text);
    background: var(--zerti-docs-subtle-bg);
    border-inline-end-color: transparent;
    border-inline-start-color: var(--zerti-bs-purple);
    font-weight: 600;
}

#zertiAdmin .zerti-inv-ie-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    background: var(--zerti-docs-subtle-bg);
}

#zertiAdmin .zerti-inv-ie-main > .zerti-inv-ie-card {
    flex: 1 1 auto;
    margin: 0;
    min-height: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Override WooCommerce / Bootstrap whites — use Zerti theme tokens everywhere in this panel. */
#zertiAdmin .zerti-component-inventory-import-export .card,
#zertiAdmin .zerti-component-inventory-import-export .card-body,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export-wrap,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter-wrapper,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer,
#zertiAdmin .zerti-component-inventory-import-export .wc-progress-form-content,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter-options,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-options,
#zertiAdmin .zerti-component-inventory-import-export .form-table,
#zertiAdmin .zerti-component-inventory-import-export .form-table tbody,
#zertiAdmin .zerti-component-inventory-import-export .form-table tr,
#zertiAdmin .zerti-component-inventory-import-export .form-table th,
#zertiAdmin .zerti-component-inventory-import-export .form-table td {
    background-color: transparent;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .text-body-secondary,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter-wrapper p,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header p {
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header h3,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter-wrapper h3 {
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header {
    margin-bottom: 1rem;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header p:last-child {
    margin-bottom: 0;
}

/*
 * Select2 dropdowns use dropdownParent: body — mirror theme tokens on body so
 * var(--zerti-docs-*) resolve outside #zertiAdmin.
 */
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) {
    --zerti-docs-bg: #212529;
    --zerti-docs-subtle-bg: #2b3035;
    --zerti-docs-border: #495057;
    --zerti-docs-text: #dee2e6;
    --zerti-docs-muted: #adb5bd;
    --wc-form-color-background: #212529;
    --wc-form-color-text: #dee2e6;
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='light']) {
    --zerti-docs-bg: #fff;
    --zerti-docs-subtle-bg: #f8f9fa;
    --zerti-docs-border: #dee2e6;
    --zerti-docs-text: #212529;
    --zerti-docs-muted: #6c757d;
    --wc-form-color-background: #fff;
    --wc-form-color-text: #212529;
}

#zertiAdmin {
    --wc-form-color-background: var(--zerti-docs-bg);
    --wc-form-color-text: var(--zerti-docs-text);
}

#zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    width: 100%;
    padding: 0.65rem 0.85rem 0.85rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    font-size: 9pt;
}

#zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-toolbar .btn {
    font-size: 9pt;
    min-height: 1.55rem;
}

#zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    width: 100%;
    padding: 0.65rem 0.85rem 0.75rem;
    box-sizing: border-box;
}

#zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-footer .btn {
    font-size: 9pt;
    min-height: 1.55rem;
}

#zertiAdmin .zerti-inv-ie-main:has(.zerti-inv-ie-export-wrap),
#zertiAdmin .zerti-inv-ie-main:has(.zerti-inv-ie-card--wizard) {
    display: flex;
    flex-direction: column;
}

#zertiAdmin .zerti-inv-ie-main:has(.zerti-inv-ie-export-wrap) > .zerti-inv-ie-card,
#zertiAdmin .zerti-inv-ie-main:has(.zerti-inv-ie-card--wizard) > .zerti-inv-ie-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#zertiAdmin .zerti-inv-ie-card--wizard > .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-wizard,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-wizard .woocommerce-progress-form-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer.zerti-inv-ie-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer.zerti-inv-ie-form > .zerti-inv-ie-form__section,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer.zerti-inv-ie-form > section:not(.zerti-inv-ie-actions) {
    flex: 1 1 auto;
    min-height: 13rem;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-file-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-file-upload__button,
#zertiAdmin .zerti-component-inventory-import-export .zerti-file-upload__name {
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-file-upload__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-file-upload__name {
    color: var(--zerti-docs-muted);
    word-break: break-word;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form input[type='file'].form-control {
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.45;
    min-height: calc(2.35rem - 5px - 3pt);
    padding: 0.4rem 0.5rem;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    box-shadow: none;
}

/* Fast Import/Export — compact file picker + compare action */
#zertiAdmin .zerti-component-fast-import-export input[type='file'].form-control,
#zertiAdmin .zerti-component-fast-import-export input[type='file'].form-control::file-selector-button,
#zertiAdmin .zerti-component-fast-import-export input[type='file'].form-control::-webkit-file-upload-button,
#zertiAdmin .zerti-component-fast-import-export [data-zerti-fast-ie-compare] {
    font-size: 8pt;
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__list {
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--zerti-docs-surface, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__table-wrap {
    max-height: min(22rem, 55vh);
    overflow: auto;
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__table {
    font-size: 9pt;
    margin-bottom: 0;
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--zerti-docs-subtle-bg);
    font-weight: 600;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__pager {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.45rem 0.75rem;
    border-top: 1px solid var(--zerti-docs-border);
    background: var(--zerti-docs-subtle-bg);
    font-size: 9pt;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__pager-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__pager-btn {
    min-width: 2rem;
    padding: 0.15rem 0.45rem;
    font-size: 8pt;
    line-height: 1.2;
}

#zertiAdmin .zerti-component-fast-import-export .zerti-fast-ie-preview__pager-summary {
    position: absolute;
    inset-inline-end: clamp(0.65rem, 1.5vw, 1rem);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    white-space: nowrap;
}

#zertiAdmin[dir='rtl'] .zerti-component-fast-import-export .zerti-fast-ie-preview__pager-btn .fa-chevron-left,
#zertiAdmin[dir='rtl'] .zerti-component-fast-import-export .zerti-fast-ie-preview__pager-btn .fa-chevron-right {
    transform: scaleX(-1);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .form-check-label {
    line-height: 1.45;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export-wrap,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export form.woocommerce-exporter {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export .zerti-inv-ie-form__section {
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions,
#zertiAdmin .zerti-component-inventory-import-export .wc-actions.zerti-inv-ie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions--export,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions--import {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.75rem 0 0;
    justify-content: flex-end;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-back {
    flex: 0 0 auto;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-layout__body .zerti-inv-ie-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-layout__body .zerti-inv-ie-main > .zerti-inv-ie-card {
    border: none;
    background: transparent;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-card > .card-body {
    width: 100%;
    max-width: none;
    padding: 1rem;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

/* Card contents — Zerti typography (9pt), theme tokens, form controls. */
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-main,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-card,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.4;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-main .text-body-secondary,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-main .small,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .text-body-secondary,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .small,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .description,
#zertiAdmin .zerti-component-inventory-import-export .form-check-label {
    font-size: 9pt;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header h3,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-done {
    font-size: 9pt;
    font-weight: 700;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options label,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options th {
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .form-control:not([type='file']) {
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    min-height: 1.55rem;
    padding: 0.12rem 0.45rem;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    box-shadow: none;
}

/* Native selects: same as #zertiAdmin .zerti-admin-select (settings / categories). */
#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 1.55rem;
    padding-block: 0.12rem;
    padding-inline-start: var(--zerti-select-pad-inline-start);
    padding-inline-end: var(--zerti-select-pad-inline-end);
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.4;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236b7280' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L8.53 10.53a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: var(--zerti-select-chevron-pos);
    background-size: 0.9rem;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.65rem;
    appearance: none;
    cursor: pointer;
    direction: inherit;
    text-align: var(--zerti-select-text-align);
    text-align-last: var(--zerti-select-text-align);
    box-shadow: none;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export select.zerti-admin-select {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23adb5bd' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L8.53 10.53a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
}

#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select:focus,
#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select:focus-visible {
    outline: 0;
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select option,
#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select optgroup {
    background-color: var(--zerti-docs-bg);
    color: var(--zerti-docs-text);
    font-size: 9pt;
}

#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select[multiple] {
    min-height: 2.25rem;
    padding: 0.25rem 0.45rem;
    background-image: none;
}

/* Hide native multi-select once SelectWoo has replaced it. */
#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select.enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .form-control::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .form-control:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .form-control:focus,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form .form-control:focus-visible {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
    outline: 0;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .zerti-inv-ie-form .form-control,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .zerti-inv-ie-form input[type='file'].form-control,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export select.zerti-admin-select {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    direction: rtl;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options tr:not(:last-child) > th,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options tr:not(:last-child) > td {
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 72%, transparent);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options th {
    width: 28%;
    min-width: 9rem;
    vertical-align: middle;
    text-align: right;
    padding: 0.75rem 0 0.85rem 0.85rem;
    font-weight: 600;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options th label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    text-align: right;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td {
    width: 72%;
    padding: 0.75rem 0.85rem 0.85rem 0;
    vertical-align: middle;
    text-align: right;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td .select2-container {
    display: block;
    margin: 0;
    vertical-align: middle;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td .form-check {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-height: 1.55rem;
    margin: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td .form-check-label {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-import-export .form-check-input {
    border-color: var(--zerti-docs-border);
    background-color: var(--zerti-docs-subtle-bg);
}

#zertiAdmin .zerti-component-inventory-import-export .form-check-input:checked {
    background-color: var(--zerti-bs-purple, #712cf9);
    border-color: var(--zerti-bs-purple, #712cf9);
}

#zertiAdmin .zerti-component-inventory-import-export .form-check-label {
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export code {
    font-size: 8.5pt;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 70%, var(--zerti-docs-border));
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 80%, transparent);
    border-radius: 0.35rem;
    padding: 0.1rem 0.35rem;
}

#zertiAdmin .zerti-component-inventory-import-export .alert {
    font-size: 9pt;
    color: var(--zerti-docs-text);
    background-color: color-mix(in srgb, var(--zerti-docs-subtle-bg) 88%, var(--zerti-docs-bg));
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
}

#zertiAdmin .zerti-component-inventory-import-export .alert-info {
    background-color: color-mix(in srgb, #712cf9 10%, var(--zerti-docs-bg));
    border-color: color-mix(in srgb, #712cf9 28%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-component-inventory-import-export .alert-danger {
    background-color: color-mix(in srgb, var(--bs-danger, #dc3545) 12%, var(--zerti-docs-bg));
    border-color: color-mix(in srgb, var(--bs-danger, #dc3545) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-component-inventory-import-export .alert a {
    color: var(--zerti-bs-purple, #712cf9);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-toggle-advanced-options,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-done-view-errors {
    font-size: 9pt;
    color: var(--zerti-bs-purple, #712cf9);
    text-decoration: none;
}

#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-toggle-advanced-options:hover,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-done-view-errors:hover {
    color: color-mix(in srgb, var(--zerti-bs-purple, #712cf9) 80%, var(--zerti-docs-text));
    text-decoration: underline;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-mapping-scroll {
    max-height: min(52vh, 28rem);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.65rem;
    background: var(--zerti-docs-bg);
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-mapping-scroll::-webkit-scrollbar,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-error-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table.zerti-inv-ie-mapping-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--zerti-docs-text);
    --bs-table-border-color: transparent;
    width: 100%;
    margin: 0;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 9pt;
    background: transparent;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table.zerti-inv-ie-mapping-table thead th {
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    text-align: right;
    padding: 0.6rem 0.85rem;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-bs-purple, #712cf9) 22%, var(--zerti-docs-border));
    background: color-mix(in srgb, var(--zerti-bs-purple, #712cf9) 10%, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table.zerti-inv-ie-mapping-table tbody td {
    font-size: 9pt;
    color: var(--zerti-docs-text);
    vertical-align: middle;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
    background: var(--zerti-docs-bg);
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table.zerti-inv-ie-mapping-table tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 42%, var(--zerti-docs-bg));
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table.zerti-inv-ie-mapping-table tbody tr:last-child td {
    border-bottom: none;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table-name {
    font-weight: 600;
    line-height: 1.45;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table-name .description {
    font-weight: 500;
    margin-top: 0.35rem;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table-name code {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.15rem;
    padding: 0.15rem 0.45rem;
    font-size: 8.5pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 75%, var(--zerti-docs-bg));
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 75%, transparent);
    border-radius: 0.4rem;
    word-break: break-word;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table-field .zerti-admin-select {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-error-log-table {
    --bs-table-bg: var(--zerti-docs-bg);
    --bs-table-color: var(--zerti-docs-text);
    --bs-table-border-color: var(--zerti-docs-border);
    --bs-table-striped-bg: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
    --bs-table-hover-bg: color-mix(in srgb, var(--zerti-bs-purple) 8%, var(--zerti-docs-bg));
    font-size: 9pt;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.65rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-error-log-table thead th {
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-component-inventory-import-export .wc-importer-error-log-table td,
#zertiAdmin .zerti-component-inventory-import-export .wc-importer-error-log-table th[scope='row'] {
    font-size: 9pt;
    color: var(--zerti-docs-text);
    border-color: var(--zerti-docs-border);
    vertical-align: middle;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions .btn {
    font-size: 9pt;
    min-height: 1.55rem;
    padding: 0.12rem 0.65rem;
    border-radius: 0.5rem;
}

/* Export filters: checkbox lists (readable in dark mode; grows with selections). */
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker {
    box-sizing: border-box;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.65rem;
    background-color: var(--zerti-docs-subtle-bg);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__hint {
    margin: 0;
    font-size: 8.5pt;
    line-height: 1.45;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.35rem;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__toolbar-sep {
    color: var(--zerti-docs-muted);
    font-size: 9pt;
    line-height: 1;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.4rem 0.75rem;
    margin-top: 0.55rem;
    width: 100%;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker--scroll .zerti-inv-ie-checkbox-picker__list {
    max-height: 14rem;
    overflow-y: auto;
    padding-inline-end: 0.25rem;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__item .form-check-input {
    margin-top: 0.15rem;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-checkbox-picker__item .form-check-label {
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.45;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export select.zerti-inv-ie-picker-sync {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* SelectWoo / Select2 (export multi-selects) — mirror .zerti-admin-select. */
#zertiAdmin .zerti-component-inventory-import-export .select2-container,
#zertiAdmin .zerti-component-inventory-import-export .select2-container.select2-container--default {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container,
#zertiAdmin .select2-container.zerti-admin-select2 {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.4;
    color: var(--zerti-docs-text);
}

/* Multi-select: one × per chip only (hide Select2 "clear all" control). */
#zertiAdmin .zerti-component-inventory-import-export .select2-container--default .select2-selection--multiple .select2-selection__clear,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple {
    min-height: 2.125rem;
    height: auto;
    padding: 0.3rem 0.5rem 0.3rem 0.45rem;
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.65rem;
    box-shadow: none;
    cursor: pointer;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container.select2-container--focus .select2-selection--multiple,
#zertiAdmin .zerti-component-inventory-import-export .select2-container.select2-container--open .select2-selection--multiple,
#zertiAdmin .select2-container.zerti-admin-select2.select2-container--focus .select2-selection--multiple,
#zertiAdmin .select2-container.zerti-admin-select2.select2-container--open .select2-selection--multiple {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
    outline: 0;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__rendered,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 9pt;
    line-height: 1.4;
    color: var(--zerti-docs-text);
    overflow: visible;
    white-space: normal;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__rendered li,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
    margin: 0.15rem 0 0 0.35rem;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__placeholder,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__placeholder {
    float: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.05rem 0;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.5;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-search--inline .select2-search__field,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-search--inline .select2-search__field {
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.5;
    color: var(--zerti-docs-text);
    margin: 0;
    padding: 0.05rem 0;
    min-height: 1.35rem;
    height: 1.35rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice {
    float: none;
    display: inline-flex;
    align-items: center;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    color: var(--zerti-docs-text);
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 12%, var(--zerti-docs-subtle-bg));
    border: 1px solid color-mix(in srgb, var(--zerti-bs-purple) 30%, var(--zerti-docs-border));
    border-radius: 0.35rem;
    padding: 0.05rem 0.4rem;
    margin: 0;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-container .select2-selection--multiple,
#zertiAdmin[data-bs-theme='dark'] .select2-container.zerti-admin-select2 .select2-selection--multiple {
    background-color: var(--zerti-docs-subtle-bg) !important;
    border-color: var(--zerti-docs-border) !important;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice,
#zertiAdmin[data-bs-theme='dark'] .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice {
    color: #212529 !important;
    background-color: #ced4da !important;
    border-color: #adb5bd !important;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice__display,
#zertiAdmin[data-bs-theme='dark'] .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice__display {
    color: #212529 !important;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice__remove,
#zertiAdmin[data-bs-theme='dark'] .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice__remove {
    color: #495057 !important;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover,
#zertiAdmin[data-bs-theme='dark'] .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #212529 !important;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice__remove,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice__remove {
    font-size: 9pt;
    color: var(--zerti-docs-muted);
    margin-inline-end: 0.2rem;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-import-export .select2-dropdown,
body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-bg, var(--wc-form-color-background, #fff));
    border: 1px solid var(--zerti-docs-border, #dee2e6);
    border-radius: 0.65rem;
    box-shadow: 0 4px 18px color-mix(in srgb, #000 14%, transparent);
    overflow: hidden;
    z-index: 100100;
}

body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown .select2-results,
body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown .select2-results__options {
    background-color: var(--zerti-docs-bg, var(--wc-form-color-background, #fff));
    color: var(--zerti-docs-text, var(--wc-form-color-text, #212529));
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) .select2-dropdown.zerti-admin-select2-dropdown,
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) .select2-dropdown.zerti-admin-select2-dropdown .select2-results,
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) .select2-dropdown.zerti-admin-select2-dropdown .select2-results__options {
    background-color: #212529;
    color: #dee2e6;
    border-color: #495057;
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='light']) .select2-dropdown.zerti-admin-select2-dropdown,
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='light']) .select2-dropdown.zerti-admin-select2-dropdown .select2-results,
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='light']) .select2-dropdown.zerti-admin-select2-dropdown .select2-results__options {
    background-color: #fff;
    color: #212529;
    border-color: #dee2e6;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-dropdown .select2-results__option,
body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown .select2-results__option {
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.35rem 0.55rem;
    color: var(--zerti-docs-text);
}

body[data-zerti-bs-theme='light'] .select2-dropdown.zerti-admin-select2-dropdown .select2-results__option[aria-selected='true'],
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='light']) .select2-dropdown.zerti-admin-select2-dropdown .select2-results__option[aria-selected='true'],
#zertiAdmin[data-bs-theme='light'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option[aria-selected='true'] {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 14%, var(--zerti-docs-bg));
    color: var(--zerti-docs-text);
}

body[data-zerti-bs-theme='light'] .select2-dropdown.zerti-admin-select2-dropdown .select2-results__option--highlighted[aria-selected],
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='light']) .select2-dropdown.zerti-admin-select2-dropdown .select2-results__option--highlighted[aria-selected],
#zertiAdmin[data-bs-theme='light'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 22%, var(--zerti-docs-bg));
    color: var(--zerti-docs-text);
}

/* Dark dropdown selected rows — see zerti-product-attr-select2.css (loads after WC select2). */
body[data-zerti-bs-theme='dark'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option[aria-selected='true'],
body[data-zerti-bs-theme='dark'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option--selected,
body[data-zerti-bs-theme='dark'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option--highlighted[aria-selected],
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option[aria-selected='true'],
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option--selected,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-import-export .select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 34%, #212529) !important;
    color: #f8f9fa !important;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-dropdown .select2-search--dropdown,
body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown .select2-search--dropdown {
    padding: 0.35rem 0.45rem;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-dropdown .select2-search--dropdown .select2-search__field,
body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown .select2-search--dropdown .select2-search__field {
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.4;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    padding: 0.12rem 0.45rem;
    box-shadow: none;
}

#zertiAdmin .zerti-component-inventory-import-export .select2-dropdown .select2-search--dropdown .select2-search__field:focus,
body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    outline: 0;
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-export-wrap,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-wizard,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter-wrapper,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-progress-form-wrapper,
#zertiAdmin .zerti-component-inventory-import-export .wc-progress-form-content,
#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-exporter-options,
#zertiAdmin .zerti-component-inventory-import-export .woocommerce-importer-options {
    width: 100%;
    max-width: none;
}

#zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options .select2-container,
#zertiAdmin .zerti-component-inventory-import-export .wc-enhanced-select {
    max-width: none !important;
    width: 100% !important;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 9pt;
    color: var(--zerti-docs-muted);
    padding: 0;
    border: none;
    background: transparent;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li:not(:last-child)::after {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.55rem;
    line-height: 1;
    color: color-mix(in srgb, var(--zerti-docs-muted) 82%, var(--zerti-docs-border));
    opacity: 0.95;
    flex: 0 0 auto;
    margin-inline: 4px;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li.done:not(:last-child)::after {
    color: color-mix(in srgb, var(--zerti-bs-purple, #712cf9) 55%, var(--zerti-docs-muted));
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps__pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--zerti-docs-border);
    background: var(--zerti-docs-bg);
    color: inherit;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li.active {
    color: var(--zerti-color-white-text);
    font-weight: 600;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li.active .zerti-inv-ie-steps__pill {
    color: var(--zerti-color-white-text);
    border-color: transparent;
    background-image: linear-gradient(135deg, #5b21b6 0%, #712cf9 55%, #4c6ef5 100%);
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li.done {
    color: var(--zerti-docs-text);
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li.done .zerti-inv-ie-steps__pill {
    color: var(--zerti-docs-text);
    border-color: color-mix(in srgb, #712cf9 35%, var(--zerti-docs-border));
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-error-scroll {
    max-height: min(40vh, 20rem);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Tablet + mobile: stacked tabs, single scroll, full-width fields. */
@media (max-width: 991.98px) {
    #zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-import-export {
        flex: 1 1 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-inventory-import-export {
        flex: 1 1 0;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie {
        flex: 1 1 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie__scroll {
        flex: 1 1 0;
        min-height: 0;
        max-height: 100%;
        padding-inline: 0.35rem;
    }

    #zertiAdmin .zerti-inv-ie-layout.zerti-wc-product-data {
        width: 100%;
        max-width: 100%;
    }

    #zertiAdmin .zerti-inv-ie-layout__body {
        flex-direction: column;
    }

    #zertiAdmin .zerti-inv-ie-nav {
        flex: 0 0 auto;
        width: 100%;
    }

    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs.zerti-inv-ie-tabs {
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        border-inline-start: none;
        border-bottom: 1px solid var(--zerti-docs-border);
        flex-direction: row;
        flex-wrap: nowrap;
    }

    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__item {
        flex: 1 1 0;
        min-width: 0;
    }

    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__link {
        justify-content: center;
        border-inline-start: none;
        border-bottom: 3px solid transparent;
        padding: 0.55rem 0.45rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__item.active .zerti-wc-tabs__link,
    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__link.active {
        background: var(--zerti-docs-subtle-bg);
        border-inline-start-color: transparent;
        border-bottom-color: var(--zerti-bs-purple);
    }

    #zertiAdmin .zerti-inv-ie-main {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        background: var(--zerti-docs-subtle-bg);
    }

    #zertiAdmin .zerti-inv-ie-main > .zerti-inv-ie-card {
        min-height: 0;
    }

    #zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-toolbar {
        padding: 0.5rem 0.65rem 0.75rem;
        margin-bottom: 0.35rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-card > .card-body {
        padding: 0.75rem 0.65rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header {
        margin-bottom: 0.75rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__header h3 {
        font-size: 9pt;
        line-height: 1.35;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-mapping-scroll {
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    #zertiAdmin .zerti-component-inventory-import-export .wc-importer-mapping-table.zerti-inv-ie-mapping-table {
        min-width: min(100%, 22rem);
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-options th,
    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-options td {
        display: block;
        width: 100%;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-options tr {
        display: block;
        margin-bottom: 0;
        padding-bottom: 0.85rem;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-options tr:not(:last-child) {
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 72%, transparent);
        margin-bottom: 0.85rem;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-options tr:not(:last-child) > th,
    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-options tr:not(:last-child) > td {
        border-bottom: none;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options th {
        width: 100%;
        min-width: 0;
        padding-bottom: 0.35rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-form__section,
    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options,
    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td {
        max-width: 100%;
        box-sizing: border-box;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options th,
    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options td {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-options .select2-container,
    #zertiAdmin .zerti-component-inventory-import-export .wc-enhanced-select {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple,
    #zertiAdmin .zerti-component-inventory-import-export .select2-container .select2-selection--multiple .select2-selection__rendered {
        max-width: 100%;
        box-sizing: border-box;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions--export,
    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions--import {
        padding-top: 0.65rem;
    }

    body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown {
        max-width: calc(100vw - 1.25rem) !important;
        box-sizing: border-box;
    }
}

/* Phone: full-width actions, stacked hub toolbar. */
@media (max-width: 575.98px) {
    #zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    #zertiAdmin .zerti-inv-ie-layout .zerti-inv-ie-toolbar .btn {
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs__link {
        font-size: 8.5pt;
        padding: 0.5rem 0.35rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-card > .card-body {
        padding: 0.65rem 0.5rem;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions,
    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions--export,
    #zertiAdmin .zerti-component-inventory-import-export .wc-actions.zerti-inv-ie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions .btn,
    #zertiAdmin .zerti-component-inventory-import-export .zerti-inv-ie-actions--export .btn {
        width: 100%;
        justify-content: center;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li {
        flex-direction: column;
        width: 100%;
        gap: 0.35rem;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps li:not(:last-child)::after {
        content: '\f078';
        margin-inline: 0;
        margin-block: 4px;
    }

    body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-steps__pill {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    body.toplevel_page_zerti-admin .select2-dropdown.zerti-admin-select2-dropdown {
        max-width: calc(100vw - 1rem) !important;
    }
}

/* Desktop: side rail + content (â‰¥992px). */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #zertiAdmin .zerti-inv-ie-nav {
        flex: 0 0 9rem;
    }

    #zertiAdmin .zerti-inv-ie-nav .zerti-wc-tabs.zerti-inv-ie-tabs {
        width: 9rem;
    }
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-wizard .woocommerce-progress-form-wrapper {
    margin: 0;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-wizard .error.inline {
    border-radius: 0.375rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    background: color-mix(in srgb, var(--bs-danger, #dc3545) 12%, var(--zerti-docs-bg));
    border: 1px solid color-mix(in srgb, var(--bs-danger, #dc3545) 35%, var(--zerti-docs-border));
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-export.woocommerce-exporter__exporting .zerti-inv-ie-export-spinner,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-wizard .woocommerce-importer__importing .spinner-border {
    display: inline-block !important;
}

#zertiAdmin .zerti-bulk-price-progress-bar,
#zertiAdmin .zerti-component-inventory-import-export progress,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-form progress,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-form .woocommerce-exporter-progress,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-form .woocommerce-importer-progress {
    height: 0.45rem;
    width: 100%;
    accent-color: var(--zerti-bs-purple, #712cf9);
    color: var(--zerti-bs-purple, #712cf9);
    background-color: color-mix(in srgb, var(--zerti-docs-subtle-bg) 80%, var(--zerti-docs-border));
    border: none;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
}

#zertiAdmin .zerti-bulk-price-progress-bar::-webkit-progress-bar,
#zertiAdmin .zerti-component-inventory-import-export progress::-webkit-progress-bar,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-form progress::-webkit-progress-bar {
    background-color: color-mix(in srgb, var(--zerti-docs-subtle-bg) 80%, var(--zerti-docs-border));
    border: none;
    border-radius: 999px;
}

#zertiAdmin .zerti-bulk-price-progress-bar::-webkit-progress-value,
#zertiAdmin .zerti-component-inventory-import-export progress::-webkit-progress-value,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-form progress::-webkit-progress-value {
    background-color: var(--zerti-bs-purple, #712cf9) !important;
    background: var(--zerti-bs-purple, #712cf9) !important;
    border-radius: 999px;
}

#zertiAdmin .zerti-bulk-price-progress-bar::-moz-progress-bar,
#zertiAdmin .zerti-component-inventory-import-export progress::-moz-progress-bar,
body.toplevel_page_zerti-admin #zertiAdmin .zerti-inv-ie-form progress::-moz-progress-bar {
    background-color: var(--zerti-bs-purple, #712cf9) !important;
    border-radius: 999px;
}

/* RTL shell: chevron left, text/options right (final cascade for native selects). */
#zertiAdmin[dir='rtl'] select.form-select:not(.zerti-ltr-field):not(.zerti-shop-grid-filter-select):not(.zerti-payments-grid-filter-select):not(.zerti-coupons-grid-filter-select),
#zertiAdmin[dir='rtl'] .form-select:not(.zerti-ltr-field):not(.zerti-shop-grid-filter-select):not(.zerti-payments-grid-filter-select):not(.zerti-coupons-grid-filter-select) {
    direction: rtl;
    text-align: right;
    text-align-last: right;
}

#zertiAdmin[dir='rtl'] select.form-select:not(.zerti-admin-select):not(.zerti-shop-grid-filter-select):not(.zerti-payments-grid-filter-select):not(.zerti-coupons-grid-filter-select) {
    padding-inline-start: 0.5rem;
    padding-inline-end: 1.85rem;
    background-position: left 0.65rem center;
}

#zertiAdmin[dir='ltr'] select.form-select:not(.zerti-ltr-field):not(.zerti-shop-grid-filter-select):not(.zerti-payments-grid-filter-select):not(.zerti-coupons-grid-filter-select),
#zertiAdmin[dir='ltr'] .form-select:not(.zerti-ltr-field):not(.zerti-shop-grid-filter-select):not(.zerti-payments-grid-filter-select):not(.zerti-coupons-grid-filter-select) {
    direction: ltr;
    text-align: left;
    text-align-last: left;
}

#zertiAdmin[dir='ltr'] select.form-select:not(.zerti-admin-select):not(.zerti-shop-grid-filter-select):not(.zerti-payments-grid-filter-select):not(.zerti-coupons-grid-filter-select) {
    padding-inline-start: 0.5rem;
    padding-inline-end: 1.85rem;
    background-position: right 0.65rem center;
}
