:root {
    --clr-primary: var(--dynamic-primary, #c52127);
    --secondary-color: var(--dynamic-secondary, #0071bc);
    --sidebar-color: var(--dynamic-sidebar, #201415);
    --clr-white: #fff;
    --clr-white2: #f9f9f9;
    --clr-white3: #f3f7ff;
    --clr-black: #01040d;
    --clr-black2: #171717;
    --clr-black3: #344054;
    --clr-gray: #525252;
    --clr-gray1: #737373;
    --clr-gray2: #d4d4d4;
    --clr-gray3: #f5f5f5;
    --clr-gray4: #f4f5f7;
    --clr-gray5: #a3a3a3;
    --clr-violet: rgba(130, 49, 211, 1);
    --clr-violet-light: rgba(130, 49, 211, 0.12);
    --clr-green: #01b81a;
    --clr-green-light: rgba(1, 184, 26, 0.12);
    --clr-orange: #ff6565;
    --clr-orange-light: rgba(255, 116, 62, 0.12);
    --clr-red: #ef4444;
    --ff: "Inter", sans-serif;
}
[dir="rtl"] body {
    background: #ecf1f9 !important;
}
[dir="rtl"] a,
[dir="rtl"] button,
[dir="rtl"] .btn,
[dir="rtl"] ol li a,
[dir="rtl"] ul li a {
    text-decoration: none !important;
}
[dir="rtl"] .dropdown-item.active,
[dir="rtl"] .dropdown-item:active,
[dir="rtl"] .nav-pills .nav-link.active,
[dir="rtl"] .nav-pills .show > .nav-link,
[dir="rtl"] .btn-primary {
    background-color: var(--clr-primary) !important;
}
[dir="rtl"] .btn-primary {
    border-color: var(--clr-primary) !important;
}

[dir="rtl"] .text-primary,
[dir="rtl"] .arabic-primary-clr,
[dir="rtl"] .nav-link {
    color: var(--clr-primary) !important;
}
[dir="rtl"] .accordion-button::after {
    margin-left: 0;
}
[dir="rtl"] p {
    margin-bottom: 0px;
}

[dir="rtl"] .card {
    border: 0;
    box-shadow: 0px 4px 24px 0px #e4c3c30d;
    border-radius: 12px;
}

[dir="rtl"] .nav-link.active {
    color: #fff !important;
}

[dir="rtl"] .btn-custom-warning {
    background-color: #c52127 !important;
    color: #fff;
    border: none !important;
}

[dir="rtl"] .role-reset-btn {
    font-weight: bold;
    color: #c52127;
    border: 1px solid #c52127;
    padding: 0.2rem 0.5rem !important;
}

[dir="rtl"] ol,
[dir="rtl"] ul {
    padding-right: 0;
}
[dir="rtl"] .section-container {
    padding-right: 18%;
    padding-left: 0;
}

[dir="rtl"] .section-container.active {
    padding-left: 0;
    padding-right: 60px;
}
[dir="rtl"] .view-website i {
    transform: rotate(180deg);
}
[dir="rtl"] .sales-main-container {
    display: grid;
    grid-template-columns: 45% 55%;
}
[dir="rtl"] .amount-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding-right: 12px;
}
[dir="rtl"] .save-amount-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
}
[dir="rtl"] .main-container .products-container {
    background-color: transparent;
}
[dir="rtl"] .sales-container {
    order: 2 !important;
}
[dir="rtl"] .btn-category {
    background-color: #f8961e;
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
}
[dir="rtl"] .btn-brand {
    background-color: #1e90ff;
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
    white-space: nowrap;
}
[dir="rtl"] .btn-search {
    background-color: var(--clr-primary);
    color: white;
    border-radius: 0.25rem 0 0 0.25rem;
}
[dir="rtl"] .search-product {
    display: grid;
    grid-template-columns: 5fr 4fr;
}
@media (max-width: 1200px) {
    [dir="rtl"] .quick-actions-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 992px) {
    [dir="rtl"] .sales-main-container {
        grid-template-columns: 100%;
    }
}
@media (max-width: 480px) {
    [dir="rtl"] .search-product {
        grid-template-columns: 1fr;
    }
}
[dir="rtl"] .main-container {
    order: 1 !important;
    padding: 0;
}
[dir="rtl"] .side-bar {
    left: unset;
    right: 0;
    z-index: 10;
}
@media (max-width: 1400px) {
    [dir="rtl"] .section-container {
        padding-left: 0 !important;
    }
}
@media (max-width: 1400px) {
    [dir="rtl"] .side-bar {
        width: 15% !important;
    }
}
[dir="rtl"] .side-bar-addon {
    right: 123px !important;
    font-size: 10px !important;
    top: 13px;
    border-radius: 3px !important;
    color: black;
    max-width: 60px;
}
[dir="rtl"] .side-bar-logo {
    display: flex;
}
[dir="rtl"] .container-fluid {
    padding: 1.5%;
    width: 100%;
}
[dir="rtl"] .sidebar-opner {
    margin-right: 0;
    margin-left: 20px;
}
[dir="rtl"] .side-bar-manu li a .sidebar-icon {
    margin-left: 10px;
    margin-right: 0;
}
[dir="rtl"] .side-bar.active .side-bar-manu li a .sidebar-icon {
    margin-right: 0;
    margin-left: 30px;
    left: unset;
    right: -10px;
}
[dir="rtl"] .side-bar-manu li .dropdown-menu li {
    padding-right: 15px;
    padding-left: 0;
}
[dir="rtl"] .side-bar-manu li .dropdown-menu {
    margin-left: 0;
    margin-right: 20px;
    border-left: 0;
}
[dir="rtl"] .main-header-section {
    z-index: 5;
}
[dir="rtl"] .side-bar-manu .dropdown::before {
    left: 15px;
    right: unset;
    transform: rotate(180deg);
}

[dir="rtl"] .gpt-dashboard-card .couter-box {
    justify-content: space-between !important;
}

[dir="rtl"] .gpt-dashboard-card .couter-box h5 {
    text-align: left;
}

[dir="rtl"] .gpt-dashboard-card .couter-box .icons {
    margin-left: 5px;
}
[dir="rtl"] .gpt-dashboard-card .couter-box h5,
[dir="rtl"] .gpt-dashboard-card .couter-box p {
    margin-bottom: 0;
}
[dir="rtl"] .gpt-dashboard-chart .card-header .gpt-up-down-arrow span {
    left: 20px !important;
    right: unset !important;
}
[dir="rtl"] .print-btn i {
    margin-right: 0;
    margin-left: 6px;
}
[dir="rtl"] .password-input .hide-pass {
    left: 10px;
    right: unset;
}
[dir="rtl"] .table-action .dropdown-menu a i {
    margin-left: 7px;
    margin-right: 0;
}
[dir="rtl"] .arabic-text-right {
    text-align: right !important;
}

[dir="rtl"] .order-form-section label {
    left: unset;
    right: 10px;
}
[dir="rtl"] .order-form-section .settings-image-upload .title {
    right: 30px !important;
}

[dir="rtl"] .feature-btn {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}
[dir="rtl"] .table > :not(:last-child) > :last-child > * {
    border-bottom-color: rgba(31, 31, 31, 0.1) !important;
}
[dir="rtl"] .table th {
    background-color: rgba(31, 31, 31, 0.05) !important;
}

[dir="rtl"] .table-top-left .gpt-up-down-arrow span {
    right: 20px !important;
}
[dir="rtl"] .dashboard-table-header i {
    transform: rotate(180deg);
}

@media (min-width: 500px) {
    .gpt-up-down-arrow span {
        /* right: 93% !important; */
    }
}

@media only screen and (min-width: 0px) and (max-width: 500px) {
    .gpt-up-down-arrow span {
        right: 92% !important;
    }
}

[dir="rtl"] .table-search .position-absolute {
    right: 89%;
}
[dir="rtl"] .table-search .position-absolute {
    top: 54%;
}
[dir="rtl"] .ml-3 {
    margin-left: 25px;
}
[dir="rtl"] .table-top-left.d-flex.gap-3.margin-l-16 {
    margin-right: 16px !important;
}

[dir="rtl"] .erp-table-section .searchResults .w-60 {
    text-align: right !important;
}

[dir="rtl"] label.upload-img-label {
    top: -6px;
    left: 5px !important;
}

[dir="rtl"] .modal-body label {
    left: -5px;
}

/* notification style css start */

[dir="rtl"] .toast.toast-success {
    background-color: green !important;
}
[dir="rtl"] .toast.toast-error {
    background-color: #c52127 !important;
}
/* notification style css end */

/* delete modal style css start */
[dir="rtl"] .jconfirm-title,
[dir="rtl"] .jconfirm-content {
    direction: ltr;
    unicode-bidi: embed;
}
/* delete modal style css end */

@media only screen and (min-width: 360px) and (max-width: 644px) {
    [dir="rtl"] .table-search .position-absolute {
        right: 77%;
    }
}
@media only screen and (min-width: 0px) and (max-width: 360px) {
    [dir="rtl"] .table-search .position-absolute {
        right: 75%;
    }
}

/*----------- dashboard counter card css  start------------*/
@media only screen and (min-width: 1424px) {
    [dir="rtl"] .gpt-dashboard-card.counter-grid-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media only screen and (min-width: 880px) and (max-width: 1424px) {
    [dir="rtl"] .gpt-dashboard-card.counter-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 650px) and (max-width: 880px) {
    [dir="rtl"] .gpt-dashboard-card.counter-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 1423px) and (max-width: 1700px) {
    [dir="rtl"] .gpt-dashboard-card .couter-box .icons {
        height: 44px;
        width: 44px;
    }
    [dir="rtl"] .gpt-dashboard-card .couter-box h5 {
        font-size: 18px;
        line-height: 28px;
    }
    [dir="rtl"] .gpt-dashboard-card .couter-box p {
        font-size: 14px;
        line-height: 24px;
    }
}

@media (max-width: 650px) {
    [dir="rtl"] .gpt-dashboard-card.counter-grid-6 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*----------- dashboard counter card css  end------------*/

@media only screen and (min-width: 0px) and (max-width: 400px) {
    [dir="rtl"] .header-left .text-custom-primary {
        font-size: 11px;
    }
}
@media (max-width: 1150px) {
    [dir="rtl"] .side-bar {
        right: -100%;
        left: unset;
    }
    [dir="rtl"] .side-bar.active {
        right: 0;
        left: unset;
    }
    [dir="rtl"] .section-container {
        padding-right: 0;
        padding-left: 0;
    }
    [dir="rtl"] .section-container.active {
        padding-left: 0;
        padding-right: 0;
    }
    [dir="rtl"] .close-btn {
        left: 15px;
        right: unset;
    }
    [dir="rtl"] .side-bar.active .side-bar-manu li a .sidebar-icon {
        margin-left: 0;
    }
}

@media only screen and (min-width: 1400px) {
    [dir="rtl"] .gpt-dashboard-card .couter-box p {
        width: 100%;
    }
}
[dir="rtl"] .input-group {
    /* position: relative; */
    display: flex !important;
    /* flex-wrap: wrap; */
    align-items: stretch;
    width: 100%;
}
[dir="rtl"] .dropdown-search {
    /* padding: 8px; */
    /* border-top: 1px solid #ddd; */
    position: absolute !important;
    top: 50px;
    width: 100%;
}
[dir="rtl"] .inventory-square-btn {
    display: none !important;
}
[dir="rtl"] .custom-print-btn {
    white-space: nowrap;
}
[dir="rtl"] .pdf-btn {
    white-space: nowrap;
}
[dir="rtl"] .invoice-logo {
    width: 40px;
    height: 54px;
    object-fit: contain;
    object-position: right center;
    display: block;
}
[dir="rtl"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: white;
    color: var(--bs-table-striped-color);
}

[dir="rtl"] .in-table-row-bottom td {
    padding: 2px !important;
}
[dir="rtl"] .in-table-row td {
    padding: 2px !important;
}
.choices__list--single .choices__item {
    text-align: left;
    direction: rtl;
}
[dir="rtl"] .delete-cancel-group {
    position: relative;
}
[dir="rtl"] .barcode-info h5 {
    margin: 0;
}
[dir="rtl"] .barcode-info h5 {
    height: 44px !important;
    background-color: #f7f7f7;
    width: 62px;
    color: #121535;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d8d8d8 !important;
    border-left: none;
    border-right: 0;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

[dir="rtl"] .barcode-info input {
    height: 44px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
[dir="rtl"] .custom-print-btn {
    color: white;
}
[dir="rtl"] .warranty-container select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    height: 45px;
    background-color: #f7f7f7;
    cursor: pointer;
    border-right: none;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    width: 230px;
}
[dir="rtl"] .warranty-container input[type="number"] {
    padding: 11px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    border-left: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    outline: none;
}

[dir="rtl"] .gpt-up-down-arrow select {
    direction: rtl;
    text-align: left;
}

[dir="rtl"] .header-table,
[dir="rtl"] .invoice-table [dir="rtl"] .table-summery {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .payment-section .amount-info-container input {
    width: 97%;
}
[dir="rtl"] .payment-section .amount-info-container .main-select {
    width: 97%;
}
[dir="rtl"] .square-btn {
    background-color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    height: 45px;
}
[dir="rtl"] .square-btn:hover {
    background-color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}
[dir="rtl"] .btn-brand:hover {
    color: white;
}
[dir="rtl"] .btn-category:hover {
    color: white;
}
[dir="rtl"] .invoice-logo {
    width: 260px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
    display: block;
}
[dir="rtl"] .custom-modal-header {
    margin-right: auto;
    margin-left: 0;
}
[dir="rtl"] .btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M15 5L5 15' stroke='%23C52127' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 5L15 15' stroke='%23C52127' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.75;
}
[dir="rtl"] .btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}
[dir="rtl"] .cancel-btn {
    margin-left: 12px;
}
[dir="rtl"] .settings-link.active {
    color: var(--clr-primary) !important;
    border: 1px solid transparent !important;
}
[dir="rtl"] .settings-link {
    position: relative;
    color: #3c4858 !important;
    font-weight: 500;
    border: none;
    background: transparent;
}
