/* top Header */
/* top LOGO: move to the right and reset left-alignment styles */
.rtl .nav-top .logo {
	left: auto;
	right: 0;
	margin-left: 0px;
	margin-right: -20px;
	z-index: 1;
}
.rtl .text-right {
	text-align: left;
}
.rtl .nav-top .course-name {
	right: 65px;
	left: auto;
	padding-right: 10px;
	padding-left: 0px;
}
.rtl .dropdown-menu > li > a {
	text-align: right;
}
.nav-top .my-account i.jlmsicon-log-in, .nav-top .my-account i.jlmsicon-log-out {
	transform: scale(-1, 1);
}



/* fix for a bootstrap-grid.css from JoomlaLMS */
.rtl .pull-right {
	float: left !important;
}



/* fix for a chosen selectboxes (e.g. homepage courses filter) */
.rtl .chzn-container-active.chzn-with-drop .chzn-single div b {
	background-position-x: -12px
}
.rtl .chzn-container-single .chzn-single div b {
	background-position-x: 6px
}


/* ? */
.rtl .jlms-courseslist-item-toolbar {
	left: 10px;
	right: auto;
}



/* fix to JoomlaLMS drop-down menus */
.rtl .dropdown-pull-right + .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}



/* fix for a login module */
.rtl .nav-top .nav-main .my-account li:first-child {
	float: right;
	text-align: right;
	margin-right: 20px;
}
.rtl .nav-top .nav-main .my-account {
	padding-left: 0px;
}
.rtl .nav-top:before {
	background-color: #e8e8e8;
}
/* Site specific styling: login and registration pages (the ones without jlms-top-users-profile login module) */
.rtl.view-login .nav-top:before, .rtl.view-registration .nav-top:before {
	background-color: #f5f5f5;
}



/* course navigation menu (left-side panel) */
/* TODO: personal course CSS compiler: change border colors and borders order fro RTL */
.rtl .row-fluid.custom {
	padding-left: 0px;
	padding-right: 65px;
}
.rtl .nav-side {
	right: 0;
	left: auto;
	border-radius: 5px 0 0 5px;
	border-right:none;
}
.rtl .nav-side.expanded .show-hide i:before {
    content: "\e628";
}
.rtl .nav-side .show-hide i:before {
    content: "\e62a";
}
.rtl .nav-side .show-hide i {
	margin-right: 0;
	margin-left: 8px;
}



/* JoomlaLMS create/edit forms */
.rtl .form-horizontal .control-label {
	width: 160px;
}



/* squeezebox fixes */
.rtl #sbox-title table {
	direction: ltr;
}
.rtl #sbox-title table #sbox-title-main {
	direction: rtl;
}
.rtl #sbox-btn-close {
	right: auto;
	left: -15px;
}



/* action buttons within tool pages lists */
.rtl .btn-group > .btn {
	float: none;
}
/* fix for expanded ul menus (item actions list on the "List items" tool pages) */
.rtl .dropdown-menu.pull-right {
	right: 0px;
}
.rtl .dropdown-menu {
	right: 0px;
	left: auto;
}
/* fix radius on button groups of item actions buttons */
.rtl .btn-group > .btn:first-child {
	border-radius: 0 4px 4px 0;
}



/* fix for a Quizzes edit page layout (text alignment of labels) */
.rtl .jlms_item_properties td:first-child {
	text-align: right;
}
.rtl .jlms_item_properties td:first-child label {
	text-align: right;
}
/* homepage 'grid-view' layout */
.jlms-course.col-md-4 {
	float: right;
}


/* homepage 'list view' layout */
.rtl .media-left, .rtl .media > .pull-left {
    padding-right: 0px;
    padding-left: 10px;
}
.rtl .media-right, .rtl .media > .pull-right {
    padding-right: 10px;
    padding-left: 0px;
}

/* fix radius on button groups in top toolbars (it has a bug ofdouble btn-group, we use it here) */
.rtl .btn-group >.btn-group > .btn {
	border-radius: 4px;
}

/* flip horizontally tree-structure images in docs/library tables */
.rtl table.jlmslist.table.table-striped.table-hover > tbody > tr > td > img {
	transform: scaleX(-1);
}
/* tracking pages for SCORM/lpaths statistics */
.rtl table.jlmslist.table.table-striped.table-hover table tr > td > img {
	transform: scaleX(-1);
}
/* mirror just 'back'/'forward' buttons */
.rtl span.icon-arrow-left, .rtl span.icon-arrow-right {
	transform: scale(-1);
}
/* ! RTL best practice: Elements connected with media-content management, such as “Play” in a video player, don’t need to be mirrored. */



/* CourseBuilder toolbar: */
.rtl .steps .steps-container .step-block .step .step-number {
	text-align: left;
	padding-right:0px;
	padding-left:10px;
}
.rtl .steps .steps-container .step-block .step .step-name {
	text-align: right;
}
/*CourseBuilder toolbar: arrows for steps */
.rtl .steps .steps-container .step-block:not(:last-child):before {
	left:-26px;
	transform: scaleX(-1);
	right: initial;
}
.rtl .steps .steps-container .step-block:not(:last-child):before {
	left: -26px;
	transform: scaleX(-1);
	right: initial;
}
.rtl .steps .steps-container .step-block:not(:last-child):after {
	transform: scaleX(-1);
	left: -24px;
    right: initial;
}
/* CourseBuilder toolbar: when fixed position */
@media (min-width: 768px) {
	.rtl .steps.affix {
		margin-right:-20px;
		margin-left:0px;
	}
}
@media (max-width: 979px) and (min-width: 768px) {
	.rtl .steps .steps-container .step-block:not(:last-child):after {
		left: -15px;
	}
	.rtl .steps .steps-container .step-block:not(:last-child):before {
		left:-17px;
	}
}
/* CourseBuilder: step5 - del/edit button on modules */
.rtl .jlms-cb-module-edit-buttons {
	left:0px;
	text-align:left;
}
/* CourseBuilder: step5 - 'plus' icon for adding modules links */
.rtl .well.add-module i {
	margin-left: 8px;
	margin-right: 0;
}


/* input elements (template) */
.rtl input[type="radio"], .rtl input[type="checkbox"] {
	margin: 0 0 0 4px;
}

/* JoomlaLMS checkbox for date-picker */
.rtl .jlms_date_picker_check, .rtl .jlms30_course_user_add_access_period .jlms_date_picker_check {
	margin-right: 0px !important;
	margin-left: 5px !important
}

/* pagination */
.rtl .pagination ul > li > a, .rtl .pagination ul > li > span {
	float:right;
	border-right-width: 1px;
	border-left-width: 0;
}
.rtl .pagination ul > li:first-child > a,
.rtl .pagination ul > li:first-child > span {
	border-left-width: 0px;
	-webkit-border-top-left-radius: 0px;
	-moz-border-radius-topleft: 0px;
	border-top-left-radius: 0px;
	-webkit-border-bottom-left-radius: 0px;
	-moz-border-radius-bottomleft: 0px;
	border-bottom-left-radius: 0px;
	border-right-width: 1px;
	-webkit-border-top-right-radius: 4px;
	-moz-border-radius-topright: 4px;
	border-top-right-radius: 4px;
	-webkit-border-bottom-right-radius: 4px;
	-moz-border-radius-bottomright: 4px;
	border-bottom-right-radius: 4px;
}

.rtl .pagination ul > li:last-child > a,
.rtl .pagination ul > li:last-child > span {
	border-left-width: 1px;
	-webkit-border-top-right-radius: 0px;
	-moz-border-radius-topright: 0px;
	border-top-right-radius: 0px;
	-webkit-border-bottom-right-radius: 0px;
	-moz-border-radius-bottomright: 0px;
	border-bottom-right-radius: 0px;
	-webkit-border-top-left-radius: 4px;
	-moz-border-radius-topleft: 4px;
	border-top-left-radius: 4px;
	-webkit-border-bottom-left-radius: 4px;
	-moz-border-radius-bottomleft: 4px;
	border-bottom-left-radius: 4px;
}


/* fix of JoomlaLMS (core css) controls/chosen styling */
.rtl #jlms_mainarea .chzn-container .chzn-results li, .rtl #jlms_mainarea .chzn-container-single .chzn-single span {
	text-align: right
}


/* disable RTL for nvd3 svg graphics */
.rtl svg.nvd3-svg {
	direction: ltr;
}

/* fix selectboxes styling in pagination (overwrite bootstrap-RTL) */
.rtl .pagination .chzn-container-single .chzn-single {
	float:none;
}

/* JoomlaLMS (core) Learning Paths navigation */
.rtl #jlms_lpath_head {
	text-align: right;
	direction: rtl;
}
.rtl #jlms_lpath_menu {
	text-align: left !important;	
}
/* LPaths: mirrors the 'play/start' icon */
/* 'prev/next' icons/buttons are already mirrored for some reason */
.rtl .btn-jlms-playstart .icon-play, .rtl .btn-jlms-playresume .icon-play {
	transform: scaleX(-1);
}
/* LPaths: reset the transform for 'complete/incomplete' status icons applied above */
.rtl #jlms_lpath_contents_container table.jlmslist.table.table-striped.table-hover > tbody > tr > td > img {
	transform: scaleX(1);
}

/* Quizzes */
.rtl #jq_quiz_container #quest_div form[name="quest_form"] table {
	float:right;
}
/*
.rtl svg {
	transform: scaleX(-1);
}*/
/*.rtl svg text {
	transform: scaleX(-1);
}*/

/* tracking page: landing (5-buttons toolbar) */
.rtl .tracking_right_button_group {
	text-align: right !important;
}
.rtl a.tracking_first_right_button.tracking_right_button_group {
	margin-right:5px;
}


/* Site-specific elements: welcomepage */
.rtl p.welcomepage-signup-message {
	text-align: right !important;
}