.tns-nav {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 50px;
}

.tns-nav>[aria-controls] {
    width: 14px;
    height: 14px;
    padding: 0;
    margin: 0 7px;
    border-radius: 50%;
    background: #2EC5CE;
    border: 0;
}

.tns-nav>.tns-nav-active {
    border: 4px solid #2EC5CE;
    background: transparent;
    width: 20px;
    height: 20px;
    transform: scale(1.1);
}

.tns-outer button[data-action="stop"] {
    display: none;
}

.header-profile figure {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 1px solid rgb(191, 26, 8);
    overflow: hidden;
}

.header-profile figure img {
    object-fit: cover;
}

.dropdown-toggle::after {
    /* display: none; */
}

.dropdown .dropdown-menu .dropdown-item:hover {
    background: transparent;
    color: inherit
}

.dropdown .dropdown-menu {
    min-width: 170px
}

.header-profile p,
.header-profile i {
    transition: .2s all
}

.header-profile:hover p,
.header-profile:hover i {
    /* color: darkblue */
}

.btn-primary {
    background-color: rgb(191, 26, 8) !important;
}

.btn:hover {
    background-color: rgb(191, 26, 8) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #a50c0c !important;
}

.text-primary {
    color: #282F65 !important;
}

.border-primary {
    border-color: #282F65 !important;
}

/* .active {
    color: #fff !important;
} */

.nav .nav-item a.active {
    color: var(--bs-light-primary);
}

.accordion-button {
    color: #282F65 !important;
}

.btn-outline-primary {
    color: #282F65 !important;
}

@media(max-width: 768px) {
    #tns3-mw {
        transform: scale(1.5);
    }
}

.droplist {
    color: rgb(191, 26, 8) !important;
    transition: color 0.3s ease;
}

.droplist:hover {
    color: white !important;
}

.dropdown-padding.active>a {
    color: white !important;
}

/* ========== STYLES ASAL ========== */

nav .burger {
    display: none !important;
}

@media (max-width: 1175px) {
    .nav-x {
        display: none !important;
    }

    nav .custom-gap {
        display: none !important;
    }

    nav .burger {
        display: block !important;
    }
}

.login-btn {
    background-color: rgb(191, 26, 8);
    color: white;
    border-radius: 10px;
    padding: 0px 40px;
    font-weight: bold;
    border: none;
    text-decoration: none;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #a50c0c;
    color: white;
}

/* .polri-search {
    display: flex;
    align-items: center;
    border: 2px solid rgb(191, 26, 8);
    border-radius: 13px;
    overflow: hidden;
    height: 40px;
    background-color: white;
    flex: 1 1 auto;
    max-width: 100%;
}

.polri-input {
    flex: 1;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 500px;
    text-align: center;
}

.polri-button {
    background-color: transparent;
    border: none;
    color: rgb(191, 26, 8);
    padding: 16px 16px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.polri-button:hover {
    background-color: rgba(191, 26, 8, 0.1);
}

.custom-gap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
} */

@media (max-width: 1200px) {
    .polri-input {
        text-align: left;
        font-size: 14px;
        width: 100%;
    }
}

/* ========== RESPONSIVE (Tablet ke bawah) ========== */
@media (max-width: 768px) {
    .custom-gap {
        flex-direction: column;
        align-items: stretch;
    }

    .polri-search,
    .login-btn {
        width: 100%;
    }

    .polri-input {
        text-align: left;
        font-size: 14px;
        width: 100%;
    }

    .polri-button {
        padding: 12px 16px;
        font-size: 16px;
    }
}

.bg-danger {
    background-color: rgb(191, 26, 8) !important;
}

.nav-x a {
    transition: none;
    color: inherit !important;
}

/* #dropdownContainerPeraturan {
  display: none !important;
} */

.dropdown-item {
    background-color: white !important;
}

.page-item.active .page-link {
    background-color: #a50c25 !important;
    --bs-btn-color: #fff;
    --bs-btn-bg: #ce0f2e;
    --bs-btn-border-color: #ce0f2e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #af0d27;
    --bs-btn-hover-border-color: #a50c25;
    --bs-btn-focus-shadow-rgb: 213, 51, 77;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a50c25;
    --bs-btn-active-border-color: #9b0b23;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #ce0f2e;
    --bs-btn-disabled-border-color: #ce0f2e;
}

.page-link:hover {
    background-color: #ce0f2e !important;
    color: #fff !important;
}

.page-link:focus {

    background-color: #ce0f2e !important;
    color: #fff !important;

}

.btn-check:active+.btn.btn-primary,
.btn-check:checked+.btn.btn-primary,
.btn.btn-primary.active,
.btn.btn-primary.show,
.btn.btn-primary:active:not(.btn-active),
.btn.btn-primary:focus:not(.btn-active),
.btn.btn-primary:hover:not(.btn-active),
.show>.btn.btn-primary {
    background-color: #ce0f2e !important;
    color: #fff !important;
}

table.dataTable>thead .sorting_asc::after {
    opacity: 0;
}

table.dataTable>thead .sorting_desc::after {
    opacity: 0;
}

/* Make the nav tabs horizontally scrollable on mobile */
@media (max-width: 768px) {
    .nav {
        position: relative;
    }

    .nav::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
    }

    .nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .nav::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .nav-item {
        flex: 0 0 auto;
        /* Keep fixed width, no shrinking */
        margin-right: 0.75rem;
    }

    .nav::-webkit-scrollbar-thumb {
        background-color: rgba(200, 0, 0, 0.4);
        border-radius: 3px;
    }

    .nav::-webkit-scrollbar-track {
        background: transparent;
    }
}

