body, html{
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400;
    background: #E9F0F5;
    color: #444448;
}

#main_wrapper{
    height: 100%;
    display: flex;
}

.middle_section{
    width: calc(100% - 260px);
    height: calc(100% - 50px);  /* decrease top bar */
}
.menu_collapsed .middle_section{
    width: calc(100% - 100px);
}
.page_wrapper, .content_wrapper, #content, .module_container{
    height: 100%;
}
.module_content{
    height: calc(100% - 80px); /* decrease top bar and filter bar */
}
.menu_collapsed .menu_logo img{
    width: 100%;
}

.content_centered{
    max-width: none;
    padding: 0 5%;
}
.detail-panel fieldset{
    margin-bottom: 10px;
}
.detail-panel fieldset legend{
    color: #0099DD !important;
    font-size: 14px;
    border-bottom: 1px solid #0099DD;
    margin-bottom: 7px;
    padding-bottom: 5px;
}



/* left navigation */
.left_navigation{
    width: 260px;
    border-right: 1px solid #1B99DD;
    background: #fff;
    padding: 10px 15px;
    box-sizing: border-box;
    overflow: auto;
    overflow-x: hidden;
}
.left_navigation .k-panelbar{
    border: 0;
}
.left_navigation .k-panelbar .k-link.k-header{
    background: none !important;
    border: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 300;
}
.left_navigation .k-panelbar .k-link.k-header a{
    color: #444448 !important;
    font-weight: 300;
}
.left_navigation .k-panelbar .k-link.k-header a:hover{
    text-decoration: none;
}
.left_navigation li.k-item{
    border-bottom: 1px solid #f7f7f7;
    padding-top: 3px;
    padding-bottom: 3px;
}
.left_navigation .k-panelbar .k-link.k-header{
    padding-left: 20px !important;
}
.left_navigation .k-panelbar .k-link.k-header.k-state-hover, .left_navigation .k-panelbar .k-link.k-header.k-state-active{
    font-size: 16px;
    color: #0099DD !important;
    font-weight: 300;
    padding: 0;
    text-decoration: none;
}
.left_navigation .k-panelbar .k-item.k-state-active .k-link.k-header{
    font-size: 16px;
    font-weight: 300;
    padding: 0;
    text-decoration: none;
}
.left_navigation .k-panelbar .k-item.k-state-active .k-link.k-header > span > a{
    color: #0099DD !important;
}
.left_navigation .k-panelbar > li > .k-header > span.k-icon{
    color: #444448;
}
.left_navigation .k-panelbar > li.k-item.k-state-active > .k-header > span.k-icon{
    color: #0099DD;
}
.menu_collapser{
    display: block;
    width: 12px;
    height: 40px;
    background: #1B99DD;
    top: 50%;
    margin-top: -20px;
    position: absolute;
    left: 260px;
    cursor: pointer;
    z-index: 9999;
}
.menu_collapser::before{
    content: "\e93b";
    font-family: Linearicons;
    color: #fff;
    font-size: 12px;
}
.menu_collapsed .left_navigation{
    width: 100px;
    padding: 10px 8px;
}
.menu_collapsed .left_navigation a > span:nth-child(2){
    display: none;
}
.menu_collapsed .menu_collapser{
    left: 100px;
}
.menu_collapsed .menu_collapser::before{
    content: "\e93c";
}
.onlyMobileMenu{
    display: none !important;
}

.nav_icon{
    font-size: 35px;
    line-height: 35px;
}
#left_menu{
    visibility: hidden;
    background: none;
}
#left_menu .noSubmenu .k-icon{
    visibility: hidden;
}

.top-submenu{
    list-style: none;
    padding-left: 25px;
}
.top-submenu li{
    font-size: 14px;
    padding: 6px;
    font-weight: 300;
}
.top-submenu li a{
    color: #444448;
    text-decoration: none;
}
.top-submenu li.active a, .top-submenu li a:hover{
    color: #0099DD;
}
.left_navigation ul a{
    display: table;
}
.left_navigation a > span:first-child, .left_navigation a > span:nth-child(2){
    display: table-cell;
    vertical-align: middle;
}
.left_navigation [class*=" icon-"]{ /* old Linearicon icons */
    font-size: 26px;
    padding-right: 7px;
    padding-left: 12px;
}

.menu_logo{
    margin-top: 0;
    margin-bottom: 10px;
    float: none;
    height: auto;
    text-align: center;
}
.menu_logo img{
    max-height: 60px;
}

.k-widget{
    box-shadow: none;
}



/* top section */
.top_menu_icon, .top_setting_icon{
    color: #444448;
}
#profile_menu span.menu-user{
    color: #444448;
    border: 1px solid #444448;
}
.lang_selector{
    margin-top: 15px;
}
.lang_selector a{
    color: #444448;
}
.lang_selector li{
    border-left: 1px solid #444448;
}
.master_search_container{
    margin-top: 10px;
}



/* middle section  */
.oneColumnLayout{
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
}
.menu_wrapper, .subhead{
    background: none;
}
.list-results-panel, .detail-panel{
    box-shadow: none;
}

.k-splitbar{
    width: 12px !important;
    border: 0 !important;
}
.k-splitbar .k-icon.k-collapse-prev, .k-splitbar .k-icon.k-collapse-next, .k-splitbar .k-icon.k-expand-next, .k-splitbar .k-icon.k-expand-prev, .k-splitbar .k-resize-handle{
    background-color: #1B99DD;
    width: 12px !important;
    margin: -40px 0px 0 0px;
}
.k-splitbar-draggable-horizontal .k-icon.k-collapse-prev{ margin: -60px 0px 0 0px; }
.k-splitbar-draggable-horizontal .k-icon.k-collapse-next{ margin: 20px 0px 0 0px; }
.k-splitbar .k-resize-handle{ margin: -20px 0px 0 0px; }

.head{
    border-bottom: 0;
}
.head .name{
    font-size: 18px;
    color: #444448;
    font-weight: 300;
}
.detail-panel .head{
    font-size: 18px;
    color: #444448;
    font-weight: 300;
}
.leftPanelCollapsed{
    border-right: 1px solid #1B99DD;
}

label, label.fieldLabel{
    font-weight: 300;
}
.detail-panel .fieldContainer, .detail-panel .fieldContainer label{
    font-weight: 400 !important;
}

.k-dropdown-wrap, .k-picker-wrap, .k-numeric-wrap{
    font-weight: 400;
}
.invoice_address_container label{
    font-weight: normal;
}

.detail-panel .buttons a span{
    color: #707070;
    font-size: 20px;
}
.detail-panel .fieldLabel{
    width: 40%;
}


/* panelbar */
.k-panelbar-collapse.k-icon, .k-panelbar-expand.k-icon{
    left: 0 !important;
    right: auto !important;
}
.k-panelbar .k-item .k-link.k-header{
    padding-left: 25px !important;
}
.k-panelbar .k-item{
    margin-bottom: 10px;
    border-bottom: 1px solid #2298dd;
}
.k-panelbar .k-item .k-link.k-header{
    background: #fff;
    color: #2298dd !important;
    font-weight: 400;
    border: 0;
}
.k-panelbar .k-item .k-link.k-header.k-state-hover, .k-panelbar .k-item.k-state-active .k-link.k-header{
    background: #2298dd;
    color: #fff !important;
    font-weight: 400;
}
.k-panelbar > li > .k-header > span.k-icon{
    -webkit-filter: none;
    filter: none;
}
.detail-panel .k-panelbar.k-header{
    background-color: #E9F0F5;
}
.detail-panel .k-panelbar > li > .k-header > span.k-icon{
    margin-left: 4px;
}
.detail-panel-inner ul.k-panelbar{
    background-color: #E9F0F5;
    margin-left:-10px;
    width: calc(100% + 20px) !important; /* trick the padding of detail-panel-inner */
    padding-top: 10px;
}
.k-panelbar .detail-grid-item{
    margin-bottom: 0 !important;
}

/* form fields */
input[type="text"], input[type="password"], textarea:not(.editor){
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid #707070 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #707070;
    font-weight: 400;
}
.k-dropdown-wrap, .k-picker-wrap, .k-numeric-wrap, .k-multiselect-wrap{
    background: none;
    border: 0 !important;
    border-bottom: 1px solid #707070 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #707070;
    font-weight: 400;
}
.k-multiselect{
    border-radius: 0 !important;
    background: none !important;
}
.sfFiltersContainer li.k-button, #sfAddFilterSelectBox #filterMultiselectBox_taglist li.k-button, .sfFiltersContainer li.k-button, .sfFiltersContainer li.k-button:hover{
    font-weight: 400;
    color: #707070;
}
.k-numerictextbox input[type="text"], .k-datepicker input[type="text"], .k-datetimepicker input[type="text"]{
    border:0 !important
}
.k-widget > .k-state-hover, .k-widget > .k-state-active{
    background: none !important;
}
.statusDropdownContainer .k-dropdown-wrap{
    border-bottom: 0 !important;
}
.k-dropdown-wrap{
    background: none !important;
}

.list-results-search{
    width: 215px;
    margin-right: 28px;
}
.global_search_container{
    padding-left: 25px;
}
.global_search_container::before{
    content: "\e922";
    font-family: Linearicons;
    color: #707070;
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    top: 10px;
    margin-left: -27px;
}
.filters-control-bar{
    padding-left: 25px;
}
.filters-control-bar::before{
    content: "\e97c";
    font-family: Linearicons;
    color: #707070;
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    top: 10px;
    margin-left: -27px;
}
.sfFiltersContainer > span{
    margin-left: 10px;
}



/* dashboards */
.panel{
    box-shadow: none;
}
.grid-stack-item-content{
    box-shadow: none;
}
.grid-stack-item-content.panel-primary > .panel-heading{
    background: none;
    color: #444448;
    border-bottom: 1px solid #dbdbdb;
}
.grid-stack-item-content .panel-heading .btn-group{
    font-size: 18px;
    margin-left: 15px;
    margin-top: -5px;
    margin-bottom: -5px;
}
.grid-stack-item-content .panel-heading .btn-group > span{
    margin-left: 10px;
    cursor: pointer;
}
.panel-primary .panel-heading,
.panel-primary .panel-heading-sub{
    background-color: transparent;
}
.panel-primary .panel-heading-sub *{
    color: #389dd6 !important;
    text-align: center;
    font-weight: 300;
}

.panel-green .panel-heading,
.panel-green .panel-heading-sub {
    background-color: transparent;
}
.panel-green .panel-heading-sub *{
    color: #8dc04c !important;
}

.panel-yellow .panel-heading,
.panel-yellow .panel-heading-sub {
    background-color: transparent;
}
.panel-yellow .panel-heading-sub *{
    color: #fcbe00 !important;
}

.panel-blue1 .panel-heading,
.panel-blue1 .panel-heading-sub {
    background-color: transparent;
}
.panel-blue1 .panel-heading-sub *{
    color: #679DC6 !important;
}

.panel-blue2 .panel-heading,
.panel-blue2 .panel-heading-sub {
    background-color: transparent;
}
.panel-blue3 .panel-heading,
.panel-blue3 .panel-heading-sub {
    background-color: #0B62A4;
}
.panel-blue2 .panel-heading-sub *{
    color: #3980B5 !important;
}

.panel-red .panel-heading,
.panel-red .panel-heading-sub {
    background-color: transparent;
}
.panel-red .panel-heading-sub *{
    color: #D9534F !important;
}

.panel-lemon .panel-heading,
.panel-lemon .panel-heading-sub {
    background-color: transparent;
}
.panel-lemon .panel-heading-sub *{
    color: #cbcd00 !important;
}

.panel-grey .panel-heading,
.panel-grey .panel-heading {
    background-color: transparent;
}
.panel-grey .panel-heading *{
    color: #bfbfbf !important;
    text-align: center;
    font-weight: 400;
}

.dashboardWidgets{
    margin-top: 10px;
}

.k-window .sfFiltersContainer .k-button, .k-window #sfAddFilterSelectBox .k-button, .k-window .k-button.filter_tooltip{
    color: #444448 !important;
    background: none !important;
}


/* grid changes */
.k-grid .k-alt{
    background-color: #F6FAFD;
}
.k-grid .k-state-selected{
    color: #1B99DD !important;
    background-color: #f9f9f9 !important;
}
.left-grid-panel .k-state-selected td:hover{
    color: #1B99DD !important;
    background-color: #ebebeb !important;
}
.k-grid td {
    padding-top: 12px;
    padding-bottom: 12px;
}
.k-grid th.k-header, .k-grid .k-header .k-link{
    background: #e5e5e6 !important;
    color: #444448 !important;
}
.list-result-name{
    font-weight: 300;
}
.commandCell, .k-grid th.k-header.commandCell{
    background: #c7e6f7 !important;
}
.commandCell span.sf-icon, .commandCell span.k-icon, .k-grid-header .sf-icon{
    color: #444448;
}
.k-grid .k-state-selected:hover .k-group-cell, .k-grouping-row td, .k-resize-handle-inner, td.k-group-cell{
    background-color: #F6FAFD;
}
.k-pager-wrap .k-pager-input input, .k-pager-wrap .k-dropdown-wrap{
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid #707070 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #707070;
    font-weight: 400;
}
.k-dropdown-wrap input{
    border: 0 !important;
}
.k-grid .k-pager-wrap{
    background: #fff !important;
}
.k-grouping-header, .k-grid-toolbar{
    background: #8F8F91;
}




/* settings */
#erp-settings .k-tabstrip .k-item{
    width: 200px;
}
.k-tabstrip .k-item.k-state-default{
    background: #ececec;
}
.k-tabstrip .k-item .k-link{
    color: #444448 !important;
}

.ui-draggable-handle{
    cursor: move !important;
}


.dark_mode_switch_container{
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}
.dark_mode_switch_container .k-switch{
    width: 80px;
}



/* login */
body.page-login, body.page-resetPassword {
    background: #F6FAFD;
}


html.html-login, html.html-resetPassword {
    background: #F6FAFD;
}

.passwordResetWrapper{
    padding-top: 0px;
}


.login .errorLabel, body.page-login #login_error_notification{
    font-size: 16px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    padding: 3px 5px;
    display: none;
}

body.page-login .login_tooltip{
    font-size: 16px;
}

body.page-login .middle_section{
    width: 100%;
}

body.page-login .lang_selector {
    background: #444448;
    font-size: 16px;
}

body.page-login .lang_selector li {
    border-left: 1px solid #ffffff;
    font-size: 16px;
}

div#login_wrapper{
    background: #FFFFFF;
    top: 272px;
    max-width: 536px;
    height: 585px;
    margin: auto; /* CENTER the container */
}

.login_logo {
    max-width: 281px;
    margin-bottom: 0px;
    padding-bottom: 20px;
}
body.page-login form#loginForm, body.page-login form#forgotPassword{
    margin: auto; /* CENTER the container */
    width: 220px;
}
body.page-login input[type="text"], body.page-login input[type="password"]{
    border: 0;
    box-shadow: none;
    border-bottom: 1px solid #444448 !important;
    background: none;
    border-radius: 0 !important;
    width: 220px;
    height: 26px;
    text-align: left;
    color: #444448;
    font-size: 16px;
    font-weight: 300;
    -webkit-text-fill-color: #444448 !important;
}

body.page-login input[type="text"]:focus, body.page-login input[type="password"]:focus{
    border-bottom: 2px solid #0099DD !important;
    color: #0099DD;
    -webkit-text-fill-color: #0099DD !important;
}

.login_remember{
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #444448 !important;
}
.login_remember label{
    font-size: 16px;
    color: #444448 !important;
    font-weight: 300;
    width: auto !important;
    padding-right: 10px !important;
}
.login_remember input{
    width: auto !important;
    margin-right: 10px;
    height: 12px;
}

#loginForm div a, #forgotPassword a{
    all: unset;
    font-size: 16px;
    color: #444448 !important;
    font-weight: 300;
    border-bottom: 1px solid #444448;
    cursor: pointer;
}
#loginForm div a:hover, #forgotPassword a:hover{
    all: unset;
    font-size: 16px;
    color: #0099DD !important;
    font-weight: 300;
    border-bottom: 1px solid #0099DD;
    cursor: pointer;
}

#forgotPassword .backToLogin{
    text-align: center;
}

#forgotPassword p, #loginForm p{
    font-size: 16px;
    color: #444448 !important;
    font-weight: 300;
    width: auto !important;
    text-align: center;
}

body.page-login button, body.page-login button:active, body.page-login button:target{
    border: none;
}
body.page-login button{
    background: #444448;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1.8px;
    display: block;
    box-sizing: border-box;
    font: normal normal 300 18px/18px Roboto;
    width: 100%;
    height: 36px;
    border-radius: 5px !important;
    padding: 0;
    margin: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    text-transform: uppercase;
}
body.page-login button:hover {
    background: #389dd6;
    color: #fff;
}
.page-login .unauthorized-content *{
    color: #444448 !important;
}

.mobileMenuToggle{
    float: none;
    position: absolute;
    cursor: pointer;
}
.mobileMenuToggle span{
    background: #1B99DD;
}

.createDashboardButton{
    float: left;
    color: #444448;
    padding-left: 0;
    margin-left: 0;
    margin-top: 9px;
}
.createDashboardButton span{
    margin-right: 3px;
}


@media (max-width:768px) {
    .top_section{
        display: none;
    }

    .left_navigation{
        display: none;
    }
    .mobileMenuOpen .left_navigation{
        display: block;
    }

    .menu_collapser{
        display: none;
    }
    .middle_section{
        width: 100% !important;
    }
    .mobileMenuOpen .middle_section{
        width: calc(100% - 100px) !important;
    }

    .module_content{
        width: 98%;
        margin-left: 1%;
        margin-right: 1%;
    }

    #toggle_left_list{
        float: right;
    }

    .onlyMobileMenu{
        display: block !important;
    }

    .mobileMenuToggle{
        display: block;
    }
    .module_container > .subhead{
        padding-left: 60px;
    }

    .filters-control-bar::before{
        display: none;
    }
    .list-results-search{
        width: 120px;
    }

    div#login_wrapper{
        margin: 0 10px;
    }

    #erp-settings .k-tabstrip .k-item{
        width: inherit;
    }
}