#main_content {
    flex-grow: 1;
    flex-basis: auto;
    overflow: auto;
}

.container-navbar {
    position: relative;
    width: 100%;
    height: calc(100vh - 280px);
    overflow-x: auto;
    overflow-y: auto;
    /* background-color: #cbe6fe9e !important; */
    background: linear-gradient(to right, #cde7fe, #fcf6d7) !important;
}

@keyframes animatedBackground {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container-flouid {
    position: fixed;
    /* background: linear-gradient(to right,#10346b,#cce6fe) !important; */
    background-color: #02305c;
    color: white;
    padding: 14px 14px;
    text-align: right;
    bottom: 0;
    width: 100%;
}


.nav-link {
    margin-top: 1px;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* hidden_marker */
#sidebar li::marker {
    content: none;
}

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;
}

.alert-info {
    color: #5f5f5f;
    background: linear-gradient(to right, #cbe6ff, #fdf6d6) !important;
    border: none;
}

.alert-info hr {
    border-top-color: #9bcefb;
}
/* 
.breadcrumb {
    background: linear-gradient(to right, #c3e3ff, #fdf6d6) !important;
}
 */
 
.breadcrumb-item.active {
    color: #0D4E9C;
}

.text-muted {
    color: #959595 !important;
}

a {
    color: #6c7581;
    text-decoration: none;
    background-color: transparent;
}

/* ----------------------------------------------------------------------------------------------------------------------------
    SIDEBAR STYLE
---------------------------------------------------------------------------------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* .bg-nav {
    background: #05295b;
} */

#sidebar {
    height: 100vh;
    min-width: 330px;
    max-width: 330px;
    color: #ffffff00;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar ul.components {
    padding: 0px 0px;

}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 8px 13px;
    display: block;
    color: rgb(0, 0, 0);
}

#sidebar ul li a:hover {
    color: #000000;
    background-color: #cfcc997a !important;
}

.nav-item.active a {
    color: #ffffff !important;
    background: linear-gradient(to right, #8fc0fb, #02305c) !important;

}

.nav-sub.active a {
    color: #ffffff !important;
    background: linear-gradient(to right, #bdedff, #1f71bf) !important;
}

#sidebar ul.active>a,
a[aria-expanded="true"] {
    margin: 0px 0px 1px 0px;
    color: #ffffff !important;
    background: linear-gradient(to right, #8fc0fb, #02305c) !important;
}

/* ----------------------------------------------------------------------------------------------------------------------------
    END SIDEBAR STYLE
---------------------------------------------------------------------------------------------------------------------------- */


/* ---------------------------------------------------------- logo ---------------------------------------------------------- */

.bg-header {
    position: relative;
    background: linear-gradient(to right, #cbe6ff, #2e81d3) !important;
    height: 167px;
    overflow: hidden;
}

.bg-header::before,
.bg-header::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 70%);
    filter: blur(10px);
    pointer-events: none;
    animation: shineLoop 6s linear infinite;
}

.bg-header::before {
    left: 0;
}

.bg-header::after {
    left: 100%;
}

@keyframes shineLoop {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.header-logo {
    font-size: 44px;
    color: #ffffff;
    background-color: #000000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
}


.header-title {
    position: absolute;
    top: 0;
    margin-top: 110px;
    font-family: Prompt, "Segoe UI", Tahoma, Geneva, Verdana, sans-seri;
    font-weight: 500;
    color: #fff;
    font-size: 18px;
}

.header-hr {
    border: 1px solid white;
    margin-top: 0px;
    margin-bottom: -1px;
}

/* --------------------------------------------------------- End logo --------------------------------------------------------- */





/* --------------------------------------------------------- bg lookup header --------------------------------------------------------- */

.bg-info {
    background: linear-gradient(to right, #cbe6ff, #fdf6d6) !important;
}

.inner {
    max-height: 160px;
    overflow-y: auto;
    min-height: 98px;
}

/* ------------------------------------------------------- End bg lookup header ------------------------------------------------------- */






/* ------------------------------- tooltip (download-button/change-password-button/logout-button)-------------------------------*/

#navbar-right {
    margin: 0px 18px;
}

.bg-subheader {
    background-color: #02305C !important;
    
    height: 60px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 95px;
    background-color: #7ba1d187;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    bottom: -41px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ---------------------------------------------------------- End tooltip ----------------------------------------------------------*/





/* ---------------------------------------------------------- btn_list_menu ----------------------------------------------------------*/

#list-data-table {
    position: relative;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 305px);
    overflow-x: auto;
    overflow-y: auto;
}

.bg-success {
    background-color: #28a745 !important;
    border: #28a745 !important;
}

.bg-secondary {
    background-color: #cbe6fe !important;
}

.btn-secondary {
    color: #fff;
    background-color: #bda355;
    border-color: #bda355;
}

.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show>.btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: #bda355;
    border-color: #bda355;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #bda355;
    border-color: #bda355;
}

.page-item.active .page-link {
    background-color: #bda355;
    border-color: #bda355;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #0f4a89;
}

.dropdown-item:hover,
.dropdown-item:hover {
    color: #000000;
    text-decoration: none;
    background-color: #cfcc997a;
}

.bg-table-shadow {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.bg_btn_select_all {
    background-color: #bda355 !important;
    color: #ffffff !important;
}

/* .head_card {
    background-color: #212529 !important;
    color: #ffffff !important;
    border: none !important;
} */

#search-normal-button {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

#search-normal-button i {
    color: #ffffff !important;
}

#search-normal-refresh-button {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

#search-normal-refresh-button i {
    color: #ffffff !important;
}

#advance-search-button {
    color: #ffffff;
    background-color: #ffc107;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#sort-button {
    color: #ffffff;
    background-color: #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#add-button {
    color: #ffffff;
    background-color: #28a745;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#print-button {
    color: #ffffff;
    background-color: #17a2b8;
    border-radius: 50%;
    width: 41px;
    height: 40px;
}

#export-button {
    color: #ffffff;
    background-color: #dc3545;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#advance-search-button:hover,
#sort-button:hover,
#add-button:hover,
#print-button:hover,
#export-button:hover {
    transform: scale(1.1);
}

#advance-search-button:hover,
#sort-button:hover,
#add-button:hover,
#print-button:hover,
#export-button:hover {
    color: #000000;
}

#search-normal-button:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
}

#search-normal-refresh-button:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

#viewlist-select-button:hover,
#viewcard-select-button:hover {
    background-color: #f7e3a8 !important;
}

#viewlist-select-button {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

#viewcard-select-button {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.btn-list-active {
    color: #ffffff !important;
    background-color: #bd9724 !important;
    border-color: #bd9724 !important;
}

.btn-list {
    color: #bd9724 !important;
    border-color: #bd9724 !important;
}

.btn-card-active {
    color: #ffffff !important;
    background-color: #bd9724 !important;
    border-color: #bd9724 !important;
}

.btn-card {
    color: #bd9724 !important;
    border-color: #bd9724 !important;
}


/* ---------------------------------------------------------- End btn_list_menu ----------------------------------------------------------*/







/* ------------------------------------------------------------- button ------------------------------------------------------------ */

.btn-header {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-header {
    transition: all 0.3s ease;
}

.btn-header:hover {
    transform: scale(1.1);
    border-radius: 8px;
    /* เพิ่มความโค้งมน */
}

button.btn-header {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-collapse {
    margin: 0px 0px 0px 9px;
    color: #fff;
    background: linear-gradient(to right, #7cc2ff, #e7d08c) !important;
    border-color: #10346b;
}

.btn-collapse:hover {
    color: #ffffff;
    background: linear-gradient(to right, #e7d08c, #7cc2ff) !important;
}

.btn-collapse.focus,
.btn-collapse:focus {
    color: #fff;
    background-color: #7cc2ff;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, 0.5);
}

#change-password-button,
#logout-button {
    outline: none;
}

.change-password-button {
    margin-right: 2px;
}

.download-button {
    margin-right: -1px;
}

/* ---------------------------------------------------------- End button ------------------------------------------------------------ */





/* --------------------------------------------------------- pagination_view --------------------------------------------------------- */

.ml-5,
.mx-5 {
    margin-left: 0rem !important;
}

/* --------------------------------------------------------- End pagination_view --------------------------------------------------------- */





/* --------------------------------------------------------- administrator/groups --------------------------------------------------------- */

.template-dark {
    width: 100%;
    margin-bottom: 1rem;
    color: #000000;
}

/* -------------------------------------------------------- End administrator/groups -------------------------------------------------------- */





/* ------------------------------------------------------------- menu_mobile ------------------------------------------------------------- */
#menu-toggle {
    display: none;
}

.table-responsive-lg {
    margin-top: 0;
}

@media (max-width: 786px) {

    .table-responsive-lg {
        margin-top: -4px;
    }

    #list-data-table {
        position: relative;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 510px);
        overflow-x: auto;
        overflow-y: auto;
    }



    /* ---- toolbars_view ---- */

    #toolbars-tools {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 8vh;
        margin: 0px 0px -23px 0px;
    }

    /* ---- End toolbars_view ---- */

    #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: #05295b;
        padding: 30px 0;
        z-index: 1000;
    }

    #menu-toggle {
        border: none;
        background: transparent;
        color: white;
        font-size: 19px;
        cursor: pointer;
    }

    #menu-toggle i {
        margin: 8px;
    }

    .breadcrumb {
        /* background: linear-gradient(to right, #c3e3ff, #fdf6d6) !important; */
        margin-top: 70px;
        position: relative;
        z-index: 10;
    }

    .alert-info {
        color: #5f5f5f;
        background: linear-gradient(to right, #cbe6ff, #fdf6d6) !important;
        border: none;
        margin-top: 74px;
    }

    #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: #05295b;
        color: #fff;
        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
    }

    .container-navbar {
        position: relative;
        width: 100%;
        margin-top: 2px;
        height: calc(100vh - 284px);
        overflow-x: auto;
        overflow-y: auto;
        /* background-color: #cbe6fe9e !important; */
        background: linear-gradient(to right, #cde7fe, #fcf6d7) !important;

    }

    .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;
    }

    #sidebarCollapse_1 {
        display: none;
    }

    #div-sort-data,
    #div-advance-search {
        margin-top: 33px;
    }

    #advance-search-button,
    #sort-button,
    #add-button,
    #print-button,
    #export-button {
        margin: 0px 3px;
    }
}

/* ------------------------------------------------------------- End menu_mobile ------------------------------------------------------------- */