/**
 * RTL Styles for Arabic
 * Zootex CRM
 */

/* Font */
.rtl {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Layout */
.rtl .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--gray-200);
}

.rtl .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

/* Navigation */
.rtl .nav-link {
    flex-direction: row-reverse;
}

.rtl .submenu {
    padding-left: 0;
    padding-right: 44px;
}

.rtl .submenu-arrow {
    margin-left: 0;
    margin-right: auto;
}

/* Header */
.rtl .header-left {
    flex-direction: row-reverse;
}

.rtl .header-right {
    flex-direction: row-reverse;
}

/* Dropdown */
.rtl .dropdown-menu {
    right: auto;
    left: 0;
}

.rtl .dropdown-item {
    flex-direction: row-reverse;
}

/* Forms */
.rtl select.form-control {
    background-position: left 10px center;
    padding-right: 14px;
    padding-left: 40px;
}

.rtl .form-check {
    flex-direction: row-reverse;
}

/* Tables */
.rtl .table th,
.rtl .table td {
    text-align: right;
}

.rtl .table-actions {
    flex-direction: row-reverse;
}

/* User dropdown */
.rtl .user-btn {
    flex-direction: row-reverse;
}

/* Buttons */
.rtl .btn {
    flex-direction: row-reverse;
}

.rtl .btn-group {
    flex-direction: row-reverse;
}

/* Cards */
.rtl .card-header {
    flex-direction: row-reverse;
}

/* Stats */
.rtl .stat-card-header {
    flex-direction: row-reverse;
}

/* Pagination */
.rtl .pagination-list {
    flex-direction: row-reverse;
}

/* Modal */
.rtl .modal-header {
    flex-direction: row-reverse;
}

.rtl .modal-footer {
    flex-direction: row-reverse;
}

/* Alerts */
.rtl .alert {
    flex-direction: row-reverse;
}

/* Auth Language */
.rtl .auth-language {
    text-align: left;
}

/* Notification */
.rtl .notification-badge {
    right: auto;
    left: 4px;
}

.rtl .notification-header {
    flex-direction: row-reverse;
}

/* Sidebar toggle position */
@media (max-width: 991px) {
    .rtl .sidebar {
        transform: translateX(100%);
    }

    .rtl .sidebar.open {
        transform: translateX(0);
    }

    .rtl .main-content {
        margin-right: 0;
    }
}

/* Text alignment utilities */
.rtl .text-left {
    text-align: right;
}

.rtl .text-right {
    text-align: left;
}

/* Margin utilities */
.rtl .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

.rtl .mr-auto {
    margin-right: 0;
    margin-left: auto;
}

/* Invoice items */
.rtl .invoice-items .item-actions {
    flex-direction: row-reverse;
}

/* Chart legends */
.rtl .chart-legend {
    flex-direction: row-reverse;
}

/* Breadcrumbs */
.rtl .breadcrumb {
    flex-direction: row-reverse;
}

.rtl .breadcrumb-separator {
    transform: rotate(180deg);
}
