/*
    DEMO STYLE
*/

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);

}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

#navbar-right {
    margin: 0px 18px;
}

.navbar-brand {
    margin: 0px 7px;
}

.container-navbar {
    position: relative;
    width: calc(100% - 0px);
    height: auto;
    overflow-x: auto;
    overflow-y: auto;
}

/* Header */
.bg-dark.d-flex.justify-content-between.align-items-center {
    background-color: #023d61 !important;
    width: 100%;
    height: 60px;
}

/* Footer */
.container-flouid {
    position: fixed;
    background-color: #0D3A61;
    color: white;
    padding: 14px 14px;
    text-align: right;
    bottom: 0;
    width: 100%;
    height: 50px;
}

.container-navbar {
    height: calc(100vh - 110px);
}

.container-main {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 845px;
    overflow-x: auto;
    overflow-y: auto;
}

.nav-link {
    margin-top: 1px;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}



/* ---------------------------------------------------
    SIDEBAR STYLE

----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    height: calc(100vh - 50px);
    min-width: 350px;
    max-width: 350px;
    color: #ffffff00;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 10px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 0px 0px;

}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 7px 13px;
    display: block;
    color: black;
}

#sidebar ul li a:hover {
    color: #ffffff;
    background: #61c2fdd6;
}

#sidebar .nav-item :hover {
    color: #ffffff;
    background: #61c2fdd6;
}

.nav-item.active a {
    color: #fff !important;
    background: #023d61;
}

.nav-sub.active a {
    color: #fff !important;
    background: #f98d0787 !important;
}

#sidebar ul.active>a,
a[aria-expanded="true"] {
    margin: 0px 0px 1px 0px;
    color: #fff !important;
    background: #023d61;
}

a[data-toggle="collapse"] {
    position: relative;
}

a[data-toggle="collapse2"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
}

ul ul a {

    padding-left: 50px !important;

}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* hidden_marker */
#sidebar li::marker {
    content: none;
}

/* --------------------------------------------------- */


.bg-nav {

    background: linear-gradient(to right, #caebff, #fcfbf1) !important;
}

.alert-info {
    color: #0c5460;
    background-color: #fcfbf1;
    border-color: #d5c62d;
}

.alert-info hr {
    border-top-color: #d5c62d;
}

.text-muted {
    color: #c9d7e3 !important;
}

.btn-collapse {
    color: #fff;
    background-color: #61c2fdd6;
    border-color: #61c2fdd6;
}

.btn-collapse:hover {
    color: #000000;
    background-color: #ffffff;
    border-color: #ffffff;
}

.btn-collapse.focus,
.btn-collapse:focus {
    color: #fff;
    background-color: #023d61;
    border-color: #023d61;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, 0.5);
}
 
#list-data-table {
    position: relative;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 287px);
    overflow-x: auto;
    overflow-y: auto;
}

.ml-5, .mx-5 {
    margin-left: 0rem !important;
}

.breadcrumb {
    background: linear-gradient(to right, #fcfbf1, #caebff) !important;
    height: 40px;
}

.container-flouid {
    position: fixed;
    background-color: #0D3A61;
    color: white;
    padding: 14px 14px;
    text-align: right;
    bottom: 0;
    width: 100%;
    height: 50px;
}

#main_content {
    flex-grow: 1;
    flex-basis: auto;
    overflow: auto;
}

/* --------------------------------------------------- */

/*
#sidebarCollapse{border:none}
#sidebarCollapse:hover{background:#343a40}
#sidebarCollapse:focus{background:#343a40;box-shadow:none}
*/

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
#menu-toggle {
    display: none;
}

/* ปรับให้ปุ่มแสดงเมื่อจอเล็ก */
@media screen and (max-width: 1000px) {

    #list-data-table {
        position: relative;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 485px);
        overflow-x: auto;
        overflow-y: auto;
    }

    #sidebarCollapse {
        display: none;
    }

    #gis-container {
        min-height: calc(100vh - 245px);
        overflow: auto;
    }

    #menu-toggle {
        display: block;
    }

    #menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100;
    }

    #menu-toggle-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #0d3a61;
        padding: 30px 0;
        z-index: 1000;
    }

    #menu-toggle {
        border: none;
        background: transparent;
        color: white;
        font-size: 19px;
        cursor: pointer;
    }

    #menu-toggle i {
        margin: 8px;
    }

    #sidebar {
        height: 100vh;
        min-width: 450px;
        max-width: 450px;
        color: #ffffff00;
        transition: all 0.3s;

        margin-left: -350px;
        margin-left: -100px;
        padding-left: 100px;
    }

    #sidebar {
        position: fixed;
        left: -349px;
        background-color: #000000;
        color: #fff;
        overflow-y: auto;
        transition: transform 0.5s ease-in-out;
        transform: translateX(-100%);
        z-index: 2000;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    }

    #sidebar.active {
        transform: translateX(0);
        margin-left: 250px
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 1100;
    }

    .overlay.active {
        display: block;
    }

    /* .body-content {
        position: relative;
        height: -webkit-calc(100vh - var(--footer-height));
        height: -moz-calc(100vh - var(--footer-height));
        height: calc(100vh - var(--footer-height));
        padding: 4px 0;
        padding-top: 50px;
        padding-bottom: 64px;
        overflow-x: hidden;
        overflow-y: auto;
    } */

    .breadcrumb {
        background: linear-gradient(to right, #fcfbf1, #caebff) !important;
        margin-top: 65px;
    }

    .alert-info {
        color: #0c5460;
        background-color: #fcfbf1;
        border-color: #d5c62d;
        margin-top: 50px;
        height: 80vh;
    }

    .container-flouid {
        position: fixed;
        background-color: #0D3A61;
        color: white;
        padding: 14px 14px;
        text-align: right;
        bottom: 0;
        width: 100%;
        height: 70px;
    }

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    .container-navbar {
        height: calc(100vh - 61px);
    }
}

.inner {
    max-height: 288px;
    overflow-y: auto;
    min-height: 98px;
}