﻿/*
    Common 
*/

[dir="rtl"] .wizard,
[dir="rtl"] .tabcontrol {
    display: block;
    width: 100%;
    overflow: hidden;
}

    [dir="rtl"] .wizard a,
    [dir="rtl"] .tabcontrol a {
        outline: 0;
    }

    [dir="rtl"] .wizard ul,
    [dir="rtl"] .tabcontrol ul {
        list-style: none !important;
        padding: 0;
        margin: 0;
    }

        [dir="rtl"] .wizard ul > li,
        [dir="rtl"] .tabcontrol ul > li {
            display: inline-block !important;
            padding: 0;
        }

    /* Accessibility */
[dir="rtl"] .wizard > .steps .current-info,
[dir="rtl"] .tabcontrol > .steps .current-info {
    position: absolute;
    right: -999em;
}

    [dir="rtl"] .wizard > .content > .title,
    [dir="rtl"] .tabcontrol > .content > .title {
        position: absolute;
        right: -999em;
    }



    /*
    Wizard
*/

[dir="rtl"] .wizard > .steps {
    position: relative;
    display: block;
    /*amal changed commented width and added min-width*/
    /*width: 100%;*/
    min-width: 20%;
}

    [dir="rtl"] .wizard.vertical > .steps {
        display: inline;
        float: right;
        width: 30%;
    }

[dir="rtl"] .wizard > .steps .number {
    font-size: 1.429em;
}

[dir="rtl"] .wizard > .steps > ul > li {
    /*width: 25%;*/
    min-width: 150px;
}

    [dir="rtl"] .wizard > .steps > ul > li,
    [dir="rtl"] .wizard > .actions > ul > li {
        float: right;
    }

[dir="rtl"] .wizard.vertical > .steps > ul > li {
    float: none;
    width: 100%;
}

[dir="rtl"] .wizard > .steps a,
[dir="rtl"] .wizard > .steps a:hover,
[dir="rtl"] .wizard > .steps a:active {
    display: block;
    width: auto;
    margin: 0 0.1em 0.5em;
    padding: 1em 1em;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

[dir="rtl"] .wizard > .steps .disabled a,
[dir="rtl"] .wizard > .steps .disabled a:hover,
[dir="rtl"] .wizard > .steps .disabled a:active {
    background: #eee;
    color: #aaa;
    cursor: default;
}

[dir="rtl"] .wizard > .steps .current a,
[dir="rtl"] .wizard > .steps .current a:hover,
[dir="rtl"] .wizard > .steps .current a:active {
    background: #b09341;
    color: #fff;
    cursor: default;
}

[dir="rtl"] .wizard > .steps .done a,
[dir="rtl"] .wizard > .steps .done a:hover,
[dir="rtl"] .wizard > .steps .done a:active {
    background: #e3d3a7;
    color: #fff;
}

[dir="rtl"] .wizard > .steps .error a,
[dir="rtl"] .wizard > .steps .error a:hover,
[dir="rtl"] .wizard > .steps .error a:active {
    background: #ff3111;
    color: #fff;
}

[dir="rtl"] .wizard > .content {
    background: #fff;
    display: block;
    margin: 0.5em;
    min-height: 35em;
    overflow: hidden;
    position: relative;
    /*amal changed commented width and added min-width*/
    /*width: auto;*/
    min-width: 80%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

    [dir="rtl"] .wizard.vertical > .content {
        display: inline;
        float: right;
        margin: 0 0% 0em 0%;
        /*margin: 0 2.5% 0.5em 2.5%;*/
        width: 65%;
    }

    [dir="rtl"] .wizard > .content > .body {
        float: right;
        position: absolute;
        width: 95%;
        height: 95%;
        padding: 2.5%;
    }

[dir="rtl"] .wizard > .content > .body ul {
    list-style: disc !important;
}

[dir="rtl"] .wizard > .content > .body ul > li {
    display: list-item;
}

[dir="rtl"] .wizard > .content > .body > iframe {
    border: 0 none;
    width: 100%;
    height: 100%;
}

[dir="rtl"] .wizard > .content > .body input {
    display: block;
    border: 1px solid #ccc;
}

[dir="rtl"] .wizard > .content > .body input[type="checkbox"] {
    display: inline-block;
}

[dir="rtl"] .wizard > .content > .body input.error {
    background: rgb(251, 227, 228);
    border: 1px solid #fbc2c4;
    color: #8a1f11;
}

[dir="rtl"] .wizard > .content > .body label {
    display: inline-block;
    margin-bottom: 0.5em;
}

    [dir="rtl"] .wizard > .content > .body label.error {
        color: #8a1f11;
        display: inline-block;
        margin-right: 1.5em;
    }

[dir="rtl"] .wizard > .actions {
    position: relative;
    display: block;
    text-align: right;
    width: 100%;
}

[dir="rtl"] .wizard.vertical > .actions {
    display: inline;
    float: right;
    /*margin: 0 2.5%;*/
    width: 95%;
}

[dir="rtl"] .wizard > .actions > ul {
    display: inline-block;
    text-align: right;
}

[dir="rtl"] .wizard > .actions > ul > li {
    margin: 0 0.5em;
}

[dir="rtl"] .wizard.vertical > .actions > ul > li {
    margin: 0 0 0 1em;
}

[dir="rtl"] .wizard > .actions a,
[dir="rtl"] .wizard > .actions a:hover,
[dir="rtl"] .wizard > .actions a:active {
    background: #b09341;
    color: #fff;
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

[dir="rtl"] .wizard > .actions .disabled a,
[dir="rtl"] .wizard > .actions .disabled a:hover,
[dir="rtl"] .wizard > .actions .disabled a:active {
    background: #eee;
    color: #aaa;
}

[dir="rtl"] .wizard > .loading {
}

[dir="rtl"] .wizard > .loading .spinner {
}



    /*
    Tabcontrol
*/

[dir="rtl"] .tabcontrol > .steps {
    position: relative;
    display: block;
    width: 100%;
}

[dir="rtl"] .tabcontrol > .steps > ul {
    position: relative;
    margin: 6px 0 0 0;
    top: 1px;
    z-index: 1;
}

    [dir="rtl"] .tabcontrol > .steps > ul > li {
        float: right;
        margin: 5px 2px 0 0;
        padding: 1px;
        -webkit-border-top-right-radius: 5px;
        -webkit-border-top-right-radius: 5px;
        -moz-border-radius-topright: 5px;
        -moz-border-radius-topright: 5px;
        border-top-right-radius: 5px;
        border-top-right-radius: 5px;
    }

[dir="rtl"] .tabcontrol > .steps > ul > li:hover {
    background: #edecec;
    border: 1px solid #bbb;
    padding: 0;
}

[dir="rtl"] .tabcontrol > .steps > ul > li.current {
    background: #fff;
    border: 1px solid #bbb;
    border-bottom: 0 none;
    padding: 0 0 1px 0;
    margin-top: 0;
}

[dir="rtl"] .tabcontrol > .steps > ul > li > a {
    color: #5f5f5f;
    display: inline-block;
    border: 0 none;
    margin: 0;
    padding: 10px 30px;
    text-decoration: none;
}

[dir="rtl"] .tabcontrol > .steps > ul > li > a:hover {
    text-decoration: none;
}

[dir="rtl"] .tabcontrol > .steps > ul > li.current > a {
    padding: 15px 30px 10px 30px;
}

[dir="rtl"] .tabcontrol > .content {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 35em;
    overflow: hidden;
    border-top: 1px solid #bbb;
    padding-top: 20px;
}

    [dir="rtl"] .tabcontrol > .content > .body {
        float: right;
        position: absolute;
        width: 95%;
        height: 95%;
        padding: 2.5%;
    }

[dir="rtl"] .tabcontrol > .content > .body ul {
    list-style: disc !important;
}

[dir="rtl"] .tabcontrol > .content > .body ul > li {
    display: list-item;
}

    /*Added by amal*/
[dir="rtl"] .wizard .content {
    min-height: 100px;
}

[dir="rtl"] .wizard .content > .body {
    width: 100%;
    height: auto;
    padding: 15px;
    position: relative;
}

[dir="rtl"] .secondary-steps > .steps {
    float: left !important;
}

[dir="rtl"] .secondary-steps > .steps > [role="tablist"] > [role="tab"] > a {
    line-height: 0.5;
}

[dir="rtl"] .wizard.vertical > .content {
    width: 75%
}

[dir="rtl"] .wizard.vertical > .steps {
    width: 20%
}

[dir="rtl"] .wizard > .content > .body {
    padding: 1% !important;
} 
