﻿/* =================================================================
   PAL INVENTORY — treegrid-fix.css  v2
   Matches the premium preview design.
   BundleConfig order (last two entries in both bundles):
       "~/assets/app/css/comfort.css",
       "~/assets/app/css/treegrid-fix.css"
   ================================================================= */



/* =================================================================
   14. SCROLL HEIGHT FIX — let Syncfusion manage its own scroll
   ================================================================= */
.col-lg-5 .col-lg-12[style*="600px"] {
    overflow: hidden !important;
}

#TreeGrid .e-gridcontent,
#TreeGrid2 .e-gridcontent {
    overflow-y: auto !important;
}


/* =================================================================
   SCROLL FIX — Syncfusion internal scroll
   ================================================================= */

.col-lg-5 .col-lg-12[style*="height: 600px"],
.col-lg-5 .col-lg-12[style*="600px"] {
    height: 600px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

#TreeGrid,
#TreeGrid2 {
    display: flex !important;
    flex-direction: column !important;
    height: 600px !important;
    max-height: 600px !important;
    overflow: hidden !important;
}

    #TreeGrid .e-gridcontent,
    #TreeGrid2 .e-gridcontent {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important;
    }

        #TreeGrid .e-gridcontent > .e-content,
        #TreeGrid2 .e-gridcontent > .e-content {
            height: auto !important;
            max-height: 480px !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }
