/*******************************************************************
 rtl.css

 This CSS file contains all layout definitions that are required for
 right-to-left languages. It overrides definitions in other fils to
 move right-floating blocks to the left, align text to the right,
 swap left and right margins, etc.

 *******************************************************************/

body, td, li, div {
    direction: rtl;
}

/* required for chat windows */

.ltr-input {
    direction: ltr;
}

/* for input that require LTR, e.g. filenames or URLs */

.headermain, h1.headermain {
    float: right;
}

.headermenu {
    float: left;
    text-align: left;
}

.navbar .breadcrumb {
    float: right;
}

.breadcrumb {
    padding-left: 0px;
    padding-right: 3px;
}

.navbar .navbutton, .navbar .menu {
    float: left;
}

.navbar .navbutton {
    padding-left: 3px;
    padding-right: 0px;
}

.navbar {
    margin-left: 5px;
    margin-right: 0px;
}

/* login window */

.loginbox.twocolumns .signuppanel {
    float: left;
}

.loginbox.twocolumns .loginpanel {
    float: right;
}

.loginbox .loginform .form-label {
    float: right;
    text-align: left;
}

.loginbox .loginform .form-input {
    float: left;
}

.loginbox .loginform {
    text-align: right;
}

.loginbox .signuppanel .subcontent {
    text-align: right;
}

.categorylist .category.number {
	text-align: left;
}

.calendar-controls .previous, .calendar-controls .current, .calendar-controls .next {
    float: right;
}

.coursebox .summary {
    float: left;
    text-align: right;
}

.coursebox .info {
    float: right;
    text-align: right;
}

.categorylist .category.number {
    text-align:left;
}

.calendar-controls .previous {
    text-align: right;
}

.calendar-controls .next {
    text-align: left;
}

.reportlink {
    text-align: left;
}

form.mform fieldset legend {
    margin-left: 0px;
    margin-right: 0.5em;
}

form.mform div.felement, form.mform fieldset.felement {
    margin: 5px 10pt 0pt 0px;
}

form.mform .fitemtitle {
    margin: 5px 10pt 0pt 0px;
}

form.mform fieldset .advancedbutton {
    text-align: right;
}

form.mform .fdescription.required {
    text-align: left;
}

/* language selectors */

#chooselang_jump {
    direction: ltr;
}

/* on firefox the main layout-table might be pushed to the right by editing buttons **** */

#layout-table {
	clear: both;
}

/* admin > appearance > themes > theme settings */

#adminsettings .form-label {
	float: right;
	text-align: left;
}

#adminsettings .form-setting {
	text-align: right;
	margin-right: 13em;
	margin-left: 0px;
}

#adminsettings .form-description {
	margin: 0.5em 13em 0em 0pt;
	text-align: right;
}

#id_lang {
    direction: ltr;
}

/* admin > lang > language pack selection */

select#pack {
    direction: ltr;
}

select#uninstalllang {
    direction: ltr;
}

/* in forums, fix top and bottom navigation bars' buttons */
li form .invisiblefieldset {
	display: inline;
}

.mod-forum .indent {
    margin-right: 30px;
    margin-left: 0px;
}

.glossarypost {
    text-align: right;
}

h1, h2, h3, h4 {
    text-align: right;
    padding-left: 0px;
    padding-right: 5px;
}

/* lessons */

.mod-lesson .invisiblefieldset.fieldsetfix tr {
    text-align: right;
}

.mod-lesson .contents {
    text-align: right;
}

.sideblock .header .hide-show {
    float: left;
}

.sideblock .content h3, .sideblock .content h2 {
    text-align: right;
}

.sideblock .footer {
    text-align: right;
}

/* blocks */

h1.main, h2.main, h3.main, h4.main, h5.main, h6.main {
    text-align: right;
}

.entrylowersection .icons, .entrylowersection .ratings {
    text-align: left;
    padding-left: 5px;
    padding-right: 0px;
}

.block_calendar_upcoming .event .date {
    text-align: left;
    direction: ltr;
}

.block_admin_tree .admintree .depth1 {
	padding-right:16px;
}

.block_admin_tree .admintree .depth2 {
	padding-right:32px;
}

.block_admin_tree .admintree .depth3 {
	padding-right:48px;
}

.block_admin_tree .admintree .depth4 {
	padding-right:64px;
}

.block_admin_tree .admintree {
    text-align: right;
}

body#admin-blocks table.generaltable th.c0, body#admin-blocks table.generaltable td.c0, body#admin-filters table.generaltable th.c0, body#admin-filters table.generaltable td.c0, body#admin-modules table.generaltable th.c0, body#admin-modules table.generaltable td.c0, body#admin-auth table.generaltable th.c0, body#admin-auth table.generaltable td.c0 {
    text-align: right;
}

#mod-chat-gui_header_js-jsupdate
.chat-event,
#mod-chat-gui_header_js-jsupdate
.fdate_time_selector {
    direction: ltr;
}

.chat-event .text, .chat-message .text {
    text-align: right;
}

/* participants */

body#user-index table#participants td, body#user-index table#participants th {
    text-align: right;
}

/* Admin > Security */

#adminsettings label {
    text-align: left;
}

#adminsettings select, #adminsettings input {
    margin: 0pt 5pt 0pt 5pt;
}

#adminsettings .description {
    margin: 0pt 160px 0pt 1em;
}

#adminsettings .form-group {
    float: right;
}

/* Courses backup */

#admin-backup_sche_hour .form-group {
    direction: ltr;
    float: right;
}

/* backup_sche_hour */

form.mform div.felement, form.mform fieldset.felement {
    float: right;
    text-align: right;
    margin-right: 10px;
	margin-left: 0px;
}

.que .info {
    float: right;
}

.que .prompt {
    float: right;
}

.que {
    text-align: right;
}

.invisiblefieldset {
	display: block;
}

body#mod-quiz-report table#attempts .header {
    text-align: right;
}

#mod-quiz-mod #reviewoptionshdr fieldset.fgroup span {
	clear: right;
	float: right;
}

.logtable th {
    text-align: right;
}

form.mform .fitemtitle {
    float: right;
    text-align: left;
    margin-right: 10px;
	margin-left: 0px;
}

#course-view .section td.right {
    border-left-width: 1px;
    border-left-style: solid;
    border-right-width: 0px;
    border-right-style: none;
}

.form-setting .form-time {
    direction: ltr;
	float:right;
}

/* ========================
	for tabs support
   ======================== */

.tabrow0 {
    PADDING-BOTTOM: 2.75em;
}

/* IE6 requires overflow: auto. IE7 requires overflow: hidden.
   exploit IE's "star html selector bug" to apply to IE6 ONLY */
.tabrow0 {
	#overflow: hidden; /* for IE7. to eliminate extra scroll bars . the # hides from firefox */
    * html overflow: auto; /* for IE6 only **** */
}

.tabrow0  LI {
    float: right;
    MARGIN: 0px;
    width: 130px;
    BACKGROUND: url(pix/tab/rtlbg.gif) no-repeat right top;
	overflow: hidden; /* for IE7. to prevent long titles from 'falling' 3cm down */
}

.tabrow0 A SPAN {
    padding: 10px 0px 0.35em 0px;
    BACKGROUND: none;
}

.tabrow0 A {
    PADDING-LEFT: 0px !important;
    MARGIN: 0px;
    BACKGROUND-IMAGE: none;
}

.tabrow0 A:hover,
.tabrow0 A:hover span,
.tabrow0 .here A:hover,
.tabrow0 .here A:hover span {
    BACKGROUND-IMAGE: none
}

.tabrow0 .here A:link,
.tabrow0 .here A:visited {
	/* has to override styles.css 'position:relative', otherwise the active tab title disappears on IE6/7 */
    position: static;
}
.tabrow0 ul a {
    PADDING-LEFT: 0px;
}

div.tabrow1 {
/* without that, IE will leave a short line floating, when there's ho secondary menu */
	#right: 0px;   /* IE only */
	#width: 800px; /* IE only */
}

UL.tabrow1 {
    right: 0px;
    width: 800px;

/* must have absolute width here, otherwise IE makes a total mess */
	min-width: 100%;
}

UL.tabrow1  li {
    float: right;
}

.tabtree {
	/* give some space below the tabs row (when there's a secondary row) on firefox */
	margin-bottom:15px;

	/* has to override 'height:100%' in styles_ie6.css, otherwise it causes a huge height in quiz report overview, e.g.: moodle/mod/quiz/report.php?q=14&mode=overview */
    height: auto !important;
}

.tabtree * {
    width: auto;
}

/* notify-problem line gets covered by secondary tabs line (tabrow1), add some height to the line **** */
.notifyproblem {
	line-height: 40px;
}

/* ========================
	overrides styles_ie6
   ======================== */

FORM.mform INPUT {
    margin-left: 5px !important;
    margin-right: -5px !important;
}

/* ========================
	for htmlarea editor
   ======================== */

.htmlarea {
    direction: rtl;
}

.htmlarea * select {
	max-width: 100px;
}

#mod-quiz-mod #reviewoptionshdr .fitemtitle {
text-align:right;
}
#mod-quiz-mod #reviewoptionshdr .fitem {
float:right;
}

.mform div.fhtmleditor {
clear:none;
float:right !important;
}

.block_login .loginform div {
text-align:left;
}
.block_login .loginform .fld input {
width:7em;
}

th.header, td.header, div.header {
text-align:center;
}

/*  Qustion Bank  */
#question-edit th.header {
text-align:center !important;
background-color:#DDE0FC; /* makes the table's Header line more clear */
}

/*  question bank :: import / exports layout fixes */
#question-export form.mform input,#question-import form.mform input {
margin-right:5px !important;
}

/* must fill fields attention message - emphasize */
form.mform .fdescription.required {
background-color:gainsboro;
font-weight:bold;
padding:2px;
text-align:center;
}

/* assignment submission table */
#mod-assignment-submissions .timemodified,
#mod-assignment-submissions .timemarked,
#mod-assignment-submissions .fullname {
text-align:right;
}

/* mod lesson : align LESSON_MULTICHOICE bottom questions */
#mod-lesson-view td.answer {
text-align:right;
}
#mod-lesson-view td.checkbox {
text-align:left;
}

/* mod lesson , edit mode alignments */
.mod-lesson .addlinks {
float:right;
}

/*  MOD::ASSIGNMENT , Feedback FORM */
.mod-assignment .feedback .from {
float:right;
}
.mod-assignment .feedback .files {
float:left;
}

/*  MOD::GLOSSARY , align COMMANDS to the right */
.glossarypost .commands {
float:right;
}
.glossarypost td.icons{
text-align:right;
}

#admin-roles-override .rolecap th {
padding-left:7px;
padding-right:7px;
}

/* Emphasize the summary section when in editing mode */
.editing .section td.content .summary {
/* background-color:#F2FEF2; */
 border: 1px dashed;
}

#mod-resource-mod #id_reference_value {
text-align:left;
}

/*  grader report view, align the course's name to the right  */
.grade-report-grader table#user-grades th.category  {
text-align:right;
}

/*  grader report view, align the modules' names to the right  */
.grade-report-grader table#user-grades th.item,
.grade-report-grader table#user-grades th.categoryitem,
.grade-report-grader table#user-grades th.courseitem {
text-align:right;
}

/*  grader report view, align the "change module's setting" icon to the center , to emphsize it, a little */
.grade-report-grader table tr.avg td.cell,
.grade-report-grader table#user-grades td.controls,
.grade-report-grader table tr.avg,
.grade-report-grader table tr.avg td,
.grade-report-grader table tr.avg th {
text-align:center;
}

div.groupselector  {
float:right;
}

.grade-edit-tree .idnumber {
margin-right:15px !important;
}

/*  File Manager, move file mime type icon to the left */
#files-index .files img.icon {
float:left;
margin-right:9px;
}

/*  Files Manager, make sure COMMANDS standout clearly  */
#files-index .commands a:link,
#files-index .commands a:visited {
border:1px solid;
padding:1px;
}

/*  Files table's Header. make it more visually clear */
#files-index .files .header {
background-color:#F5F5F5;
}

/* left align CLOZE question parsed answers */
#question-type-multianswer #subhdr div.felement,
#question-type-multianswer #subhdr fieldset.felement {
direction:ltr;
float:right;
margin-left:0;
margin-right:10px;
text-align:left;
}

/*  Course Categories table, view and edit modes */
#course-index select {
width:100%;
}

/*  Align the English filenames inside SELECT listbox to the left, when in rtl mode.
    (should always be aligned to left!)
    Admin language file selection listbox */
#admin-lang form.popupform, #admin-lang form.popupform div {
direction:ltr;
}

/* Quiz, Calculated question type, math formula field should always be aligned to the left */
#question-type-calculated #id_answer_0 {
direction:ltr;
}

/* TAG manager page */
body#tag-manage table#tag-management-list td,
body#tag-manage table#tag-management-list th,
body#user-index table#participants td,
body#user-index table#participants th {
text-align:right;
}

/* Add new calendar event */
#calendar .sideblock h2 {
text-align:right;
}

/* Quiz analysis report */
#mod-quiz-report table#itemanalysis .header  {
text-align:right;
}

/*  Activity Navigation listbox */
.navigation option {
text-align:right;
}

/*  Instant Message popup window - Display all TABs in one line */
#message-index .tabrow0 LI {
background:url("pix/tab/rtlbg-short.png") no-repeat scroll left top transparent;
width:95px;
}

/*  RSS Block - alignment fix */
#rss_client .blockconfigtable td.value {
text-align:right;
}
#rss_client .blockconfigtable td.label {
padding-bottom:20px;
width:20%;
}

/*  USER Profile - left align all english only fields : email, url... */
#user-editadvanced #id_email,
#user-editadvanced #id_url {
direction:ltr;
}

/* fix "Single Discussion" forum type alignment in Forum module  */
#mod-forum-view .subscription {
border:2px groove;
float:left;
margin:5px 0;
padding:5px;
}

/*  fix for an off screen display of "you are here" redundant text and horizontal scroll bar */
h2.accesshide {
  display: none;
}

/*  align Online usernames to the right */
.block_online_users .listentry div.user,
.block_messages .listentry div.user {
    float: right;
}

/* Align all INPUT textboxes that show URLs to the left */
input[value*="http://"] {
text-align:left;
direction:ltr;
}

/*  Align event's title to the right and time/date to the left */
#calendar .maincalendar .eventlist .event .date {
    float: left;
}
#calendar .maincalendar .eventlist .event .name {
    float: right;
}