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