/* RTL (Right-to-Left) Stylesheet for Persian / Arabic */
body {
    direction: rtl;
    text-align: right;
}

/* Reverse logo position if necessary */
#header .logo {
    float: right;
    margin-left: 20px;
    margin-right: 0;
}

/* Reverse navigation items */
#nav ul {
    flex-direction: row-reverse;
}

/* Flip flexbox rows */
.row {
    flex-direction: row-reverse;
}

/* Flip lists and alignments */
ul.actions {
    justify-content: flex-start;
}

ul.actions.special {
    justify-content: center;
}

/* Flip statistics layout */
ul.statistics {
    flex-direction: row-reverse;
}

ul.statistics li {
    border-right: solid 1px rgba(255, 255, 255, 0.25);
    border-left: 0;
}

ul.statistics li:first-child {
    border-right: 0;
}

/* Reverse contact forms and definitions */
dl.alt dt {
    clear: right;
    float: right;
    margin: 0 0 0 1rem;
}

dl.alt dd {
    margin: 0;
}

/* Icons and social links */
ul.icons {
    padding-right: 0;
}

/* Table direction */
.table-wrapper {
    direction: rtl;
}

/* Forms */
input, select, textarea {
    text-align: right;
}
