/* ===== Application shell (top bar + left menu), same look as the dashboard and the pos3 screens =====
   Loaded after theme.css / skins/default.css / theme-custom.css, so it only overrides colours and shapes.
   Palette "warm charcoal + gold": menu #1C1917, gold #D4AF37 / #F5D77A, text #E7E5E4, page #F1F5F9.
   The previous navy + teal version is kept as shell-pro.navy-teal.css.bak. */

/* ---------------------------------------------------------------- top bar */
html .header {
    background: #FFFFFF;
    border: 0;
    box-shadow: inset 0 -2px 0 #D4AF37, 0 8px 22px rgba(28, 25, 23, .07);   /* a thin gold line under the bar */
}

html .header .logo-container {
    background: #FFFFFF;
}

html .header .toggle-sidebar-left {
    background: #1C1917;
    color: #FFFFFF;
}

/* POS shortcut becomes a charcoal pill with gold text */
html .header-right .separator {
    border: 0;
    background: transparent;
    margin: 0 14px 0 0;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
    height: auto;
}

html .header-right .separator a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2A2521, #1C1917);
    color: #F5D77A !important;
    border: 1px solid rgba(212, 175, 55, .55);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(28, 25, 23, .25);
    transition: background .15s, box-shadow .15s;
}

html .header-right .separator a:hover {
    background: linear-gradient(135deg, #E6C766, #C9A227);
    color: #1C1917 !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, .35);
}

html .header-right .separator a .fa {
    margin-right: 6px;
}

/* user box */
html .userbox {
    border: 0;
    margin-right: 14px;
}

html .userbox .profile-info .name {
    color: #0F172A;
    font-size: 13px;
    font-weight: 700;
}

html .userbox .profile-info .role {
    color: #64748B;
    font-size: 11px;
}

html .userbox .profile-picture img {
    border: 2px solid #D4AF37;
}

html .userbox .custom-caret,
html .userbox a .fa {
    color: #64748B;
}

html .userbox .dropdown-menu {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    padding: 6px;
    background: #FFFFFF;
}

html .userbox .dropdown-menu a {
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
}

html .userbox.open .dropdown-menu a:hover,
html .userbox .dropdown-menu a:hover {
    background: #ECFEFF;
    color: #0B7A91;
}

html .userbox .dropdown-menu .divider {
    display: none;
}

/* ---------------------------------------------------------------- left menu */
html .sidebar-left {
    background: linear-gradient(180deg, #221E1B 0%, #181513 100%);
    box-shadow: none;
    color: #E7E5E4;
}

html .sidebar-left .nano {
    background: transparent;
}

html .sidebar-left .sidebar-header {
    background: transparent;
    height: 56px;
    border-bottom: 1px solid rgba(212, 175, 55, .16);
}

html .sidebar-left .sidebar-header .sidebar-title,
html .sidebar-left .sidebar-header .sidebar-title.sidebar-menu-search {
    background: transparent;
    padding: 12px 12px 8px 14px !important;
}

html .sidebar-left .sidebar-header .sidebar-toggle {
    height: 56px;
    background: transparent;
}

html .sidebar-left .sidebar-header .sidebar-toggle i {
    color: #A8A29E;
    line-height: 56px;
}

html .sidebar-left .sidebar-header .sidebar-toggle:hover i {
    color: #FFFFFF;
}

/* menu search box (see theme-custom.css) in the dark menu */
html .sidebar-left .sidebar-header .sidebar-menu-search #sidebarMenuSearch {
    top: 0 !important;
    width: 150px !important;
    max-width: 150px !important;
    height: 34px !important;
    color: #E2E8F0 !important;
    background-color: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 999px !important;
}

html .sidebar-left .sidebar-header .sidebar-menu-search #sidebarMenuSearch::placeholder {
    color: #A8A29E;
}

html .sidebar-left .sidebar-header .sidebar-menu-search #sidebarMenuSearch:focus {
    background-color: rgba(255, 255, 255, .11) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .22) !important;
}

html .sidebar-left .sidebar-header .sidebar-menu-search .sidebar-menu-search-results {
    top: 54px;
    background: #27211D;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .55);
}

html .sidebar-menu-search-result {
    color: #E7E5E4;
}

html .sidebar-menu-search-result:hover,
html .sidebar-menu-search-result.active {
    background: rgba(255, 255, 255, .07);
    border-left-color: #D4AF37;
}

html .sidebar-menu-search-collapsed-icon {
    background: transparent;
    height: 56px;
    line-height: 56px;
    color: #A8A29E;
}

/* menu items */
html ul.nav-main {
    margin: 0;
    padding: 10px 0 24px 0;
}

html ul.nav-main > li {
    margin: 2px 10px;
}

html ul.nav-main > li > a,
html ul.nav-main li a {
    color: #E7E5E4;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
}

html ul.nav-main > li > a {
    padding: 11px 12px;
    border-radius: 10px;
    transition: background .15s, color .15s;
}

html ul.nav-main li i {
    color: #A8A29E;
    width: 22px;
    margin-right: 6px;
    text-align: center;
    transition: color .15s;
}

html ul.nav-main > li > a:hover,
html ul.nav-main > li > a:focus {
    background: rgba(255, 255, 255, .06) !important;
    color: #FFFFFF !important;
}

html ul.nav-main > li > a:hover i {
    color: #F5D77A;
}

/* the current page (top level) = gold pill with dark text */
html ul.nav-main > li.nav-active > a,
html ul.nav-main > li.nav-active > a:hover {
    background: linear-gradient(135deg, #E6C766, #C9A227) !important;
    color: #1C1917 !important;
    box-shadow: 0 8px 18px rgba(212, 175, 55, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}

html ul.nav-main > li.nav-active > a i {
    color: #1C1917;
}

/* an open group */
html ul.nav-main > li.nav-expanded > a {
    background: rgba(255, 255, 255, .07);
    color: #FFFFFF;
}

html ul.nav-main li.nav-parent > a:after {
    color: #78716C;
}

html ul.nav-main li.nav-parent.nav-expanded > a:after {
    color: #F5D77A;
}

/* sub menu: a quiet list with a guide line */
html ul.nav-main li .nav-children {
    background: transparent;
    box-shadow: none;
    padding: 4px 0 6px 0;
    margin-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

html ul.nav-main li .nav-children li {
    margin: 1px 0 1px 8px;
}

html ul.nav-main li .nav-children li a {
    padding: 8px 12px 8px 14px;
    border-radius: 8px;
    color: #A8A29E;
    font-weight: 500;
}

html ul.nav-main li .nav-children li a i {
    width: 18px;
    font-size: 12px;
}

html ul.nav-main li .nav-children li a:hover,
html ul.nav-main li .nav-children li a:focus {
    background: rgba(255, 255, 255, .06);
    color: #FFFFFF;
}

html ul.nav-main li .nav-children li.nav-active > a,
html ul.nav-main li .nav-children li.nav-active > a:hover {
    background: rgba(212, 175, 55, .14);
    color: #F5D77A;
}

html ul.nav-main li .nav-children li.nav-active > a i {
    color: #F5D77A;
}

/* scroll bar of the menu */
html .sidebar-left .nano > .nano-pane {
    background: transparent;
    width: 6px;
}

html .sidebar-left .nano > .nano-pane > .nano-slider {
    background: rgba(255, 255, 255, .18);
    border-radius: 6px;
}

/* ---------------------------------------------------------------- collapsed menu (icons only) */
@media only screen and (min-width: 768px) {
    html.sidebar-left-collapsed .sidebar-left .nano {
        background: #1C1917;
        box-shadow: none;
    }

    html.sidebar-left-collapsed ul.nav-main > li {
        margin: 2px 8px;
    }

    html.sidebar-left-collapsed ul.nav-main > li > a {
        padding: 11px 0;
        text-align: center;
    }

    html.sidebar-left-collapsed ul.nav-main > li > a i {
        margin-right: 0;
    }

    /* the pop-out sub menu of a collapsed menu */
    html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main .nav-expanded > ul.nav-children {
        background: #27211D;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 12px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, .55);
        margin-left: 0;
    }
}

/* ---------------------------------------------------------------- phones */
@media only screen and (max-width: 767px) {
    html .header .logo-container {
        background: #FFFFFF;
    }
}

/* POS pill: the theme gives .separator a 2px width and a full height */
html .header-right .separator {
    width: auto !important;
    height: auto !important;
    line-height: 1;
    margin-top: 6px;
}

html .header-right .separator a {
    white-space: nowrap;
}

/* ---------------------------------------------------------------- 3rd level (Accounts > Chart of Accounts > COA Entry ...)
   the second level already sits behind a guide line; the third level must not move in again by the same amount (it squeezed the names) */
html ul.nav-main li .nav-children {
    margin-left: 18px;
}

html ul.nav-main li .nav-children li {
    margin: 1px 0 1px 6px;
}

html ul.nav-main li .nav-children li > a {
    padding: 8px 28px 8px 10px;           /* room on the right for the open / close arrow of a group */
}

html ul.nav-main li .nav-children .nav-children {
    margin: 0 0 2px 14px;
    padding: 2px 0;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

html ul.nav-main li .nav-children .nav-children li {
    margin: 1px 0 1px 4px;
}

html ul.nav-main li .nav-children .nav-children li > a {
    padding: 7px 8px 7px 10px;
    font-size: 12.5px;
    text-overflow: clip;
}

/* the arrow of a group inside a group */
html ul.nav-main li .nav-children li.nav-parent > a:after {
    right: 10px;
    padding: 0;
}

/* a group that is open: the same quiet tint as the top level, but lighter */
html ul.nav-main li .nav-children li.nav-parent.nav-expanded > a {
    background: rgba(255, 255, 255, .04);
    color: #FFFFFF;
}
