/**
 * ZERTI admin layer: zerti-components.css
 * Home, settings, forms, tabs, offcanvas, shared grid shell
 * Loaded via assets/css/zerti-admin.css manifest and includes/admin/assets.php.
 * @see docs/DESIGN-SYSTEM.md
 */

#zertiAdmin .zerti-component-home {
    /* Stat tile height (half of the legacy full-tile reference). */
    --zerti-home-stat-tile-height: clamp(4rem, 6.5vw + 2.25rem, 5rem);
    /* Sales trend chart — two compact rows tall. */
    --zerti-home-chart-height: calc(clamp(11rem, 20vh, 14rem) + 100px);
    /* Extra space between the two groups of four tiles; under 1rem (minus 30px total, floored at 0). */
    --zerti-home-stat-grid-split-gap: max(0px, calc(1rem - 30px));
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
}

#zertiAdmin .zerti-component-home > .zerti-home-empty-slot-row {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: var(--zerti-home-chart-height);
    box-sizing: border-box;
    align-self: stretch;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Second 4-tile row: explicit gap so the two sets are not visually glued together. */
#zertiAdmin .zerti-component-home > .zerti-home-stat-grid + .zerti-home-stat-grid {
    margin-top: var(--zerti-home-stat-grid-split-gap);
}

#zertiAdmin .zerti-component-home .zerti-home-revenue-chart.zerti-home-stat-card {
    display: flex;
    flex-direction: column;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    width: 100% !important;
    max-width: none;
    box-sizing: border-box;
    height: var(--zerti-home-chart-height) !important;
    min-height: var(--zerti-home-chart-height) !important;
    max-height: var(--zerti-home-chart-height) !important;
    padding: clamp(0.25rem, 0.5vw + 0.1rem, 0.4rem) clamp(0.4rem, 0.85vw + 0.15rem, 0.55rem);
    gap: 0.15rem;
    min-width: 0;
    overflow: hidden;
    flex-shrink: 0;
}

#zertiAdmin .zerti-component-home .zerti-home-revenue-chart--inactive {
    justify-content: center;
    align-items: center;
}

#zertiAdmin .zerti-component-home .zerti-home-revenue-chart__head {
    flex: 0 0 auto;
    text-align: center;
    line-height: 1.35;
}

#zertiAdmin .zerti-component-home .zerti-home-revenue-chart__wrap {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#zertiAdmin .zerti-component-home .zerti-home-revenue-chart__canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}

/* Col is flex so the card can span full column width; heights beat Bootstrap .h-100 if re-added. */
#zertiAdmin .zerti-component-home .zerti-home-stat-grid > .col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#zertiAdmin .zerti-component-home .zerti-home-stat-grid .zerti-home-stat-card {
    flex: 0 0 auto;
    width: 100%;
    height: var(--zerti-home-stat-tile-height) !important;
    min-height: var(--zerti-home-stat-tile-height) !important;
    max-height: var(--zerti-home-stat-tile-height) !important;
    overflow: hidden;
    padding: clamp(0.3rem, 0.65vw + 0.15rem, 0.5rem);
    gap: 0.2rem;
}

#zertiAdmin .zerti-component-home .zerti-home-stat-grid .zerti-home-stat-label {
    font-size: clamp(0.62rem, 0.95vw + 0.4rem, 0.78rem);
    line-height: 1.2;
}

#zertiAdmin .zerti-component-home .zerti-home-stat-grid .zerti-home-stat-value,
#zertiAdmin .zerti-component-home .zerti-home-stat-grid .zerti-home-stat-price {
    font-size: clamp(0.78rem, 1.5vw + 0.35rem, 1.1rem);
}

/* Home dashboard: WooCommerce stat tiles (fluid sizing, no nested scroll). */
#zertiAdmin .zerti-home-stat-card {
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.75rem;
    padding: clamp(0.55rem, 1.2vw + 0.35rem, 1.1rem);
    background: var(--zerti-docs-subtle-bg);
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
}

#zertiAdmin .zerti-home-stat-card--link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#zertiAdmin .zerti-home-stat-card--link:hover,
#zertiAdmin .zerti-home-stat-card--link:focus-visible {
    border-color: var(--zerti-docs-accent, #0d6efd);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
    outline: none;
}

#zertiAdmin .zerti-home-stat-label {
    font-size: clamp(0.72rem, 1.1vw + 0.5rem, 0.9rem);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    width: 100%;
}

/* Counts, prices, datetimes: LTR so digit order and separators stay correct inside RTL UI. */
#zertiAdmin .zerti-home-stat-value,
#zertiAdmin .zerti-home-stat-price {
    direction: ltr;
    unicode-bidi: isolate;
}

#zertiAdmin .zerti-ltr-nums {
    direction: ltr;
    unicode-bidi: isolate;
}

#zertiAdmin .zerti-home-stat-value {
    font-size: clamp(0.95rem, 2.2vw + 0.45rem, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--zerti-docs-text);
    word-break: break-word;
    text-align: center;
    width: 100%;
}

#zertiAdmin .zerti-home-stat-price .woocommerce-Price-amount,
#zertiAdmin .zerti-home-stat-price .woocommerce-Price-amount bdi {
    font-size: inherit;
    font-weight: inherit;
    word-break: break-word;
    display: inline-block;
    text-align: center;
}

/* Price direction: Persian (IRR/IRT) = amount then currency (RTL); others = currency then amount (LTR). */
#zertiAdmin .zerti-wc-price-rtl {
    direction: rtl;
    display: inline-block;
    unicode-bidi: isolate;
}

#zertiAdmin .zerti-wc-price-ltr {
    direction: ltr;
    display: inline-block;
    unicode-bidi: isolate;
}

#zertiAdmin .zerti-wc-price-rtl .woocommerce-Price-currencySymbol,
#zertiAdmin .zerti-wc-price-ltr .woocommerce-Price-currencySymbol,
#zertiAdmin .zerti-home-stat-price .woocommerce-Price-currencySymbol {
    font-size: 9pt;
    font-weight: 600;
}

/* Home dashboard skeleton while stats load asynchronously. */
@keyframes zerti-home-skeleton-pulse {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.95;
    }
}

#zertiAdmin .zerti-home-skeleton {
    background-color: color-mix(in srgb, var(--zerti-docs-muted) 24%, transparent);
    border-radius: 0.35rem;
    animation: zerti-home-skeleton-pulse 1.35s ease-in-out infinite;
}

#zertiAdmin .zerti-home-skeleton--value {
    display: block;
    width: 58%;
    max-width: 7.5rem;
    height: 1.15em;
    margin-inline: auto;
}

#zertiAdmin .zerti-home-skeleton--chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2%;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-block: 0.2rem;
    box-sizing: border-box;
    background: transparent;
    animation: none;
}

#zertiAdmin .zerti-home-skeleton__bar {
    flex: 1 1 0;
    min-width: 0;
    height: var(--zerti-skeleton-h, 50%);
    border-radius: 0.2rem 0.2rem 0 0;
    background-color: color-mix(in srgb, var(--zerti-docs-muted) 24%, transparent);
    animation: zerti-home-skeleton-pulse 1.35s ease-in-out infinite;
}

#zertiAdmin .zerti-component-home--loading .zerti-home-stat-card--link {
    pointer-events: none;
    cursor: default;
}

#zertiAdmin .zerti-component-home--loading .zerti-home-stat-card--link:hover,
#zertiAdmin .zerti-component-home--loading .zerti-home-stat-card--link:focus-visible {
    border-color: var(--zerti-docs-border);
    box-shadow: none;
}

#zertiAdmin .zerti-home-stat-grid .col {
    min-width: 0;
}

#zertiAdmin .zerti-home-stat-grid {
    flex-shrink: 1;
    min-height: 0;
}

#zertiAdmin .zerti-component {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

/* Home dashboard: content-sized so the chart does not stretch to the panel slot. */
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-home {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    overflow: visible;
}

#zertiAdmin .zerti-panel-slot:has(> .zerti-component-settings),
#zertiAdmin .zerti-panel-slot:has(> .zerti-bulk-action-shell),
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-bulk-action),
#zertiAdmin .zerti-panel-slot:has(> .zerti-pro-feature-preview > .zerti-bulk-action-shell),
#zertiAdmin .zerti-panel-slot:has(> .zerti-pro-feature-preview > .zerti-component-bulk-action) {
    overflow-x: hidden;
    overflow-y: hidden;
}

#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-settings,
#zertiAdmin .zerti-panel-slot > .zerti-bulk-action-shell,
#zertiAdmin .zerti-pro-feature-preview > .zerti-bulk-action-shell,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-bulk-action {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: none;
    align-self: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

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

#zertiAdmin .zerti-bulk-action-shell > .zerti-bulk-action-safety-gate {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    padding: 1.5rem;
    overflow-y: auto;
}

#zertiAdmin .zerti-bulk-action-safety-gate__search-label {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 0;
    gap: 0.35rem;
}

#zertiAdmin .zerti-bulk-action-safety-gate__search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    text-align: inherit;
    text-align-last: inherit;
}

#zertiAdmin .zerti-bulk-action-safety-gate__search-input::-webkit-search-cancel-button,
#zertiAdmin .zerti-bulk-action-safety-gate__search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

#zertiAdmin .zerti-bulk-action-safety-gate__enter {
    box-sizing: border-box;
    min-height: 1.55rem;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.85rem;
    font-size: 9pt;
    font-weight: 600;
    white-space: nowrap;
}

#zertiAdmin .zerti-bulk-price-tools,
#zertiAdmin .zerti-bulk-price-section,
#zertiAdmin .zerti-bulk-price-section__inner,
#zertiAdmin .zerti-bulk-price-form,
#zertiAdmin .zerti-bulk-price-form__row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#zertiAdmin .zerti-bulk-price-tools {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#zertiAdmin .zerti-bulk-price-section {
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.75rem;
    background: var(--zerti-docs-bg);
}

#zertiAdmin .zerti-bulk-price-section__inner {
    padding: 1rem 1.1rem;
}

#zertiAdmin .zerti-bulk-price-section__title {
    font-size: 9pt;
    font-weight: 700;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-bulk-price-form {
    --zerti-bulk-category-width: calc(10.8rem + 400px);
    --zerti-bulk-category-height: calc(5.5rem + 50px);
}

#zertiAdmin .zerti-bulk-price-form__row {
    display: grid;
    grid-template-columns: minmax(0, var(--zerti-bulk-category-width)) minmax(7rem, 9rem) auto;
    gap: 0.75rem;
    align-items: start;
    justify-content: start;
}

#zertiAdmin .zerti-bulk-price-form__field {
    min-width: 0;
}

#zertiAdmin .zerti-bulk-price-form__field--category {
    max-width: var(--zerti-bulk-category-width);
}

#zertiAdmin .zerti-bulk-price-form__field-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.3rem;
}

#zertiAdmin .zerti-bulk-price-category-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

#zertiAdmin .zerti-bulk-price-category-action {
    font-size: 8.5pt;
    font-weight: 600;
    text-decoration: none;
    color: var(--zerti-bs-purple);
}

#zertiAdmin .zerti-bulk-price-category-action:hover,
#zertiAdmin .zerti-bulk-price-category-action:focus-visible {
    color: color-mix(in srgb, var(--zerti-bs-purple) 80%, #fff);
    text-decoration: underline;
}

#zertiAdmin .zerti-bulk-price-category-panel {
    box-sizing: border-box;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.65rem;
    background-color: var(--zerti-docs-subtle-bg);
}

#zertiAdmin .zerti-bulk-price-category-scroll {
    max-height: var(--zerti-bulk-category-height, calc(5.5rem + 50px));
    overflow-y: auto;
    padding-inline-end: 0.2rem;
    direction: inherit;
}

#zertiAdmin .zerti-bulk-price-category-tree {
    width: 100%;
    direction: inherit;
}

#zertiAdmin .zerti-bulk-price-category-panel .zerti-product-cat-tree__item {
    display: block;
    width: 100%;
}

#zertiAdmin .zerti-bulk-price-category-panel .zerti-product-cat-tree__check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    min-height: 0;
    cursor: pointer;
}

#zertiAdmin .zerti-bulk-price-category-panel .form-check-input {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 1rem;
}

#zertiAdmin .zerti-bulk-price-category-panel .form-check,
#zertiAdmin .zerti-bulk-price-category-panel label.form-check {
    padding: 0 !important;
    min-height: 0;
}

#zertiAdmin .zerti-bulk-price-category-panel .form-check-label {
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.45;
    color: var(--zerti-docs-text);
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
}

#zertiAdmin .zerti-bulk-price-form .form-label {
    margin-bottom: 0.3rem;
    font-size: 9pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-bulk-price-form .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.45rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.2;
    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;
}

#zertiAdmin .zerti-bulk-price-form .form-control::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-bulk-price-form .form-control:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-bulk-price-form .form-control:focus,
#zertiAdmin .zerti-bulk-price-form .form-control:focus-visible {
    outline: 0;
    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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-bulk-price-form select.form-select.zerti-admin-select,
#zertiAdmin .zerti-bulk-stock-form select.form-select.zerti-admin-select,
#zertiAdmin .zerti-bulk-delete-products-form select.form-select.zerti-admin-select,
#zertiAdmin .zerti-bulk-delete-customers-form select.form-select.zerti-admin-select,
#zertiAdmin .zerti-bulk-delete-orders-form select.form-select.zerti-admin-select {
    height: 1.55rem;
    min-height: 1.55rem;
    padding-block: 0;
    border-radius: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

#zertiAdmin .zerti-bulk-price-form select.form-select.zerti-admin-select:hover,
#zertiAdmin .zerti-bulk-stock-form select.form-select.zerti-admin-select:hover,
#zertiAdmin .zerti-bulk-delete-products-form select.form-select.zerti-admin-select:hover,
#zertiAdmin .zerti-bulk-delete-customers-form select.form-select.zerti-admin-select:hover,
#zertiAdmin .zerti-bulk-delete-orders-form select.form-select.zerti-admin-select:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-bulk-price-form select.form-select.zerti-admin-select:focus,
#zertiAdmin .zerti-bulk-price-form select.form-select.zerti-admin-select:focus-visible,
#zertiAdmin .zerti-bulk-stock-form select.form-select.zerti-admin-select:focus,
#zertiAdmin .zerti-bulk-stock-form select.form-select.zerti-admin-select:focus-visible,
#zertiAdmin .zerti-bulk-delete-products-form select.form-select.zerti-admin-select:focus,
#zertiAdmin .zerti-bulk-delete-products-form select.form-select.zerti-admin-select:focus-visible,
#zertiAdmin .zerti-bulk-delete-customers-form select.form-select.zerti-admin-select:focus,
#zertiAdmin .zerti-bulk-delete-customers-form select.form-select.zerti-admin-select:focus-visible,
#zertiAdmin .zerti-bulk-delete-orders-form select.form-select.zerti-admin-select:focus,
#zertiAdmin .zerti-bulk-delete-orders-form select.form-select.zerti-admin-select:focus-visible {
    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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-bulk-price-form__field--percent,
#zertiAdmin .zerti-bulk-price-form__field--quantity,
#zertiAdmin .zerti-bulk-price-form__field--status,
#zertiAdmin .zerti-bulk-price-form__field--filter,
#zertiAdmin .zerti-bulk-price-form__field--apply {
    align-self: end;
}

#zertiAdmin .zerti-bulk-price-form__field--quantity {
    max-width: 7rem;
}

#zertiAdmin .zerti-bulk-price-form__field--status {
    min-width: 9rem;
    max-width: 12rem;
}

#zertiAdmin .zerti-bulk-price-form__field--filter {
    min-width: 11rem;
    max-width: 18rem;
}

#zertiAdmin .zerti-bulk-delete-products-form__row,
#zertiAdmin .zerti-bulk-delete-customers-form__row {
    grid-template-columns: minmax(0, var(--zerti-bulk-category-width)) minmax(11rem, 18rem);
    justify-content: start;
}

#zertiAdmin .zerti-bulk-delete-orders-form__row {
    grid-template-columns: minmax(11rem, 18rem);
    justify-content: start;
}

#zertiAdmin .zerti-bulk-delete-products-form__field--category,
#zertiAdmin .zerti-bulk-delete-customers-form__field--category {
    max-width: var(--zerti-bulk-category-width);
}

#zertiAdmin .zerti-bulk-delete-products-form__actions,
#zertiAdmin .zerti-bulk-delete-customers-form__actions,
#zertiAdmin .zerti-bulk-delete-orders-form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-self: end;
    width: 100%;
    min-width: 11rem;
    max-width: 18rem;
}

#zertiAdmin .zerti-bulk-delete-products-form__actions .zerti-bulk-price-form__field--filter,
#zertiAdmin .zerti-bulk-delete-customers-form__actions .zerti-bulk-price-form__field--filter,
#zertiAdmin .zerti-bulk-delete-orders-form__actions .zerti-bulk-price-form__field--filter {
    width: 100%;
    max-width: none;
    min-width: 0;
    align-self: stretch;
}

#zertiAdmin .zerti-bulk-delete-slide {
    width: 100%;
}

#zertiAdmin .zerti-bulk-delete-slide__track {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 1.85rem;
    border: 1px solid color-mix(in srgb, var(--bs-danger) 40%, var(--zerti-docs-border));
    border-radius: 0.5rem;
    background-color: color-mix(in srgb, var(--bs-danger) 10%, var(--zerti-docs-subtle-bg));
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

#zertiAdmin .zerti-bulk-delete-slide__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 2.4rem 0.45rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 8.5pt;
    font-weight: 600;
    color: var(--zerti-docs-muted);
    pointer-events: none;
    white-space: nowrap;
}

#zertiAdmin .zerti-bulk-delete-slide__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: color-mix(in srgb, var(--bs-danger) 28%, transparent);
    pointer-events: none;
    transition: width 0.15s ease;
}

#zertiAdmin .zerti-bulk-delete-slide__thumb {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: var(--bs-danger);
    color: #fff;
    cursor: grab;
    box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
    transition: background-color 0.15s ease;
}

#zertiAdmin .zerti-bulk-delete-slide__thumb:active {
    cursor: grabbing;
}

#zertiAdmin .zerti-bulk-delete-slide__thumb:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bs-danger) 35%, transparent);
}

#zertiAdmin .zerti-bulk-delete-slide--dragging .zerti-bulk-delete-slide__fill,
#zertiAdmin .zerti-bulk-delete-slide--dragging .zerti-bulk-delete-slide__thumb {
    transition: none;
}

#zertiAdmin .zerti-bulk-delete-slide--disabled {
    opacity: 0.55;
    pointer-events: none;
}

#zertiAdmin .zerti-bulk-delete-slide--complete .zerti-bulk-delete-slide__thumb {
    background: color-mix(in srgb, var(--bs-danger) 75%, #000);
}

#zertiAdmin .zerti-bulk-delete-slide--apply .zerti-bulk-delete-slide__track {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 40%, var(--zerti-docs-border));
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 10%, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-bulk-delete-slide--apply .zerti-bulk-delete-slide__fill {
    background: color-mix(in srgb, var(--zerti-bs-purple) 28%, transparent);
}

#zertiAdmin .zerti-bulk-delete-slide--apply .zerti-bulk-delete-slide__thumb {
    background: var(--zerti-bs-purple);
}

#zertiAdmin .zerti-bulk-delete-slide--apply .zerti-bulk-delete-slide__thumb:focus-visible {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--zerti-bs-purple) 35%, transparent);
}

#zertiAdmin .zerti-bulk-delete-slide--apply.zerti-bulk-delete-slide--complete .zerti-bulk-delete-slide__thumb {
    background: color-mix(in srgb, var(--zerti-bs-purple) 75%, #000);
}

#zertiAdmin .zerti-bulk-price-form__field--apply {
    min-width: 11rem;
    max-width: 18rem;
    width: 100%;
}

#zertiAdmin .zerti-bulk-price-form__field--apply .zerti-bulk-delete-slide {
    width: 100%;
}

#zertiAdmin .zerti-bulk-stock-form__quantity-input {
    min-height: 1.55rem;
    text-align: start;
}

#zertiAdmin .zerti-bulk-price-form__percent-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 1.55rem;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    background-color: var(--zerti-docs-subtle-bg);
    overflow: hidden;
    box-sizing: border-box;
}

#zertiAdmin .zerti-bulk-price-form__percent-wrap:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-bulk-price-form__percent-wrap:focus-within {
    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-bulk-price-form__percent-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

#zertiAdmin .zerti-bulk-price-form__percent-suffix {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-inline: 0.55rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 600;
    line-height: 1;
    color: var(--zerti-docs-muted);
    border-inline-start: 1px solid var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-bulk-price-form .form-control,
#zertiAdmin[data-bs-theme='dark'] .zerti-bulk-price-form__percent-wrap {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-bulk-price-form__field--apply .btn,
#zertiAdmin .zerti-bulk-price-form__apply-btn {
    box-sizing: border-box;
    min-height: 1.55rem;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.85rem;
    font-size: 9pt;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    #zertiAdmin .zerti-bulk-price-form__row {
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
    }

    #zertiAdmin .zerti-bulk-price-form__field--category {
        max-width: none;
    }

    #zertiAdmin .zerti-bulk-price-form__field--percent,
    #zertiAdmin .zerti-bulk-price-form__field--quantity,
    #zertiAdmin .zerti-bulk-price-form__field--status,
    #zertiAdmin .zerti-bulk-price-form__field--filter {
        max-width: none;
        width: 50%;
    }

    #zertiAdmin .zerti-bulk-delete-products-form__row,
    #zertiAdmin .zerti-bulk-delete-customers-form__row,
    #zertiAdmin .zerti-bulk-delete-orders-form__row {
        grid-template-columns: 1fr;
    }

    #zertiAdmin .zerti-bulk-delete-products-form__field--category,
    #zertiAdmin .zerti-bulk-delete-products-form__actions,
    #zertiAdmin .zerti-bulk-delete-customers-form__field--category,
    #zertiAdmin .zerti-bulk-delete-customers-form__actions,
    #zertiAdmin .zerti-bulk-delete-orders-form__actions {
        max-width: none;
        width: 100%;
    }

    #zertiAdmin .zerti-bulk-price-form__field--apply {
        align-self: stretch;
    }

    #zertiAdmin .zerti-bulk-price-form__field--apply .btn,
    #zertiAdmin .zerti-bulk-price-form__apply-btn {
        width: 100%;
    }
}

#zertiAdmin .zerti-component-settings .zerti-settings-scroll,
#zertiAdmin .zerti-component-bulk-action .zerti-settings-scroll {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    padding-bottom: 0.5rem;
    transition: opacity 0.15s ease;
}

#zertiAdmin .zerti-component-settings.zerti-settings-saving > .zerti-settings-scroll,
#zertiAdmin .zerti-component-bulk-action.zerti-settings-saving > .zerti-settings-scroll {
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

#zertiAdmin .zerti-component-settings .zerti-settings-scroll::-webkit-scrollbar,
#zertiAdmin .zerti-component-bulk-action .zerti-settings-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

#zertiAdmin .zerti-settings-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-settings .zerti-settings-info {
    display: grid;
    gap: 0.75rem;
    max-width: 28rem;
}

#zertiAdmin .zerti-component-settings .zerti-settings-info__row {
    display: grid;
    grid-template-columns: minmax(5rem, 7rem) 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
    margin: 0;
}

#zertiAdmin .zerti-component-settings .zerti-settings-info dt {
    margin: 0;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-settings .zerti-settings-info dd {
    margin: 0;
    font-size: 9pt;
    color: var(--zerti-docs-text);
    word-break: break-word;
}

#zertiAdmin .zerti-component-settings .zerti-settings-info-link {
    color: var(--zerti-docs-text);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

#zertiAdmin .zerti-component-settings .zerti-settings-info-link:hover,
#zertiAdmin .zerti-component-settings .zerti-settings-info-link:focus-visible {
    color: var(--zerti-bs-purple);
}

#zertiAdmin .zerti-license-success-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

#zertiAdmin .zerti-license-success-icon {
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    color: var(--bs-success, #198754);
    line-height: 1;
}

#zertiAdmin .zerti-license-success-icon--pending,
#zertiAdmin .zerti-license-success-head--pending .zerti-license-success-icon {
    color: var(--bs-warning, #ffc107);
    animation: zerti-license-success-pending-pulse 1.25s ease-in-out infinite;
}

@keyframes zerti-license-success-pending-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.94);
    }
}

#zertiAdmin .zerti-license-success-title {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-settings-panel[data-zerti-settings-panel='license'].active {
    display: flex;
    flex-direction: column;
}

#zertiAdmin .zerti-settings-panel[data-zerti-settings-panel='license'] .zerti-license-purchase-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 1.25rem;
}

#zertiAdmin .zerti-license-purchase-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#zertiAdmin .zerti-license-gradient-table,
#zertiAdmin .zerti-license-purchase-pitch-table__table {
    --zerti-license-gradient-table-fill: #f8f9fa;
    display: table;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid transparent;
    border-radius: var(--zerti-component-panel-radius, 12px);
    background-color: var(--zerti-license-gradient-table-fill);
    background-image:
        linear-gradient(var(--zerti-license-gradient-table-fill), var(--zerti-license-gradient-table-fill)),
        linear-gradient(135deg, #712cf9 0%, #4c6ef5 45%, #15aabf 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-license-gradient-table,
#zertiAdmin[data-bs-theme='dark'] .zerti-license-purchase-pitch-table__table {
    --zerti-license-gradient-table-fill: #3a4046;
}

#zertiAdmin .zerti-license-gradient-table__cell,
#zertiAdmin .zerti-license-purchase-pitch-table__cell {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    background: var(--zerti-license-gradient-table-fill, #f8f9fa);
}

#zertiAdmin .zerti-license-activate-table .zerti-license-gradient-table__cell {
    min-width: 0;
}

#zertiAdmin .zerti-license-activate-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row--fields {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    width: auto;
    min-width: 0;
}

#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__actions {
    flex: 0 0 auto;
    width: auto;
}

#zertiAdmin .zerti-license-purchase-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

#zertiAdmin .zerti-license-purchase-pitch {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
    font-size: 9pt;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-license-purchase-actions {
    flex: 0 0 auto;
    margin: 0;
}

#zertiAdmin .zerti-license-purchase-actions .zerti-action-btn,
#zertiAdmin .zerti-license-activate-row__actions .zerti-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.125rem;
    min-width: 9rem;
    padding-block: 0.375rem;
    padding-inline: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

#zertiAdmin .zerti-pro-feature-gate {
    max-width: 42rem;
    margin-inline: auto;
}

#zertiAdmin .zerti-pro-feature-gate-wrap--with-preview .zerti-pro-feature-gate {
    max-width: none;
    margin-inline: 0;
}

#zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    text-align: start;
    gap: 0.65rem 1rem;
}

#zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__lead {
    grid-column: 1;
    justify-self: start;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 0.65rem;
}

#zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
}

#zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__title {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    line-height: 1;
    text-align: start;
    white-space: nowrap;
}

#zertiAdmin .zerti-pro-feature-gate__lead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__description {
    grid-column: 2;
    justify-self: center;
    flex: none;
    min-width: 0;
    max-width: min(34rem, 100%);
    margin: 0;
    text-align: center;
}

#zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__actions {
    grid-column: 3;
    justify-self: end;
    flex: 0 0 auto;
    margin-top: 0;
    margin-inline-start: 0;
}

@media (max-width: 1199.98px) {
    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
        justify-items: stretch;
    }

    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__lead {
        grid-column: 1;
        justify-self: center;
    }

    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__title {
        white-space: normal;
        text-wrap: balance;
        text-align: center;
    }

    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__description {
        grid-column: 1;
        justify-self: stretch;
        max-width: none;
        text-align: center;
    }

    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__actions {
        grid-column: 1;
        justify-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-pro-feature-gate__cell {
        padding: 0.85rem 0.9rem;
    }

    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #zertiAdmin .zerti-pro-feature-gate--with-preview .zerti-pro-feature-gate__actions .btn {
        width: 100%;
    }
}

#zertiAdmin .zerti-panel-slot > .zerti-pro-feature-gate-wrap--with-preview {
    flex: 0 0 auto;
}

#zertiAdmin .zerti-panel-slot > .zerti-pro-feature-preview {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

#zertiAdmin .zerti-pro-feature-preview--clickable {
    cursor: pointer;
}

#zertiAdmin .zerti-pro-feature-preview--clickable .zerti-standard-reports-grid-search-input {
    cursor: text;
}

#zertiAdmin .zerti-pro-feature-preview .zerti-pro-feature-preview__control,
#zertiAdmin .zerti-pro-feature-preview .zerti-pro-feature-preview__control.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.55;
}

#zertiAdmin .zerti-pro-feature-preview .zerti-standard-reports-grid-search-input {
    pointer-events: auto;
    cursor: text;
    opacity: 1;
}

#zertiAdmin .zerti-pro-feature-gate__table {
    width: 100%;
}

#zertiAdmin .zerti-pro-feature-gate__cell {
    padding: 1.25rem 1.35rem;
}

#zertiAdmin .zerti-pro-feature-gate__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

#zertiAdmin .zerti-pro-feature-gate__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 205, 57, 0.1) 100%);
    color: #ffc107;
    font-size: 1.15rem;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-pro-feature-gate__icon {
    color: #ffd54f;
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.22) 0%, rgba(255, 193, 7, 0.1) 100%);
}

#zertiAdmin[data-bs-theme='light'] .zerti-pro-feature-gate__icon {
    color: #e6a800;
}

#zertiAdmin .zerti-pro-feature-gate__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffc107;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-pro-feature-gate__title {
    color: #ffd54f;
}

#zertiAdmin[data-bs-theme='light'] .zerti-pro-feature-gate__title {
    color: #e6a800;
}

#zertiAdmin .zerti-pro-feature-gate__description {
    max-width: 34rem;
    line-height: 1.55;
}

#zertiAdmin .zerti-pro-feature-gate__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

#zertiAdmin .zerti-license-activate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

#zertiAdmin .zerti-license-activate-row__field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

#zertiAdmin .zerti-license-activate-field-label {
    margin-bottom: 0.35rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 600;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-license-activate-row__field--key {
    flex: 1 1 12rem;
    min-width: 0;
}

#zertiAdmin .zerti-license-activate-row__field--server {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

#zertiAdmin .zerti-license-activate-row__field--server .form-select,
#zertiAdmin .zerti-license-activate-row__field--server .zerti-admin-select {
    display: inline-block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

#zertiAdmin .zerti-license-activate-row__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
}

#zertiAdmin .zerti-license-activate-progress-wrap {
    width: 100%;
}

#zertiAdmin .zerti-license-activate-progress {
    display: block;
    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-license-activate-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-license-activate-progress::-webkit-progress-value {
    background-color: var(--zerti-bs-purple, #712cf9) !important;
    background: var(--zerti-bs-purple, #712cf9) !important;
    border-radius: 999px;
}

#zertiAdmin .zerti-license-activate-progress::-moz-progress-bar {
    background-color: var(--zerti-bs-purple, #712cf9) !important;
    border-radius: 999px;
}

#zertiAdmin .zerti-settings-license .zerti-license-key-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding-block: 0.35rem;
    padding-inline: 0.45rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    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;
    field-sizing: content;
}

#zertiAdmin .zerti-settings-license .zerti-license-key-input::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-settings-license .zerti-license-key-input:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-settings-license .zerti-license-key-input:focus,
#zertiAdmin .zerti-settings-license .zerti-license-key-input:focus-visible {
    outline: 0;
    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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-license .zerti-license-key-input {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-license .zerti-license-key-input::placeholder {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-license .zerti-license-key-input:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-license .zerti-license-key-input: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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin[data-bs-theme='light'] .zerti-settings-license .zerti-license-key-input {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-license-activate-table {
    --zerti-license-activate-control-height: 2.125rem;
}

#zertiAdmin .zerti-license-activate-table .zerti-license-key-input,
#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__field--server .form-select,
#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__field--server .zerti-admin-select,
#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__actions .zerti-action-btn {
    box-sizing: border-box;
    min-height: var(--zerti-license-activate-control-height);
    height: var(--zerti-license-activate-control-height);
    max-height: var(--zerti-license-activate-control-height);
    padding-block: 0.375rem;
    padding-inline: 0.5rem;
    line-height: 1.2;
    font-size: 9pt;
}

#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__field--server .form-select,
#zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__field--server .zerti-admin-select {
    padding-inline-start: var(--zerti-select-pad-inline-start);
    padding-inline-end: var(--zerti-select-pad-inline-end);
}

#zertiAdmin .zerti-license-activate-table .zerti-license-key-input {
    display: block;
    field-sizing: fixed;
}

#zertiAdmin [data-zerti-license-verify-banner] a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

#zertiAdmin [data-zerti-license-verify-banner] a:hover,
#zertiAdmin [data-zerti-license-verify-banner] a:focus {
    color: inherit;
    opacity: 0.9;
}

#zertiAdmin .zerti-license-details-panel,
#zertiAdmin [data-zerti-license-details] {
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    padding: 0 0.25rem 0.75rem;
}

/* License API output — flat two-column CSS grid (label | value per row). */
#zertiAdmin .zerti-license-details-grid__grace {
    grid-column: 1 / -1;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--zerti-docs-border);
}

#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert,
#zertiAdmin [data-zerti-settings-panel='license'] .alert-dismissible[data-zerti-license-verify-banner],
#zertiAdmin [data-zerti-settings-panel='license'] [data-zerti-license-feedback].alert-dismissible {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem 0.85rem;
}

#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert__head {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    width: 100%;
    flex: 0 0 auto;
    order: -1;
    margin: -0.15rem 0 0.35rem;
    padding: 0;
}

#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert__head .btn-close {
    position: static;
    float: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem;
    opacity: 0.65;
}

#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert__head .btn-close:hover,
#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert__head .btn-close:focus {
    opacity: 1;
}

#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert__content,
#zertiAdmin [data-zerti-settings-panel='license'] .zerti-license-alert__body,
#zertiAdmin [data-zerti-settings-panel='license'] [data-zerti-license-feedback-body] {
    width: 100%;
    min-width: 0;
}

#zertiAdmin [data-zerti-settings-panel='license'] [data-zerti-license-verify-banner] .zerti-license-alert__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

#zertiAdmin .zerti-license-grace-warning {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem 0.85rem;
}

#zertiAdmin .zerti-license-grace-warning__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

#zertiAdmin .zerti-license-grace-warning__content {
    flex: 1 1 12rem;
    min-width: 0;
}

#zertiAdmin[data-bs-theme='dark'] [data-zerti-settings-panel='license'] .zerti-license-alert__head .btn-close,
#zertiAdmin[data-bs-theme='dark'] .zerti-license-grace-warning .zerti-license-alert__head .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.75;
}

#zertiAdmin .zerti-license-grace-warning .zerti-license-alert__head {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    width: 100%;
    flex: 0 0 auto;
    order: -1;
    margin: -0.15rem 0 0.35rem;
    padding: 0;
}

#zertiAdmin .zerti-license-grace-warning .zerti-license-alert__head .btn-close {
    position: static;
    float: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem;
    opacity: 0.65;
}

#zertiAdmin [data-zerti-license-verify-banner] .zerti-license-retry-verify-btn {
    flex-shrink: 0;
}

#zertiAdmin .zerti-license-grace-warning__text,
#zertiAdmin .zerti-license-grace-warning__counter {
    margin: 0;
    color: var(--bs-danger, #dc3545);
    font-size: 8pt;
    line-height: 1.45;
}

#zertiAdmin .zerti-license-grace-warning__counter {
    margin-top: 0.35rem;
    font-weight: 600;
}

#zertiAdmin .zerti-license-details-grid {
    display: grid;
    grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr);
    width: 100%;
    margin: 0;
    border: 1px solid var(--zerti-docs-border);
    border-radius: var(--zerti-component-panel-radius, 12px);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 42%, transparent);
    overflow: hidden;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

#zertiAdmin .zerti-license-details-grid__label,
#zertiAdmin .zerti-license-details-grid__value {
    margin: 0;
    padding: 0.4rem 0.85rem;
    font-size: 9pt;
    line-height: 1.35;
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-license-details-grid__label {
    font-weight: 600;
    color: var(--zerti-docs-muted);
    text-align: start;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 65%, transparent);
    border-inline-end: 1px solid color-mix(in srgb, var(--zerti-docs-border) 45%, transparent);
}

#zertiAdmin .zerti-license-details-grid__value {
    font-weight: 500;
    color: var(--zerti-docs-text);
    text-align: end;
    word-break: break-word;
}

#zertiAdmin .zerti-license-details-grid__label:nth-last-child(-n + 2),
#zertiAdmin .zerti-license-details-grid__value:nth-last-child(-n + 2) {
    border-bottom: none;
}

#zertiAdmin[data-bs-theme='light'] .zerti-license-details-grid {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-license-details-grid {
        grid-template-columns: 1fr;
    }

    #zertiAdmin .zerti-license-details-grid__label {
        border-inline-end: none;
        padding-bottom: 0.2rem;
        border-bottom: none;
    }

    #zertiAdmin .zerti-license-details-grid__value {
        text-align: start;
        padding-top: 0;
        padding-bottom: 0.45rem;
    }

    #zertiAdmin .zerti-license-details-grid__value:not(:last-child) {
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
    }
}

#zertiAdmin .zerti-settings-form > .zerti-settings-layout {
    flex: 1 1 auto;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 1rem;
    align-self: stretch;
    box-sizing: border-box;
}

#zertiAdmin .zerti-settings-layout.zerti-wc-product-data {
    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;
    container-type: inline-size;
    container-name: zerti-settings;
}

#zertiAdmin .zerti-settings-layout__body {
    flex: 1 1 auto;
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--zerti-docs-bg);
}

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

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

#zertiAdmin .zerti-settings-nav ul.wc-tabs.zerti-settings-tabs {
    float: none !important;
    position: static !important;
    line-height: inherit !important;
    box-sizing: border-box;
}

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

#zertiAdmin .zerti-settings-nav .zerti-wc-tabs.zerti-settings-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-settings-nav .zerti-wc-tabs__item {
    flex: 0 0 auto;
}

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

#zertiAdmin .zerti-settings-nav .zerti-wc-tabs__item.active .zerti-wc-tabs__link,
#zertiAdmin .zerti-settings-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-settings-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-settings-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

#zertiAdmin .zerti-settings-panel.active {
    display: block;
}

#zertiAdmin .zerti-settings-panel__header h6 {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 10pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
}

/* Tablet + mobile, and narrow panel slots: wrapped tab grid, full-width content. */
@media (max-width: 991.98px) {
    #zertiAdmin .zerti-settings-layout.zerti-wc-product-data {
        overflow: visible;
    }

    #zertiAdmin .zerti-settings-layout__body {
        flex-direction: column !important;
    }

    #zertiAdmin .zerti-settings-nav {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs.zerti-settings-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        border-inline-start: none;
        border-bottom: 1px solid var(--zerti-docs-border);
        overflow: visible;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__item {
        flex: none;
        min-width: 0;
        margin: 0;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__link {
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: 2.65rem;
        padding: 0.45rem 0.4rem;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
        word-break: break-word;
        border-inline-start: none;
        border-bottom: 3px solid transparent;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__item.active .zerti-wc-tabs__link,
    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__link.active {
        border-inline-start-color: transparent;
        border-bottom-color: var(--zerti-bs-purple);
    }

    #zertiAdmin .zerti-settings-main {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        min-height: 0;
    }

    #zertiAdmin .zerti-settings-panel {
        padding: 0.85rem 0.75rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs.zerti-settings-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container zerti-settings (max-width: 680px) {
    #zertiAdmin .zerti-settings-layout.zerti-wc-product-data {
        overflow: visible;
    }

    #zertiAdmin .zerti-license-activate-layout {
        flex-direction: column;
        align-items: stretch;
    }

    #zertiAdmin .zerti-license-activate-table .zerti-license-activate-row--fields {
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 100%;
        width: 100%;
    }

    #zertiAdmin .zerti-license-activate-table .zerti-license-activate-row__actions {
        width: 100%;
    }

    #zertiAdmin .zerti-license-activate-row__field--key,
    #zertiAdmin .zerti-license-activate-row__field--server {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    #zertiAdmin .zerti-license-activate-row__field--server .form-select,
    #zertiAdmin .zerti-license-activate-row__field--server .zerti-admin-select {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    #zertiAdmin .zerti-settings-license .zerti-license-key-input {
        width: 100%;
        max-width: 100%;
    }

    #zertiAdmin .zerti-license-activate-row__actions .zerti-action-btn {
        width: 100%;
        max-width: 100%;
    }

    #zertiAdmin .zerti-license-purchase-row {
        flex-wrap: wrap;
    }

    #zertiAdmin .zerti-license-purchase-pitch {
        flex: 1 1 100%;
    }

    #zertiAdmin .zerti-license-purchase-actions {
        flex: 1 1 100%;
    }

    #zertiAdmin .zerti-license-purchase-actions .zerti-action-btn {
        width: 100%;
        max-width: 100%;
    }

    #zertiAdmin .zerti-settings-layout__body {
        flex-direction: column !important;
    }

    #zertiAdmin .zerti-settings-nav {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs.zerti-settings-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        border-inline-start: none;
        border-bottom: 1px solid var(--zerti-docs-border);
        overflow: visible;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__item {
        flex: none;
        min-width: 0;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__link {
        justify-content: center;
        width: 100%;
        min-height: 2.65rem;
        padding: 0.45rem 0.4rem;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
        word-break: break-word;
        border-inline-start: none;
        border-bottom: 3px solid transparent;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__item.active .zerti-wc-tabs__link,
    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__link.active {
        border-inline-start-color: transparent;
        border-bottom-color: var(--zerti-bs-purple);
    }

    #zertiAdmin .zerti-settings-main {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        min-height: 0;
    }
}

@container zerti-settings (min-width: 681px) and (max-width: 991px) {
    #zertiAdmin .zerti-license-activate-table .zerti-license-activate-row--fields {
        flex-wrap: wrap;
    }

    #zertiAdmin .zerti-license-activate-row__field--key {
        flex: 1 1 12rem;
        min-width: min(100%, 12rem);
    }

    #zertiAdmin .zerti-license-activate-row__field--server {
        flex: 0 1 auto;
        max-width: 100%;
    }
}

@container zerti-settings (min-width: 420px) and (max-width: 680px) {
    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs.zerti-settings-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__link {
        font-size: 8.5pt;
        padding: 0.5rem 0.6rem;
        gap: 0.35rem;
    }

    #zertiAdmin .zerti-settings-nav .zerti-wc-tabs__link i {
        font-size: 0.85em;
    }
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity {
    --bs-gutter-y: 0.65rem;
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-label {
    margin-bottom: 0.35rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 600;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-text {
    font-size: 8.5pt;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    padding-block: 0;
    padding-inline: 0.45rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.2;
    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;
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-control:not(textarea) {
    height: 1.55rem;
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-control::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-control:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-control:focus,
#zertiAdmin .zerti-settings-form .zerti-settings-identity .form-control:focus-visible {
    outline: 0;
    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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-settings-form .zerti-settings-identity textarea.form-control {
    height: auto;
    min-height: 3.25rem;
    padding-block: 0.35rem;
    line-height: 1.35;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-identity .form-control {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-identity .form-control::placeholder {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-identity .form-control:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-identity .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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-identity .form-label {
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes {
    --bs-gutter-y: 0.65rem;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .form-label,
#zertiAdmin .zerti-settings-form .zerti-settings-themes__heading {
    margin-bottom: 0.35rem;
    font-family: var(--zerti-font-family);
    font-size: 9pt;
    font-weight: 600;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__heading {
    margin-bottom: 0.75rem;
    font-size: 9.5pt;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__section-title {
    margin-bottom: 0.35rem;
    font-family: var(--zerti-font-family);
    font-size: 8.5pt;
    font-weight: 600;
    line-height: 1.35;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__help,
#zertiAdmin .zerti-settings-form .zerti-settings-themes .form-text {
    font-family: var(--zerti-font-family);
    font-size: 8.5pt;
    line-height: 1.35;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.45rem;
    font-family: var(--zerti-font-family);
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.2;
    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;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control:focus,
#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control:focus-visible {
    outline: 0;
    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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    min-width: 2.35rem;
    height: 1.55rem;
    min-height: 1.55rem;
    padding: 0.12rem;
    border: 1px solid var(--zerti-docs-border);
    background-color: var(--zerti-docs-subtle-bg);
    border-start-start-radius: 0.5rem;
    border-start-end-radius: 0;
    border-end-start-radius: 0.5rem;
    border-end-end-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker:focus,
#zertiAdmin .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker: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-settings-form .zerti-settings-themes .zerti-settings-themes__color-text {
    flex: 1 1 auto;
    min-width: 0;
    border-start-start-radius: 0;
    border-start-end-radius: 0.5rem;
    border-end-start-radius: 0;
    border-end-end-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    letter-spacing: 0.02em;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 1.55rem;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 1.55rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range:focus {
    outline: 0;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
    border-radius: 999px;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range::-webkit-slider-runnable-track {
    height: 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zerti-docs-border) 72%, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: -0.3rem;
    border: 1px solid color-mix(in srgb, var(--zerti-bs-purple) 45%, var(--zerti-docs-border));
    border-radius: 50%;
    background: var(--zerti-brand);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range::-moz-range-track {
    height: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zerti-docs-border) 72%, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-range::-moz-range-thumb {
    width: 0.95rem;
    height: 0.95rem;
    border: 1px solid color-mix(in srgb, var(--zerti-bs-purple) 45%, var(--zerti-docs-border));
    border-radius: 50%;
    background: var(--zerti-brand);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-value {
    flex: 0 0 2.75rem;
    min-width: 2.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 8.5pt;
    font-weight: 600;
    line-height: 1.55rem;
    text-align: end;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    min-width: 1.55rem;
    padding: 0;
    margin: 0;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    background: var(--zerti-docs-subtle-bg);
    color: var(--zerti-docs-muted);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-reset:hover {
    color: var(--zerti-brand);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
    background: color-mix(in srgb, var(--zerti-brand) 8%, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-settings-form .zerti-settings-themes__radius-reset: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);
    color: var(--zerti-brand);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes__radius-reset {
    background: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes__radius-reset {
    background: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control::placeholder {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker: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.2rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes .form-label,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes__heading {
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes__section-title,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes__help {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__control,
#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes .zerti-settings-themes__color-picker {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes .form-label,
#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes__heading {
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes__section-title,
#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes__help {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-themes__radius-value {
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='light'] .zerti-settings-form .zerti-settings-themes__radius-value {
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-settings-form .zerti-settings-logo .zerti-logo-upload-field {
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-logo .zerti-logo-upload-field {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 40%, transparent);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-settings-form .zerti-settings-logo .zerti-settings-identity-logo-preview {
    background-color: var(--zerti-docs-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-settings-form .zerti-settings-logo .zerti-file-upload__button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.55rem;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    border-radius: 0.5rem;
}

#zertiAdmin .zerti-settings-form .zerti-settings-logo .zerti-file-upload__name {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    color: var(--zerti-docs-muted);
    word-break: break-word;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-logo .zerti-file-upload__name {
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-settings-form .zerti-settings-timezone-field {
    width: 100%;
}

#zertiAdmin .zerti-admin-select,
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-select,
#zertiAdmin .zerti-settings-form .zerti-settings-visual-theme-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-admin-select,
#zertiAdmin[data-bs-theme='dark'] .zerti-settings-form .zerti-settings-timezone-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-admin-select:hover,
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-select:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-admin-select:focus,
#zertiAdmin .zerti-admin-select:focus-visible,
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-select:focus,
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-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-admin-select option,
#zertiAdmin .zerti-admin-select optgroup,
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-select option,
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-select optgroup,
#zertiAdmin .zerti-shop-grid-filter-select option,
#zertiAdmin .zerti-payments-grid-filter-select option,
#zertiAdmin .zerti-coupons-grid-filter-select option,
#zertiAdmin .zerti-grid-filter-select option {
    background-color: var(--zerti-docs-bg);
    color: var(--zerti-docs-text);
    direction: inherit;
}

/* Native selects & options — chevron/text follow #zertiAdmin[dir] (Regional Settings). */
#zertiAdmin select:not(.zerti-ltr-field):not([dir='ltr']),
#zertiAdmin .form-select:not(.zerti-ltr-field):not([dir='ltr']) {
    direction: inherit;
}

#zertiAdmin select.zerti-admin-select:not(.zerti-ltr-field),
#zertiAdmin .zerti-settings-form .zerti-settings-timezone-select,
#zertiAdmin select.form-select.zerti-admin-select:not(.zerti-ltr-field),
#zertiAdmin .zerti-bulk-price-form select.form-select,
#zertiAdmin .zerti-bulk-price-form .zerti-admin-select,
#zertiAdmin .zerti-bulk-stock-form select.form-select,
#zertiAdmin .zerti-bulk-stock-form .zerti-admin-select,
#zertiAdmin .zerti-bulk-delete-products-form select.form-select,
#zertiAdmin .zerti-bulk-delete-products-form .zerti-admin-select,
#zertiAdmin .zerti-bulk-delete-customers-form select.form-select,
#zertiAdmin .zerti-bulk-delete-customers-form .zerti-admin-select,
#zertiAdmin .zerti-bulk-delete-orders-form select.form-select,
#zertiAdmin .zerti-bulk-delete-orders-form .zerti-admin-select,
#zertiAdmin .zerti-inv-categories__form select.form-select,
#zertiAdmin .zerti-inv-categories__form .zerti-admin-select,
#zertiAdmin .zerti-inventory-product-edit__form .form-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select,
#zertiAdmin .zerti-component-inventory-import-export select.zerti-admin-select,
#zertiAdmin .zerti-shop-grid-filter-select,
#zertiAdmin .zerti-payments-grid-filter-select,
#zertiAdmin .zerti-coupons-grid-filter-select,
#zertiAdmin .zerti-grid-filter-select {
    padding-inline-start: var(--zerti-select-pad-inline-start);
    padding-inline-end: var(--zerti-select-pad-inline-end);
    background-position: var(--zerti-select-chevron-pos);
    text-align: var(--zerti-select-text-align);
    text-align-last: var(--zerti-select-text-align);
}

#zertiAdmin .zerti-shop-grid-filter-select,
#zertiAdmin .zerti-payments-grid-filter-select,
#zertiAdmin .zerti-coupons-grid-filter-select,
#zertiAdmin .zerti-grid-filter-select {
    text-align: center;
    text-align-last: center;
}

#zertiAdmin .zerti-shop-grid-filter-select,
#zertiAdmin .zerti-payments-grid-filter-select,
#zertiAdmin .zerti-grid-filter-select,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-grid-filter-select,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .zerti-payments-grid-filter-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .zerti-coupons-grid-filter-select {
    --zerti-select-pad-inline-start: 0.75rem;
    --zerti-select-pad-inline-end: 2rem;
}

#zertiAdmin .zerti-inv-categories__form select.form-select,
#zertiAdmin .zerti-inv-categories__form .zerti-admin-select {
    --zerti-select-pad-inline-start: 0.45rem;
    --zerti-select-pad-inline-end: 1.75rem;
    --zerti-select-chevron-pos: left 0.4rem center;
}

#zertiAdmin[dir='ltr'] .zerti-inv-categories__form select.form-select,
#zertiAdmin[dir='ltr'] .zerti-inv-categories__form .zerti-admin-select {
    --zerti-select-chevron-pos: right 0.4rem center;
}

#zertiAdmin .zerti-inventory-product-edit__form .form-select {
    --zerti-select-chevron-pos: left 0.45rem center;
}

#zertiAdmin[dir='ltr'] .zerti-inventory-product-edit__form .form-select {
    --zerti-select-chevron-pos: right 0.45rem center;
}

/* Select2 / SelectWoo — dropdown list and chips follow admin direction. */
#zertiAdmin .select2-container,
#zertiAdmin .select2-container.zerti-admin-select2 {
    direction: inherit;
    text-align: var(--zerti-select-text-align);
}

#zertiAdmin .select2-container .select2-selection--multiple .select2-selection__rendered,
#zertiAdmin .select2-container.zerti-admin-select2 .select2-selection--multiple .select2-selection__rendered {
    direction: inherit;
    text-align: var(--zerti-select-text-align);
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='rtl']) .select2-dropdown.zerti-admin-select2-dropdown,
body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='rtl']) .zerti-component-inventory-import-export .select2-dropdown {
    direction: rtl;
    text-align: right;
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='ltr']) .select2-dropdown.zerti-admin-select2-dropdown,
body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='ltr']) .zerti-component-inventory-import-export .select2-dropdown {
    direction: ltr;
    text-align: left;
}

/* Review edit modal (appended to body) mirrors admin direction via dir attribute. */
body.toplevel_page_zerti-admin .zerti-inv-reviews__edit-modal[dir='rtl'] select.form-select,
body.toplevel_page_zerti-admin .zerti-inv-reviews__edit-modal[dir='rtl'] select.zerti-admin-select,
body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='rtl']) .zerti-inv-reviews__edit-modal select.form-select,
body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='rtl']) .zerti-inv-reviews__edit-modal select.zerti-admin-select {
    padding-inline-start: var(--zerti-select-pad-inline-start);
    padding-inline-end: var(--zerti-select-pad-inline-end);
    background-position: left 0.55rem center;
    direction: rtl;
    text-align: right;
    text-align-last: right;
}

body.toplevel_page_zerti-admin .zerti-inv-reviews__edit-modal[dir='ltr'] select.form-select,
body.toplevel_page_zerti-admin .zerti-inv-reviews__edit-modal[dir='ltr'] select.zerti-admin-select,
body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='ltr']) .zerti-inv-reviews__edit-modal select.form-select,
body.toplevel_page_zerti-admin:has(#zertiAdmin[dir='ltr']) .zerti-inv-reviews__edit-modal select.zerti-admin-select {
    padding-inline-start: 0.5rem;
    padding-inline-end: 1.85rem;
    background-position: right 0.55rem center;
    direction: ltr;
    text-align: left;
    text-align-last: left;
}

#zertiAdmin .zerti-settings-form .zerti-file-upload__button,
#zertiAdmin .zerti-settings-form .zerti-file-upload__name {
    font-size: 9pt;
}

#zertiAdmin .zerti-settings-form .zerti-file-upload__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

#zertiAdmin .zerti-settings-form > .zerti-settings-top-bar {
    flex: 0 0 auto;
    width: 100%;
}

#zertiAdmin .zerti-settings-form .zerti-settings-save-btn {
    margin-bottom: 0;
    box-shadow: none;
}

#zertiAdmin .zerti-settings-form .zerti-settings-save-btn:hover,
#zertiAdmin .zerti-settings-form .zerti-settings-save-btn:focus-visible {
    box-shadow: none;
}

#zertiAdmin .zerti-settings-form .zerti-settings-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--zerti-docs-border);
    border-radius: 1rem;
    background: rgba(var(--bs-body-bg-rgb), 0.18);
}

#zertiAdmin .zerti-settings-form .zerti-settings-switch-row .form-check-label {
    line-height: 1.45;
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 1.55rem;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #adb5bd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-input:checked + .zerti-settings-toggle {
    background: var(--zerti-bs-purple);
    box-shadow: 0 2px 8px rgba(113, 44, 249, 0.22);
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle:hover {
    box-shadow: 0 4px 14px rgba(108, 117, 125, 0.3);
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-input:checked + .zerti-settings-toggle:hover {
    box-shadow: 0 4px 14px rgba(113, 44, 249, 0.35);
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle:active {
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-input:focus-visible + .zerti-settings-toggle {
    outline: 2px solid var(--zerti-bs-purple);
    outline-offset: 2px;
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-ico {
    display: none;
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-track {
    display: contents;
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-thumb {
    position: absolute;
    top: 50%;
    left: 0.22rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

#zertiAdmin .zerti-settings-form .zerti-settings-toggle-input:checked + .zerti-settings-toggle .zerti-settings-toggle-thumb {
    transform: translate(1.45rem, -50%);
}

#zertiAdmin .zerti-settings-form .zerti-logo-upload-field {
    text-align: center;
    border: 1px solid var(--zerti-docs-border);
    padding: 1rem;
}

#zertiAdmin .zerti-settings-form .zerti-logo-upload-field .zerti-logo-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#zertiAdmin .zerti-settings-form .zerti-logo-upload-field .zerti-file-upload {
    justify-content: center;
}

#zertiAdmin .zerti-component-home > .zerti-home-leaderboards-row {
    margin-top: var(--zerti-home-stat-grid-split-gap);
}

#zertiAdmin .zerti-home-leaderboard-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: clamp(0.65rem, 1vw + 0.45rem, 1rem);
}

#zertiAdmin .zerti-home-leaderboard-card__title {
    margin: 0 0 0.65rem;
    width: 100%;
}

#zertiAdmin .zerti-component-home .zerti-home-leaderboard-card .zerti-home-stat-label {
    font-size: clamp(0.62rem, 0.95vw + 0.4rem, 0.78rem);
    line-height: 1.2;
}

#zertiAdmin .zerti-home-leaderboard-card__body {
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-home-leaderboard-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--zerti-docs-text);
    font-size: var(--zerti-font-size-sm, 0.875em);
    margin: 0;
}

#zertiAdmin .zerti-home-leaderboard-table thead th {
    color: var(--zerti-docs-muted);
    font-weight: 600;
    border-bottom-color: var(--zerti-docs-border);
    background: var(--zerti-docs-subtle-bg);
    white-space: nowrap;
    text-align: center;
}

#zertiAdmin .zerti-home-leaderboard-table td,
#zertiAdmin .zerti-home-leaderboard-table th {
    border-color: var(--zerti-docs-border);
    vertical-align: middle;
    text-align: center;
}

#zertiAdmin .zerti-home-leaderboard-card__num,
#zertiAdmin .zerti-home-leaderboard-card__price {
    text-align: center;
    white-space: nowrap;
}

#zertiAdmin .zerti-home-skeleton--leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.15rem 0;
}

#zertiAdmin .zerti-home-skeleton__leaderboard-row {
    display: block;
    height: 0.85rem;
    border-radius: 0.35rem;
    background: var(--zerti-docs-subtle-bg);
    animation: zerti-home-skeleton-pulse 1.35s ease-in-out infinite;
}

#zertiAdmin .zerti-home-skeleton__leaderboard-row:nth-child(odd) {
    width: 92%;
}

#zertiAdmin .zerti-home-skeleton__leaderboard-row:nth-child(even) {
    width: 78%;
}

#zertiAdmin .zerti-component-home > .row {
    flex: 0 0 auto;
}

/* In-app tabs: buttons + empty panel slots (no full page reload). */
#zertiAdmin .zerti-nav-tab {
    font-family: inherit;
    color: var(--zerti-docs-text);
    background: transparent;
    font-size: 10pt;
    line-height: 1.25;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

#zertiAdmin .zerti-nav-tab:focus-visible {
    outline: 2px solid var(--zerti-bs-purple, #712cf9);
    outline-offset: 2px;
}

#zertiAdmin button.zerti-nav-tab.zerti-nav-tab--disclosure {
    appearance: none;
    cursor: pointer;
    text-align: inherit;
}

#zertiAdmin .zerti-nav-submenu-group {
    width: 100%;
}

#zertiAdmin .zerti-nav-submenu-wrap:not([hidden]) .zerti-nav-submenu-inner {
    margin-inline-start: 0.45rem;
    padding-inline-start: 0.2rem;
    border-inline-start: 1px solid var(--zerti-docs-border, rgba(255, 255, 255, 0.12));
}

#zertiAdmin .zerti-nav-submenu-item.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    font-family: inherit;
    color: var(--zerti-docs-text);
    background: transparent;
    font-size: 9pt;
    line-height: 1.25;
    padding: 0.28rem 0.3rem;
    border-radius: var(--zerti-bs-border-radius, 0.375rem);
}

#zertiAdmin .zerti-nav-submenu-item .fa-solid,
#zertiAdmin .zerti-nav-submenu-item .fa-brands {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: 1.25em;
    height: 1.25em;
    margin: 0;
    font-family: var(--fa-style-family, 'Font Awesome 6 Free');
    font-style: normal;
    font-variant: normal;
    font-size: 0.95em;
    line-height: 1;
    text-rendering: auto;
    transform: translateY(-0.07em);
}

#zertiAdmin .zerti-nav-submenu-item .fa-solid,
#zertiAdmin .zerti-nav-submenu-item .fa-solid::before {
    font-weight: 900;
}

#zertiAdmin .zerti-nav-submenu-item .fa-brands,
#zertiAdmin .zerti-nav-submenu-item .fa-brands::before {
    font-weight: 400;
}

#zertiAdmin .zerti-nav-submenu-item .fa-solid::before,
#zertiAdmin .zerti-nav-submenu-item .fa-brands::before {
    display: block;
    line-height: 1;
}

#zertiAdmin .zerti-nav-submenu-item.nav-link > span:not(.zerti-nav-processing-badge):not(.zerti-nav-pro-badge) {
    display: inline-flex;
    align-items: center;
    align-self: center;
    line-height: 1;
}

#zertiAdmin .zerti-nav-submenu-item:focus-visible {
    outline: 2px solid var(--zerti-bs-purple, #712cf9);
    outline-offset: 2px;
}

#zertiAdmin .zerti-nav-submenu-item.active {
    background: var(--zerti-bs-purple, #712cf9);
    color: var(--zerti-color-white-text);
}

/* Mobile offcanvas menu: 70% of the viewport width; physical side follows dir (RTL=right, LTR=left). */
@media (max-width: 991.98px) {
    #zertiAdmin #zertiSidebar.offcanvas.zerti-sidebar-offcanvas {
        --bs-offcanvas-width: 70%;
        width: 70%;
        max-width: 70%;
        top: 0;
        bottom: 0;
        height: 100%;
        max-height: 100dvh;
    }

    #zertiAdmin[dir='rtl'] #zertiSidebar.offcanvas.zerti-sidebar-offcanvas {
        right: 0;
        left: auto;
        border-left: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
        border-right: 0;
        transform: translateX(100%);
    }

    #zertiAdmin[dir='ltr'] #zertiSidebar.offcanvas.zerti-sidebar-offcanvas {
        left: 0;
        right: auto;
        border-right: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
        border-left: 0;
        transform: translateX(-100%);
    }

    #zertiAdmin #zertiSidebar.offcanvas.zerti-sidebar-offcanvas.showing,
    #zertiAdmin #zertiSidebar.offcanvas.zerti-sidebar-offcanvas.show:not(.hiding) {
        transform: none;
    }
}

#zertiAdmin #zertiSidebar.offcanvas .offcanvas-header {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 12px 6px 0;
    margin: 0;
    border: 0;
    background: transparent;
}

#zertiAdmin #zertiSidebar.offcanvas .offcanvas-body > .zerti-sidebar-branding {
    padding-top: 12px;
    padding-inline: 6px;
}

#zertiAdmin #zertiSidebar.offcanvas .offcanvas-body {
    overflow: hidden;
    max-height: 100dvh;
    min-height: 0;
}

#zertiAdmin #zertiSidebar.offcanvas .zerti-sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
}

#zertiAdmin .zerti-panel[hidden] {
    display: none !important;
}

#zertiAdmin .zerti-panel-slot {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: relative;
}

#zertiAdmin .zerti-panel-slot.zerti-panel-slot--loading {
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
}

#zertiAdmin .zerti-panel-slot::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-panel-slot {
    background: transparent;
}

#zertiAdmin .zerti-panel-slot--pending:empty {
    min-height: 8rem;
}

#zertiAdmin .zerti-panel-slot:has(> .zerti-pro-feature-preview > .zerti-component-financial-reports) {
    overflow-y: hidden;
}

/*
 * AG Grid list tabs: stretch to the panel slot; grid body fills the glass wrap (no dead gap below rows).
 */
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-warehouse,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-shop,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-customers,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-financial-payments,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-financial-coupons,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-financial-sales-report,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-financial-reports,
#zertiAdmin .zerti-pro-feature-preview > .zerti-component.zerti-component-financial-reports,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-categories,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-brands,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-tags,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-attributes,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-attribute-groups,
#zertiAdmin .zerti-panel-slot > .zerti-bulk-action-shell,
#zertiAdmin .zerti-pro-feature-preview > .zerti-bulk-action-shell,
#zertiAdmin .zerti-bulk-action-shell > .zerti-component.zerti-component-bulk-action,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-bulk-action,
#zertiAdmin .zerti-pro-feature-preview > .zerti-component.zerti-component-bulk-action,
#zertiAdmin .zerti-pro-feature-preview > .zerti-component.zerti-shop-order-create,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-comments,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-component-inventory-import-export,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-inventory-product-edit,
#zertiAdmin .zerti-panel-slot > .zerti-component.zerti-wc-product-editor {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: none;
    align-self: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

/*
 * Taxonomy managers (categories, brands, tags, attributes): panel slot fixed height;
 * list + editor cards stretch inside __layout (scroll inside tree-scroll / editor-scroll).
 */
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-inventory-categories),
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-inventory-brands),
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-inventory-tags),
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-inventory-attributes),
#zertiAdmin .zerti-panel-slot:has(> .zerti-component-inventory-attribute-groups) {
    overflow-y: hidden;
}

/*
 * Order / invoice / customer detail — panel slot stays fixed; scroll __main on all breakpoints.
 */
#zertiAdmin .zerti-panel-slot:has(> .zerti-shop-order-detail),
#zertiAdmin .zerti-panel-slot:has(> .zerti-customer-detail) {
    overflow-y: hidden;
}

#zertiAdmin .zerti-shop-order-detail__main,
#zertiAdmin .zerti-customer-detail__main {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-panel,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-panel,
#zertiAdmin .zerti-component-customers .zerti-customers-panel,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-panel,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-panel,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-panel,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-panel,
#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: none;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-wrap,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-wrap,
#zertiAdmin .zerti-component-customers .zerti-customers-wrap,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-wrap,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-wrap,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-wrap,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-wrap,
#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-wrap,
#zertiAdmin .zerti-component-inventory-categories .zerti-inv-categories,
#zertiAdmin .zerti-component-inventory-brands .zerti-inv-categories,
#zertiAdmin .zerti-component-inventory-tags .zerti-inv-categories,
#zertiAdmin .zerti-component-inventory-attributes .zerti-inv-categories,
#zertiAdmin .zerti-component-inventory-attribute-groups .zerti-inv-categories {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#zertiAdmin .zerti-products-panel-toolbar,
#zertiAdmin .zerti-shop-orders-actions,
#zertiAdmin .zerti-shop-grid-toolbar,
#zertiAdmin .zerti-customers-grid-toolbar,
#zertiAdmin .zerti-payments-grid-toolbar,
#zertiAdmin .zerti-coupons-grid-toolbar,
#zertiAdmin .zerti-sales-report-grid-toolbar,
#zertiAdmin .zerti-standard-reports-grid-toolbar,
#zertiAdmin .zerti-products-grid-toolbar,
#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar {
    flex: 0 0 auto;
}

#zertiAdmin .ag-theme-zerti {
    flex: 1 1 0;
    min-height: 11rem;
    height: 100%;
    max-height: none;
    overflow: hidden;
}

#zertiAdmin .ag-theme-zerti .ag-root-wrapper,
#zertiAdmin .ag-theme-zerti .ag-root-wrapper-body,
#zertiAdmin .ag-theme-zerti .ag-root {
    height: 100%;
    min-height: 0;
}

/* Blur over the active component card while its tab loads; spinner + label centered. */
#zertiAdmin .zerti-component-load-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.42);
    direction: inherit;
    box-sizing: border-box;
    text-align: center;
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-load-overlay {
    background: rgba(255, 255, 255, 0.45);
}
