
.top-menu {
    
  /* define the height of the menu */
    --menu-height: 40px;
    
  /* holder and ul general style */
    box-sizing: border-box;
    position: fixed;
    top: 0;
    width: inherit;
    z-index: 999;
    
}


/*
 * the first ul inside the container is the menu,
 * so it must be visible and have its own style.
 */

.top-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.top-menu ul li,
.top-menu ul li span {
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 13px;
}

.top-menu ul li:hover,
.top-menu ul li span:hover {
    color: #ff9900;
}

.top-menu ul li span,
.top-menu ul li span span {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.top-menu ul li {
    padding-right: 40px;
}

/* Put an arrow down to the li`s with dropdown */
.top-menu ul li::before {
    content: "";
    width: 5px;
    height: 5px;
    
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: translateY(-80%) rotate(-45deg);
    
    position: absolute;
    right: 10px;
    top: 50%;
}

.top-menu > ul > li:hover::before {
    border-color: #ff9900;
    top: 55%;
}

.top-menu ul .link {
  /* links dont need arrow */
}

.top-menu ul .link::before {
    padding-right: 0;
    display: none;
}

.top-menu > ul {
    height: var(--menu-height);
    align-items: center;

    background: #4c4e5a;
    background: -webkit-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
    background: -moz-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
    background: -o-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
    background: -ms-linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
    background: linear-gradient(top, #4c4e5a 0%,#2c2d33 100%);
}

.top-menu > ul > li {
    border-right: 1px solid #666666;
    display: inline-block;
    height: var(--menu-height);
    line-height: var(--menu-height);
}

/*
 * The first ul elements can be a link or an li with a nested ul. 
 * The nested ul will be a dropdown
 */
.top-menu > ul li {
    position: relative;
    margin: 0 0 0 10px;
}

.top-menu > ul > li > ul {
    border-top: 1px solid #ffffff;
}

/*
 * the dropdown style
 *
 * On hover an li (not an <a>) must show its ul (dropdown)
 */

.top-menu > ul li ul {
    visibility: hidden;
    opacity: 0;
    padding: 0;
    background-color: #333;
    position: absolute;
    top: var(--menu-height); /* vertical position of second level menu */
    left: -15px;
    transition: 0ms;
    transition-delay: 0ms;
}

/* the dropdown items style */
  
.top-menu > ul li ul li {
    margin: 0;
    padding: 2px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 30px;
    padding-right: 40px;
    border-bottom: 1px solid #666666;
    min-width: 180px;
}

/*
 * Lets put an arrow right to the inner li`s with dropdowns
 *
 * Every dropdown after the first must open to the right
 */

.top-menu > ul li ul li::before {
    width: 0;
    height: 0;
  
    padding: 3px;
    border: solid #ffffff;
    border-width: 3px 3px 0 0;
    transform: translateY(-50%) rotate(45deg);

}

.top-menu > ul li ul li:hover::before {
    border-color: #ff9900;
    border-width: 5px 5px 0 0;
}

.top-menu > ul li ul li:hover {
    background-color: #000000;
}

.top-menu > ul > li > ul > li:first-child:after {
    content: '';
    position: absolute;
    left: 20px;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ffffff;
}


.top-menu > ul li ul li ul {
    top: -2%;
    left: calc(100% - 1px);
    transform: translate(0);
}

.top-menu > ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transition-delay: 0ms;
}

.top-menu > ul > li.right-pos {
    border: none;
    padding: 0px;
    float: right;
    margin: 5px 5px 0 0;
}

.top-menu > ul > li.right-pos::before {
    width: 0;
    height: 0;
    
    border: none;
}

.top-menu > ul > li.right-pos > [data-right-pos-menu="system"] {
    background-image: url(../../lib/img/system01.png);
}

.top-menu > ul > li:hover > [data-right-pos-menu="system"] {
    background-image: url(../../lib/img/system02.png);
}

.top-menu > ul > li > [data-right-pos-menu="user"] {
    background-image: url(../../lib/img/user01.png);
}

.top-menu > ul > li:hover > [data-right-pos-menu="user"] {
    background-image: url(../../lib/img/user02.png);
}

.top-menu > ul > li.right-pos > ul {
    border: 1px solid #ffffff;
    left: -200px;
}

.top-menu > ul > li.right-pos > ul {
    margin:-5px;
}

.top-menu > ul > li.right-pos > ul > li:first-child:after {
    content: '';
    position: absolute;
    left: calc(100% - 20px);
    top: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ffffff;
}

.top-menu > ul > li.right-pos > ul:hover > li > span:after {
    border-bottom-color: #ffffff;
}

.top-menu .icon-menu {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px 25px;
    width: 30px;
    height: 30px;
    border: none;
    padding: 0 5px;
}




.inactive-menu {
    cursor: default !important;
}

#top-menu-form {
    display: none;
}
