/* BiDi specific layout modifications */

/* GENERAL LAYOUT EXPLANATION
 *
 * BiDi layout modifications relay on the fact that the Tiki application is 
 * enclosed as a whole in tiki-main or tiki-clean. Thus it mirrors the entire
 * output by setting the directionality property of this DIV element.
 * Other modifications include overriding all left text-alignments and
 * turning them into right text-alignments.
 *
 */

/* Hebrew and Arabic characters display smaller than latin characters */
/* set here a different font size for RTL only */
body {font: 90%/1.5em Arial, Helvetica, sans-serif !important}

/***** Layout *****/
/* This div encloses the whole Tiki application */
DIV#tiki-main {direction: rtl !important}
DIV#main {text-align: right}

/* This div encloses the "clean" Tiki screens */
div#tiki-clean {direction: rtl !important}

/* Col reversing; This is one col only specific and must be edited if otherwise */
/* if using 3 columns state back margin-right:250px !important */
#col1.marginright {margin-left: 250px !important; margin-right:0px !important}
#col2 {float:right !important}
#col3 {float:left !important; margin-left:0 !important}

/***** Box *****/
.box {text-align: right !important}

/* This div encloses the images in box */
ul li div.image {float: right !important; margin-left:3px !important}

/***** Header *****/
/* site login popup content */
#loginbox.forms fieldset label {float: right !important; direction: rtl !important; text-align: right !important}

#loginbox.forms fieldset input#sl-login-user,
#loginbox.forms fieldset input#sl-login-pass,
#loginbox.forms fieldset input.wikiaction {float: left !important; direction: rtl !important; text-align: right !important}

#siteloginbar_popup .pass a {width: 100% !important; text-align: center !important}

/* Sitelogin Popup moved left Fivealive theme - could be not portable */
#siteloginbar_popup {right: 865px !important}

/* Sitelogin hover panel moved right inside the body Fivealive theme - could be not portable */
#login_link .cbox {position:relative; left: 170px}
#logout_link .cbox {position:relative; left: 200px}
ul.sf-shadow ul {background-image:none;}

/***** CSS menu *****/
/* Menu alignment */ 
.cssmenu_horiz li, .cssmenu_vert li {float: right !important}

#tiki-top .cssmenu_horiz li a {background-position: 0% 50% !important}

/* Menu adjustment Fivealive theme - Could require editing depending the theme you are using */
/* moving away menu item from indicator and keep text in the center */
#tiki-top .cssmenu_horiz li a {padding-right: 1.6em !important;padding-left: 1.6em !important}

/* Reseting the position for sub item without indicator  */
#tiki-top .cssmenu_horiz li ul li a {padding-right: 0.5em !important}

/* Indicator reversing and repositioning*/
.cssmenu_horiz li li a > .sf-sub-indicator {right: 120px; -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"}
	
/* Submenu alignment */
.cssmenu_horiz li ul {right: -10px}

/* menulevel2 adjustment */
.cssmenu_horiz li ul li ul {right:10em; padding: 0 8px 9px 0; width: 13em !important; background: url(../../lib/jquery/superfish/images/shadow.png) no-repeat bottom right}

/***** MyTiki User Preferences *****/
.tabcontent .floatleft {float: right !important}
.tabcontent .floatright {float: left !important}

/***** Wiki page *****/
div.tabstoggle {float: left !important}
.tabs .container {float: right !important; width: auto !important; margin-right: -5px}
.tabstoggle .button {right:24px}
.tabcontent table {text-align: right !important}
#page-bar {float: right !important}

/***** File gallery  *****/

#thumbnails {float: none !important}

/* Popup content - width is a tweak for the scroll right masking part of the table */
.opaque {text-align: right !important; direction: rtl !important; width: 96%}

/* Flip the navigation arrows */
.fgallisting img.icon, .mini a.prevnext img.icon {-moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"}

/***** Article *****/

/* Force the width of articles - This is nature.css theme specific => one col only */
.articleheadingtext {min-width: 640px}
.articletitle {text-align: right !important}
.articleimage {padding-left: 20px !important; padding-right: 0}

/* Comment */
.post .postbody .content, .post .author, .dirsite {text-align: right !important}

/***** Calendar *****/
/* text align in calendar cell */
.Cal0, .Cal1, .Cal2 {text-align: right !important; direction:rtl !important}

/* keep date in the calendar in the right direction */
.calId1 {direction:rtl}

/* Flip the calendar navigation arrows */
#calscreen .viewmode img.icon {-moz-transform: scaleX(-1) !important; -o-transform: scaleX(-1) !important; -webkit-transform: scaleX(-1) !important; transform: scaleX(-1) !important; filter: FlipH !important; -ms-filter: "FlipH" !important}

/***** Tables *****/
table {width: 100%}
table.formcolor {width: 98%}

/* When modules display a list of items each item is enclosed in a cell with the following style */
td.module {text-align: right !important}

/* Cells in forms without background color (inside a div for example) */
td.form {text-align: right !important}

/* Cells in forms using a background color */
td.formcolor, td.galform, td.editblogform, td.editfgalform, td.comform, td.forumform {text-align: right !important}

/* Odd rows in several listings */
td.odd, td.gallistnameodd, td.gallistdescriptionodd, td.gallistcreatedodd, td.gallistlastModifodd, td.gallistuserodd,
	td.gallistimagesodd, td.gallisthitsodd, td.gallistactionsodd, td.listgalidodd, td.listgalnameodd, td.listgalcreatedodd,
	td.listgalhitsodd, td.listgaluserodd, td.listgalfilesizeodd, td.bloglistnameodd, td.bloglistdescriptionodd,
	td.bloglistcreatedodd, td.bloglistlastModifodd, td.bloglistuserodd, td.bloglistpublicodd, td.bloglistpostsodd,
	td.bloglistvisitsodd, td.bloglistactivityodd, td.bloglistactionsodd, td.listfgalnameodd, td.listfgaldescriptionodd,
	td.listfgalcreatedodd, td.listfgallastModifodd, td.listfgaluserodd, td.listfgalfilesodd, td.listfgalvisitsodd,
	td.listfgalactionsodd, td.listfilesnameodd, td.listfilesdescriptionodd, td.listfilesidodd, td.listfilesfilenameodd,
	td.listfilesfilesizeodd, td.listfilescreatedodd, td.listfilesdlsodd, td.listfilesnameodd, td.listfilesuserodd,
	td.listfilesactionsodd, td.listarttitleodd, td.listarttopicodd, td.listartpublishDateodd, td.listartauthorodd,
	td.listartreadsodd, td.listarthasimageodd, td.listartuseimageodd, td.listartactionsodd, td.listartsizeodd, td.forumstableodd,
	td.forumstableinfoodd, td.topictitleodd, td.topicrepliesodd, td.topicreadsodd, td.topicscoreodd, td.topiclastpostodd,
	td.topicauthorodd {text-align: right !important}

/* Even rows in several listings */
td.even, td.gallistnameeven, td.gallistdescriptioneven, td.gallistcreatedeven, td.gallistlastModifeven, td.gallistusereven,
	td.gallistimageseven, td.gallisthitseven, td.gallistactionseven, td.listgalideven, td.listgalnameeven, td.listgalcreatedeven,
	td.listgalhitseven, td.listgalusereven, td.listgalfilesizeeven, td.bloglistnameeven, td.bloglistdescriptioneven,
	td.bloglistcreatedeven, td.bloglistlastModifeven, td.bloglistusereven, td.bloglistpubliceven, td.bloglistpostseven,
	td.bloglistvisitseven, td.bloglistactivityeven, td.bloglistactionseven, td.listfgalnameeven, td.listfgaldescriptioneven,
	td.listfgalcreatedeven, td.listfgallastModifeven, td.listfgalusereven, td.listfgalfileseven, td.listfgalvisitseven,
	td.listfgalactionseven, td.listfilesnameeven, td.listfilesdescriptioneven, td.listfilesideven, td.listfilesfilenameeven,
	td.listfilesfilesizeeven, td.listfilescreatedeven, td.listfilesdlseven, td.listfilesnameeven, td.listfilesusereven,
	td.listfilesactionseven, td.listarttitleeven, td.listarttopiceven, td.listartpublishDateeven, td.listartauthoreven,
	td.listartreadseven, td.listarthasimageeven, td.listartuseimageeven, td.listartactionseven, td.listartsizeeven,
	td.forumstableeven, td.forumstableinfoeven, td.topictitleeven, td.topicreplieseven, td.topicreadseven, td.topicscoreeven,
	td.topiclastposteven, td.topicauthoreven {text-align: right !important}

td.third {text-align: right !important}

/* Browsing an image */
td.imageinfo {text-align: right !important}

/* Inside chat */
td.tdchatform {text-align: right !important}
.tellafriend, .share {text-align:right}
.highlight_word_0{color:black; background-color: #ffff66}
.highlight_word_1{color:black; background-color: #ff9999}
.highlight_word_2{color:black; background-color: #A0FFFF}
.highlight_word_3{color:black; background-color: #ff66ff}
.highlight_word_4{color:black; background-color: #99ff99}

/***** plugin *****/

/* Wikitracker plugin  - could be not portable */
.wikiplugin_tracker h6 {text-align: right !important}
.ui-dialog {direction: rtl !important; text-align: right !important}
.ui-dialog-title {float: right !important}
.ui-dialog-titlebar-close {left: 0.3em !important; right: auto !important}

/***** Miscellaneous *****/

/* Rss icons */
#rss {text-align: right !important}

/* Trackers */
table.normal th.auto {text-align: right}

/* Toolbars items */
.toolbars-admin ul#full-list-w.full, .toolbars-admin ul#full-list-p.full, .toolbars-admin ul#full-list-c.full {padding-right: 0px}
