/**
 * ZERTI admin layer: zerti-features-shop.css
 * Shop orders grid, order detail, customers
 * Loaded via assets/css/zerti-admin.css manifest and includes/admin/assets.php.
 * @see docs/DESIGN-SYSTEM.md
 */

/* Shop — orders table: glass panel, rounded, tall bold header */
#zertiAdmin .zerti-component-shop .zerti-shop-orders-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-wrap,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-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 {
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 65%, transparent);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 42%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--zerti-docs-text) 6%, transparent) inset;
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-shop .zerti-shop-orders-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-inventory-warehouse .zerti-products-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-customers .zerti-customers-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-payments .zerti-payments-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-coupons .zerti-coupons-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-sales-report .zerti-sales-report-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-reports .zerti-standard-reports-wrap,
#zertiAdmin[data-bs-theme='light'] .zerti-component-inventory-comments .zerti-reviews-wrap {
    background: color-mix(in srgb, var(--zerti-docs-bg) 55%, transparent);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--zerti-docs-text) 5%, transparent) inset;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-shop .zerti-shop-orders-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-warehouse .zerti-products-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-customers .zerti-customers-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-payments .zerti-payments-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupons-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-sales-report .zerti-sales-report-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-reports .zerti-standard-reports-wrap,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-comments .zerti-reviews-wrap {
    box-shadow: 0 1px 0 color-mix(in srgb, var(--zerti-docs-text) 8%, transparent) inset;
}

/* Grid list search — 9pt, compact height (shop, customers, products, payments). */
#zertiAdmin .zerti-shop-grid-search-input,
#zertiAdmin .zerti-customers-grid-search-input,
#zertiAdmin .zerti-products-grid-search-input,
#zertiAdmin .zerti-payments-grid-search-input,
#zertiAdmin .zerti-coupons-grid-search-input,
#zertiAdmin .zerti-sales-report-grid-search-input,
#zertiAdmin .zerti-standard-reports-grid-search-input,
#zertiAdmin .zerti-inv-categories__search-input,
#zertiAdmin .zerti-inv-categories__term-search-input,
#zertiAdmin .zerti-bulk-action-safety-gate__search-input,
#zertiAdmin .zerti-component-inventory-comments .zerti-inv-reviews__status-filter {
    box-sizing: border-box;
    font-size: 9pt;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    padding-block: 0.08rem;
    padding-inline: 0.45rem;
    min-height: 0;
    height: 1.55rem;
    border-radius: 0.5rem;
}

#zertiAdmin .zerti-shop-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-customers-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-products-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-payments-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-coupons-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-sales-report-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-standard-reports-grid-search-input:focus::placeholder,
#zertiAdmin .zerti-inv-categories__search-input:focus::placeholder,
#zertiAdmin .zerti-inv-categories__term-search-input:focus::placeholder,
#zertiAdmin .zerti-bulk-action-safety-gate__search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-shop .zerti-shop-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-customers .zerti-customers-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-warehouse .zerti-products-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-payments .zerti-payments-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupons-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-sales-report .zerti-sales-report-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-reports .zerti-standard-reports-grid-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-inv-categories__search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-inv-categories__term-search-input:focus::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-bulk-action-safety-gate__search-input:focus::placeholder {
    opacity: 0;
    color: transparent;
}

#zertiAdmin .zerti-shop-grid-search-icon,
#zertiAdmin .zerti-customers-grid-search-icon,
#zertiAdmin .zerti-products-grid-search-icon,
#zertiAdmin .zerti-payments-grid-search-icon,
#zertiAdmin .zerti-coupons-grid-search-icon,
#zertiAdmin .zerti-sales-report-grid-search-icon,
#zertiAdmin .zerti-standard-reports-grid-search-icon,
#zertiAdmin .zerti-inv-categories__search-icon {
    font-size: 0.7rem;
}

#zertiAdmin .zerti-shop-grid-search-label,
#zertiAdmin .zerti-customers-grid-search-label,
#zertiAdmin .zerti-products-grid-search-label,
#zertiAdmin .zerti-payments-grid-search-label,
#zertiAdmin .zerti-coupons-grid-search-label,
#zertiAdmin .zerti-sales-report-grid-search-label,
#zertiAdmin .zerti-standard-reports-grid-search-label,
#zertiAdmin .zerti-inv-categories__search-label {
    gap: 0.35rem;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-shop-grid-toolbar,
    #zertiAdmin .zerti-customers-grid-toolbar,
    #zertiAdmin .zerti-products-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-inv-categories__toolbar {
        justify-content: center;
    }

    #zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar {
        direction: ltr;
        justify-content: space-between;
    }

    #zertiAdmin .zerti-shop-grid-search-label,
    #zertiAdmin .zerti-customers-grid-search-label,
    #zertiAdmin .zerti-products-grid-search-label,
    #zertiAdmin .zerti-payments-grid-search-label,
    #zertiAdmin .zerti-coupons-grid-search-label,
    #zertiAdmin .zerti-sales-report-grid-search-label,
    #zertiAdmin .zerti-standard-reports-grid-search-label,
    #zertiAdmin .zerti-inv-categories__search-label {
        width: 50%;
        max-width: 50%;
        min-width: 0;
        flex: 0 0 50%;
        justify-content: center;
        margin-inline: auto;
    }

    #zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search .zerti-inv-categories__search-label {
        width: auto;
        max-width: none;
        flex: 0 1 auto;
        justify-content: flex-start;
        margin-inline: 0;
    }

    #zertiAdmin .zerti-shop-grid-search-input,
    #zertiAdmin .zerti-customers-grid-search-input,
    #zertiAdmin .zerti-products-grid-search-input,
    #zertiAdmin .zerti-payments-grid-search-input,
    #zertiAdmin .zerti-coupons-grid-search-input,
    #zertiAdmin .zerti-sales-report-grid-search-input,
    #zertiAdmin .zerti-standard-reports-grid-search-input,
    #zertiAdmin .zerti-inv-categories__search-input,
    #zertiAdmin .zerti-inv-categories__term-search-input {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding-inline-start: 0.45rem;
    }

    #zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search .zerti-inv-categories__search-input {
        width: auto;
        min-width: min(100%, 12rem);
        max-width: min(100%, 20rem);
        padding-inline-start: 0.45rem;
    }

    #zertiAdmin .zerti-shop-grid-search-icon,
    #zertiAdmin .zerti-customers-grid-search-icon,
    #zertiAdmin .zerti-products-grid-search-icon,
    #zertiAdmin .zerti-payments-grid-search-icon,
    #zertiAdmin .zerti-coupons-grid-search-icon,
    #zertiAdmin .zerti-sales-report-grid-search-icon,
    #zertiAdmin .zerti-standard-reports-grid-search-icon,
    #zertiAdmin .zerti-inv-categories__search-icon {
        display: none;
    }

    #zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search .zerti-inv-categories__search-icon {
        display: block;
    }
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-toolbar-start {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
    direction: rtl;
}

#zertiAdmin .zerti-shop-order-create {
    position: relative;
    font-size: 9pt;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-shop-order-create .form-label,
#zertiAdmin .zerti-shop-order-create .form-check-label,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-customer-field__label,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-customer-field__label label {
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-product-picker {
    position: relative;
    min-width: 12rem;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-customer-picker {
    position: relative;
    max-width: 28rem;
}

#zertiAdmin .zerti-shop-order-create__form .form-control,
#zertiAdmin .zerti-shop-order-create__form .form-select,
#zertiAdmin .zerti-shop-order-create__form .zerti-product-linked-picker__search,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 1.55rem;
    height: auto;
    padding: 0.12rem 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;
}

#zertiAdmin .zerti-shop-order-create__form .form-control::placeholder,
#zertiAdmin .zerti-shop-order-create__form .zerti-product-linked-picker__search::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-shop-order-create__form .form-control:hover,
#zertiAdmin .zerti-shop-order-create__form .form-select:hover,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-shop-order-create__form .form-control:focus,
#zertiAdmin .zerti-shop-order-create__form .form-select:focus,
#zertiAdmin .zerti-shop-order-create__form .form-control:focus-visible,
#zertiAdmin .zerti-shop-order-create__form .form-select:focus-visible,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select:focus,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select: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.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-shop-order-create__form .form-control:disabled,
#zertiAdmin .zerti-shop-order-create__form .zerti-product-linked-picker__search:disabled {
    color: color-mix(in srgb, var(--zerti-docs-text) 72%, var(--zerti-docs-muted));
    background-color: color-mix(in srgb, var(--zerti-docs-subtle-bg) 82%, var(--zerti-docs-border));
    opacity: 1;
    cursor: not-allowed;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-control,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-select,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .zerti-product-linked-picker__search,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-control::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .zerti-product-linked-picker__search::placeholder {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-control:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-select:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-control:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create__form .form-select:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select:focus-visible {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-invoice__meta-row--status {
    align-items: center;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-detail__meta-status .zerti-shop-order-detail__action--status {
    display: block;
    flex-direction: unset;
    flex-wrap: unset;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#zertiAdmin .zerti-shop-order-create__form .zerti-shop-order-create-status-select,
#zertiAdmin .zerti-shop-order-create .zerti-shop-invoice__meta-row--status .zerti-admin-select,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-detail__action--status .zerti-admin-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    height: 1.55rem;
    padding-block: 0;
    padding-inline-start: 0.45rem;
    padding-inline-end: 1.75rem;
    line-height: 1.55rem;
    background-size: 0.7rem;
    border-radius: 0.5rem;
}

#zertiAdmin .zerti-shop-order-create-fields.zerti-shop-order-create-fields--aligned {
    --zerti-shop-create-field-label-w: 8.5rem;
    --zerti-shop-create-field-label-w-inline: minmax(3.5rem, 5.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    grid-template-columns: unset;
}

#zertiAdmin .zerti-shop-order-create-fields__row {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.45rem 0.65rem;
}

#zertiAdmin .zerti-shop-order-create-fields__row--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#zertiAdmin .zerti-shop-order-create-fields__row--single {
    grid-template-columns: minmax(0, 1fr);
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-create-fields__row--quad .zerti-shop-order-customer-field {
    grid-template-columns: auto minmax(0, 1fr);
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-create-fields__row--single .zerti-shop-order-customer-field,
#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-create-fields__row--single .zerti-shop-order-customer-field--wide {
    grid-template-columns: var(--zerti-shop-create-field-label-w) minmax(0, 1fr);
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field,
#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field--wide {
    display: grid;
    grid-template-columns: var(--zerti-shop-create-field-label-w) minmax(0, 1fr);
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.25rem 0.45rem;
    margin: 0;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin: 0;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.55rem;
    color: var(--zerti-docs-muted);
    text-align: end;
    white-space: nowrap;
    min-width: 0;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field__label::after {
    content: ':\00a0';
    flex-shrink: 0;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field__label label {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    white-space: inherit;
    cursor: pointer;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-create-fields__row--single .zerti-shop-order-customer-field__label {
    white-space: normal;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field__value {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .form-control,
#zertiAdmin .zerti-shop-order-create-fields--aligned .form-select {
    width: 100%;
}

#zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-create-billing-select {
    min-width: 0;
    min-height: 1.55rem;
    height: 1.55rem;
    padding-block: 0;
    padding-inline-start: 0.45rem;
    padding-inline-end: 1.75rem;
    line-height: 1.55rem;
    font-size: 9pt;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-shop-order-create-fields__row--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-shop-order-create-fields--aligned {
        --zerti-shop-create-field-label-w: minmax(6.25rem, 38%);
        --zerti-shop-create-field-label-w-inline: minmax(5rem, 42%);
    }

    #zertiAdmin .zerti-shop-order-create-fields__row--quad {
        grid-template-columns: minmax(0, 1fr);
    }

    #zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field,
    #zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-customer-field--wide,
    #zertiAdmin .zerti-shop-order-create-fields--aligned .zerti-shop-order-create-fields__row--quad .zerti-shop-order-customer-field {
        grid-template-columns: var(--zerti-shop-create-field-label-w) minmax(0, 1fr);
    }
}

#zertiAdmin .zerti-shop-order-create-shipping {
    border-color: color-mix(in srgb, var(--zerti-docs-border) 65%, transparent) !important;
}

#zertiAdmin .zerti-shop-order-create-shipping-package .form-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

#zertiAdmin .zerti-shop-order-create-shipping-package .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 9pt;
    line-height: 1.4;
}

#zertiAdmin .zerti-shop-order-create-shipping-package .form-check-input {
    flex: 0 0 auto;
    float: none;
    margin: 0.15rem 0 0;
}

#zertiAdmin .zerti-shop-order-create-items-table .zerti-shop-order-create-input,
#zertiAdmin .zerti-shop-order-create-items-table .zerti-product-linked-picker__search {
    min-width: 0;
}

#zertiAdmin .zerti-shop-order-create-items-table .zerti-shop-order-create-qty {
    width: 5rem;
    max-width: 100%;
    margin-inline: auto;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-invoice__items .zerti-shop-order-items-wrap,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-items-wrap.table-responsive {
    overflow: visible;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-items-table,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-items-table tbody,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-items-table tr,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-items-table td {
    overflow: visible;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-item-name {
    position: relative;
    overflow: visible;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-line--picker-open,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-line:focus-within {
    position: relative;
    z-index: 15;
}

#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-line--picker-open .zerti-shop-order-item-name,
#zertiAdmin .zerti-shop-order-create .zerti-shop-order-create-line:focus-within .zerti-shop-order-item-name {
    z-index: 16;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-shop-order-create .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody tr {
        overflow: visible;
    }

    #zertiAdmin .zerti-shop-order-create .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td {
        overflow: visible;
    }
}

#zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results {
    --zerti-shop-create-picker-row-h: 1.75rem;
    --zerti-shop-create-picker-visible-rows: 3;
    z-index: 1060;
    max-height: calc(var(--zerti-shop-create-picker-row-h) * var(--zerti-shop-create-picker-visible-rows));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--zerti-docs-bg);
    color: var(--zerti-docs-text);
    border-color: var(--zerti-docs-border);
    box-shadow: 0 4px 16px color-mix(in srgb, #000 18%, transparent);
}

#zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results .zerti-product-linked-picker__result,
#zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results .zerti-product-linked-picker__empty {
    min-height: var(--zerti-shop-create-picker-row-h);
    box-sizing: border-box;
    line-height: 1.35;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results.zerti-scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--zerti-docs-muted) 55%, var(--zerti-docs-border)) transparent;
    -ms-overflow-style: auto;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results.zerti-scrollbar-thin::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    display: block;
    background: transparent;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results.zerti-scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results.zerti-scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--zerti-docs-muted) 55%, var(--zerti-docs-border));
    border-radius: 999px;
}

body.toplevel_page_zerti-admin #zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__results.zerti-scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 42%, var(--zerti-docs-muted));
}

#zertiAdmin .zerti-shop-order-create .zerti-product-linked-picker__chip {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 65%, transparent);
    border-color: color-mix(in srgb, var(--zerti-docs-border) 60%, transparent);
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-shop-order-create .form-check-input {
    border-color: var(--zerti-docs-border);
    background-color: var(--zerti-docs-subtle-bg);
}

#zertiAdmin .zerti-shop-order-create .form-check-input:checked {
    background-color: var(--zerti-bs-purple);
    border-color: var(--zerti-bs-purple);
}

#zertiAdmin .zerti-shop-order-create .form-check-input:focus {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-shop-order-create-items-footer {
    border-top: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-status-filter-bar,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-stock-filter-bar,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-scope-filter-bar,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-scope-filter-bar {
    flex: 0 0 100%;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
    text-align: center;
    direction: rtl;
    font-size: 8pt;
}

#zertiAdmin .zerti-shop-orders-status-filter-bar .zerti-grid-list-filter-label,
#zertiAdmin .zerti-products-stock-filter-bar .zerti-grid-list-filter-label,
#zertiAdmin .zerti-payments-scope-filter-bar .zerti-grid-list-filter-label,
#zertiAdmin .zerti-sales-scope-filter-bar .zerti-grid-list-filter-label {
    font-size: 8pt;
    line-height: 1.25;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-toolbar .zerti-shop-orders-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    direction: rtl;
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-search-input {
    min-width: min(100%, 14rem);
    text-align: center;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-shop .zerti-shop-grid-search-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-component-shop .zerti-shop-grid-search-input::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-add-btn,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-btn,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-unpaid-btn,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-export-btn,
#zertiAdmin .zerti-component-customers .zerti-customers-export-btn,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-export-btn,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-export-btn {
    box-sizing: border-box;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.2;
    min-height: 0;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.45rem;
    border-radius: 0.5rem;
    gap: 0.35rem;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-export-btn {
    box-sizing: border-box;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 8pt;
    font-weight: 500;
    line-height: 1.25;
    min-height: 0;
    height: 1.55rem;
    padding-block: 0;
    padding-inline: 0.45rem;
    border-radius: 0.5rem;
    gap: 0.35rem;
    --bs-btn-font-size: 8pt;
    --bs-btn-line-height: 1.25;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-export-btn .zerti-sales-report-export-label {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-btn[disabled],
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-btn[aria-busy='true'],
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-unpaid-btn[disabled],
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-unpaid-btn[aria-busy='true'],
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-export-btn[disabled],
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-export-btn[aria-busy='true'],
#zertiAdmin .zerti-component-customers .zerti-customers-export-btn[disabled],
#zertiAdmin .zerti-component-customers .zerti-customers-export-btn[aria-busy='true'],
#zertiAdmin .zerti-component-financial-payments .zerti-payments-export-btn[disabled],
#zertiAdmin .zerti-component-financial-payments .zerti-payments-export-btn[aria-busy='true'],
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-export-btn[disabled],
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-export-btn[aria-busy='true'] {
    opacity: 0.65;
    cursor: progress;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-btn .fa-file-excel,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-btn .fa-download,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-unpaid-btn .fa-file-excel,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-export-sql-unpaid-btn .fa-download,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-export-btn .fa-file-excel,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-export-btn .fa-download,
#zertiAdmin .zerti-component-customers .zerti-customers-export-btn .fa-file-excel,
#zertiAdmin .zerti-component-customers .zerti-customers-export-btn .fa-download,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-export-btn .fa-file-excel,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-export-btn .fa-download,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-export-btn .fa-file-excel,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-export-btn .fa-download,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-export-btn .fa-file-excel,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-export-btn .fa-download {
    font-size: 0.7rem;
    line-height: 1;
    color: #217346;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn .fa-plus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-add-btn .fa-plus {
    font-size: 0.7rem;
    line-height: 1;
    color: inherit;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-toolbar-start .zerti-shop-order-new-btn span,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-add-btn span,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-actions .zerti-shop-orders-export-sql-btn .zerti-shop-orders-export-sql-label,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-actions .zerti-shop-orders-export-sql-unpaid-btn .zerti-shop-orders-export-sql-unpaid-label {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn--pro,
#zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn--pro span {
    color: #ffc107;
    animation: zerti-nav-pro-label-blink 1.4s ease-in-out infinite;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-shop .zerti-shop-order-new-btn--pro,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-shop .zerti-shop-order-new-btn--pro span {
    color: #ffd54f;
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-shop .zerti-shop-order-new-btn--pro,
#zertiAdmin[data-bs-theme='light'] .zerti-component-shop .zerti-shop-order-new-btn--pro span {
    color: #e6a800;
}

@media (prefers-reduced-motion: reduce) {
    #zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn--pro,
    #zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn--pro span {
        animation: none;
    }
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-new-btn__pro-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    line-height: 1;
    color: #ffc107;
    pointer-events: none;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-shop .zerti-shop-order-new-btn__pro-badge {
    color: #ffd54f;
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-shop .zerti-shop-order-new-btn__pro-badge {
    color: #e6a800;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-actions .zerti-shop-orders-export-sql-btn.btn-outline-secondary,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-actions .zerti-shop-orders-export-sql-unpaid-btn.btn-outline-secondary,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar .zerti-products-export-btn.btn-outline-secondary,
#zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar .zerti-customers-export-btn.btn-outline-secondary,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar .zerti-payments-export-btn.btn-outline-secondary,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-toolbar .zerti-sales-report-export-btn.btn-outline-secondary,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-export-btn.btn-outline-secondary {
    border-width: 1px;
}

#zertiAdmin .zerti-shop-orders-status-filter-bar .zerti-grid-list-filter-clear-btn,
#zertiAdmin .zerti-products-stock-filter-bar .zerti-grid-list-filter-clear-btn,
#zertiAdmin .zerti-payments-scope-filter-bar .zerti-grid-list-filter-clear-btn,
#zertiAdmin .zerti-sales-scope-filter-bar .zerti-grid-list-filter-clear-btn {
    box-sizing: border-box;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 8pt;
    font-weight: 500;
    line-height: 1.25;
    min-height: 0;
    height: auto;
    padding: 0.35rem 0.85rem;
    border-radius: 0.375rem;
    border-width: 2px;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar .zerti-products-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-component-shop .zerti-shop-grid-toolbar .zerti-shop-orders-actions {
        justify-content: flex-end;
        align-self: flex-end;
    }
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-loading {
    position: absolute;
    inset: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    pointer-events: none;
}

#zertiAdmin .zerti-component-shop .zerti-shop-grid-loading[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-header-row-column-filter,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-floating-filter,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-floating-filter-body {
    display: none !important;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-header-cell-label {
    justify-content: center;
    font-weight: 700;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-header-cell-text {
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-floating-filter-input,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-floating-filter-input input {
    text-align: center;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 78%, transparent);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-filter:has(.zerti-shop-grid-filter-select),
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-filter-body-wrapper:has(.zerti-shop-grid-filter-select),
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-filter-wrapper:has(.zerti-shop-grid-filter-select) {
    padding: 0;
    color: #1f2937;
    background: #ffffff;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-grid-filter-select,
#zertiAdmin .zerti-shop-grid-filter-select {
    min-width: 10rem;
    min-height: 2rem;
    display: block;
    margin: 0;
    padding-block: 0.25rem;
    padding-inline-start: var(--zerti-select-pad-inline-start, 0.75rem);
    padding-inline-end: var(--zerti-select-pad-inline-end, 2rem);
    text-align: center;
    text-align-last: center;
    font-size: 9pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
    appearance: none;
    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;
    box-shadow: none;
    cursor: pointer;
    direction: inherit;
}

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

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

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-cell {
    font-weight: 400;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-id-cell {
    flex: 0 0 auto;
    padding-inline: 0.35rem;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid {
    --zerti-shop-orders-grid-chip-font-size: 9pt;
    --zerti-shop-orders-grid-chip-height: calc(9pt * (0.42 + 1.2 + 0.42));
    --zerti-shop-orders-grid-chip-radius: var(--bs-border-radius, 0.375rem);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-cell .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--zerti-shop-orders-grid-chip-height);
    max-height: var(--zerti-shop-orders-grid-chip-height);
    padding-block: 0;
    padding-inline: 0.72em;
    font-size: var(--zerti-shop-orders-grid-chip-font-size);
    font-weight: 400;
    line-height: 1;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-cell .ag-cell-wrapper,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-cell .ag-cell-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-downloads {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--zerti-shop-orders-grid-chip-height);
    height: var(--zerti-shop-orders-grid-chip-height);
    min-width: var(--zerti-shop-orders-grid-chip-height);
    min-height: 0;
    max-width: var(--zerti-shop-orders-grid-chip-height);
    max-height: var(--zerti-shop-orders-grid-chip-height);
    padding: 0;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 88%, var(--zerti-docs-text));
    border-radius: var(--zerti-shop-orders-grid-chip-radius);
    background-color: var(--bs-body-bg, #fff);
    color: var(--zerti-docs-text);
    line-height: 1;
    font-size: var(--zerti-shop-orders-grid-chip-font-size);
    text-decoration: none;
    vertical-align: middle;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-btn:hover,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-btn:focus-visible {
    border-color: color-mix(in srgb, var(--zerti-bs-purple, #712cf9) 45%, var(--zerti-docs-border));
    background-color: color-mix(in srgb, var(--zerti-bs-purple, #712cf9) 8%, var(--bs-body-bg, #fff));
    color: var(--zerti-docs-text);
    outline: 0;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: 0.58rem;
    line-height: 1;
    color: inherit;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .zerti-shop-orders-grid-download-btn i::before {
    display: block;
    line-height: 1;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact {
    --zerti-shop-orders-grid-chip-font-size: 9pt;
    --zerti-shop-orders-grid-chip-height: calc(9pt * (0.28 + 1.2 + 0.28));
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-cell .badge {
    padding-inline: 0.45em;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .zerti-shop-orders-grid-download-btn i {
    font-size: 0.52rem;
}

/* AG Grid rowSummary — bottom-right; page nav stays centered. */
#zertiAdmin .zerti-products-grid .ag-paging-panel,
#zertiAdmin .zerti-shop-orders-grid .ag-paging-panel,
#zertiAdmin .zerti-customers-grid .ag-paging-panel,
#zertiAdmin .zerti-payments-grid .ag-paging-panel,
#zertiAdmin .zerti-coupons-grid .ag-paging-panel,
#zertiAdmin .zerti-sales-report-grid .ag-paging-panel,
#zertiAdmin .zerti-standard-reports-grid .ag-paging-panel,
#zertiAdmin .zerti-reviews-grid .ag-paging-panel {
    position: relative;
}

#zertiAdmin .zerti-products-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-shop-orders-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-customers-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-payments-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-coupons-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-sales-report-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-standard-reports-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-reviews-grid .ag-paging-row-summary-panel {
    position: absolute;
    right: clamp(0.65rem, 1.5vw, 1rem);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 9pt;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--zerti-docs-muted);
    direction: rtl;
    unicode-bidi: embed;
    text-align: right;
    white-space: nowrap;
}

#zertiAdmin .zerti-products-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-products-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-shop-orders-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-shop-orders-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-customers-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-customers-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-payments-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-payments-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-coupons-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-coupons-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-sales-report-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-sales-report-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-standard-reports-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-standard-reports-grid .ag-paging-row-summary-panel span,
#zertiAdmin .zerti-reviews-grid .ag-paging-row-summary-panel .ag-paging-number,
#zertiAdmin .zerti-reviews-grid .ag-paging-row-summary-panel span {
    direction: inherit;
    unicode-bidi: embed;
}

#zertiAdmin .zerti-shop-orders-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-customers-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-payments-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-coupons-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-sales-report-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-standard-reports-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-products-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-reviews-grid .ag-paging-page-summary-panel .ag-paging-description > span:not(.ag-paging-number),
#zertiAdmin .zerti-shop-orders-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-customers-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-payments-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-coupons-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-sales-report-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-standard-reports-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-products-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type,
#zertiAdmin .zerti-reviews-grid .ag-paging-page-summary-panel .ag-paging-description .ag-paging-number:last-of-type {
    display: none !important;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-paging-panel {
    justify-content: center;
    color: var(--zerti-docs-muted);
    border-top-color: color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-paging-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    margin-inline: 0.2rem;
    border-radius: 999px;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 65%, transparent);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-paging-panel button:hover:not([disabled]) {
    filter: brightness(1.06);
    box-shadow: 0 2px 12px rgba(113, 44, 249, 0.28);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid .ag-paging-panel button[disabled] {
    opacity: 0.45;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid.zerti-shop-orders-grid--row-nav .ag-row {
    cursor: pointer;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid.zerti-shop-orders-grid--row-nav .ag-row:hover {
    background: var(--ag-row-hover-color);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-cell {
    padding-inline: clamp(0.35rem, 2vw, 0.55rem);
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact {
    --ag-row-height: 3.35rem;
}

#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-root-wrapper,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-root,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-body-viewport,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-center-cols-viewport,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-center-cols-container,
#zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-header-container {
    width: 100%;
    min-width: 0;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-shop .zerti-shop-orders-wrap {
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-status-filter-bar,
    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-stock-filter-bar,
    #zertiAdmin .zerti-component-financial-payments .zerti-payments-scope-filter-bar,
    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-scope-filter-bar {
        order: -1;
        flex: 0 0 auto;
        align-self: center;
        width: fit-content;
        max-width: calc(100% - 0.5rem);
        margin-inline: auto;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-grid-toolbar .zerti-shop-orders-actions {
        order: 1;
        width: 100%;
        max-width: 100%;
        justify-content: flex-end;
        align-self: flex-end;
        margin: 0;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
        --ag-row-height: 3.5rem;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-center-cols-viewport {
        overflow-x: hidden;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-header-cell,
    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-cell {
        min-width: 0;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-row {
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 35%, transparent);
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-cell {
        white-space: normal;
        line-height: 1.35;
        word-break: break-word;
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .zerti-shop-orders-total {
        font-size: 9pt;
        font-weight: 400;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-orders-grid--compact .ag-cell .badge {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: var(--zerti-shop-orders-grid-chip-font-size);
        font-weight: 400;
        padding-inline: 0.45em;
    }
}

/* Customers — same AG Grid theme as shop orders */
#zertiAdmin .zerti-component-customers .zerti-customers-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search .zerti-inv-categories__search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search .zerti-inv-categories__search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-search .zerti-inv-categories__search-input {
    min-width: min(100%, 14rem);
    text-align: start;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar .zerti-customers-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-search-input {
    min-width: min(100%, 14rem);
    text-align: center;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-customers .zerti-customers-grid-search-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-component-customers .zerti-customers-grid-search-input::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-loading {
    position: absolute;
    inset: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    pointer-events: none;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid-loading[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-header-cell-label {
    justify-content: center;
    font-weight: 700;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-header-cell-text {
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-cell {
    font-weight: 400;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .zerti-customers-grid-username-cell {
    direction: ltr;
    unicode-bidi: isolate;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-paging-panel {
    justify-content: center;
    color: var(--zerti-docs-muted);
    border-top-color: color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid .ag-paging-panel {
    justify-content: center;
    color: var(--zerti-docs-muted);
    border-top-color: color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid .ag-paging-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    margin-inline: 0.2rem;
    border-radius: 999px;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 65%, transparent);
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid .ag-paging-panel button:hover:not([disabled]) {
    filter: brightness(1.06);
    box-shadow: 0 2px 12px rgba(113, 44, 249, 0.28);
}

#zertiAdmin .zerti-component-inventory-comments .zerti-reviews-grid .ag-paging-panel button[disabled] {
    opacity: 0.45;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-paging-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    margin-inline: 0.2rem;
    border-radius: 999px;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 65%, transparent);
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-paging-panel button:hover:not([disabled]) {
    filter: brightness(1.06);
    box-shadow: 0 2px 12px rgba(113, 44, 249, 0.28);
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid .ag-paging-panel button[disabled] {
    opacity: 0.45;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid.zerti-customers-grid--row-nav .ag-row {
    cursor: pointer;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid.zerti-customers-grid--row-nav .ag-row:hover {
    background: var(--ag-row-hover-color);
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact {
    --ag-row-height: 3.35rem;
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-cell {
    padding-inline: clamp(0.35rem, 2vw, 0.55rem);
}

#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-root-wrapper,
#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-root,
#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-body-viewport,
#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-center-cols-viewport,
#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-center-cols-container,
#zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-header-container {
    width: 100%;
    min-width: 0;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-customers .zerti-customers-wrap {
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar-search {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid-toolbar .zerti-customers-actions {
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
        --ag-row-height: 3.5rem;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-center-cols-viewport {
        overflow-x: hidden;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-header-cell,
    #zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-cell {
        min-width: 0;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-row {
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 35%, transparent);
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .ag-cell {
        white-space: normal;
        line-height: 1.35;
        word-break: break-word;
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-customers .zerti-customers-grid--compact .zerti-customers-grid-username-cell {
        direction: ltr;
        unicode-bidi: isolate;
    }
}

/* Inventory — products grid centered alert dialog */
#zertiAdmin .zerti-products-grid-alert-overlay,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: color-mix(in srgb, var(--zerti-docs-bg, #0f172a) 35%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#zertiAdmin .zerti-products-grid-alert-overlay {
    z-index: 1070;
}

body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay {
    z-index: 1090;
}

#zertiAdmin .zerti-products-grid-alert-overlay[hidden],
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay[hidden] {
    display: none !important;
}

#zertiAdmin .zerti-products-grid-alert-dialog,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-products-grid-alert-dialog,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-dialog {
    width: 50%;
    min-width: min(100%, 14rem);
    margin: 0;
    padding: 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 12px 40px color-mix(in srgb, var(--zerti-docs-text, #0f172a) 22%, transparent);
}

#zertiAdmin .zerti-products-grid-alert-message,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-products-grid-alert-message,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-message {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

#zertiAdmin .zerti-products-grid-alert-ok {
    min-width: 5rem;
    font-weight: 600;
}

/* Confirm delete dialog — slightly narrower than generic alerts */
#zertiAdmin .zerti-confirm-alert-overlay,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay {
    direction: rtl;
}

#zertiAdmin .zerti-confirm-alert-dialog,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-dialog {
    width: min(50%, 22rem);
    min-width: min(100%, 14rem);
    direction: rtl;
    text-align: center;
}

#zertiAdmin .zerti-confirm-alert-message,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-message,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-dialog .zerti-products-grid-alert-message {
    direction: rtl;
    text-align: center;
    unicode-bidi: plaintext;
}

#zertiAdmin .zerti-confirm-alert-actions,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

#zertiAdmin .zerti-confirm-alert-cancel,
#zertiAdmin .zerti-confirm-alert-confirm,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-cancel,
body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-confirm {
    min-width: 6.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767.98px) {
    #zertiAdmin .zerti-confirm-alert-dialog,
    body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-dialog {
        width: 100%;
    }

    #zertiAdmin .zerti-confirm-alert-actions,
    body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-actions {
        flex-direction: column-reverse;
    }

    #zertiAdmin .zerti-confirm-alert-cancel,
    #zertiAdmin .zerti-confirm-alert-confirm,
    body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-cancel,
    body.toplevel_page_zerti-admin > .zerti-confirm-alert-overlay .zerti-confirm-alert-confirm {
        width: 100%;
        min-height: 3rem;
    }
}

/* Inventory — products grid (same AG Grid theme as customers) */
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-panel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-editable-trigger {
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-editable-trigger:hover,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-editable-trigger:focus {
    text-decoration: underline;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-editable-trigger--price .woocommerce-Price-amount,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-editable-trigger--sale-price .woocommerce-Price-amount {
    font-size: inherit;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-editor {
    max-width: 100%;
    gap: 0.25rem;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-actions {
    flex-shrink: 0;
    width: 1.1rem;
    gap: 0.08rem !important;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-actions .zerti-products-grid-inline-save,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-actions .zerti-products-grid-inline-cancel {
    width: 100%;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-input {
    width: 4.5rem;
    min-width: 3.25rem;
    text-align: center;
    padding-inline: 0.35rem;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-price-cell .zerti-products-grid-inline-input,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-input[data-zerti-field='price'],
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-input[data-zerti-field='sale_price'] {
    width: calc(3.375rem + 37.5px);
    min-width: calc(2.4375rem + 37.5px);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-stock-cell .zerti-products-grid-inline-input {
    width: 2.75rem;
    min-width: 2.25rem;
    padding-inline: 0.2rem;
    font-size: 8.5pt;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-id-cell {
    flex: 0 0 auto;
    padding-inline: 0.35rem;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-save,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-cancel {
    flex-shrink: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-padding-x: 0;
    --bs-btn-font-size: 0.5rem;
    --bs-btn-line-height: 1;
    --bs-btn-border-width: 1px;
    min-width: 0;
    width: 1.1rem;
    height: 1.05rem;
    min-height: 1.05rem;
    padding: 0;
    line-height: 1;
    border-radius: 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-save .fa-solid,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-inline-cancel .fa-solid {
    font-size: 0.5rem;
    line-height: 1;
    vertical-align: 0;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .ag-row.zerti-products-grid-row--saving {
    z-index: 2;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-row-save-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0 0.5rem;
    pointer-events: auto;
    box-sizing: border-box;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: color-mix(in srgb, var(--zerti-docs-bg) 72%, transparent);
    font-size: 8.5pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-inventory-warehouse .zerti-products-grid-row-save-overlay {
    background: rgba(255, 255, 255, 0.55);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-row-save-overlay[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-row-save-overlay__label {
    white-space: nowrap;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-editable-cell {
    overflow: visible;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-name-cell .ag-cell-wrapper,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-name-cell .ag-cell-value,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-name-cell-host,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-name-cell-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-detail-cell {
    cursor: pointer;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-detail-cell:hover {
    background: color-mix(in srgb, var(--zerti-bs-purple) 10%, transparent);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .ag-cell.zerti-products-grid-image-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible;
    padding-block: 0.35rem;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-image-cell .ag-cell-wrapper,
#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-image-cell .ag-cell-value {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-image-cell-host {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-image-wrap {
    box-sizing: border-box;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    margin-inline: auto;
    border-radius: 0.4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-image-wrap--empty {
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-image-placeholder {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0.9;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-image-wrap > .zerti-products-grid-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
    object-position: center;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-search-input {
    min-width: min(100%, 14rem);
    text-align: center;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-inventory-warehouse .zerti-products-grid-search-input {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-loading {
    position: absolute;
    inset: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    pointer-events: none;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-loading[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .ag-header-cell-label {
    justify-content: center;
    font-weight: 700;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .ag-header-cell-text {
    text-align: center;
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .ag-cell {
    font-weight: 400;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .zerti-products-grid-stock-cell {
    flex: 0 0 auto;
    padding-inline: 0.35rem;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid .ag-paging-panel {
    justify-content: center;
    color: var(--zerti-docs-muted);
    border-top-color: color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-wrap {
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar-search {
        order: 0;
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid-toolbar .zerti-products-actions {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
        --ag-row-height: 3.5rem;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid--compact .ag-center-cols-viewport {
        overflow-x: hidden;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid--compact .ag-header-cell,
    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid--compact .ag-cell {
        min-width: 0;
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid--compact .ag-row {
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 35%, transparent);
    }

    #zertiAdmin .zerti-component-inventory-warehouse .zerti-products-grid--compact .ag-cell {
        white-space: normal;
        line-height: 1.35;
        word-break: break-word;
        overflow: hidden;
    }
}

/* Financial — payments grid (same AG Grid theme as customers) */
#zertiAdmin .zerti-component-financial-payments .zerti-payments-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar .zerti-payments-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    direction: rtl;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-search-input {
    min-width: min(100%, 14rem);
    text-align: center;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-payments .zerti-payments-grid-search-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-component-financial-payments .zerti-payments-grid-search-input::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-loading {
    position: absolute;
    inset: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    pointer-events: none;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-loading[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-header {
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-header-cell-label {
    justify-content: center;
    font-weight: 700;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-header-cell-text {
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-cell {
    font-weight: 400;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-paging-panel {
    justify-content: center;
    color: var(--zerti-docs-muted);
    border-top-color: color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .badge {
    font-weight: 400;
    font-size: 9pt;
    padding: 0.42em 0.72em;
    line-height: 1.2;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-filter:has(.zerti-payments-grid-filter-select),
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-filter-body-wrapper:has(.zerti-payments-grid-filter-select),
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .ag-filter-wrapper:has(.zerti-payments-grid-filter-select) {
    padding: 0;
    color: #1f2937;
    background: #ffffff;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid .zerti-payments-grid-filter-select {
    min-width: 10rem;
    min-height: 2rem;
    display: block;
    margin: 0;
    padding-block: 0.25rem;
    padding-inline-start: var(--zerti-select-pad-inline-start, 0.75rem);
    padding-inline-end: var(--zerti-select-pad-inline-end, 2rem);
    text-align: center;
    text-align-last: center;
    font-size: 9pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
    appearance: none;
    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;
    box-shadow: none;
    cursor: pointer;
    direction: inherit;
}

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

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

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid.zerti-payments-grid--row-nav .ag-row {
    cursor: pointer;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid.zerti-payments-grid--row-nav .ag-row:hover {
    background: var(--ag-row-hover-color);
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact {
    --ag-row-height: 3.35rem;
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-cell {
    padding-inline: clamp(0.35rem, 2vw, 0.55rem);
}

#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-root-wrapper,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-root,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-body-viewport,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-center-cols-viewport,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-center-cols-container,
#zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-header-container {
    width: 100%;
    min-width: 0;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-financial-payments .zerti-payments-wrap {
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar-search {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid-toolbar .zerti-payments-actions {
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
        --ag-row-height: 3.5rem;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-center-cols-viewport {
        overflow-x: hidden;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-header-cell,
    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-cell {
        min-width: 0;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-row {
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 35%, transparent);
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-cell {
        white-space: normal;
        line-height: 1.35;
        word-break: break-word;
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-financial-payments .zerti-payments-grid--compact .ag-cell .badge {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 9pt;
        font-weight: 400;
        padding: 0.28em 0.45em;
    }
}

/* Financial — sales report grid (same AG Grid theme as payments) */
#zertiAdmin .zerti-component-financial-sales-report {
    font-size: 9pt;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.35;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-scope-filter-bar,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-scope-filter-bar .zerti-grid-list-filter-label,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-scope-filter-bar .zerti-grid-list-filter-clear-btn {
    font-size: 9pt;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-toolbar .zerti-sales-report-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    direction: rtl;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    gap: 0.35rem;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
    font-size: 0.7rem;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-search-input {
    box-sizing: border-box;
    min-width: min(100%, 14rem);
    text-align: center;
    font-size: 8pt;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 500;
    line-height: 1.25;
    padding-block: 0.08rem;
    padding-inline: 0.45rem;
    min-height: 0;
    height: 1.55rem;
    border-radius: 0.5rem;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-search-input:focus::placeholder {
    opacity: 0;
    color: transparent;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-sales-report .zerti-sales-report-grid-search-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-component-financial-sales-report .zerti-sales-report-grid-search-input::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-sales-report .zerti-sales-report-grid-search-input:focus::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-sales-report .zerti-sales-report-grid-search-input:focus::placeholder {
    opacity: 0;
    color: transparent;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-loading {
    position: absolute;
    inset: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    pointer-events: none;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-loading[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-body-viewport {
    direction: rtl;
    overflow-y: auto;
    min-height: 8rem;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-header {
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-header-cell-label {
    justify-content: center;
    width: 100%;
    font-weight: 700;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-header-cell-text {
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-cell {
    align-items: center;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1.35;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-cell .ag-cell-value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-paging-panel {
    justify-content: center;
    font-size: 9pt;
    color: var(--zerti-docs-muted);
    border-top: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid .ag-paging-page-summary-panel {
    font-size: 9pt;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid.zerti-sales-report-grid--row-nav .ag-row {
    cursor: pointer;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid.zerti-sales-report-grid--row-nav .ag-row:hover {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 10%, transparent);
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact {
    --ag-row-height: 3.25rem;
}

#zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact .ag-cell {
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-wrap {
        overflow: hidden;
        min-width: 0;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 0.45rem 0;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid-toolbar-search {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
        --ag-row-height: 3.5rem;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact .ag-center-cols-viewport {
        overflow-x: hidden !important;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact .ag-header-cell,
    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact .ag-cell {
        padding-inline: 0.35rem;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact .ag-row {
        border-bottom-width: 1px;
    }

    #zertiAdmin .zerti-component-financial-sales-report .zerti-sales-report-grid--compact .ag-cell {
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
    }
}

/* Financial — standard reports grid (same AG Grid theme as payments / sales report) */
#zertiAdmin .zerti-component-financial-reports {
    font-size: 9pt;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.35;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    gap: 0.35rem;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
    font-size: 0.7rem;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-search-input {
    box-sizing: border-box;
    min-width: min(100%, 14rem);
    text-align: center;
    font-size: 9pt;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    padding-block: 0.08rem;
    padding-inline: 0.45rem;
    min-height: 0;
    height: 1.55rem;
    border-radius: 0.5rem;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-search-input:focus::placeholder {
    opacity: 0;
    color: transparent;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-reports .zerti-standard-reports-grid-search-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-component-financial-reports .zerti-standard-reports-grid-search-input::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-reports .zerti-standard-reports-grid-search-input:focus::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-reports .zerti-standard-reports-grid-search-input:focus::placeholder {
    opacity: 0;
    color: transparent;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid {
    max-width: 100%;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-body-viewport {
    min-height: 8rem;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-header {
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-header-cell-label {
    justify-content: center;
    width: 100%;
    font-weight: 700;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-header-cell-text {
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-cell {
    align-items: center;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1.35;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-cell .ag-cell-value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-paging-panel {
    justify-content: center;
    font-size: 9pt;
    color: var(--zerti-docs-muted);
    border-top: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-paging-row-summary-panel,
#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .ag-paging-page-summary-panel {
    font-size: 9pt;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact {
    --ag-row-height: 3.25rem;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .ag-cell {
    line-height: 1.35;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .zerti-standard-reports-grid-title-cell {
    justify-content: flex-start;
    text-align: start;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .zerti-standard-reports-grid-title-cell .ag-cell-value {
    text-align: start;
}

#zertiAdmin .zerti-standard-reports-grid .zerti-standard-reports-grid-description-cell,
#zertiAdmin .zerti-standard-reports-grid .zerti-standard-reports-grid-description-cell .ag-cell-value {
    font-size: 7pt;
    line-height: 1.4;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .zerti-standard-reports-grid-description-cell {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: start;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .zerti-standard-reports-grid-description-cell .ag-cell-value {
    text-align: start;
}

#zertiAdmin .zerti-standard-reports-grid .zerti-standard-reports-grid-date-cell,
#zertiAdmin .zerti-standard-reports-grid .zerti-standard-reports-grid-date-cell .ag-cell-value {
    white-space: nowrap;
}

#zertiAdmin .zerti-standard-reports-grid .ag-header-cell[col-id='c3'] .ag-header-cell-text,
#zertiAdmin .zerti-standard-reports-grid .ag-header-cell[col-id='c4'] .ag-header-cell-text {
    white-space: normal;
    line-height: 1.25;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .zerti-standard-reports-grid-title-cell {
    justify-content: flex-start;
    text-align: start;
}

#zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid .zerti-standard-reports-grid-title-cell .ag-cell-value {
    text-align: start;
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-wrap {
        overflow: hidden;
        min-width: 0;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 0.45rem 0;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid-toolbar-search {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact {
        --ag-row-height: 2.35rem;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .ag-center-cols-viewport {
        overflow-x: hidden !important;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .ag-header-cell,
    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .ag-cell {
        padding-inline: 0.35rem;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .ag-row {
        border-bottom-width: 1px;
    }

    #zertiAdmin .zerti-component-financial-reports .zerti-standard-reports-grid--compact .zerti-standard-reports-grid-title-cell {
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
    }
}

/* Customers — detail layout */
#zertiAdmin .zerti-customer-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#zertiAdmin .zerti-customer-detail__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 65%, transparent);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 60%, transparent);
}

#zertiAdmin .zerti-customer-detail__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin: 0;
}

#zertiAdmin .zerti-customer-detail__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 38%, transparent);
}

#zertiAdmin .zerti-customer-detail__stat-label {
    font-size: 0.8125rem;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-customer-detail__stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--zerti-docs-text);
}

/* Shop order detail — line items table */
#zertiAdmin .zerti-component-shop .zerti-shop-order-items-table {
    font-size: 0.8125rem;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-items-table thead th {
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-items-table tbody td {
    vertical-align: middle;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-items-table td.zerti-shop-order-item-name {
    white-space: normal;
    min-width: 7rem;
    max-width: 14rem;
}

#zertiAdmin .zerti-component-shop .zerti-shop-order-items-wrap {
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table {
        width: 100%;
        min-width: 44rem;
    }
}

/* Shop order detail — action toolbar */
#zertiAdmin .zerti-shop-order-detail__actions {
    text-align: center;
}

#zertiAdmin .zerti-shop-order-detail__actions-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
}

#zertiAdmin .zerti-shop-order-detail__action--status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    min-width: min(100%, 11rem);
    max-width: 22rem;
}

#zertiAdmin .zerti-shop-order-detail__status-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zerti-docs-text);
    white-space: nowrap;
}

#zertiAdmin .zerti-shop-order-detail__action--status .form-select {
    flex: 1 1 9rem;
    min-width: 9rem;
    text-align: center;
    text-align-last: center;
}

#zertiAdmin .zerti-shop-order-detail {
    position: relative;
}

#zertiAdmin .zerti-panel.zerti-shop-panel--status-feedback {
    overflow: hidden;
}

#zertiAdmin .zerti-panel.zerti-shop-panel--status-feedback > .zerti-panel-body {
    pointer-events: none;
    user-select: none;
}

#zertiAdmin .zerti-shop-order-detail__status-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: color-mix(in srgb, var(--zerti-docs-bg) 22%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#zertiAdmin .zerti-shop-order-detail__status-overlay--click-dismiss {
    cursor: pointer;
}

#zertiAdmin .zerti-panel > .zerti-shop-order-detail__status-overlay {
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
}

#zertiAdmin .zerti-shop-order-detail__status-overlay[hidden] {
    display: none !important;
}

#zertiAdmin .zerti-shop-order-detail__status-overlay .zerti-shop-order-detail__feedback {
    position: relative;
    z-index: 1;
    margin: 0;
    min-width: min(100%, 16rem);
    max-width: min(100%, 26rem);
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 10px 40px color-mix(in srgb, var(--zerti-docs-text) 18%, transparent);
}

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

#zertiAdmin .zerti-shop-invoice__meta-row--status dd {
    text-align: end;
}

#zertiAdmin .zerti-shop-invoice__meta-row--status {
    align-items: start;
}

#zertiAdmin .zerti-shop-order-detail__meta-status {
    width: 100%;
    min-width: 0;
}

#zertiAdmin .zerti-shop-order-detail__meta-status .zerti-shop-order-detail__action--status {
    --zerti-order-status-control-h: 2.125rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline-start: 0;
}

#zertiAdmin .zerti-shop-order-detail__meta-status .zerti-shop-order-detail__action--status .zerti-shop-order-status-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
    text-align: var(--zerti-select-text-align);
    text-align-last: var(--zerti-select-text-align);
}

#zertiAdmin .zerti-shop-order-detail__meta-status .zerti-shop-order-detail__action--status .zerti-shop-order-status-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    min-height: var(--zerti-order-status-control-h);
    box-sizing: border-box;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    #zertiAdmin .zerti-shop-invoice__meta-row--status dd {
        text-align: start;
    }
}

/* Shop order detail — stacked cards (invoice + order notes) */
#zertiAdmin .zerti-shop-order-detail__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#zertiAdmin .zerti-shop-order-detail__stack > .zerti-shop-order-detail__card {
    margin-bottom: 0;
}

#zertiAdmin .zerti-shop-order-notes-card {
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
    flex-shrink: 0;
}

#zertiAdmin .zerti-shop-order-detail:not(.zerti-shop-order-invoice) .zerti-shop-order-notes-card {
    max-width: none;
}

#zertiAdmin .zerti-shop-order-notes-card .card-header {
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 45%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
}

#zertiAdmin .zerti-shop-order-notes-card .card-body {
    display: block;
    overflow: visible;
    padding: 1rem 1.15rem;
}

/* Shop order detail — WooCommerce-style order notes */
#zertiAdmin .zerti-shop-order-notes {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

#zertiAdmin .zerti-shop-order-notes__list-wrap {
    max-height: 14rem;
    overflow-y: auto;
    margin-bottom: 0.85rem;
}

#zertiAdmin .zerti-shop-order-notes__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

#zertiAdmin .zerti-shop-order-notes__empty {
    font-size: 0.875rem;
    text-align: center;
    padding: 0.5rem 0;
}

#zertiAdmin .zerti-shop-order-notes__item {
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
    background: color-mix(in srgb, var(--zerti-docs-bg) 88%, transparent);
}

#zertiAdmin .zerti-shop-order-notes__item--customer {
    border-color: color-mix(in srgb, var(--bs-info, #0dcaf0) 45%, var(--zerti-docs-border));
    background: color-mix(in srgb, var(--bs-info, #0dcaf0) 8%, var(--zerti-docs-bg));
}

#zertiAdmin .zerti-shop-order-notes__meta {
    font-size: 0.75rem;
    color: var(--zerti-docs-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
}

#zertiAdmin .zerti-shop-order-notes__meta-sep {
    opacity: 0.65;
}

#zertiAdmin .zerti-shop-order-notes__type {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15em 0.55em;
    background: color-mix(in srgb, var(--zerti-docs-muted) 18%, transparent);
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-shop-order-notes__item--customer .zerti-shop-order-notes__type {
    background: color-mix(in srgb, var(--bs-info, #0dcaf0) 22%, transparent);
}

#zertiAdmin .zerti-shop-order-notes__content {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--zerti-docs-text);
    text-align: start;
}

#zertiAdmin .zerti-shop-order-notes__content p:last-child {
    margin-bottom: 0;
}

#zertiAdmin .zerti-shop-order-notes__add {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

#zertiAdmin .zerti-shop-order-notes__add-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

#zertiAdmin .zerti-shop-order-notes__notify {
    margin: 0;
}

#zertiAdmin .zerti-shop-order-notes__notify .form-check-label {
    font-size: 0.8125rem;
}

@media (max-width: 767.98px) {
    #zertiAdmin .zerti-shop-order-notes__add-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #zertiAdmin .zerti-shop-order-notes__notify {
        order: 2;
    }

    #zertiAdmin .zerti-shop-order-note-add-btn {
        order: 1;
        width: 100%;
        min-height: 2.75rem;
    }
}

#zertiAdmin .zerti-shop-order-detail__footer-actions {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
}

#zertiAdmin .zerti-shop-order-detail__footer-actions-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
}

/* Shop order detail — invoice document */
#zertiAdmin .zerti-shop-order-detail .zerti-shop-invoice {
    max-width: 56rem;
    margin-inline: auto;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 85%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--zerti-docs-bg) 94%, transparent);
    box-shadow: none;
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='light'] .zerti-shop-order-detail .zerti-shop-invoice {
    background: #fff;
    box-shadow: none;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-shop-order-detail .zerti-shop-invoice {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 72%, var(--zerti-docs-bg));
}

/* Order detail and invoice views — use full panel width. */
#zertiAdmin .zerti-shop-order-detail:not(.zerti-shop-order-invoice) .zerti-shop-order-detail__main,
#zertiAdmin .zerti-shop-order-detail:not(.zerti-shop-order-invoice) .zerti-shop-invoice,
#zertiAdmin .zerti-shop-order-invoice .zerti-shop-order-detail__main,
#zertiAdmin .zerti-shop-order-invoice .zerti-shop-invoice {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
}

#zertiAdmin .zerti-shop-invoice__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

#zertiAdmin .zerti-shop-order-invoice .zerti-shop-invoice__header {
    position: relative;
    min-height: 7rem;
}

#zertiAdmin .zerti-shop-invoice__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: min(100%, 14rem);
}

#zertiAdmin .zerti-shop-invoice__logo {
    width: 150px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

#zertiAdmin .zerti-shop-invoice__seller {
    color: var(--zerti-docs-muted);
    margin-bottom: 0.15rem;
}

#zertiAdmin .zerti-shop-invoice__seller-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

#zertiAdmin .zerti-shop-invoice__seller-separator,
#zertiAdmin .zerti-shop-invoice__seller-slogan {
    display: block;
    font-size: 9pt;
    font-weight: 400;
}

#zertiAdmin .zerti-shop-invoice__title {
    font-size: clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--zerti-docs-text);
    text-align: center;
}

@media (min-width: 992px) {
    #zertiAdmin .zerti-shop-order-invoice .zerti-shop-invoice__title {
        position: absolute;
        top: 1.35rem;
        left: 50%;
        width: 18rem;
        max-width: 34vw;
        transform: translateX(-50%);
    }
}

#zertiAdmin .zerti-shop-invoice__seller-contact {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.2rem;
}

#zertiAdmin .zerti-shop-invoice__seller-contact-line {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--zerti-docs-muted);
    word-break: break-word;
}

#zertiAdmin .zerti-shop-invoice__custom-text {
    flex: 1 1 100%;
    margin-top: 10px;
    padding: 0.65rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
    color: var(--zerti-docs-text);
    font-size: 0.8125rem;
    line-height: 1.7;
    text-align: center;
}

#zertiAdmin .zerti-shop-invoice__meta {
    display: grid;
    gap: 0.35rem 1rem;
    min-width: min(100%, 17rem);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
}

#zertiAdmin .zerti-shop-invoice__meta-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, auto) 1fr;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
    margin: 0;
}

#zertiAdmin .zerti-shop-invoice__meta-row dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-shop-invoice__meta-row dd {
    margin: 0;
    font-size: 0.875rem;
    text-align: end;
}

#zertiAdmin .zerti-shop-invoice__divider {
    height: 2px;
    margin: 1.25rem 0;
    border-radius: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border)) 20%,
        color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border)) 80%,
        transparent
    );
}

#zertiAdmin .zerti-shop-invoice__section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--zerti-docs-muted);
    margin-bottom: 0.55rem;
}

#zertiAdmin .zerti-shop-invoice__party {
    margin-bottom: 1.15rem;
}

#zertiAdmin .zerti-shop-invoice__party-body {
    padding: 0.5rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 65%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 35%, transparent);
}

#zertiAdmin .zerti-shop-order-customer-fields--compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.35rem 0.85rem;
    margin: 0;
}

#zertiAdmin .zerti-shop-order-customer-field {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 0.15rem 0.45rem;
    align-items: baseline;
    margin: 0;
    min-width: 0;
}

#zertiAdmin .zerti-shop-order-customer-field--wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
}

#zertiAdmin .zerti-shop-order-customer-field--customer-id {
    grid-column: 1 / -1;
}

#zertiAdmin .zerti-shop-order-customer-field__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--zerti-docs-muted);
    white-space: nowrap;
}

#zertiAdmin .zerti-shop-order-customer-field__label::after {
    content: ':\00a0';
}

#zertiAdmin .zerti-shop-order-customer-field__value {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--zerti-docs-text);
    word-break: break-word;
}

#zertiAdmin .zerti-shop-order-customer-id-btn {
    min-height: 1.85rem;
    padding: 0.2rem 0.65rem;
    font-size: inherit;
    font-weight: 600;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    border-radius: 0.5rem;
    color: var(--zerti-docs-text);
    border-color: var(--zerti-docs-border);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 88%, transparent);
}

#zertiAdmin .zerti-shop-order-customer-id-btn:hover,
#zertiAdmin .zerti-shop-order-customer-id-btn:focus-visible {
    color: var(--zerti-docs-text);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 45%, var(--zerti-docs-border));
    background: color-mix(in srgb, var(--zerti-bs-purple) 12%, var(--zerti-docs-subtle-bg));
}

#zertiAdmin .zerti-shop-order-location-btn {
    min-height: 1.85rem;
    padding: 0.2rem 0.65rem;
    font-size: inherit;
    font-weight: 600;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    border-radius: 0.5rem;
    color: var(--zerti-docs-text);
    border-color: var(--zerti-docs-border);
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 88%, transparent);
    text-decoration: none;
}

#zertiAdmin .zerti-shop-order-location-btn:hover,
#zertiAdmin .zerti-shop-order-location-btn:focus-visible {
    color: var(--zerti-docs-text);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 45%, var(--zerti-docs-border));
    background: color-mix(in srgb, var(--zerti-bs-purple) 12%, var(--zerti-docs-subtle-bg));
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-shop-order-customer-fields--compact {
        grid-template-columns: 1fr;
    }

    #zertiAdmin .zerti-shop-order-customer-field--wide {
        grid-column: auto;
    }
}

#zertiAdmin .zerti-shop-invoice__note {
    margin-bottom: 1.15rem;
    padding: 0.65rem 0.9rem;
    border-inline-start: 3px solid color-mix(in srgb, var(--zerti-bs-purple) 70%, transparent);
    background: color-mix(in srgb, var(--zerti-bs-purple) 8%, transparent);
    border-radius: 0 8px 8px 0;
}

#zertiAdmin .zerti-shop-invoice__note-text {
    font-size: 0.875rem;
    line-height: 1.55;
}

#zertiAdmin .zerti-shop-invoice__items {
    margin-bottom: 1.25rem;
    box-shadow: none;
}

#zertiAdmin .zerti-shop-invoice__table {
    margin-bottom: 0;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 75%, transparent);
    border-collapse: collapse;
    box-shadow: none;
}

#zertiAdmin .zerti-shop-invoice__table thead th {
    padding: 0.55rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--zerti-color-white-text);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--zerti-bs-purple) 92%, #000),
        color-mix(in srgb, var(--zerti-bs-purple) 75%, #3d1f8a)
    );
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-bs-purple) 40%, transparent);
    white-space: nowrap;
}

#zertiAdmin .zerti-shop-invoice__table tbody td {
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 45%, transparent);
    background: transparent;
}

#zertiAdmin .zerti-shop-invoice__table tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 40%, transparent);
}

#zertiAdmin .zerti-shop-invoice__table tbody tr:last-child td {
    border-bottom: none;
}

#zertiAdmin .zerti-shop-invoice__table-extra td {
    font-style: italic;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-shop-invoice__items .zerti-shop-order-items-wrap {
    border: none;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
}

/* Order line items — card stack on tablet/mobile (all columns visible) */
@media (max-width: 991.98px) {
    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md {
        overflow: visible;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table {
        border: none;
        min-width: 0;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table thead {
        display: none;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody tr {
        display: block;
        margin-bottom: 0.65rem;
        padding: 0.5rem 0.75rem;
        border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 75%, transparent);
        border-radius: 8px;
        background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 35%, transparent);
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody tr:nth-child(even) {
        background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 55%, transparent);
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem 1rem;
        width: 100%;
        max-width: none;
        padding: 0.4rem 0;
        border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 40%, transparent);
        background: transparent !important;
        text-align: end !important;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td:first-child {
        padding-top: 0;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        max-width: 48%;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--zerti-docs-muted);
        text-align: start;
        white-space: normal;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td.zerti-shop-order-item-name {
        min-width: 0;
        max-width: none;
        white-space: normal;
        word-break: break-word;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody td.zerti-shop-order-items-cell--skip-stacked {
        display: none !important;
    }

    #zertiAdmin .zerti-shop-order-items-wrap--stacked-md .zerti-shop-invoice__table tbody tr.zerti-shop-order-items-row--extra td[colspan] {
        display: flex;
    }

    #zertiAdmin .zerti-component-shop .zerti-shop-order-items-table {
        font-size: 0.8125rem;
    }
}

#zertiAdmin .zerti-shop-invoice__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.35rem;
}

#zertiAdmin .zerti-shop-invoice__totals {
    width: min(100%, 20rem);
    padding: 0.75rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--zerti-docs-border) 75%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--zerti-docs-subtle-bg) 45%, transparent);
}

#zertiAdmin .zerti-shop-invoice__totals-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.28rem 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--zerti-docs-border) 50%, transparent);
}

#zertiAdmin .zerti-shop-invoice__totals-row:last-child {
    border-bottom: none;
}

#zertiAdmin .zerti-shop-invoice__totals-row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-shop-invoice__totals-row dd {
    margin: 0;
    font-size: 0.875rem;
    text-align: end;
}

#zertiAdmin .zerti-shop-invoice__totals-row--grand {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 2px solid color-mix(in srgb, var(--zerti-bs-purple) 45%, transparent);
    border-bottom: none;
}

#zertiAdmin .zerti-shop-invoice__totals-row--grand dt {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-shop-invoice__totals-row--grand dd {
    font-size: 1.05rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--zerti-bs-purple) 85%, var(--zerti-docs-text));
}

#zertiAdmin .zerti-shop-invoice__amount-discount {
    color: var(--bs-danger, #dc3545);
}

@media (max-width: 575.98px) {
    #zertiAdmin .zerti-shop-invoice__header {
        flex-direction: column;
    }

    #zertiAdmin .zerti-shop-invoice__meta {
        width: 100%;
    }

    #zertiAdmin .zerti-shop-invoice__footer {
        justify-content: stretch;
    }
}

/* Financial — coupons grid (same AG Grid theme as payments) */
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-panel {
    width: 100%;
    max-width: 100%;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-toolbar {
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.65rem, 1.5vw, 1rem) 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-toolbar-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-toolbar .zerti-coupons-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    direction: rtl;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-add-btn {
    width: auto;
    flex-shrink: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-search-icon {
    flex-shrink: 0;
    line-height: 1;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-search-input {
    min-width: min(100%, 14rem);
    text-align: center;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupons-grid-search-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-component-financial-coupons .zerti-coupons-grid-search-input::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-loading {
    position: absolute;
    inset: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    font-size: 9pt;
    font-weight: 600;
    color: var(--zerti-docs-text);
    background: color-mix(in srgb, var(--zerti-docs-bg) 78%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--zerti-component-panel-radius, 14px);
    overflow: hidden;
    pointer-events: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-loading[hidden] {
    display: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid {
    position: relative;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-header {
    border-bottom: 1px solid color-mix(in srgb, var(--zerti-docs-border) 70%, transparent);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-header-cell-label {
    justify-content: center;
    font-weight: 700;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-header-cell-text {
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-filter:has(.zerti-coupons-grid-filter-select),
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-filter-body-wrapper:has(.zerti-coupons-grid-filter-select),
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-filter-wrapper:has(.zerti-coupons-grid-filter-select) {
    padding: 0;
    color: #1f2937;
    background: #ffffff;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .zerti-coupons-grid-filter-select {
    min-width: 10rem;
    min-height: 2rem;
    display: block;
    margin: 0;
    padding-block: 0.25rem;
    padding-inline-start: var(--zerti-select-pad-inline-start, 0.75rem);
    padding-inline-end: var(--zerti-select-pad-inline-end, 2rem);
    text-align: center;
    text-align-last: center;
    font-size: 9pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
    appearance: none;
    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;
    box-shadow: none;
    cursor: pointer;
    direction: inherit;
}

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

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

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-cell {
    font-weight: 400;
    text-align: center;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid .ag-paging-panel {
    justify-content: center;
    color: var(--zerti-docs-muted);
    border-top-color: color-mix(in srgb, var(--zerti-docs-border) 55%, transparent);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid.zerti-coupons-grid--row-nav .ag-row {
    cursor: pointer;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid.zerti-coupons-grid--row-nav .ag-row:hover {
    background: var(--ag-row-hover-color);
}

@media (max-width: 991.98px) {
    #zertiAdmin .zerti-component-financial-coupons .zerti-coupons-wrap {
        overflow: hidden;
    }

    #zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-toolbar-search {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid-toolbar .zerti-coupons-actions {
        width: 100%;
        justify-content: center;
    }

    #zertiAdmin .zerti-component-financial-coupons .zerti-coupons-grid {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.45rem;
        --ag-cell-horizontal-padding: 0.35rem;
    }
}
