﻿.menu {
    text-align: center;
    z-index: 10;
    position: relative;
}

    .menu .navbar {
        display: inline-block;
        padding: 0;
        direction: rtl;
        font: 10pt/30px tahoma;
        color: #3d3d3d;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }

.navbar .active-page {
    background: #efe700;
}

    .navbar .active-page a {
        color: #000;
    }

.navbar .nav-sub .active-page {
    background: whitesmoke;
}

.navbar li {
    list-style: none;
    position: relative;
    text-align: justify;
}

.navbar > li {
    float: right;
    /*border-left: 1px solid #323232;*/
    -moz-transition: all 200ms;
    -o-transition: all 200ms;
    -webkit-transition: all 200ms;
    transition: all 200ms;
    height: 41px;
}

    .navbar > li::after {
        content: url("/Portals/_default/Skins/SkinMain/images/seperator.png");
    }

    .navbar > li:last-child {
        border-left: none;
    }

    .navbar > li:hover {
        background: #EFE700;
    }

    .navbar > li a:hover {
        color: #000;
    }

    .navbar > li:hover > a.have-sub {
        position: relative;
        z-index: 2;
        background: white;
        color: #000;
    }

    .navbar > li > a {
        color: #fff;
        display: block;
        font: 9pt/27px tahoma;
        padding: 7px 11px;
        text-decoration: none;
        -webkit-text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
        white-space: nowrap;
        -moz-transition: all 400ms;
        -o-transition: all 400ms;
        -webkit-transition: all 400ms;
        transition: all 400ms;
        float: right;
    }

        .navbar > li > a:hover {
        }

        .navbar > li > a.have-sub:hover {
            background: #EFE700;
            position: relative;
            z-index: 2;
            color: #000;
        }

    .navbar > li a.have-sub::after {
        border-color: currentcolor rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
        border-style: solid;
        border-width: 4px 3px;
        content: " ";
        display: inline-block;
        height: 0;
        left: 4px;
        position: absolute;
        top: 50%;
        width: 0;
        z-index: 10;
    }

    .navbar > li a.have-sub:hover:before {
        border-color: white transparent transparent !important;
    }

    .navbar > li.active-page a.have-sub:before {
        border-color: white transparent transparent;
        border-style: solid;
        border-width: 5px;
        content: " ";
        display: inline-block;
        height: 0;
        left: 5px;
        position: absolute;
        top: 46%;
        width: 0;
        z-index: 11;
    }

.navbar li ul a.have-sub:after {
    border-color: currentcolor rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 4px 3px;
    content: " ";
    display: inline-block;
    height: 0;
    left: 4px;
    position: absolute;
    top: 50%;
    width: 0;
    z-index: 10;
}

.navbar h2.title {
    font: 16px mitra;
    text-align: center;
    color: #cc2d2d;
}

.navbar img.icon {
    display: block;
    margin: 0 auto;
    max-width: 180px;
}

.navbar div.desc {
    font-family: mitra;
    text-align: justify;
    line-height: 16px;
    color: gray;
    min-height: 100px;
}


.navbar .nav-sub, .navbar .nav-detail, .navbar > ul {
    background: none repeat scroll 0 0 white;
    border: 1px solid whitesmoke;
    display: none;
    margin-right: -180px;
    margin-top: -1px;
    min-width: 972px;
    padding: 4px 0 20px;
    position: absolute;
    right: 50%;
    top: 42px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
}

    .navbar .nav-sub.admin {
        margin-right: -130px;
        /*min-width: 492px;*/
    }

.navbar .nav-detail {
    min-width: 200px;
    padding: 5px;
    right: 50%;
    min-height: initial;
    margin-right: -105px;
}

    .navbar .nav-detail img.icon {
        width: 48px;
        float: left;
    }

    .navbar .nav-detail h2.title {
        float: right;
    }

    .navbar .nav-detail div.desc {
        clear: both;
        padding: 10px;
    }

.navbar .nav-sub ul.below-ul {
    border: 0 none;
    box-shadow: none;
    display: block;
    position: static;
}

    .navbar .nav-sub ul.below-ul a {
        color: #3e3e3e;
        display: block;
        font: 9pt/25px tahoma;
        overflow: hidden;
        padding: 3px 10px;
        text-decoration: none;
        -ms-text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .navbar .nav-sub ul.below-ul a:hover {
            color: #c81b22;
        }

.navbar .nav-sub > ul > li {
    float: right;
    width: 194px;   
}

    .navbar .nav-sub > ul > li:last-child {
        border-left: 0 none;
    }


    .navbar .nav-sub > ul > li a {
        white-space: nowrap;
        display: block;
        padding: 8px 10px;
        color: #313874;
        font: 11pt/16px weblog;
        text-decoration: none;
    }

        .navbar .nav-sub > ul > li a:hover {
            color: #c81b22;
            background: whitesmoke;
        }

    .navbar .nav-sub > ul > li > a {
        text-align: right;
    }

.navbar ul li ul {
    position: absolute;
    right: 100%;
    top: 0;
    box-shadow: 0 0 10px rgba(0,0,0,.4);
    border-radius: 5px;
    padding: 5px 0;
    border: 1px solid silver;
    display: none;
    z-index: 12000;
    background: white;
    min-width: 140px;
}

.navbar ul li:hover > ul {
    display: block;
}
