/*
 * ASSER_MYBB_RTL_V1
 * Arabic RTL compatibility layer
 * MyBB 1.8.40 - Default Theme (tid=2)
 *
 * Scoped to html[dir="rtl"] so LTR languages remain unchanged.
 */

/* ---------------------------------------------------------
   Base direction
   --------------------------------------------------------- */

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] #container {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input.textbox,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

/* Keep program code naturally LTR */
html[dir="rtl"] .codeblock code {
    direction: ltr;
    text-align: left;
}

/* ---------------------------------------------------------
   Common float helpers
   --------------------------------------------------------- */

html[dir="rtl"] .float_left {
    float: right;
}

html[dir="rtl"] .float_right {
    float: left;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

html[dir="rtl"] #logo ul.top_links {
    text-align: left;
    margin-right: 0;
    margin-left: 5px;
}

html[dir="rtl"] #search {
    float: left;
}

html[dir="rtl"] #panel .lower ul.panel_links {
    float: right;
}

html[dir="rtl"] #panel .lower ul.user_links {
    float: left;
}

/* ---------------------------------------------------------
   Tables / navigation / menus
   --------------------------------------------------------- */

html[dir="rtl"] .navigation,
html[dir="rtl"] .popup_menu .popup_item_container,
html[dir="rtl"] .popup_menu .popup_item {
    text-align: right;
}

html[dir="rtl"] .expcolimage {
    float: left;
}

/* ---------------------------------------------------------
   Error and status blocks
   --------------------------------------------------------- */

html[dir="rtl"] div.error p em {
    padding-left: 0;
    padding-right: 24px;
    background-position: right 0;
}

html[dir="rtl"] div.error ul {
    margin-left: 0;
    margin-right: 24px;
}

/* ---------------------------------------------------------
   Quotes
   --------------------------------------------------------- */

html[dir="rtl"] blockquote cite > span {
    float: left;
}

/* ---------------------------------------------------------
   Forum and thread legends
   --------------------------------------------------------- */

html[dir="rtl"] .thread_legend dd {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .thread_legend img {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="rtl"] .forum_legend dd,
html[dir="rtl"] .forum_legend dt {
    float: right;
    margin-right: 0;
    margin-left: 10px;
}

/* ---------------------------------------------------------
   Posts
   --------------------------------------------------------- */

html[dir="rtl"] .post.classic .post_author {
    float: right;
    margin: 0 0 15px 1%;
    border-left: 1px solid #ddd;
    border-right: 0;
}

html[dir="rtl"] .post .post_author div.author_avatar {
    float: right;
    margin-right: 0;
    margin-left: 3px;
}

html[dir="rtl"] .post .post_author div.author_information {
    float: right;
}

html[dir="rtl"] .post .post_author div.author_statistics {
    float: left;
    padding: 3px 5px 3px 10px;
}

html[dir="rtl"] .post.classic .post_author div.author_avatar,
html[dir="rtl"] .post.classic .post_author div.author_information,
html[dir="rtl"] .post.classic .post_author div.author_statistics {
    float: none;
}

html[dir="rtl"] .post.classic .post_content {
    float: right;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

html[dir="rtl"] #footer .upper .language,
html[dir="rtl"] #footer .upper .theme {
    float: left;
    margin-left: 0;
    margin-right: 15px;
}

html[dir="rtl"] #footer .upper ul.bottom_links {
    float: right;
}

html[dir="rtl"] #footer .lower #current_time {
    float: left;
}

html[dir="rtl"] #debug {
    float: left;
    text-align: left;
}

/* ---------------------------------------------------------
   Modal / prompts
   --------------------------------------------------------- */

html[dir="rtl"] .modal,
html[dir="rtl"] div.jqi,
html[dir="rtl"] .jGrowl-notification {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .modal a.close-modal {
    right: auto;
    left: -12.5px;
}

html[dir="rtl"] div.jqi .jqiclose {
    right: auto;
    left: -2px;
}

html[dir="rtl"] .jGrowl-notification .jGrowl-close {
    float: left;
}

/* ---------------------------------------------------------
   ModCP
   --------------------------------------------------------- */

html[dir="rtl"] .modqueue_controls {
    float: left;
}

html[dir="rtl"] .modqueue_controls label {
    margin-right: 0;
    margin-left: 8px;
}

/* ---------------------------------------------------------
   UserCP
   --------------------------------------------------------- */

html[dir="rtl"] .pmspace {
    float: left;
}

/* ---------------------------------------------------------
   Small directional utilities
   --------------------------------------------------------- */

html[dir="rtl"] .quick_jump {
    padding-left: 0;
    padding-right: 13px;
    background-position: right center;
}