﻿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;
}

/* AWMS Layout styles */
.awms-toolbar {
    height: 56px;
    display: flex;
    align-items: center;
}

.menu-button .dx-button {
    height: 40px;
}

.header-title {
    font-weight: 600;
    font-size: 16px;
    margin-left: 8px;
}

.menu-container .dx-treeview-item {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Default (desktop) */
:root {
    --content-px: 12px;
}

.content {
    padding-block: 12px; /* top/bottom unchanged */
    padding-inline: var(--content-px); /* left/right controlled here */
}

/* Phones (≤480px): tighter sides */
@media (max-width: 480px) {
    :root {
        --content-px: 6px;
    }
}

/* Tablets (481–1024px): medium */
@media (min-width: 481px) and (max-width: 1024px) {
    :root {
        --content-px: 10px;
    }
}

#layout-drawer-scrollview.with-footer {
    /* keep your existing bottom padding elsewhere; here we control L/R */
    padding-left: var(--content-px);
    padding-right: var(--content-px);
    box-sizing: border-box;
}

#layout-drawer-scrollview.with-footer .content {
    padding-block: 12px; /* top/bottom stay the same */
    padding-inline: var(--content-px); /* left/right controlled here */
}

/* === Mobile-first edge-to-edge === */
html, body {
    height: 100%;
}

    body.dx-viewport {
        margin: 0;
        background: #fff;
    }

/* Remove side padding everywhere */
#app-shell, .layout-body, .content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content {
    padding: 0 !important;
}

/* Drawer/ScrollView extras sometimes add padding */
.dx-drawer-content,
#layout-drawer-scrollview .dx-scrollview-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Compact toolbar gutters for phones; larger tap targets */
.awms-toolbar .dx-toolbar-items-container {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.awms-toolbar .dx-button {
    min-height: 44px;
}
/* good thumb target */

/* Footer tighter on phones */
.content-footer {
    padding: 8px 6px 12px !important;
}

/* Respect notches while still full width */
#app-shell, .layout-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* (Optional) Slight relax on tablets/desktop */
@media (min-width: 768px) {
    .content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .awms-toolbar .dx-toolbar-items-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Whole row green when ScanQty > 0 */
.row-scanqty-ok {
    background-color: #c6efce !important; /* Excel-style green fill */
    font-weight: 600;
}






