﻿html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

#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;
    line-height: 24px;
}

.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;*/
}


/* Base styles for sidebar list */
.sidebar .item {
    list-style: none;
    padding: 8px 16px;
    cursor: pointer;
}

/* Make main items bold */
.sidebar > .item > a.nav_link {
    font-weight: 600;
}

/* Submenu container */
.submenu {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 5px;
}

    /* Indent submenu items */
    .submenu .item {
        padding-left: 30px; /* ← Indentation to the right */
        transition: padding-left 0.3s ease;
    }

        /* Optional: show vertical bar to the left of submenu */
        .submenu .item::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            background-color: #ccc;
            border-radius: 50%;
            margin-right: 10px;
            vertical-align: middle;
        }

/* Optional hover styles */
.sidebar .item a.nav_link:hover {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* Padding based on nesting level */
.dx-treeview-node[aria-level="1"] .dx-treeview-item-content {
    padding-left: 10px;
}

.dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    padding-left: 25px;
}

.dx-treeview-node[aria-level="3"] .dx-treeview-item-content {
    padding-left: 40px;
}

.dx-treeview-node[aria-level="4"] .dx-treeview-item-content {
    padding-left: 55px;
}

/* Ensure text inside items is left-aligned */
.dx-treeview-item-content {
    display: flex;
    align-items: center;
}

    .dx-treeview-item-content span,
    .dx-treeview-item-content div {
        text-align: left;
        width: 100%;
        padding-left: 5px;
    }

