﻿body {
    padding-top: 70px; /* Enough space for fixed navbar */
    min-height: 100vh;
    overflow: auto; /* Disable scrolling on desktop */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    background: #f8f9fa; /* Light background */
}


/* Base submenu ====================================================style */


/*
.has-submenu {
    position: relative;
    list-style: none;
}


    .has-submenu .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        border: 1px solid #ccc;
        padding: 0;
        margin: 0;
        min-width: 180px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        z-index: 1000;
    }


    .has-submenu:hover .submenu {
        display: block;
    }




.submenu li {
    list-style: none;
}


    .submenu li a {
        display: block;
        padding: 10px 15px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }


        .submenu li a:hover {
            background: #007bff;
            color: #fff;
        }
*/


/* Base submenu ====================================================style */
/* Base submenu style */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0;
    min-width: 180px;
    list-style: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Show submenu on hover */
.has-submenu:hover > .submenu {
    display: block;
}

/* Submenu items */
.submenu li {
    list-style: none;
    position: relative;
}

    .submenu li a {
        display: block;
        padding: 10px 15px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

        .submenu li a:hover {
            background: #007bff;
            color: #fff;
        }

/* RIGHT-SIDE SUBMENU (nested) */
.submenu .sub-right {
    top: 0;
    left: 99%;
    margin-left: 2px;
    display: none;
}

/* Show right-side submenu on hover */
.nested:hover > .sub-right {
    display: block;
}


.selected-row {
    background-color: #d0ebff !important;
}















/* Mobile — allow scrolling */
@media (max-width: 768px) {
    body {
        overflow-y: auto !important;
        padding-top: 80px;
        align-items: flex-start; /* So content starts below navbar */
    }

    main {
        margin-top: 20px;
    }
}
