/* Author: Ali Baraghithi */

/*** declate ltr class for elements that must remain ltr ***/
.ltr {
	direction: ltr;
}

/*** fix main float classes ***/
.rtl .float-left{
	float: right !important;
}

.rtl .float-right{
	float: left !important;
}

/*** fix main text align classes ***/
.rtl .text-left{
	text-align:right !important;
}
.rtl .text-right{
	text-align: left !important;
}
/*** fix button groups ***/
/* bootstrap button group */
.rtl .btn-group > .btn,
.rtl .btn-group-vertical > .btn {
  position: relative;
  float: right; 
}

.rtl .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
   border-left-width:0px;
   border-top-left-radius: 0; 
   border-bottom-left-radius: 0;
   border-top-right-radius: 3px; 
   border-bottom-right-radius: 3px;
}

.rtl .btn-group > .btn:last-child:not(:first-child),
.rtl .btn-group > .dropdown-toggle:not(:first-child) {
  border-top-right-radius: 0; 
  border-bottom-right-radius: 0;
  border-top-left-radius: 3px; 
  border-bottom-left-radius: 3px;
}
.rtl .btn-group:not(.dt-buttons) > .btn:last-child:not(:first-child),
.rtl .btn-group:not(.dt-buttons) > .dropdown-toggle:not(:first-child){
  border-left-width: 1px;
  border-left-style: solid;
}
/* pagination button group */
.rtl .pagination > .paginate_button{
  float: right; 
}

.rtl .page-item:first-child .page-link{
	border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
	border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.rtl .page-item:last-child .page-link {
	border-top-right-radius: 0;
    border-bottom-right-radius: 0;
	border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

/*** fix select ***/
.rtl .custom-select{
	-moz-appearance:none; /* Firefox */
    -webkit-appearance:none; /* Safari and Chrome */
    appearance:none;
	min-width:50px;
	background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat left 0.75rem center;
    background-size: 8px 10px;
}

/*** fix data-tables filters ***/
.rtl .dataTables_filter{
	text-align:left !important;
}

/*** fix breadcrumbs ***/
.rtl .breadcrumb.breadcrumb-custom .breadcrumb-item + .breadcrumb-item:before{
	content: "\f053";
	padding-left: 0.5rem;
	padding-right: 0;
}
/*** fix subject details ***/
.rtl .subject-card.border-left {
	border-left: 0px !important;
	border-right: 1px solid #e9e8ef !important;
}

/*** fix wizard steps direction ***/
.rtl .wizard > .steps > ul > li {
	float:right;
}

/*** fix wizard action buttons ***/
.rtl .wizard > .actions {
	text-align: left;
}
.rtl .wizard > .actions > ul > li{
	float:right;
}
.rtl .wizard > .actions > ul > li > a > i.fa-arrow-left:before{
	content: "\f061";
}
.rtl .wizard > .actions > ul > li > a > i.fa-arrow-right:before{
	content: "\f060";
}

/*** fix preappend button ***/
.rtl .input-group > .input-group-append > .btn {
	border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
	border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
/*** fix back to top button ***/
.rtl #backToTopButton{
	right:auto;
	left: 30px;
}


/** fix login form **/
.rtl .login-form .border-left-0 {
	border-right: 0 !important;
	border-left: 1px solid #e9e8ef !important;
}

.rtl .login-form .border-right-0 {
	border-left: 0 !important;
	border-right: 1px solid #e9e8ef !important;
}

.rtl .mdi-arrow-left:before{
	content: "\F054" !important;
}

.swal-overlay--show-modal .swal-modal,.swal-text{
	direction:rtl !important;
	text-align:right;
}
.swal-footer{
	text-align:left !important;
}