/* gloabl */
input,
textarea,
button {
    direction: rtl !important;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
button,
a {
    line-height: 24px;
}

/* spinners */
.spinner--float-right-top {
    right: unset;
    top: 25px;
    left: 25px;
}

.spinner--float-right {
    right: unset;
    left: 25px;
}

/* align */
.text-end {
    text-align: left !important;
}

.text-start {
    text-align: right !important;
}

/* padding */
.pe-1 {
    padding-left: 0.25rem !important;
    padding-right: unset !important;
}

.ps-1 {
    padding-right: 0.25rem !important;
    padding-left: unset !important;
}

.pe-2 {
    padding-left: 0.5rem !important;
    padding-right: unset !important;
}

.ps-2 {
    padding-right: 0.5rem !important;
    padding-left: unset !important;
}

.ps-3 {
    padding-right: 1rem !important;
    padding-left: unset !important;
}

.pe-3 {
    padding-left: 1rem !important;
    padding-right: unset !important;
}

.ps-4 {
    padding-right: 1.5rem !important;
    padding-left: unset !important;
}

.pe-4 {
    padding-left: 1.5rem !important;
    padding-right: unset !important;
}

.ps-5 {
    padding-right: 3rem !important;
    padding-left: unset !important;
}

.pe-5 {
    padding-left: 3rem !important;
    padding-right: unset !important;
}

/* margin */
.me-1 {
    margin-left: 0.25rem !important;
    margin-right: unset !important;
}

.ms-1 {
    margin-right: 0.25rem !important;
    margin-left: unset !important;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: unset !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
    margin-left: unset !important;
}

.ms-3 {
    margin-right: 1rem !important;
    margin-left: unset !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: unset !important;
}

.ms-4 {
    margin-right: 1.5rem !important;
    margin-left: unset !important;
}

.me-4 {
    margin-left: 1.5rem !important;
    margin-right: unset !important;
}

.ms-5 {
    margin-right: 3rem !important;
    margin-left: unset !important;
}

.me-5 {
    margin-left: 3rem !important;
    margin-right: unset !important;
}

/* table */
.memoir--table {
    direction: rtl;
}

.memoir--table tr th {
    border-right: unset;
}

.memoir--table tr th:last-of-type {
    border-left: none;
}

.memoir--table tr td {
    border-right: unset;
}

.memoir--table tr td:last-of-type {
    border-left: none;
}

.memoir--table tr th {
    font-size: 13px;
    text-align: right;
}

.memoir--table tr td {
    font-size: 13px;
    text-align: right;
}

.form--label {
    margin-bottom: 6px;
    margin-left: 0px;
    margin-right: 4px;
    font-size: 12px;
}

/* invoice */

.invoice--main-title {
    font-size: 50px;
    letter-spacing: 0px !important;
    margin-bottom: 18px !important;
}

.invoice--table {
    direction: rtl;
}

.invoice--table tr th {
    text-align: right;
}

.invoice--table tr td {
    text-align: right;
}

/* input */
.input--icon svg {
    direction: rtl;
    left: 0px;
    width: 40px;
    border-radius: 8px 0px 0px 8px;
    border: 1px solid var(--input-border-color);
    background-color: whitesmoke;
    z-index: 1;
    right: unset;
    padding: 12px 0px;
}

.input--icon input {
    padding: var(--input-padding);
    padding-left: 44px;
}

.input--icon.for-price input {
    padding: var(--input-padding);
}

.input--icon.for-price span {
    left: 10px;
    right: unset;
}

input[data-type="number"] {
    direction: ltr !important;
    text-align: right !important;
}

/* select */
.select2-results__option {
    text-align: right !important;
}

.select--single-wrapper.scheme
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding-right: var(--select-padding);
    padding-left: var(--select-padding-extra);
    direction: rtl;
}

.select--single-wrapper
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    text-align: right;
}

.select--single-wrapper svg {
    right: unset;
    left: 18px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    position: absolute;
    top: 7.5px;
    left: 7px;
    right: unset;
    background-color: white !important;
}

.select2-container--default .select2-results__group {
    text-align: left !important;
}
/* input */
.form--input[type="date"],
.form--input[type="datetime-local"] {
    text-align: right;
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 10px;
}

/* collapse */
.collapse--btn {
    text-align: right;
    justify-content: start !important;
}

.collapse--btn svg {
    right: unset;
    left: 13px;
}

/* Alert */
.swal2-popup {
    direction: rtl !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 0 0 0.5em !important;
}
/* ----------------------------------------- */

/* login */
.form-check.ar--direction {
    direction: rtl;
}

.form-check.ar--direction .checkbox--login.text-login {
    margin-left: 0px !important;
    margin-right: 35px !important;
}

.ar--direction {
    direction: rtl;
}
/* ----------------------------------------- */

/* login */
.ar--flex-row-reverse {
    flex-direction: row-reverse;
}

.ar--flex-column-reverse {
    flex-direction: column-reverse;
}

/* ----------------------------------------- */

/* dashboard */
.navbar--profile-menu a {
    direction: rtl;
}

.navbar--menu {
    direction: rtl;
}

.rtl--direction {
    direction: rtl;
}

/* -------------------------------------------- */

/* searchSection */

.search--section input {
    border-radius: 0px var(--searchbar-radius) var(--searchbar-radius) 0px;
}

.search--section h6 {
    border-radius: var(--searchbar-radius) 0px 0px var(--searchbar-radius);
}

.tabs--wrap .nav-tabs a {
    font-size: 13px;
}

/* ----------------------------------------------- */

/* btn groups */
.submenu--group .btn:first-of-type {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: inherit !important;
    border-bottom-right-radius: inherit !important;
}

.submenu--group .btn:last-of-type {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: inherit !important;
    border-bottom-left-radius: inherit !important;
}
