/**
 * Redmine - project management software
 * Copyright (C) 2006-  Jean-Philippe Lang
 * This code is released under the GNU General Public License.
 */

html {direction:rtl;}
h1, h2, h3, h4 {padding:2px 00px 1px 10px;}
/***** Layout *****/
#top-menu {padding:2px 6px 0px 2px;}
#top-menu li {float:right;}
#top-menu a {margin-right:0;margin-left:8px;}
#top-menu #loggedas {float:left;margin-right:0;margin-left:0.5em;}

#account {float:left;}

#header {padding:4px 6px 20px 8px;}

#quick-search {float:left;}

#main-menu {left:auto;right:6px;margin-right:0;margin-left:-500px;}
#main-menu li {float:right;margin:0px 0px 0px 2px;}

#admin-menu a:not(:has(svg)) {padding-left:0;padding-right:20px;}

#sidebar {float:left; padding-right: 20px; padding-left: 8px; border-left: 0; border-right: 1px solid #d0d7de;}
* html #sidebar hr {left: auto; right: -6px;}

#main.collapsedsidebar #sidebar {
  padding-left: 0;
  padding-right: 20px;
}

#sidebar .contextual { margin-right: 0;  margin-left: 1em;}
#sidebar ul li {margin: 0 0 0 2px;}
#sidebar #sidebar-switch-panel {
  margin-left: 0;
  margin-right: -20px;
  padding-left: 28px;
  padding-right: 0;
}

#sidebar #sidebar-switch-panel #sidebar-switch-button {
  padding-right: 0;
  padding-left: 28px;
}

#content {border-right:0 solid #ddd; border-left:1px solid #ddd;}
* html #content{padding-right:0;}
#main.nosidebar #content{border-left:0;}

#login-form table {margin-left:auto; margin-right:auto;}
div.modal p.buttons {text-align:left;}

/***** Links *****/

#sidebar a.selected {padding:1px 2px 2px 3px; margin-left:0px; margin-right:-2px;}
#admin-menu a.selected:not(:has(svg)) {padding-left:0!important; padding-right:20px!important; background-position:right 2px 40%;}

a.collapsible:not(:has(svg)) {padding-left:0px; padding-right:12px; background: url(/arrow_down.png) no-repeat right 0px top 50%;}
a.collapsible.collapsed:not(:has(svg)) {background-image: url(/arrow_left.png);}

/***** Tables *****/
table.list td {padding-left:0px; padding-right:10px;}
table.list td.name, table.list td.description, table.list td.subject, table.list td.comments, table.list td.roles {text-align:right;}
table.list td.buttons {text-align:left; }
table.list td.buttons a {padding-right: 0em; padding-left: 0.6em;}
table.list caption {text-align:right; padding: 0.5em 0 0.5em 0.5em;}

tr.idnt :is(td.subject, td.name) {background: url(/chevron-left-idnt.svg) no-repeat right 2px center;}
tr.idnt-1 :is(td.subject, td.name) {background-position: right 4px center;}
tr.idnt-2 :is(td.subject, td.name) {background-position: right 20px center;}
tr.idnt-3 :is(td.subject, td.name) {background-position: right 36px center;}
tr.idnt-4 :is(td.subject, td.name) {background-position: right 52px center;}
tr.idnt-5 :is(td.subject, td.name) {background-position: right 68px center;}
tr.idnt-6 :is(td.subject, td.name) {background-position: right 84px center;}
tr.idnt-7 :is(td.subject, td.name) {background-position: right 100px center;}
tr.idnt-8 :is(td.subject, td.name) {background-position: right 116px center;}
tr.idnt-9 :is(td.subject, td.name) {background-position: right 132px center;}

tr.issue td.subject, tr.issue td.relations, tr.issue td.watcher_users { text-align:right; }
tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}

table.issues td.description {padding:4px 24px 4px 4px; text-align:right;}

tr.entry td.filename {text-align:right;}
tr.entry td.filename_no_report {text-align:right;}
tr.entry td.size {text-align:left;}
tr.entry td.age {text-align:left;}
tr.entry.file td.filename a {margin-left:0px; margin-right:16px;}
tr.entry.file td.filename_no_report a {margin-left:0px; margin-right:16px;}

tr span.expander {padding-left:0; padding-right:8px; margin-right:0;}

table.files tbody th {text-align:right;}
table.files tr.file td.filename {text-align:right; padding-left:0; padding-right:24px;}

tr.message td.subject { padding-left:0px; padding-right:20px; }

tr.version td.name { padding-left:0px; padding-right:20px; }

tr.user td.username, tr.user td.firstname, tr.user td.lastname, tr.user td.email {text-align:right;}

tr.time-entry td.issue, tr.time-entry td.comments {text-align:right; }
td.hours {text-align:left; padding-right: 0em ;padding-left: 0.5em; }

table.plugins td.configure { text-align:left; padding-right:0em; padding-left: 1em; }

table.list tbody tr.group td { padding: 0.8em 0.3em 0.5em 0; text-align:right;}
table.list tbody tr.group span.count {margin-left:0px; margin-right:4px;}

a.sort {padding-right:0; padding-left:16px;}

div.issue .attributes .attribute {padding-inline: 180px 0; clear: inline-start; min-height: 1.8em;}
div.issue .attributes .attribute .label {width: 170px; margin-inline: -180px 0; font-weight: bold; float: inline-start; overflow: clip visible; text-overflow: ellipsis;}
table.attributes th {text-align:right;}

table.boards a.board, h3.comments {padding-left:0px; padding-right:20px; }
table.boards td.last-message {text-align:right;}

table.messages td.last_message {text-align:right;}

h3.version {padding-left:0px; padding-right:20px;}

div.issues h3 {padding-left:0px; padding-right:20px;}
div.members h3 {padding-left:0px; padding-right:20px;}
div.news h3 {padding-left:0px; padding-right:20px;}
div.projects h3 {padding-left:0px; padding-right:20px;}

#watchers li {margin: 0px 0px 0px 2px; padding: 0px 0px 0px 0px;}
#watchers img.gravatar {margin: 0 0 2px 4px;}

span.search_for_watchers a:not(:has(svg)), span.add_attachment a:not(:has(svg)) {padding-left:0px; padding-right:16px; background: url(/bullet_add.png) no-repeat right 50%; }

div.square {float:right;}
.contextual {float:left; padding-left:0px; padding-right:10px;}

.splitcontentleft{float:right;}
.splitcontentright{float:left;}

blockquote {border-left:0px solid #e0e0e0; padding-left:0em; margin-left:2em;  border-right:3px solid #e0e0e0; padding-right:0.6em; margin-right:0;}
blockquote blockquote { margin-right:0;}

div.issue div.subject div div {padding-left:0px; padding-right:16px;}

div.issue span.private, div.journal span.private {margin-right:0px; margin-left:2px;}

fieldset.collapsible>legend:not(:has(svg)) {padding-left:0px; padding-right:18px; background: url(/arrow_down.png) no-repeat right 50%;}
fieldset.collapsible.collapsed>legend:not(:has(svg)) { background-image: url(/arrow_left.png); }

div#issue-changesets {float:left;  margin-left:0em; margin-right:1em; padding-left:0em; padding-right:1em;}

.journal ul.details img {margin:0 4px -3px 0;}

div.journal.private-notes {border-left:0px solid #d22; padding-left:0px; margin-left:0px; border-right:2px solid #d22; padding-right:4px; margin-right:-6px;}

div#activity dl, #search-results {margin-left:0em; margin-right:2em;}
div#activity dd, #search-results dd {padding-left:0px; padding-right:18px;}
div#activity dt, #search-results dt {padding-left:0px; padding-right:20px; background-position:right 50%;}

div#activity dt.grouped {margin-left:0em; margin-right:5em;}
div#activity dd.grouped {margin-left:0em; margin-right:9em;}

#search-results dd {padding-left:0px; margin-left:0px; padding-right:20px; margin-right:0px; }

div#search-results-counts {float:left;}
div#search-results-counts  li {float:right; margin-left:0em; margin-right:1em; }

div#version-summary { float:left; margin-left:0px; margin-right:16px;}
div#version-summary th, div#version-summary td.total-hours { text-align:left;}

table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align:left; padding-right:0em; padding-left: 0.5em; }

ul.projects {padding-left:0em; padding-right:1em;}
ul.projects ul {padding-left:0em; padding-right:1.6em;}

#projects-index ul.projects ul.projects {border-left:0px solid #e0e0e0; padding-left:0em; border-right:3px solid #e0e0e0; padding-right:1em;}

/***** Tabular forms ******/
.tabular p{
  padding-left:0px; padding-right:180px; /* width of left column containing the label elements */
  clear:right;
}

.tabular label{
  float:right;
  text-align:left;
  /* width of left column */
  margin-left:0px; margin-right:-180px;
}

.tabular label.floating{
  margin-left: 0px; margin-right:0px;
  text-align:right;
}

.tabular label.block{
  margin-left:0px !important; margin-right:0px !important;
  text-align:right;
}

.tabular label.inline{
  margin-left:0px !important; margin-right:5px !important;
}

label.no-css {
  text-align:right;
  margin-left:0px; margin-right:0px;
}

.tabular.settings p{padding-left:0px; padding-right:300px; }
.tabular.settings label{margin-left:0px; margin-right:-300px;}

fieldset#notified_events .parent {padding-left:0px; padding-right:20px; }

.check_box_group {padding:2px 2px 4px 4px;}
.check_box_group label {margin-right: 0px !important; text-align: right;}
.attachments_fields input.description {margin-left:0px; margin-right:4px;}

.attachments_fields .ajax-waiting input.filename {background:url(/hourglass-empty.svg) no-repeat right top 50%;}
.attachments_fields .ajax-loading input.filename {background:url(/loading.gif) no-repeat right top 50%;}
.attachments_fields div.ui-progressbar {margin: 2px 8px -5px 0;}

div.thumbnails div {margin-right:0px; margin-left:2px;}

p.other-formats, p.query-totals { text-align:left; }

em.info.error {padding-left:0; padding-right:20px; background:url(/exclamation.png) no-repeat right 50%;}

table.members td.name {padding-right: 20px; padding-left:0; }

input.autocomplete {
  background: #fff url(/search.svg) no-repeat right 2px top 50%; padding-left:0px !important; padding-right:20px !important;
}

.role-visibility {padding-right:2em; padding-left:0;}

/***** Flash & error messages ****/
#errorExplanation, div.flash, .nodata, .warning, .conflict {
  padding: 4px 30px 4px 4px;
}

div.flash svg.icon-svg, #errorExplanation svg.icon-svg {
  margin-right: -26px;
  margin-left: 4px;
}

div.flash.error:not(:has(svg)), #errorExplanation:not(:has(svg)) {
  background: url(/exclamation.png) right 8px top 50% no-repeat #ffe3e3;
}

div.flash.notice:not(:has(svg)) {
  background: url(/true.png) right 8px top 5px no-repeat #dfffdf;
}

div.flash.warning:not(:has(svg)), .conflict {
  background: url(/warning.png) right 8px top 5px no-repeat #F3EDD1;
  text-align:right;
}

/***** Calendar *****/
table.cal td p.day-num {text-align:left;}

/***** Tooltips ******/
.tooltip span.tip{text-align:right;}

div.tooltip:hover span.tip{
  left:auto; right:24px;
}

img.ui-datepicker-trigger {
  margin-left:0px; margin-right:4px;
}

/***** Progress bar *****/
table.progress {
  float:right;
  margin: 1px 0px 1px 6px;
}
p.progress-info {clear:right;}

/***** Tabs *****/
#content .tabs ul {padding-left:0em; padding-right:0.5em;}
#content .tabs ul li {
  float:right;
  margin-right:0px; margin-left:4px;
}

/***** Diff *****/

/***** Wiki *****/

div.wiki .external {
  background-position:right 60%;
  padding-left:0px; padding-right:12px;
}

div.wiki pre {
  margin: 1em 1.6em 1em 1em;
}

div.wiki ul.toc {
  margin-left:0;
  margin-right:0;
}

div.wiki ul.toc.right { float: left; margin-left:0; margin-right:12px;}
div.wiki ul.toc.left  { float:right; margin-right:0; margin-left:12px;}
div.wiki ul.toc li li {margin-left:0em; margin-right:1.5em;}

a.wiki-anchor {margin-left:0px; margin-right:6px;}

/***** My page layout *****/

/***** Gantt chart *****/
.gantt_hdr {
  border-right:0px solid #c0c0c0; border-left:1px solid #c0c0c0;
}

.task.parent.marker.starting{margin-left:0px; margin-right:-4px; left:auto; right:0;}
.task.parent.marker.ending {margin-left:0px; margin-right:-4px; right:auto; left:0px;}

.version.marker {margin-left:0; margin-right:-4px;}

.project.marker {margin-left:0; margin-right:-4px;}

/***** Icons *****/
.icon:not(:has(svg)) {
  background-position: right 50%;
  padding-left:0; padding-right:20px;
}

svg.icon-svg.icon-rtl {
  transform: scaleX(-1);
}

div.issue table img.gravatar {
  float: right;
  margin: 0 0em 0 0.5em;
}

span.icon-label {
  margin-right: 4px;
}

h2 img.gravatar {margin: -2px 0 -4px 4px;}
h3 img.gravatar {margin: -4px 0 -4px 4px;}
h4 img.gravatar {margin: -6px 0 -4px 4px;}
td.username img.gravatar {margin:0 0 0 0.5em; }
#activity dt img.gravatar {float:right; margin:0 0 1em 1em;}
/* Used on 12px Gravatar img tags without the icon background */
.icon-gravatar {float:right; margin-right:px; margin-left:4px;}

#activity dt, .journal {clear:right;}

.journal-link {float:left;}

/* Custom JQuery styles */
.ui-datepicker-title select {margin-left:4px !important; margin-right:0 !important;}

/***** Media print specific styles *****/

/* Accessibility specific styles */
.hidden-for-sighted {
  left:auto; right:-10000px;
}
