.sm-clean {
    background: #fff;
    border-radius: 3px;
}

.sm-clean a {
}

.sm-clean a,
.sm-clean a:hover,
.sm-clean a:focus,
.sm-clean a:active {
    padding: 13px 20px;

    /* make room for the toggle button (sub indicator) */
    padding-right: 58px;
    color: #666666;
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 17px;
    text-decoration: none;
}

.sm-clean li.active > a {
    color: #f14a28;
}

.sm-clean a.disabled {
    color: #cccccc;
}

.sm-clean a .sub-arrow {
    position: absolute;
    top: 50%;
    margin-top: -17px;
    left: auto;
    right: 4px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    font: bold 1rem/34px monospace !important;
    text-align: center;
    text-shadow: none;
    background: rgba(247, 247, 247, 0.5);
    border-radius: 3px;
}

.sm-clean a .sub-arrow::before {
    content: '+';
}

.sm-clean a.highlighted .sub-arrow::before {
    content: '-';
}

.sm-clean > li:first-child > a,
.sm-clean > li:first-child > :not(ul) a {
    border-radius: 3px 3px 0 0;
}

.sm-clean > li:last-child > a,
.sm-clean > li:last-child > *:not(ul) a,
.sm-clean > li:last-child > ul,
.sm-clean > li:last-child > ul > li:last-child > a,
.sm-clean > li:last-child > ul > li:last-child > *:not(ul) a,
.sm-clean > li:last-child > ul > li:last-child > ul,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > a,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul {
    border-radius: 0 0 3px 3px;
}

.sm-clean > li:last-child > a.highlighted,
.sm-clean > li:last-child > *:not(ul) a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > *:not(ul) a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
.sm-clean > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted {
    border-radius: 0;
}

.sm-clean li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sm-clean > li:first-child {
    border-top: 0;
}

.sm-clean ul {
    background: rgba(179, 179, 179, 0.1);
}

.sm-clean ul a {
}

.sm-clean ul a,
.sm-clean ul a:hover,
.sm-clean ul a:focus,
.sm-clean ul a:active {
    font-size: 1rem;
    border-left: 8px solid transparent;
}

.sm-clean ul ul a,
.sm-clean ul ul a:hover,
.sm-clean ul ul a:focus,
.sm-clean ul ul a:active {
    border-left: 16px solid transparent;
}

.sm-clean ul ul ul a,
.sm-clean ul ul ul a:hover,
.sm-clean ul ul ul a:focus,
.sm-clean ul ul ul a:active {
    border-left: 24px solid transparent;
}

.sm-clean ul ul ul ul a,
.sm-clean ul ul ul ul a:hover,
.sm-clean ul ul ul ul a:focus,
.sm-clean ul ul ul ul a:active {
    border-left: 32px solid transparent;
}

.sm-clean ul ul ul ul ul a,
.sm-clean ul ul ul ul ul a:hover,
.sm-clean ul ul ul ul ul a:focus,
.sm-clean ul ul ul ul ul a:active {
    border-left: 40px solid transparent;
}

@media (min-width: 1000px) {
    /* Switch to desktop layout
  -----------------------------------------------
     These transform the menu tree from
     collapsible to desktop (navbar + dropdowns)
  -----------------------------------------------*/
    /* start... (it's not recommended editing these rules) */
    .sm-clean ul {
        position: absolute;
        width: 12em;
    }

    .sm-clean li {
        float: left;
    }

    .sm-clean.sm-rtl li {
        float: right;
    }

    .sm-clean ul li,
    .sm-clean.sm-rtl ul li,
    .sm-clean.sm-vertical li {
        float: none;
    }

    .sm-clean a {
        white-space: nowrap;
    }

    .sm-clean ul a,
    .sm-clean.sm-vertical a {
        white-space: normal;
    }

    .sm-clean .sm-nowrap > li > a,
    .sm-clean .sm-nowrap > li > :not(ul) a {
        white-space: nowrap;
    }

    /* ...end */
    .sm-clean {
        padding: 0 10px;
        background: transparent;
        border-radius: 0;
        height: 40px;
    }

    .sm-clean a {
    }

    .sm-clean a,
    .sm-clean a:hover,
    .sm-clean a:focus,
    .sm-clean a:active,
    .sm-clean a.highlighted {
        margin: 0 0;
        padding: 2px 8px;
        color: #666666;
        border-radius: 0 !important;
    }

    .sm-clean a:hover,
    .sm-clean a:focus,
    .sm-clean a:active,
    .sm-clean a.highlighted {
        color: #f14a28;
    }

    .sm-clean a.current {
        color: #f14a28;
    }

    .sm-clean a.disabled {
        color: #cccccc;
    }

    .sm-clean a.has-submenu {
        padding-right: 22px;
    }

    .sm-clean a .sub-arrow {
        top: 50%;
        margin-top: -2px;
        right: 8px;
        width: 0;
        height: 0;
        border-width: 4px;
        border-style: solid dashed dashed dashed;
        border-color: #666666 transparent transparent transparent;
        background: transparent;
        border-radius: 0;
    }

    .sm-clean a .sub-arrow::before {
        display: none;
    }

    .sm-clean li {
        border-top: 0;
        height: 40px;

    }
    .sm-clean > li{
        padding-top: 10px;
        border-right: 1px solid  #fff;
    }
    .sm-clean > li:last-child {
           border-right: none;
    }

    .sm-clean > li > ul::before,
    .sm-clean > li > ul::after {
        content: '';
        position: absolute;
        top: -16px;
        left: 30px;
        width: 0;
        height: 0;
        overflow: hidden;
        border-width: 8px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent #cccccc transparent;
    }

    .sm-clean > li > ul::after {
        top: -14px;
        left: 31px;
        border-width: 7px;
        border-color: transparent transparent #fff transparent;
    }
    .sm-clean > li:last-of-type > ul::before,
    .sm-clean > li:last-of-type > ul::after {
        content: '';
        position: absolute;
        top: -16px;
        left: 120px;
        width: 0;
        height: 0;
        overflow: hidden;
        border-width: 8px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent #cccccc transparent;
    }

    .sm-clean > li:last-of-type > ul::after {
        top: -14px;
        left: 121px;
        border-width: 7px;
        border-color: transparent transparent #fff transparent;
    }
    .sm-clean ul {
        border: 1px solid #cccccc;
        padding: 5px 0;
        background: #fff;
        border-radius: 3px !important;
        -webkit-box-shadow: 0 5px 9px rgba(0, 0, 0, 0.1);
        box-shadow: 0 5px 9px rgba(0, 0, 0, 0.1);
    }
.sm-clean ul li{
    height: auto;
}
    .sm-clean ul a {
    }

    .sm-clean ul a,
    .sm-clean ul a:hover,
    .sm-clean ul a:focus,
    .sm-clean ul a:active,
    .sm-clean ul a.highlighted {
        border: 0 !important;
        padding: 10px 15px;
        color: #666666;
    }

    .sm-clean ul a:hover,
    .sm-clean ul a:focus,
    .sm-clean ul a:active,
    .sm-clean ul a.highlighted {
        background: #efefef;
        color: #f14a28;
    }

    .sm-clean ul a.current {
        color: #f14a28;
    }

    .sm-clean ul a.disabled {
        background: #fff;
        color: #cccccc;
    }

    .sm-clean ul a.has-submenu {
        padding-right: 20px;
    }

    .sm-clean ul a .sub-arrow {
        right: 8px;
        top: 50%;
        margin-top: -5px;
        border-width: 5px;
        border-style: dashed dashed dashed solid;
        border-color: transparent transparent transparent #666666;
    }

    .sm-clean .scroll-up,
    .sm-clean .scroll-down {
        position: absolute;
        display: none;
        visibility: hidden;
        overflow: hidden;
        background: #fff;
        height: 20px;
    }

    .sm-clean .scroll-up:hover,
    .sm-clean .scroll-down:hover {
        background: #efefef;
    }

    .sm-clean .scroll-up:hover .scroll-up-arrow {
        border-color: transparent transparent #f14a28 transparent;
    }

    .sm-clean .scroll-down:hover .scroll-down-arrow {
        border-color: #f14a28 transparent transparent transparent;
    }

    .sm-clean .scroll-up-arrow,
    .sm-clean .scroll-down-arrow {
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -6px;
        width: 0;
        height: 0;
        overflow: hidden;
        border-width: 6px;
        border-style: dashed dashed solid dashed;
        border-color: transparent transparent #666666 transparent;
    }

    .sm-clean .scroll-down-arrow {
        top: 8px;
        border-style: solid dashed dashed dashed;
        border-color: #666666 transparent transparent transparent;
    }

    #main-menu > li::after {
        display: block;
        width: 0;
        height: 2px;
        background-color: #4a4a4a;
        content: '';
        -webkit-transition: width 0.3s;
        -o-transition: width 0.3s;
        transition: width 0.3s;
        margin: 5px  auto 0;
    }

    #main-menu > li.current::after,
    #main-menu > li:hover::after,
    #main-menu > li:active::after {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #e74330;
        content: '';
        -webkit-transition: width 0.3s;
        -o-transition: width 0.3s;
        transition: width 0.3s;
    }
}
/* Responsive state ################################ */
.main-menu-btn {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    margin: 8px 0 0 0;
    text-indent: 28px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* hamburger icon */
.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
    position: absolute;
    top: 50%;
    left: 2px;
    height: 2px;
    width: 24px;
    background: #bbb;
    -webkit-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
}

.main-menu-btn-icon:before {
    content: '';
    top: -7px;
    left: 0;
}

.main-menu-btn-icon:after {
    content: '';
    top: 7px;
    left: 0;
}

/* x icon */
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
    height: 0;
    background: transparent;
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
    top: 0;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
    top: 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* hide menu state checkbox (keep it visible to screen readers) */
#main-menu-state {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* hide the menu in mobile view */
#main-menu-state:not(:checked) ~ #main-menu {
    display: none;
}

#main-menu-state:checked ~ #main-menu {
    display: block;
}

@media (min-width: 1000px) {
    /* hide the button in desktop view */
    .main-menu-btn {
        position: absolute;
        top: -99999px;
    }
    #main-menu > li {
        float: none;
        display: table-cell;
        width: 1%;
        text-align: center;
    }
    /* always show the menu in desktop view */
    #main-menu-state:not(:checked) ~ #main-menu {
        display: block;

    }
}
