body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

.content {
    overflow: auto;
}

.content.no-navigation {
    margin-left: 15px;
    margin-right: 15px;
}

.home-views-caption {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex; 
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1505;
}

.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

.dx-card.wide-card {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    border-left: 0;
}

.with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content {
    height: 100%;
}

.with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content > .dx-scrollview-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.layout-body .menu-container {
    height: 100%;
    width: 250px;
    background-color: #fff;
}

.layout-body .content {
    flex-grow: 1;
    height: 100%;
    line-height: 1.5;
    margin: 20px 40px;
}

.layout-body .content h2 {
    font-size: 32px;
    line-height: 40px;
}

.layout-body .content-block {
    margin: 0 0 20px;
}

.layout-body .content-footer {
    display: block;
    color: rgba(0,0,0,.609);
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 20px;
    padding-bottom: 24px;
    margin: 0 40px;
}

.layout-body .responsive-paddings {
    padding: 20px;
}

.layout-body-hidden {
    visibility: hidden;
}

#layout-drawer.dx-drawer-shrink .dx-drawer-panel-content {
    box-shadow: rgba(0, 0, 0, 0.06) 0px 4px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 2px 0px;
}

@media screen and (max-width: 600px) {
    .layout-body .content {
        margin: 20px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

.menu-container .dx-widget {
    font-weight: 700;
    font-size: 14px;
    font-family: Roboto,RobotoFallback,Helvetica,Arial,sans-serif;
}

.menu-container .dx-treeview {
    white-space: nowrap;
}

.menu-container .dx-treeview .dx-treeview-item {
    padding-left: 0;
    flex-direction: row-reverse;
    border-radius: 0;
}

.menu-container .dx-treeview .dx-treeview-item .dx-icon {
    width: 60px !important;
    margin: 0 !important;
}

.menu-container .dx-treeview .dx-treeview-node {
    padding: 0 0 !important;
}

.menu-container .dx-treeview .dx-treeview-toggle-item-visibility {
    right: 10px;
    left: auto;
}

.menu-container .dx-treeview .dx-rtl .dx-treeview-toggle-item-visibility {
    left: 10px;
    right: auto;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="1"] {
    font-weight: bold;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    font-weight: normal;
    padding: 0 60px;
}
.loan-menu {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #333;
    position: relative;
    z-index: 5000
}

.loan-menu-home, .loan-menu-button {
    display: block;
    background: #333 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 10px 18px !important;
    text-decoration: none !important;
    font-family: Arial,sans-serif;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer
}

    .loan-menu-home:hover, .loan-menu-button:hover, .loan-menu-dropdown:hover > .loan-menu-button {
        background: #555 !important;
        color: #fff !important
    }

.loan-menu-dropdown {
    position: relative !important;
    display: block !important
}

.loan-submenu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px !important;
    background: #fff !important;
    border: 1px solid #aaa !important;
    box-shadow: 0 4px 8px rgba(0,0,0,.3) !important;
    z-index: 99999 !important
}

.loan-menu-dropdown:hover > .loan-submenu {
    display: block !important
}

.loan-submenu a {
    display: block !important;
    padding: 9px 15px !important;
    background: #fff !important;
    color: #222 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-family: Arial,sans-serif;
    font-size: 14px
}

    .loan-submenu a:hover {
        background: #e8e8e8 !important;
        color: #000 !important
    }

.headerPane {
    background: #f2f2f2;
    font-family: Tahoma,Arial,sans-serif
}

.headerTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    box-sizing: border-box
}

.templateTitle {
    margin: 0 !important;
    float: none !important
}

    .templateTitle a {
        color: #222 !important;
        text-decoration: none !important;
        font-size: 24px !important;
        font-weight: 400 !important
    }

.loginControl {
    margin: 0 !important;
    float: none !important;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222
}

    .loginControl a {
        color: #222 !important;
        text-decoration: none !important;
        border-bottom: 1px dashed #777
    }

.logout-link {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: #222 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #777 !important;
    cursor: pointer !important;
    font: inherit !important
}

.headerMenu {
    clear: both;
    margin: 0 !important
}

.accountHeader {
    margin-bottom: 18px
}

    .accountHeader h2 {
        margin-bottom: 5px
    }

    .accountHeader p {
        margin-top: 0
    }

.form-group {
    margin-bottom: 12px
}

    .form-group label {
        display: block;
        margin-bottom: 4px
    }

.password-box {
    width: 200px;
    max-width: 200px
}

/* =========================================================
   BOOTSTRAP LINK BUTTON TEXT FIX

   Prevent normal site hyperlink styling from overriding
   Bootstrap button text colours.
   ========================================================= */

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:focus,
a.btn-secondary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.btn-success,
a.btn-success:link,
a.btn-success:visited,
a.btn-success:hover,
a.btn-success:focus,
a.btn-success:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.btn-danger,
a.btn-danger:link,
a.btn-danger:visited,
a.btn-danger:hover,
a.btn-danger:focus,
a.btn-danger:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =========================================================
   FORCE CORRECT TEXT COLOR FOR BUTTON LINKS
   ========================================================= */

body a.btn.btn-primary,
body a.btn.btn-primary:link,
body a.btn.btn-primary:visited,
body a.btn.btn-primary:hover,
body a.btn.btn-primary:focus,
body a.btn.btn-primary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

body a.btn.btn-secondary,
body a.btn.btn-secondary:link,
body a.btn.btn-secondary:visited,
body a.btn.btn-secondary:hover,
body a.btn.btn-secondary:focus,
body a.btn.btn-secondary:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

body a.btn.btn-success,
body a.btn.btn-success:link,
body a.btn.btn-success:visited,
body a.btn.btn-success:hover,
body a.btn.btn-success:focus,
body a.btn.btn-success:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

body a.btn.btn-danger,
body a.btn.btn-danger:link,
body a.btn.btn-danger:visited,
body a.btn.btn-danger:hover,
body a.btn.btn-danger:focus,
body a.btn.btn-danger:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.legacy-loan-btn,
a.legacy-loan-btn:link,
a.legacy-loan-btn:visited,
a.legacy-loan-btn:hover,
a.legacy-loan-btn:focus,
a.legacy-loan-btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}