﻿h1, h2 {
    direction: rtl;
}

.sp-board {
    direction: rtl;
}

.sp-direction {
    direction: rtl;
}

.sp-login-container {
    direction: rtl;
}

.sp-login-header {
    border-radius: 0 20px 4px 0;
}

.sp-login-logo {
    right: auto;
    left: -37px;
}

.sp-notice-item {
    direction: rtl;
}

.sp-notice-right {
    right: auto;
    left: 20px;
}

.sp-notice-left {
    left: auto;
    right: 20px;
}
/*Toggle*/
.sp-toggle-right {
    direction: rtl;
}
/*Grid*/
.sp-grid-row .sp-grid-cell:last-child, .sp-g-row .sp-g-cell:last-child {
    border-right: none;
}

.sp-grid-header .sp-grid-cell:last-child, .sp-g-header .sp-g-cell:last-child {
    border-right: none;
}

/*portlet*/
.sp-portlet-light .sp-portlet-title,
.sp-portlet-light .sp-portlet-header {
    text-align: right;
}

.sp-portlet-body {
    direction: rtl;
}

.sp-portlet-option {
    float: left;
}
/*popup*/
.sp-popup-items {
    padding-left: 0;
    padding-right: 30px !important;
}

    .sp-popup-items:before {
        content: '';
        position: absolute !important;
        left: auto;
        right: 0;
        top: 0;
        width: 24px;
        height: 100%;
        background: var(--verylight);
    }

.sp-popup-item {
    direction: rtl;
}
/*Toolbar*/
.sp-toolbar {
    direction: rtl;
}
/*calendar*/
.sp-calendar {
    direction: rtl;
}
/*split*/
.sp-split {
    direction: rtl;
}

.sp-split-title {
    text-align: right;
}

.sp-split-note {
    text-align: right;
}
/*linkicon*/
.sp-linkicon-text {
    justify-content: right;
}
/*form - page*/
.sp-f, .sp-p {
    direction: rtl;
}
/* frame flat */
.sp-frame-flat .sp-frame-title, .sp-frame-flat .sp-f-title {
    text-align: right;
}

.sp-frame-flat .sp-frame-editor, .sp-frame-flat .sp-f-editor {
    text-align: right;
}

/* form flat */

.sp-form-row, .sp-f-row,
.sp-form-row2, .sp-f-row2, .sp-form-row3, .sp-f-row3,
.sp-p-row, .sp-p-row2, .sp-p-row3 {
    direction: rtl;
}

.sp-form-editor, .sp-f-editor, .sp-p-editor {
    text-align: right;
}

.sp-form-title, .sp-f-title, .sp-p-title {
    text-align: left;
    padding-left: 4px;
    padding-right: 4px;
}

.sp-form .sp-f-important, .sp-f .sp-f-important {
}

    .sp-form .sp-f-important .sp-f-label, .sp-f .sp-f-important .sp-f-label {
        margin-right: 10px;
    }

.sp-form .sp-important, .sp-f .sp-important {
    left: auto;
    right: 0px;
}

.sp-form .detail, .sp-f .detail {
    float: right;
}

.sp-form input[type=button], .sp-form input[type=submit],
.sp-f input[type=button], .sp-f input[type=submit] {
    font-family: 'IranSans';
}

.sp-form input, .sp-form select, .sp-form textarea, .sp-form button,
.sp-f input, .sp-f select, .sp-f textarea, .sp-f button {
    direction: rtl;
}

.sp-form-flat .sp-form-title, .sp-f-flat .sp-f-title,
.sp-f-f .sp-form-title, .sp-f-f .sp-f-title {
    text-align: right;
}

.sp-form-material .sp-form-title, .sp-f-material .sp-f-title,
.sp-f-m .sp-form-title, .sp-f-m .sp-f-title {
    text-align: right;
}

.sp-form .sp-form-message, .sp-f .sp-f-message {
    margin-left: 0;
    margin-right: 150px;
}

.sp-form .sp-drop-button:after {
    right: unset;
    left: 4px;
}

.sp-widget-title {
    direction: rtl;
}
/*page*/
.sp-p-flat .sp-p-title {
    text-align: right;
}

.sp-p-flat .sp-p-editor {
    padding-right: 10px;
    padding-top: 10px;
}

.sp-smart-menu-item:after {
    border-radius: 20% 0 20% 0;
}
/*keyboard*/
.sp-keyboard-line {
    direction: rtl;
}
/*Responsive*/
/*Mobile framework*/
/*sm : 0-599dp // Small screen / phone
  st: 600-904  // Medium screen / tablet
  sp: 905-1439 // Large screen / desktop - default platform
  sx: +1439    // Extra large screen / wide desktop
*/
/*small*/
@media screen and (max-width: 40em) {
    .sm-f-flat .sp-f-title {
        text-align: right;
        margin-bottom: 8px;
    }
}
