.page-link-custom {
    color: #9e9e9e !important;
}

.page-link-custom:hover {
    cursor: pointer;
    color: #009EF7 !important;
}

.form-control~label.input-group-text {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control.is-invalid~label.input-group-text {
    border-color: var(--bs-danger);
}

.select2-container--bootstrap5.select2-container--disabled .form-select {
    cursor: default;
}

.select2-container--bootstrap5.select2-container--disabled .form-select .select2-selection__choice button {
    display: none !important;
}

.select2-container--bootstrap5.select2-container--disabled .form-select .select2-selection__choice .select2-selection__choice__display {
    margin-left: 0 !important;
}

.form-control:disabled~label {
    cursor: default;
}

.form-select.is-invalid~.select2-container .select2-selection--single:first-child {
    border-color: var(--bs-danger);
}

.select2-container--bootstrap5.select2-container--disabled .form-select .select2-selection__placeholder {
    visibility: hidden;
}

input:disabled::placeholder {
    visibility: hidden;
}

.daterangepicker .ranges ul {
    width: 190px;
}

.card-toolbar button.btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.card-toolbar button.btn>i {
    transition: all 0.15s ease-in-out;
}



::-webkit-scrollbar {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    width: 10px !important;
    height: 10px !important;
    /* Width of the entire scrollbar */
}

::-webkit-scrollbar-track {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    background: #f1f1f1;
    /* Color of the scrollbar track */
}

::-webkit-scrollbar-thumb {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    background-color: #c5c5c5 !important;
    border-radius: 10px;
    /* Rounded corners */
}


::-webkit-scrollbar-thumb:hover {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    background: #c5c5c5 !important;
}

.table-responsive {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
}

.table-responsive:hover {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
}

html,
body {
    scrollbar-width: auto !important;
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */

}

[data-bs-theme=light] {
    --bs-menu-link-color-active: #ffffff;
    --bs-menu-link-bg-color-active: #009EF7;
    --bs-menu-link-color: #ffffff;
    --bs-menu-link-bg-color: #009EF7;
    --bs-app-toolbar-bg: linear-gradient(180deg, #009EF7 0%, #217AFF 100%);
    --bs-text-primary: #009EF7;
    --bs-menu-link-bg-light-color: #F1F4FF;
    --bs-primary: #009EF7 !important;
    --bs-menu-link-color-hover: #009EF7;
    /* NEW THEME */
    --bs-component-hover-color: #009EF7;
    --bs-component-active-bg: #009EF7;
    --bs-component-checked-bg: #009EF7;
    --bs-component-hover-bg: #eff3ff;
    --bs-primary-active: #009EF7;
}

.link-primary {
    color: #009EF7 !important;
}

.link-primary:hover {
    color: #3b6df5 !important;
}


.menu-link-top {
    background-color: var(--bs-menu-link-bg-light-color) !important;
}

.menu-link-top .menu-title {
    color: #009EF7 !important;
}

.menu-link-top:hover {
    background-color: #009EF7 !important;
}

.menu-link-top:hover .menu-title {
    color: #ffffff !important;
}

.menu-link-top:hover .menu-arrow:after {
    background-color: #ffffff !important;
}

.menu-link-top.active {
    background-color: #009EF7 !important;
}

.menu-link-top.active .menu-title {
    color: #ffffff !important;
}


.menu-link-top {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
    padding: .65rem 1rem !important;
    transition: none !important;
    outline: 0 !important;
}

.menu-link-top.active .menu-arrow:after {
    background-color: #ffffff !important;
}

.menu-sub .menu-item .menu-link:hover {
    background-color: #eff3ff !important;
}


.container-xxl {
    width: 100% !important;
    max-width: 100% !important;
}

.navbar-custom {
    background-color: #000;
    /* black background */
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    height: 40px;
}

.nav-link.active {
    color: #00ff00 !important;
    /* green for active link */
}

.nav-link {
    color: #ffffff !important;
}

/* white curved background behind logo */
nav .container-fluid::before {
    background-color: #ffffff !important;
    content: "";
    position: absolute;
    top: 0;
    height: 58px;
    bottom: 0;
    left: 0;
    width: 590px;
    z-index: 0;
    border-radius: 0px 0px 85px 0px;
}

a.navbar-brand {
    z-index: 1;
    position: relative;
}

a.navbar-brand img {
    height: 40px !important;
}

@media (max-width: 1272px) {
    nav .container-fluid::before {
        background-color: #ffffff !important;
        content: "";
        position: absolute;
        top: 0;
        height: 42px;
        bottom: 0;
        left: 0;
        width: 320px;
        z-index: 0;
        border-radius: 0 0 85px 0;
    }

    a.navbar-brand img {
        height: 18px !important;
    }
}

@media (max-width: 991px) {

    .navbar-custom {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .navbar-expand-lg .navbar-collapse {
        margin-top: 26px;
        margin-bottom: 26px;
    }

    nav .container-fluid::before {
        width: 280px;
        height: 36px;
    }

    a.navbar-brand img {
        height: 17px !important;
    }
}

@media (max-width: 700px) {
    nav .container-fluid::before {
        width: 260px;
        height: 35px;
    }

    a.navbar-brand img {
        height: 16px !important;
    }
}

.bg-rmutk {
    background-color: rgb(103, 176, 69);
}

body {
    font-family: "Prompt", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.card-sdg {
    width: 275px;
    height: 300px;
    border-radius: 0px 0px 16px 16px;
    margin-left: 20px;
    margin-top: 20px;
}

.card-sdg-pr {
    width: 450px;
    height: 780px;
    margin-top: 64px;
    flex-shrink: 0;
    overflow: hidden;
    /* ซ่อนภาพที่เกิน */
    position: relative;
}

.card-sdg-pr img {
    width: 100%;
    /* ปรับให้พอดีกับ card */
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.card-sdg-pr:hover img {
    transform: scale(1.1);
    /* ซูมในกรอบ */
}


.sdg_goal_number:hover {
    position: relative !important;
    top: -2.5px !important;
    transition: 20s ease !important;
    cursor: pointer;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* จัดกึ่งกลางในจอมือถือ */
@media (max-width: 991.98px) {

    /* Bootstrap breakpoint < xl */
    .sticky-sidebar {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        /* หรือ 100% แล้วแต่ดีไซน์ */
    }
}

.clamp-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 2);
    /* ให้สูงเท่ากับ 3 บรรทัด */
}

.clamp-6-lines {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 6);
    /* ให้สูงเท่ากับ 6 บรรทัด */
}



.is-invalid~.invalid-feedback,
.is-invalid~.invalid-tooltip {
    display: block;
}

.is-invalid {
    border-color: #f1416c !important;
    /* padding-right: calc(1.5em + 1.55rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f1416c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f1416c' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.3875rem) center !important;
  background-size: calc(0.75em + 0.775rem) calc(0.75em + 0.775rem) !important; */
}

.was-validated .form-select:invalid:not([multiple]):not([size]),
.was-validated .form-select:invalid:not([multiple])[size="1"],
.form-select.is-invalid:not([multiple]):not([size]),
.form-select.is-invalid:not([multiple])[size="1"] {
    padding-right: 5.5rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237E8299' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f1416c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f1416c' stroke='none'/%3e%3c/svg%3e") !important;
    background-position: right 1rem center, center right 3rem !important;
    background-size: 16px 12px, calc(0.75em + 0.775rem) calc(0.75em + 0.775rem) !important;
    border: 1px solid #f1416c !important;
}

.is-invalid:focus {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.25rem rgba(241, 65, 108, 0.25) !important;
}

.fv-row.fv-plugins-bootstrap5-row-invalid:not(.fv-table) .select2-container .select2-selection {
    border: 1px solid #f1416c !important;
}

.form-control.is-invalid {
    border-color: #f1416c !important;
    border: 1px solid #f1416c !important;
}

.form-control.is-invalid:focus {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.25rem rgba(241, 65, 108, 0.25) !important;
}

.form-control.is-invalid {
    border-color: #f1416c !important;
}

.is-invalid:checked {
    background-color: #f1416c !important;
}

is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(241, 65, 108, 0.25) !important;
}

.is-invalid~.form-check-label {
    color: #f1416c !important;
}



.is-invalid {
    /* z-index: 2!important; */
}

.is-invalid:focus {
    /* z-index: 3!important; */
}

.select2-container--bootstrap5 .select2-selection--single[aria-disabled="true"] {
    background-color: #dee3e7 !important;
    border: 0px solid red !important;
    /* box-shadow: inherit !important; */
    cursor: default;
}

.select2-container--bootstrap5 .select2-selection--multiple[aria-disabled="true"] {
    background-color: #dee3e7 !important;
    border: 0px solid red !important;
}

.select2-container--bootstrap5 .select2-selection--multiple[aria-disabled="true"] .select2-selection__choice__remove {
    display: none !important;
}

.select2-container--bootstrap5 .select2-selection--multiple[aria-disabled="true"] .select2-selection__choice__display {
    margin-left: 0 !important;
}

.select2-container .select2-selection--multiple[aria-disabled="true"] {
    cursor: default;
}


.page-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

.page-loaded .page-loader {
    display: none !important;
}


.bt-header {
    border-top: 3px solid #28a745 !important;
}