/* Shark CRM Arabic RTL fixes - loaded only when language is Arabic */
html[dir="rtl"], html[dir="rtl"] body{
  direction:rtl !important;
  text-align:right !important;
}
html[dir="rtl"] #sidebar{
  left:auto !important;
  right:0 !important;
}
html[dir="rtl"] #main-content{
  margin-left:0 !important;
  margin-right:250px !important;
}
html[dir="rtl"] #app-wrapper.sidebar-collapsed #main-content{
  margin-left:0 !important;
  margin-right:76px !important;
}
html[dir="rtl"] #sidebar-toggle{
  left:14px !important;
  right:auto !important;
}
html[dir="rtl"] #app-wrapper.sidebar-collapsed #sidebar-toggle{
  left:14px !important;
  right:auto !important;
}
html[dir="rtl"] .sidebar-logo,
html[dir="rtl"] .sidebar-user,
html[dir="rtl"] .nav-item,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .toolbar,
html[dir="rtl"] .modal-header,
html[dir="rtl"] .modal-footer,
html[dir="rtl"] .form-row,
html[dir="rtl"] .form-grid,
html[dir="rtl"] .stats-grid,
html[dir="rtl"] .list-footer{
  direction:rtl !important;
}
html[dir="rtl"] .nav-item svg,
html[dir="rtl"] .btn svg{
  margin-right:0 !important;
  margin-left:8px !important;
}
html[dir="rtl"] .page-title-area{
  text-align:right !important;
}
html[dir="rtl"] .header-actions{
  justify-content:flex-start !important;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .form-control{
  direction:rtl !important;
  text-align:right !important;
}
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"]{
  direction:ltr !important;
  text-align:right !important;
}
html[dir="rtl"] .crm-table,
html[dir="rtl"] table{
  direction:rtl !important;
  text-align:right !important;
}
html[dir="rtl"] th,
html[dir="rtl"] td{
  text-align:right !important;
}
html[dir="rtl"] .modal{
  direction:rtl !important;
  text-align:right !important;
}
html[dir="rtl"] .modal-close{
  margin-right:0 !important;
  margin-left:auto !important;
}
html[dir="rtl"] #toast-container{
  right:auto !important;
  left:24px !important;
}
html[dir="rtl"] .toast{
  direction:rtl !important;
  text-align:right !important;
  border-left:0 !important;
  border-right:4px solid var(--primary) !important;
}
html[dir="rtl"] .toast.success{border-right-color:var(--green)!important;}
html[dir="rtl"] .toast.error{border-right-color:var(--red)!important;}
html[dir="rtl"] .toast.warning{border-right-color:var(--orange)!important;}
html[dir="rtl"] .dropdown-menu{
  right:auto !important;
  left:0 !important;
  direction:rtl !important;
  text-align:right !important;
}
html[dir="rtl"] .search-wrap svg{
  left:auto !important;
  right:12px !important;
}
html[dir="rtl"] .search-wrap input{
  padding-left:12px !important;
  padding-right:38px !important;
}
@media(max-width:900px){
  html[dir="rtl"] #main-content,
  html[dir="rtl"] #app-wrapper.sidebar-collapsed #main-content{
    margin-right:0 !important;
  }
  html[dir="rtl"] #sidebar{
    transform:translateX(100%) !important;
  }
  html[dir="rtl"] #sidebar.open{
    transform:translateX(0) !important;
  }
}
