/* 
   Emirify Installation and Maintenance - RTL Stylesheet
   Author: Myrix Labs
   Version: 1.0
*/

/* ===== RTL OVERRIDES ===== */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Navigation */
body.rtl .navbar-nav {
  padding-right: 0;
}

body.rtl .navbar-nav .nav-link {
  text-align: right;
}

body.rtl .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

body.rtl .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

body.rtl .me-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

body.rtl .me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

body.rtl .ms-2 {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

body.rtl .ms-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

/* Text alignment */
body.rtl .text-start {
  text-align: right !important;
}

body.rtl .text-end {
  text-align: left !important;
}

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

body.rtl .text-md-end {
  text-align: left !important;
}

/* Section titles */
body.rtl .section-title h2:after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* About features */
body.rtl .about-feature-item i {
  margin-right: 0;
  margin-left: 10px;
}

/* Footer */
body.rtl .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

body.rtl .footer-contact li i {
  margin-right: 0;
  margin-left: 10px;
}

/* Forms */
body.rtl .form-check {
  padding-left: 0;
  padding-right: 1.5em;
}

body.rtl .form-check .form-check-input {
  float: right;
  margin-left: 0;
  margin-right: -1.5em;
}

/* Float classes */
body.rtl .float-start {
  float: right !important;
}

body.rtl .float-end {
  float: left !important;
}

/* List groups */
body.rtl .list-group {
  padding-right: 0;
}

/* Cards */
body.rtl .card-header {
  text-align: right;
}

/* Dropdown menus */
body.rtl .dropdown-menu {
  text-align: right;
}

body.rtl .dropdown-item {
  text-align: right;
}

/* Input groups */
body.rtl .input-group > .form-control:not(:last-child),
body.rtl .input-group > .custom-select:not(:last-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

body.rtl .input-group > .input-group-append > .btn,
body.rtl .input-group > .input-group-append > .input-group-text,
body.rtl .input-group > .input-group-prepend:not(:first-child) > .btn,
body.rtl .input-group > .input-group-prepend:not(:first-child) > .input-group-text,
body.rtl .input-group > .input-group-prepend:first-child > .btn:not(:first-child),
body.rtl .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
