body {
    direction: rtl;
}

/* LOGIN */

.login .form-row {
    float: right;
}

.login .form-row label {
    float: right;
    padding-left: 0.5em;
    padding-right: 0;
    text-align: left;
}

.login .submit-row {
    clear: both;
    padding: 1em 9.4em 0 0;
}

/* GLOBAL */

th {
    text-align: right;
}

.module h2, .module caption {
    text-align: right;
}

.module ul, .module ol {
    /*margin-left: 0;*
    margin-right: 1.5em;*/
}

.addlink, .changelink {
    /*padding-left: 0;
    padding-right: 16px;
    background-position: 100% 1px;*/
}

.deletelink {
    /*padding-left: 0;
    padding-right: 16px;
    background-position: 100% 1px;*/
}

.object-tools {
    /*float: left;*/
}

thead th:first-child,
tfoot td:first-child {
    border-left: none;
}

/* LAYOUT */

#user-tools {
    right: auto;
    left: 0;
    text-align: left;
}

div.breadcrumbs {
    text-align: right;
}

/*#content-main {
    float: right;
}*/

.content-main-list{
    float: right;
    width: 100%;
}

.content-main-form{
}

#content-related {
    float: left;
    /*margin-left: -300px;*/
    margin-right: auto;
}

.colMS {
    /*margin-left: 300px;*/
    margin-right: 0;
}

/* SORTABLE TABLES */

table thead th.sorted .sortoptions {
   float: right;
}

thead th.sorted .text {
    padding-right: 0;
    padding-left: 42px;
}

/* dashboard styles */

.dashboard .module table td a {
    padding-left: .6em;
    padding-right: 16px;
}

/* changelists styles */

.change-list .filtered table {
    border-left: none;
    border-right: 0px none;
}

#changelist-filter {
    right: auto;
    left: auto;
    border-left: none;
    border-right: none;
}

.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull {
    margin-right: 0;
    /*margin-left: 280px;*/
}

#changelist-filter li.selected {
    border-left: none;
    padding-left: 10px;
    margin-left: 0;
    border-right: 5px solid #eaeaea;
    padding-right: 10px;
    margin-right: -15px;
}

.filtered .actions {
    /*margin-left: 280px;*/
    margin-right: 0;
}

#changelist table tbody td:first-child, #changelist table tbody th:first-child {
    border-right: none;
    border-left: none;
}

/* FORMS */

.aligned label {
    padding: 0 0 3px 1em;
    float: right;
}

.submit-row {
    /*text-align: left*/
}

.submit-row p.deletelink-box {
    float: right;
}

.submit-row input.default {
    margin-left: 0;
}

.vDateField, .vTimeField {
    margin-left: 2px;
}

.aligned .form-row input {
    margin-left: 5px;
}

form ul.inline li {
    float: right;
    padding-right: 0;
    padding-left: 7px;
}

input[type=submit].default, .submit-row input.default {
    float: left;
}

fieldset .field-box {
    float: right;
    margin-left: 20px;
    margin-right: 0;
}

.errorlist li {
    background-position: 100% 12px;
    padding: 0;
    color: #a20808;
}

.errorlist li::before {
    content:"* ";
    background-position: 100% 12px;
    padding: 0;
    color: red;
}

.errornote {
    background-position: 100% 12px;
    padding: 10px 12px;
    font-weight: bold;
    color: #a20808;
}

/* WIDGETS */

.calendarnav-previous {
    top: 0;
    left: auto;
    right: 10px;
}

.calendarnav-next {
    top: 0;
    right: auto;
    left: 10px;
}

.calendar caption, .calendarbox h2 {
    text-align: center;
}

.selector {
    float: right;
}

.selector .selector-filter {
    text-align: right;
}

.inline-deletelink {
    float: left;
}

form .form-row p.datetime {
    overflow: hidden;
}

/* MISC */

.inline-related h2, .inline-group h2 {
    text-align: right
}

.inline-related h3 span.delete {
    padding-right: 20px;
    padding-left: inherit;
    left: 10px;
    right: inherit;
    float:left;
}

.inline-related h3 span.delete label {
    margin-left: inherit;
    margin-right: 2px;
    vertical-align: top;
    margin-top: 8px;
}

/* IE7 specific bug fixes */

div.colM {
    position: relative;
}

.submit-row input {
    float: left;
}

.vip-star {
  position: relative;
  display: block;
  height: 0px;
  font-size: 24px;
  font-weight: bold;
  margin-top: -14px;
  margin-right: -40px;
  color: #FCC000;

}

.vip-star:before {
  content: "\2605"; /* \2605 */
}

.vvip-star {
  position: relative;
  display: block;
  height: 0px;
  font-size: 24px;
  font-weight: bold;
  margin-top: -14px;
  margin-right: -20px;
  color: #FCC000;

}

.vvip-star:before {
  content: "\2605\2605"; /* \2605 */
}

.vvvip-star {
  position: relative;
  display: block;
  height: 0px;
  font-size: 24px;
  font-weight: bold;
  margin-top: -14px;
  margin-right: 0px;
  color: #FCC000;

}

.vvvip-star:before {
  content: "\2605\2605\2605";
}

.admin-crown {
  position: relative;
  display: block;
  height: 0px;
  font-size: 24px;
  font-weight: bold;
  margin-top: -14px;
  margin-right: -40px;
  color: #1dbb8f;

}

.admin-crown:before {
  content: "\2654";
}

.support-user {
  position: relative;
  display: block;
  height: 0px;
  font-size: 24px;
  font-weight: bold;
  margin-top: -14px;
  margin-right: -40px;
  margin-bottom: 5px;
  color: #F5AA59;

}

.support-user:before {
  font-family: 'FontAwesome';
  content: "\f025";
}

@media (max-width: 440px) {
    input[type=date], input[type=datetime-local], input[type=email], input[type=number], input[type=password], input[type=search-md], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], textarea.md-textarea{
        width: 98% !important;
    }
}

@media (min-width: 440px) {
    .calendar-input{
        width: 29% !important;
    }
}

@media (min-width: 440px) {
    .calendar-input-clear{
        margin-right: -90px !important;
    }
}

@media (max-width: 440px) {
    .calendar-input-clear{
        margin-right: -18px !important;
    }
}


input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 27px;
}

textarea {
  resize: none;
  overflow: auto;
  border-radius: 3px;
border: 1px solid #109067;
padding-left: 0.8rem;
}

textarea .form-control:focus {
    border: 1px solid #109067;
    box-shadow: 0 0 0 0.2rem rgba(139, 195, 74, .25);
}
