﻿/* ============================================================
   NTTECO BRAND TOKENS
   ============================================================ */
.ntteco-app {
    --ntteco-primary: #e8ddcc;
    --ntteco-dark: #3b2b0e;
    --ntteco-hover: rgba(255, 255, 255, 0.12);
    --ntteco-active: rgba(255, 255, 255, 0.22);
}

    /* ============================================================
   SIDEBAR BACKGROUND (DevExpress Drawer Panel)
   ============================================================ */

    /* DevExpress variable override */
    .ntteco-app .dxbl-drawer-panel {
        --dxbl-drawer-background: linear-gradient(180deg, var(--ntteco-primary), var(--ntteco-dark)) !important;
    }

    /* Apply gradient to all drawer panel layers */
    .ntteco-app .dxbl-drawer-panel,
    .ntteco-app .dxbl-drawer-panel-content,
    .ntteco-app .dxbl-drawer-panel-container {
        background: linear-gradient(180deg, var(--ntteco-primary), var(--ntteco-dark)) !important;
        background-color: transparent !important;
        overflow: visible !important; /* IMPORTANT: allow drawer-body to scroll */
    }

    /* ============================================================
   SIDEBAR INTERNAL LAYERS
   ============================================================ */
    .ntteco-app .dxbl-drawer-header,
    .ntteco-app .dxbl-drawer-body,
    .ntteco-app .dxbl-drawer-footer {
        background-color: transparent !important;
    }

    /* ============================================================
   MENU ITEM STYLING
   ============================================================ */
    .ntteco-app .dxbl-menu-item {
        color: white !important;
    }

        .ntteco-app .dxbl-menu-item.dxbl-state-hover {
            background-color: var(--ntteco-hover) !important;
            color: white !important;
        }

        .ntteco-app .dxbl-menu-item.dxbl-state-selected {
            background-color: var(--ntteco-active) !important;
            color: white !important;
        }

    /* ============================================================
   REMOVE DEVEXPRESS TOP PADDING
   ============================================================ */
    .ntteco-app .dxbl-drawer-content {
        padding-top: 0 !important;
    }

/* ============================================================
   GLOBAL SCROLL MODEL
   ============================================================ */

/* Window never scrolls */
html, body {
    height: 100%;
    overflow: hidden;
}

/* App shell */
.ntteco-page-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Optional top/bottom bars */
.ntteco-topbar {
    flex: 0 0 auto;
    height: 64px;
}

.ntteco-bottombar {
    flex: 0 0 auto;
    height: 48px;
}

/* Middle region (drawer + content) */
.ntteco-main-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* ============================================================
   DEVEXPRESS SCROLL CONTROL
   ============================================================ */

/* Allow content to overflow so .ntteco-body-scroll can scroll */
.ntteco-app .dxbl-drawer,
.ntteco-app .dxbl-drawer-content,
.ntteco-app .dxbl-content {
    overflow: visible !important;
    height: 100%;
    min-height: 0 !important; /* ← keep flex chain shrinkable */
}

/* Drawer panel height */
.ntteco-app .dxbl-drawer-panel {
    height: 100%;
}

/* Sidebar menu scrolls only inside drawer body */
.ntteco-app .dxbl-drawer-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100%;
}

/* ============================================================
   MAIN CONTENT SCROLL CONTAINER
   ============================================================ */
.ntteco-body-scroll {
    flex: 1 1 auto;
    min-height: 0;
    /* height: 100%;  <-- removed to avoid clipping under header */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   SIDEBAR CLICK FIX
   ============================================================ */
#sidebar {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.ntteco-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}


/* Remove DevExpress padding that creates the top gap */
.ntteco-app .dxbl-content {
    padding-top: 0 !important;
}

/* Remove any margin/padding from your header container */
.nav-buttons-container {
    margin: 0 !important;
    padding: 0 !important;
}

#div-ntteco-body {
    margin-top: 0 !important;
}
