/* Layout */
html, body, .form {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin-top: -1px;
    min-height: 100%;
    padding-top: 1px;
    position: relative;
}

.form {
    padding-bottom: 46px; /* Footer Height */
}

html, .form { height: 100%; }

/* Content */

.content {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    width: 100%;
}

/* Footer */

.footer-wrapper {
    bottom: 0;
    height: 46px; /* Footer Height */
    position: absolute;
    width: 100%
}

.footer {
    color: #999999;
    font-size: 10.5px;
}

.footer-link {
    border-right: 1px solid #bbbbbb;
    color: #999999;
    margin-right: 7px;
    padding-right: 10px;
    white-space: nowrap;
}

.footer-link:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.footer-left { float: left; }

.footer-right { float: right; }

.footer-left,
.footer-right { padding: 16px 24px; }

@media (max-width: 599px) {
    .footer-left,
    .footer-right { padding: 16px 4px; }
}

/* Header */

.app-header {
    border-bottom-width: 0 !important;
    box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.2);
    padding: 0 !important;
}

.app-header .left-block { float: left; }

.app-header .right-block { float: right; }

.app-header .menu-container { overflow: hidden; }

.app-header .menu-container > div { float: right; }

.header-logo {
    background: url('/Content/Images/logo/logo.png') no-repeat center;
    height: 50px;
    width: 150px;
    background-size: contain;
}

@media (max-width: 359px) {
    .header-logo {
        background: url('/Content/Images/logo/logo.png') no-repeat center;
        /*width: 26px;*/
        width: 150px;
        background-size: contain;
    }
}

.app-header .left-block .header-menu .image-item > .dxm-content { padding: 0 8px 0 8px; }

.app-header .right-block .header-menu .image-item > .dxm-content { padding: 0 7px 0 7px; }

.app-header .left-block .header-menu .item.toggle-item > .dxm-content { padding: 0 14px 0 14px; }

.app-header .right-block .header-menu .item.toggle-item > .dxm-content { padding: 0 14px 0 14px; }

.app-header .header-menu .item.selected {
    /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
    border-bottom: solid 2px #007BF7;
    box-sizing: border-box;
    color: inherit;
}

.app-header .header-menu .item.selected,
.app-header .header-menu .item.hovered { background-color: rgba(0, 0, 0, 0.05); }

.app-header .header-menu .item.selected .dxm-content { margin-bottom: -2px; }

.app-header .header-menu .item.selected .dxm-content,
.app-header .header-menu .item.hovered .dxm-content { color: inherit; }

/* Main Menu */

.header-menu {
    background-color: white !important;
    border-style: none !important;
    height: 3.13rem;
}

@media (max-width: 599px) {
    .menu-container .dxm-ltr > div:not(.header-menu) { width: 100% !important; }
}

.header-sub-menu { width: 100% !important; }

.header-sub-menu .item { padding: 12px 7px !important; }

/* Ellipsis -> Apps Icon */

.header-menu .adaptive-image {
    background: url('/Content/Images/adaptive-menu.svg') no-repeat center;
    height: 16px;
    padding: 0 8px;
    width: 16px;
}

/* Hide item images */

.header-menu.application-menu .item .dxm-content > img { display: none !important; }

@media (max-width: 720px) /* Change Ellipsis image Apps Icon */ {
    .app-header .menu-container > div { width: 47px; }

    .header-menu .adaptive-image {
        background: url('/Content/Images/application.svg') no-repeat center;
    }

    /* Show item images */
    .header-menu.application-menu .item .dxm-content > img { display: inline-block; }
}

/* Right area menu */

.header-menu .toggle-item .image {
    background: url('/Content/Images/double.svg') no-repeat center;
}

.header-menu .toggle-item.checked .image {
    background: url('/Content/Images/double-close.svg') no-repeat center;
}

.header-menu .image-item { vertical-align: middle !important; }

.header-menu .vertically-aligned { font-size: 0; }

/* Account */

.header-menu .account-background {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    height: 32px;
    width: 32px;
}

.header-menu .account-background div { border-radius: 50%; }

    .header-menu .account-background .empty-image {
        background: url('/Content/Images/user.svg');
        display: inline-block;
        height: 16px;
        margin: 8px;
        width: 16px;
    }

.header-menu .account-background .account-image {
    background-size: 100%;
    display: table;
    font-size: 0.8em;
    font-weight: 600;
    height: 32px;
    line-height: 32px;
    margin: 0 auto;
    text-align: center;
    width: 32px;
}

.user-info .avatar img {
    border-radius: 50%;
    float: left;
    height: 43px;
}

.user-info .text-container {
    height: 3.13rem;
    margin-left: 60px;
}

.user-info .text-container .user-name {
    color: #444444;
    font-size: 1.14em;
}

.user-info .text-container .email {
    color: #666666;
    display: block;
    font-size: 0.86em;
}

.myaccount-item { background-color: #e4e4e4; }

/* Left Panel */

.left-panel {
    -webkit-overflow-scrolling: touch;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.leftpanel-section {
    background-color: rgba(0, 0, 0, 0.1);
    border: none !important;
}

.section-caption {
    height: 2.69rem;
    line-height: 2.69rem;
    margin: 0;
    vertical-align: middle;
}

.section-caption {
    border-bottom: solid 1px #f0f0f0;
    border-top: solid 1px #f0f0f0;
}

.left-panel.expand-bar,
.right-panel.expand-bar { border: 0; }

a.tree-view-node {
    border: none !important;
    color: #666666;
    padding-bottom: 8px !important;
    padding-right: 8px !important;
    padding-top: 7px !important;
}

a.tree-view-node.hovered { text-decoration: none; }

.tree-view-elbow { padding-top: 3px; }

/* Right Panel */

.right-panel { border-left: 1px solid #f0f0f0; }

.settings-content { padding: 24px 20px; }

.settings-content h2 {
    color: #494949;
    font-size: 1.3em;
    font-weight: 600;
}

.settings-content p { color: #999999; }

/* Toolbar */

.page-toolbar-wrapper {
    background-color: white;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 1;
}

.page-toolbar {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-size: 0.93em !important;
    height: 2.69rem;
}

.page-toolbar .item > h1,
.section-caption {
    color: #494949;
    font-style: normal;
    font-weight: 600;
    margin-left: -10px;
    margin-right: -10px;
    overflow: hidden;
    padding-left: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-toolbar .item > h1 { font-size: 1.46em; }

.page-toolbar .item > h1 {
    margin: 0;
    padding: 0 17px;
}

.page-toolbar .item .dxm-disabled .dxm-image { opacity: 0.3; }

@media (max-width: 599px) {
    .page-toolbar .item > h1 { max-width: 150px; }
}

.dxm-item.dxm-selected.dxm-noSubMenu a { color: #666666 !important; }

.dxm-item.dxm-selected a { color: white !important; }

.dxm-item.dxm-selected a { color: #666666 !important; }

.app-header .header-menu .item.selected, .app-header .header-menu .item.hovered {
    background-color: rgba(0, 0, 0, 0.05);
    color: #666666 !important;
}