@import "template";
@import "vendor/bootstrap/bootstrap-rtl";

// Global
dl,
ol,
ul {
  padding-right: 0;
}

.dropdown-menu-end {

  &::after {
    right: auto;
    left: .9rem;
  }
}

.sidebar-wrapper {
  right: 0;
  left: auto;
}

.menu-collapse {
  right: 0;
  left: auto;
  margin-right: -7.5px;
  margin-left: 0;
}

.field-calendar {
  float: none;
}

.form-text {
  float: right;
}

.field-user-wrapper {
  float: none;
}

// System panel
.menu-quicktask,
.menu-badge {
  float: left;
}

// Redirect urls fields
#jform_new_url,
#jform_old_url,
#new_url {
  text-align: left;
}

// Database prefix
#jform_dbprefix {
  text-align: right;
  direction: ltr;
}

// skipto
.skip-to {
  [role="separator"] {
    text-align: right !important;
  }
}

.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
  @include border-start-radius(0);
  @include border-end-radius($border-radius);
}

.btn-group > .btn:first-child:not(.dropdown-toggle) {
  @include border-end-radius($border-radius);
}

.btn-group > .btn:not(:last-child):not(.dropdown-toggle),
.btn-group > .btn-group:not(:last-child) > .btn {
  @include border-start-radius(0);
  margin-left: -1px;
}

.btn-group > .btn:last-child:not(.dropdown-toggle) {
  @include border-start-radius($border-radius);
}

.btn-group > .btn:not(:first-child),
.btn-group > .btn-group:not(:first-child) {
  @include border-end-radius(0);
}
