body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
input,
textarea,
select,
option,
label,
.form-control,
.btn,
.card,
.table,
.sidebar-menu li a {
    font-family: "Cairo", sans-serif;
}

.btn,
.form-group > label {
    font-size: 14px !important;
}

.table {
    font-size: 15px !important;
}

.btn-primary {
    background-color: #2046da !important;
}

.btn-danger {
    background-color: #fb160a !important;
}

.toggle.btn.btn-success,
.toggle.btn.btn-danger {
    width: 95px !important;
}

.text-area-5 {
    min-height: 100px !important;
}

.text-area-3 {
    min-height: 60px !important;
}

img.admin-img {
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 0px;
    max-width: 180px;
    height: 150px;
    object-fit: cover;
    margin: 0px;
}

img.admin-banner-img {
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 0px;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    margin: 0px;
}

.select2-container .select2-selection--single {
    font-size: 14px !important;
    padding: 10px 15px !important;
    height: 42px !important;
    border-color: #e4e6fc !important;
}

.tagify tag {
    margin: -5px 0px 5px 5px !important;
}

.tagify__input {
    margin: -5px 0px 5px 5px !important;
}

.note-editable {
    min-height: 120px !important;
}

.card-body.seller_chat_list {
    height: 650px !important;
}

.chat-box .chat-content .chat-item.chat-right img {
    object-fit: cover;
    width: 60px !important;
    height: 60px !important;
}

.plus_btn {
    margin-top: 32px;
}

.card-header h1 {
    margin-bottom: 0;
    font-weight: 700;
    display: inline-block;
    font-size: 24px;
    margin-top: 3px;
    color: #222222;
}

.card .card-header .form-control {
    height: 42px;
    font-size: 14px;
    border-radius: 0;
}

.card .card-header .btn {
    margin-top: 1px;
    padding: 0.3rem 0.8rem;
}

.card .card-header .btn:not(.note-btn) {
    border-radius: 0.25rem;
}

.add_new_social_btn {
    margin-top: 35px !important;
}

.section-body a {
    text-decoration: none !important;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
    max-height: 600px;
    overflow-y: auto;
}

.chat-box .chat-content {
    background-color: #f9f9f9 !important;
    height: 600px;
    overflow-y: auto;
    padding-top: 25px !important;
    /* display: flex !important;
    align-items: end !important; */
}

.media span {
    background: #2a9cf5;
    color: #fff;
    width: 20px;
    height: 20px;
    display: block;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 600;
    top: 30px;
    left: -30px;
    position: relative;
}

.list-unstyled .active {
    background: #f8f8f8;
}

table .rounded-circle {
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
}

.profile-widget .profile-widget-picture {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
}

.default-avatar {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
}

.navbar .nav-link.nav-link-user img {
    width: 30px !important;
    height: 30px !important;
    object-fit: cover !important;
}

img.mr-3.ml-3.rounded-circle {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.chat-item.chat-left img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
}

#toast-container > .toast:before {
    display: none !important;
}

.sidebar_img {
    width: 150px;
    height: 300px;
    object-fit: cover;
}

.w_300 {
    width: 300px;
    height: 150px;
    object-fit: cover;
}

.customer_msg_list {
    cursor: pointer !important;
}

.overflow-style-none::-webkit-scrollbar {
    display: none !important;
}

.overflow-style-none {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.sms-body .custom-switch {
    padding-left: 0 !important;
}

.card_title {
    color: #222222;
}

/* custom css start  */

.chat_product .product_img {
    background: #ebedff;
    display: flex;
    align-items: center;
    max-width: 350px;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.chat_product .product_img img {
    width: 80px !important;
    border-radius: 5px;
    margin-right: 10px;
    object-fit: cover;
}

.chat_product .product_img p {
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #353535;
}

.chat_product .main_user {
    margin-top: 80px;
}

@media (max-width: 767.99px) {
    .chat_product .product_img {
        flex-wrap: wrap;
    }
    .chat_product .product_img img {
        margin-bottom: 5px;
    }
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 42px;
}

[dir="rtl"] .password-input-wrapper .form-control {
    padding-right: 0.75rem;
    padding-left: 42px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6e6d79;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.password-toggle-btn:hover {
    color: #2046da;
}

[dir="rtl"] .password-toggle-btn {
    right: auto;
    left: 10px;
}

/* Sidebar — reliable native scroll for long admin menus */
.main-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-sidebar #sidebar-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.main-sidebar .sidebar-brand,
.main-sidebar .sidebar-brand-sm {
    flex-shrink: 0;
}

.main-sidebar .sidebar-menu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.main-sidebar .sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.main-sidebar .sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
}

.main-sidebar .sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.main-sidebar .nicescroll-rails,
.main-sidebar .nicescroll-cursors {
    display: none !important;
}

body.sidebar-mini .main-sidebar .sidebar-menu {
    overflow-y: visible;
}

/* Sidebar — show full Arabic submenu labels */
body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu {
    width: 260px;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a,
body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li a {
    height: auto;
    min-height: 35px;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
    line-height: 1.4;
}

[dir="rtl"] body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu {
    left: auto;
    right: 65px;
}

/* ===== Admin orders UI ===== */
.admin-orders-page .admin-orders-card,
.admin-order-invoice-page .admin-order-invoice {
    border-radius: 12px;
}

.admin-orders-table th {
    font-size: 13px;
    font-weight: 600;
}

.admin-orders-table td {
    vertical-align: middle !important;
    font-size: 14px;
}

.admin-orders-col-date {
    min-width: 105px;
}

.admin-orders-col-status {
    min-width: 88px;
}

.admin-orders-col-action {
    min-width: 108px;
}

.admin-order-id {
    font-weight: 600;
    color: #2046da;
}

.admin-order-customer {
    font-weight: 500;
}

.admin-order-amount {
    font-weight: 600;
    white-space: nowrap;
}

.admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-order-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.admin-order-badge--pending {
    background: #fff4e5;
    color: #b76e00;
}

.admin-order-badge--progress {
    background: #e8f1ff;
    color: #2046da;
}

.admin-order-badge--delivered {
    background: #e7f8ef;
    color: #1f7a4d;
}

.admin-order-badge--completed {
    background: #e7f8ef;
    color: #157347;
}

.admin-order-badge--declined {
    background: #fdecec;
    color: #c62828;
}

.admin-order-badge--paid {
    background: #e7f8ef;
    color: #157347;
}

.order-date-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-date-display--rtl {
    flex-direction: row;
}

.order-date-display__line {
    font-size: 13px;
    line-height: 1.4;
    color: #4a4a50;
    word-break: break-word;
}

.order-date-display__line[dir="rtl"] {
    font-weight: 500;
}

.admin-order-invoice__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e6fc;
}

.admin-order-invoice__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.admin-order-invoice__brand img {
    display: block;
    max-width: 120px;
    height: auto;
}

.admin-order-invoice__id {
    font-size: 18px;
    font-weight: 700;
    color: #232532;
    line-height: 1.4;
}

.admin-order-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.admin-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-order-summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #f8f9ff;
    border: 1px solid #e4e6fc;
    border-radius: 10px;
    padding: 14px;
}

.admin-order-totals-wrap {
    display: flex;
    justify-content: flex-end;
}

.admin-order-summary-card__label {
    display: block;
    font-size: 12px;
    color: #6e6d79;
    margin-bottom: 8px;
}

.admin-order-summary-card__value {
    font-size: 18px;
    color: #232532;
}

.admin-order-info-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e4e6fc;
    border-radius: 10px;
    padding: 16px;
}

.admin-order-info-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #232532;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f1f3;
    line-height: 1.45;
    word-break: break-word;
}

.admin-order-info-card__name {
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-order-info-card__meta {
    color: #6e6d79;
    font-weight: 600;
}

.admin-order-info-card p {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.admin-order-section-title,
.admin-order-invoice-page .order-status .section-title,
.admin-order-invoice-page .new-product .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 14px;
    font-weight: 700;
}

.admin-order-section-title::before,
.admin-order-invoice-page .order-status .section-title::before,
.admin-order-invoice-page .new-product .section-title::before {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-section-title,
[dir="rtl"] .admin-order-invoice-page--rtl .order-status .section-title,
[dir="rtl"] .admin-order-invoice-page--rtl .new-product .section-title {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    text-align: right;
}

.admin-order-totals {
    background: #f8f9ff;
    border: 1px solid #e4e6fc;
    border-radius: 10px;
    padding: 16px;
    max-width: 420px;
    margin-inline-start: auto;
}

.admin-order-totals__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #e4e6fc;
}

.admin-order-totals__row:last-child {
    border-bottom: none;
}

.admin-order-totals__row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid #2046da;
    font-size: 16px;
    font-weight: 700;
}

.admin-order-print-actions {
    text-align: end;
}

.admin-order-totals__row span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

[dir="rtl"] .admin-orders-page--rtl .admin-orders-table th,
[dir="rtl"] .admin-orders-page--rtl .admin-orders-table td,
[dir="rtl"] .admin-order-invoice-page--rtl .admin-orders-table th,
[dir="rtl"] .admin-order-invoice-page--rtl .admin-orders-table td {
    white-space: normal;
    word-break: break-word;
}

[dir="rtl"] .admin-orders-page--rtl .admin-order-badge,
[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-badge {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    height: auto;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-summary-grid {
    direction: rtl;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-summary-card {
    align-items: flex-end;
    text-align: right;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-summary-card__label {
    line-height: 1.45;
    word-break: break-word;
    width: 100%;
    text-align: right;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-summary-card .order-date-display,
[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-summary-card .admin-order-badge {
    align-self: flex-end;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-info-card {
    text-align: right;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-info-grid {
    direction: rtl;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-bottom-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-totals-wrap {
    justify-content: flex-start;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-totals-col {
    display: flex;
    justify-content: flex-start;
}

[dir="rtl"] .admin-orders-page--rtl .admin-orders-col-date {
    min-width: 115px;
}

[dir="rtl"] .admin-orders-page--rtl .admin-orders-col-status {
    min-width: 100px;
}

[dir="rtl"] .admin-orders-page--rtl .admin-orders-col-action {
    min-width: 118px;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-invoice__brand {
    align-items: flex-end;
    text-align: right;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-invoice__id {
    direction: rtl;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-back-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .admin-order-invoice-page--rtl .admin-order-totals {
    margin-inline-start: 0;
    margin-inline-end: 0;
    width: 100%;
    max-width: 420px;
}

[dir="rtl"] .admin-orders-table th,
[dir="rtl"] .admin-orders-table td {
    text-align: right;
}

[dir="rtl"] .admin-order-actions {
    justify-content: flex-end;
}

[dir="rtl"] .invoice .invoice-detail-item {
    text-align: right !important;
}

/* Product create/edit — highlight toggles */
.product-highlight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.product-highlight-option {
    position: relative;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.product-highlight-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.product-highlight-option__box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border: 1px solid #e4e6fc;
    border-radius: 10px;
    background: #fdfdff;
    color: #34395e;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.product-highlight-option__icon {
    width: 1rem;
    text-align: center;
    color: #6777ef;
    transition: color 0.15s ease;
}

.product-highlight-option:hover .product-highlight-option__box {
    border-color: #c7ccf8;
    background: #f4f6ff;
}

.product-highlight-option input:checked + .product-highlight-option__box {
    border-color: #6777ef;
    background: #6777ef;
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 119, 239, 0.28);
}

.product-highlight-option input:checked + .product-highlight-option__box .product-highlight-option__icon {
    color: #fff;
}

.product-highlight-option input:focus-visible + .product-highlight-option__box {
    outline: 2px solid rgba(103, 119, 239, 0.45);
    outline-offset: 2px;
}

[dir="rtl"] .product-highlight-option__box {
    flex-direction: row-reverse;
}

/* Admin products list — type / highlight badges */
.product-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 220px;
}

.product-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.product-type-badge i {
    font-size: 0.68rem;
    opacity: 0.9;
}

.product-type-badge--new {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.product-type-badge--featured {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.product-type-badge--top {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.product-type-badge--best {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.product-type-badge--flash {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}

.product-type-badge--standard {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

[dir="rtl"] .product-type-badge {
    flex-direction: row-reverse;
}

@media (max-width: 575.98px) {
    .product-type-badges {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .product-highlight-options {
        flex-direction: column;
    }

    .product-highlight-option,
    .product-highlight-option__box {
        width: 100%;
    }
}

/* Admin media upload — product, category, shared theme */
.media-upload-card__header h4 {
    font-size: 1.05rem;
}

.media-upload-block + .media-upload-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--upload-divider, #e4e6fc);
}

.media-upload-block__label {
    display: block;
    font-weight: 600;
    color: #34395e;
    margin-bottom: 0.65rem;
}

.media-upload-dropzone {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px dashed var(--upload-border, #c7cffb);
    border-radius: 14px;
    background: var(--upload-surface, #fdfdff);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.media-upload-dropzone:hover,
.media-upload-dropzone.is-dragover,
.media-upload-dropzone.has-file {
    border-color: var(--upload-border-active, #6777ef);
    background: var(--upload-surface-active, #f4f6ff);
    box-shadow: 0 8px 24px var(--upload-shadow, rgba(103, 119, 239, 0.08));
}

.media-upload-dropzone--thumbnail,
.media-upload-dropzone--icon {
    align-items: stretch;
}

.media-upload-dropzone__preview {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--upload-frame-border, #e4e6fc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-upload-dropzone__preview--icon {
    padding: 0.75rem;
}

.media-upload-dropzone__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-upload-dropzone--icon .media-upload-dropzone__preview-img {
    object-fit: contain;
}

.media-upload-dropzone__preview-fa {
    font-size: 2rem;
    color: var(--upload-border-active, #6777ef);
}

.media-upload-dropzone__content {
    flex: 1 1 220px;
    min-width: 0;
    text-align: start;
}

.media-upload-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--upload-icon-bg, rgba(103, 119, 239, 0.12));
    color: var(--upload-border-active, #6777ef);
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.media-upload-dropzone__title {
    font-weight: 600;
    color: #34395e;
}

.media-upload-dropzone__hint {
    color: #98a6ad;
    font-size: 0.85rem;
}

.media-upload-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.media-upload-dropzone--gallery {
    min-height: 140px;
    justify-content: center;
    text-align: center;
}

.media-upload-dropzone--gallery .media-upload-dropzone__content {
    text-align: center;
}

.media-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.media-gallery-preview__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.media-gallery-preview__thumb {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--upload-frame-border, #e4e6fc);
    background: #fff;
}

.media-gallery-preview__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-gallery-preview__name {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-gallery-existing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.media-gallery-existing__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.media-gallery-existing__thumb {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--upload-frame-border, #e4e6fc);
    background: #fff;
}

.media-gallery-existing__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-gallery-existing__delete {
    width: 100%;
}

[dir="rtl"] .media-upload-dropzone {
    text-align: right;
}

    @media (max-width: 767.98px) {
    .media-upload-dropzone--thumbnail,
    .media-upload-dropzone--icon {
        flex-direction: column;
        align-items: stretch;
    }

    .media-upload-dropzone__preview {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }

    .media-upload-dropzone__content {
        text-align: center;
    }
}

/* ZAN hub — RTL-aware stats & tables */
.zan-hub-stats__action {
    text-align: end;
}

.zan-hub-stats__btn-icon {
    margin-inline-end: 0.35rem;
}

.zan-hub-stats__cards .card-statistic-1 {
    margin-bottom: 1.25rem;
}

.zan-hub-stats__cards .card-header h4 {
    line-height: 1.4;
    word-break: break-word;
}

.zan-hub-stats__card-header h4 {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
    padding-inline-end: 10px;
    padding-inline-start: 0;
}

.zan-hub-stats__card-header .card-header-action {
    flex: 0 0 auto;
}

[dir="rtl"] .zan-hub-stats__action {
    text-align: start;
}

[dir="rtl"] .zan-hub-page .section-title,
[dir="rtl"] .zan-hub-stats .section-title {
    text-align: start;
}

[dir="rtl"] .zan-hub-stats__tables .table th,
[dir="rtl"] .zan-hub-stats__tables .table td {
    text-align: right;
}

[dir="rtl"] .zan-hub-stats__tables .table td[dir="ltr"] {
    text-align: left;
}

[dir="rtl"] h2.d-title {
    text-align: right;
}
