/* =========================================
   Base RTL / LTR
========================================= */
body.rtl {
  direction: rtl;
  text-align: right;
}
body:not(.rtl) {
  direction: ltr;
  text-align: left;
}
/* =========================================
   Header Adjustments
========================================= */
body.rtl .me-2 { 
  margin-right: 0 !important;
  margin-left: .25rem !important;
}
body.rtl .ms-2 {
  margin-left: 0 !important;
  margin-right: .5rem !important;
}

body.rtl .border-right1{
  border-right: 1px solid var(--border-default) !important;
  border-left: none;
}
body.rtl .border-left{
  border-left: none !important;
}

body.rtl .header-actions{
  margin-right: auto;
  margin-left: 0% !important;
}

/* =========================================
   Dashboard 
========================================= */

body.rtl .images {
  padding: 15px 20px 8px 30px !important;
  right: auto !important;
  left: -20px;
}

body.rtl .ms-1{
  margin-left: 0 !important;
  margin-right: .25rem !important;

}
body.rtl .text-start{
  text-align: right !important;
}

body.rtl .text-end{
  text-align: left !important;
}


/* =========================================
   Notification Panel
========================================= */
body:not(.rtl) .notification-panel {
  right: -320px;
  transform: translateX(100%);
}
body:not(.rtl) .notification-panel.show {
  right: 0;
  transform: translateX(0);
}
body.rtl .notification-panel {
  left: -320px;
  border-right: 1px solid var(--border-default);
  transform: translateX(-100%);
}
body.rtl .notification-panel.show {
  left: 0;
  transform: translateX(0);
}
body.rtl .notification-panel,
body:not(.rtl) .notification-panel {
  transition: all 0.3s ease;
}

body.rtl .flatpickr-months .flatpickr-month{
  height: 45px !important;
}

/* =========================================
   Account Panel and seting panel
========================================= */
body:not(.rtl) .account-panel {
  right: -280px;
  transform: translateX(100%);
}
body:not(.rtl) .account-panel.open {
  right: 0;
  transform: translateX(0);
}
body.rtl .account-panel {
  left: -280px;
  width: 221px;
  border-right: 1px solid var(--border-default);
  transform: translateX(-100%);
}
body.rtl .account-panel.open {
  left: 0;
  transform: translateX(0);
}
body.rtl .account-panel,
body:not(.rtl) .account-panel {
  transition: all 0.3s ease;
}

body.rtl .settings-panel,
body.rtl .rules-panel,
body.rtl .groups-panel,
body.rtl .commands-panel 
{
  left: -400px;
 transform: translateX(-100%);
 border-right: 1px solid var(--border-default);
 border-left: none !important;
}
body.rtl .settings-panel.open,
body.rtl .rules-panel.open,
body.rtl .groups-panel.open,
body.rtl .commands-panel.open  
{
  left: 221px;
  transform: translateX(0);
}

body:not(.rtl) .settings-panel,
body:not(.rtl) .rules-panel,
body:not(.rtl) .groups-panel,
body:not(.rtl) .commands-panel 
{
  right: -400px;
  transform: translateX(100%);
}

body:not(.rtl) .settings-panel.open,
body:not(.rtl) .rules-panel.open
 {
  right: 220px;
  transform: translateX(0);
}

body.rtl .settings-panel,
body:not(.rtl) .settings-panel,
body.rtl .rules-panel ,
body:not(.rtl) .rules-panel
{
  transition: all 0.3s ease;
}

/* =========================================
   Dropdown Menu User
========================================= */
body.rtl .dropdown-menu-user {
  right: auto;
  left: 0;
  direction: rtl;
  text-align: right; 
}

/* =========================================
   Search Input
========================================= */
body.rtl .search {
  border-left: none;
  border-right: 1px solid var(--border-default);
}

/* =========================================
   Sidebar + Hover Panel
========================================= */
body.rtl .circle-corner{
  left: -20px;
  padding: 2rem 1rem 1rem 1.8rem;
  right: auto;
}
body.rtl .border-right {
  border-right: none !important;
  border-left: 1px solid var(--border-default) !important;
}
body.rtl .hover-panel {
  right: 97px;
  border-right: none !important;
  border-left: 1px solid var(--border-default);
  animation: slideInRTL 0.2s ease-in-out;
}

body.rtl .appoved{
  border-bottom-right-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 0%;
  border-top-left-radius: 0%;
}

body.rtl .s-m-t{
  height: 3rem;
  display: flex;
  align-items: center;
}


body.rtl .rejected {
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
  border-bottom-right-radius: 0%;
  border-top-right-radius: 0%;
}
@keyframes slideInRTL {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================================
   Footer
========================================= */
body.rtl .footer {
  left: 0;
  right: 97px;
}

/* =========================================
   Dynamic Tabs
========================================= */
body.rtl .nav-tabs .nav-item {
  border-left: 1px solid var(--border-default);
  border-right: none;
}
body.rtl .me-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}
body.rtl .ms-auto {
  margin-left: 1px !important;
  margin-right: auto !important;
}

/* =========================================
  modals
========================================= */
body.rtl .modal-header{
 justify-content: space-between;
}
body.rtl .modal-header .btn-close{
  margin-left: 0%;
}
body.rtl .btn-close{
  font-family: 'Poppins';
  font-weight: 500;
}
body.rtl .rtl-margin{
  margin-top: 10px;
}

body.rtl .me-3{
  margin-left: 1rem !important;
  margin-right: 0% !important;
}

body.rtl .rtl-line-height{
  line-height: 1;
}
body.rtl .rtl-form{
  height: 45px;
}
body.rtl .font-rtl{
  font-family: var(--app-font-family);
}


/* =========================================
   Department / Tables
========================================= */
body.rtl .text-md-end {
  text-align: left !important;
}

body.rtl .ng-select .ng-clear-wrapper ,
body.rtl .ng-select .ng-arrow-wrapper {
  font-family: 'Font Awesome 5 Brands' !important;
}

body.rtl .icon-btn{
  width: 25px;
}

body.rtl .bs-datepicker-head button.previous{
  font-family: 'Font Awesome 5 Brands' !important;
}
body.rtl .bs-datepicker-head button.next span{
  font-family: 'Font Awesome 5 Brands' !important;

} 

body.rtl .btns{
  display: flex;
  flex-direction: row;
}

body.rtl .btn-set{
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'bootstrap-icons' !important;
}

body.rtl .me-1{
  margin-left: .25rem !important;
}

body.rtl .btn-add{
  height: 35px;
  width: 6rem;
}
body.rtl .rtl-align{
  text-align: center !important;
}

body.rtl .ml-5{
  margin-left: 0;
  margin-right: 5px !important;
}

body.rtl button.btnSave::before,
body.rtl button.btnCancel::before, 
body.rtl button.btnAdd::before,
body.rtl button.btnExport::before 
{
   margin-right: 0;
   margin-left: 0.5rem;
}
body.rtl .dropdown-toggle::after{
  margin-left: 0;
  margin-right: .255em;
}
body.rtl .custom-switch .form-check-input::after{
  top: 0 !important;
} 

body.rtl .mr-5{
  margin-right: 0;
  margin-left: 6px;
}

body.rtl .ng-select.ng-select-single .ng-select-container .ng-value-container, .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value {

    overflow: visible !important;
  
}

body.rtl div:where(.swal2-icon) {
  font-family: 'emoji' !important;
}

body.rtl .ag-theme-alpine {
  direction: rtl !important;
}

body.rtl .ag-theme-alpine .ag-root-wrapper,
body.rtl .ag-theme-alpine .ag-root-wrapper-body,
body.rtl .ag-theme-alpine .ag-header,
body.rtl .ag-theme-alpine .ag-body-viewport,
body.rtl .ag-theme-alpine .ag-center-cols-container {
  direction: rtl !important;
  text-align: right !important;
}

body.rtl .ag-theme-alpine .ag-header-cell,
body.rtl .ag-theme-alpine .ag-cell {
  text-align: right !important;
  /* justify-content: flex-end !important; */
}


body.rtl .ag-theme-alpine .ag-paging-panel {
  direction: rtl !important;
}
body.rtl .ag-header-cell-text{
 width: -webkit-fill-available ;
 padding-right: 4px;
 display: flex;
 justify-content: center;
 align-items: center
}


body.rtl .ag-paging-row-summary-panel-number,
body.rtl .ag-picker-field-display,
body.rtl .ag-paging-number
{
  font-family: bootstrap-icons !important;
}

body.rtl .custom-switch input{
  top: 0;
} 

body.rtl .label-text{
  margin-top: 3px;
}

body.rtl .margintop{
  margin-top: 1rem;;
}

body.rtl .footer{
  padding-left: 6rem;
  padding-right: 0%;
}




/* =========================================
  dashboard
========================================= */

.pt-1{
  padding-left: 20px;
  padding-right: 0%;
}



body.rtl .dxrd-designer-wrapper 
.dxrd-toolbar-wrapper 
.dxrd-toolbar 
.dxrd-toolbar-item 
.dxrd-toolbar-item-separator {
  
  border-left: 1px solid;
  border-left-width:0cap;
  border-left-style: none !important;

}

body.rtl .dx-ltr.dxrd-designer-wrapper .dxrd-toolbar-wrapper .dxrd-toolbar .dxrd-toolbar-item .dxrd-toolbar-item-separator {
  right: -2px !important;
  left:0%;
}

body.rtl .dxrd-preview-export-item-image-wrapper{
 padding-left: 18px !important;
 padding-right: 0% !important;
}

body.rtl .dx-dropdowneditor.dx-dropdowneditor-active .dx-dropdowneditor-icon{
  left: 0;
  right: none;
}
