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: 5px;
}

.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: 1px 1px;
    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 {
    font-weight: normal;
}

.menu-container .dx-treeview .bold {
    font-weight: bold;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    padding: 0 30px;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="3"] .dx-treeview-item-content {
    padding: 0 60px;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="4"] .dx-treeview-item-content {
    padding: 0 90px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.menu-item-text {
    flex-grow: 1;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-item-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    flex-shrink: 0;
}

.login-form {
    width: 300px;
    margin: 50px auto;
}

#user-info {
    display: flex; /* Enables Flexbox */
    justify-content: space-between; /* Ensures space between the span and button */
    align-items: center; /* Vertically centers the items */
    width: 100%; /* Make sure the container takes full width of its parent */
}

#user-info .login {
    flex: 0 0 75%; /* 75% of the container's width */
    text-align: center; /* Centers the username text within its area */
    overflow: hidden; /* Ensures the text doesn't overflow */
    white-space: nowrap; /* Prevents the username from breaking into multiple lines */
    font-weight: bold;
    font-size: 17px;
    color: #336699;
}
#user-info .logout-button {
    flex: 0 0 25%; /* 25% of the container's width */
    text-align: right; /* Aligns the button to the right */
}

.functionality-checkboxes {
    padding: 20px;
}

.functionality-checkboxes .functionality-field {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.functionality-checkboxes .functionality-checkbox {
    margin-right: 10px;
}

.functionality-checkboxes .functionality-checkbox .dx-checkbox {
    margin: 0 !important;
}

.functionality-checkboxes .functionality-label {
    margin-left: 10px;
    font-weight: normal;
    flex: 1; /* Take remaining space */
}

.image-preview img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

.image-actions, .field-actions {
    display: flex;
    gap: 5px;
}

