/* Layout */
html, body, .form
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body
{
    position: relative;
    min-height: 100%;
    padding-top: 1px;
    margin-top: -1px;
}

html, .form
{
    height: 100%;
}

.roundedPopup {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 8px 16px 0px rgba(0,0,0,0.35);
    -webkit-box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 8px 16px 0px rgba(0,0,0,0.35);
    -moz-box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 8px 16px 0px rgba(0,0,0,0.35);
}

    .roundedPopup, .roundedPopup .dxpcHeader {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

.roundedPopup, .dxpcContent, .roundedPopup {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Content */
.content
{
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Footer */
.footer-wrapper
{
    height: 20px; /* Footer Height */
    position: absolute;
    bottom: 0;
    width: 100%
}

.footer
{
    font-size: 10.5px;
    color: #999999;
}

.footer-link
{
    color: #999999;
    border-right: 1px solid #bbbbbb;
    margin-right: 7px;
    padding-right: 10px;
    white-space: nowrap;
}

.footer-link:last-child
{
    border: none;
    margin: 0;
    padding: 0;
}

.footer-left {
    float: left;
    color: #666;
    font-weight: bold;
}

.footer-right
{
    float: right;
}

.footer-left,
.footer-right {
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 599px)
{
    .footer-left,
    .footer-right
    {
        padding: 16px 4px;
    }
}

/* Header */
.app-header
{
    padding: 0 !important;
    /*box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.2);
    border-bottom-width: 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: left;
}

.header-logo {
    background: url('/Content/Images/valitags27.png') no-repeat center;
    height: 28px;
    width: 90px;
    -webkit-filter: invert(0) !important; /* safari 6.0 - 9.0 */
    filter: invert(0) !important;
}

@media (max-width: 359px)
{
    .header-logo
    {
        background: url('/Content/Images/logo-small.png') no-repeat center;
        width: 28px;
    }
}

.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
{
    color: inherit;
    box-sizing: border-box;
    /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
    border-bottom: solid 2px #F87C1D;
}
.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 */
.theme_light.header-menu {
    background-color: white !important;
}

.header-menu {
    border-style: none !important;
    height: 2.5rem;
}

.theme_dark img { /* svg on an img tag */
    -webkit-filter: invert(.8); /* safari 6.0 - 9.0 */
    filter: invert(.8);
}
.theme_dark svg {
    -webkit-filter: invert(90%); /* safari 6.0 - 9.0 */
    filter: invert(90%);
}

.dark_img { /* svg on an img tag */
    -webkit-filter: invert(.8); /* safari 6.0 - 9.0 */
    filter: invert(.8);
}

.dxWeb_mHorizontalPopOut_Office365Dark.dxm-pImage {
    -webkit-filter: invert(0); /* safari 6.0 - 9.0 */
    filter: invert(0);
}

@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;
    width: 16px;
    height: 16px;
    padding: 0 8px;
}
/* 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: top !important;
}

.header-menu .vertically-aligned
{
    font-size: 0;
}

/* Account */
.header-menu .account-background
{
    width: 32px;
    height: 32px;
}

.header-menu .account-background div
{
    /*border-radius: 50%;*/
}

    .header-menu .account-background .empty-image {
        width: 16px;
        height: 16px;
        margin: 8px;
        display: inline-block;
        background: url('/Content/Images/Icons/Avatar.svg');
    }

.header-menu .account-background .account-image
{
    width: 32px;
    height: 32px;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    margin: 0 auto;
    display: table;
    background-size: 100%;
}

.user-info .avatar img
{
    float: left;
    height: 43px;
    /*border-radius: 50%;*/
}

.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
{
    display: block;
    color: #666666;
    font-size: 0.86em;
}

.myaccount-top {
    /*margin-top: 0px;
    background-color: rgba(0, 0, 0, 0.1);*/
}

.myaccount-item {
    background-color: #e4e4e4;
}

/* Left Panel */
.left-panel
{
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.leftpanel-section
{
    border: none !important;
    background-color: rgba(0, 0, 0, 0.1);
}

.section-caption
{
    height: 2.69rem;
    line-height: 2.69rem;
    vertical-align: middle;
    margin: 0;
}

.subsection-caption {
    height: 2.0rem;
    line-height: 2.0rem;
    vertical-align: middle;
    margin: 0;
}

.section-caption
{
    border-top: solid 1px #f0f0f0;
    border-bottom: solid 1px #f0f0f0;
}

.left-panel.expand-bar,
.right-panel.expand-bar
{
    border: 0;
}

a.tree-view-node
{
    color: #666666;
    padding-top: 7px !important;
    padding-bottom: 8px !important;
    padding-right: 8px !important;
    border: none !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;
    right: 0;
    z-index: 1;
    margin-top: -1px;
}

.sub-toolbar {
    background-color: rgba(0, 0, 0, 0.05) !important;
    font-size: 1.0em !important;
    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
}
.sub-item {
    padding-left: 10px;
    padding-bottom:5px;
}

.dxsplControl_Office365, .dxsplVSeparator_Office365, .dxsplHSeparator_Office365, .dxsplPane_Office365, .dxsplPaneCollapsed_Office365, .dxsplVSeparator_Office365, .dxsplHSeparator_Office365, .dxsplVSeparatorCollapsed_Office365, .dxsplHSeparatorCollapsed_Office365
{
    border-width: 0px;
}

dxpnlControl_Office365 .page-toolbar {
    background-color: rgba(0, 0, 0, 0.1) !important;
    font-size: 1.0em !important;
    border-top: none !important;
}

.theme_light.tbheader {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #cfcfcf;
    white-space: nowrap;
    color: #666;
    font-weight: bold;
    padding: 4px;
}

.theme_dark.tbheader {
    background-color: #222222 !important;
    border-bottom: 1px solid #cfcfcf;
    white-space: nowrap;
    color: #666;
    font-weight: bold;
    padding: 4px;
}


.page-toolbar .item {
    font-weight: normal;
}

.page-toolbar .item > h1,
.section-caption
{
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 24px;
}


.theme_light.section-caption {
    color: #494949;
}

.theme_dark.section-caption {
    color: #FFFFFF;
}

.leftpanel-section.theme_light.subsection-caption {
    color: #494949;
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 24px;
}

.leftpanel-section.theme_dark.subsection-caption {
    color: #FFFFFF;
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 24px;
}

.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;
    }
}
