.kamar-data-kembali-btn{
    background-color: rgba(246, 247, 244, 1);
    color: rgba(2, 37, 18, 1);
    border-radius: 16px;
}

.kamar-data-thead th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.kamar-data-thead th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.km-btn{
    color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(102, 112, 133, 0.2);
    width: 140px;
    height: 56px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.km-btn.active{
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

.dropdown-menu-km {
    width: 100%;
    min-width: unset;
    border-radius: 24px;
}

.dropdown-item-km{
    box-shadow: 0px 4px 28px 0px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: .3s;
}
.dropdown-item-km:hover{
    background-color: #ECFFCE;
}

.dropdown-toggle-kamar-data{
    font-size: 16px !important;
}

.toggle-close{
    float: right;
    margin-left: -25px;
    margin-top: -40px;
    right: 10px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: none;
}


input:focus + .toggle-close {
display: inline;
}

.search-kamar-data:focus {
border: none !important;
outline: none !important;
box-shadow: none !important;
}

.search-kamar-data {
background-color: #FCFDFC;
padding-left: 1.5rem !important;
}

.kamar-data-dropdown{
    width: 450px;
}

.kamar-data-kembali-mobile{
    display: none;
}

.tab-content-mobile{
    display: none;
}

@media (max-width: 576px) {
    .km-btn{
    color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(102, 112, 133, 0.2);
    border-radius: 8px;
    font-size: 10px;
    }

    .kamar-data-kembali-btn{
        font-size: 10px;
    }

    .kamar-data-kembali-btn img{
        width: 100%;
        height: 10px;
    }

    .kamar-data-konten h2 {
        font-size: 20px;
    }

    .kamar-data-konten button {
        font-size: 12px;
    }

    .kamar-data-dropdown{
        width: 200px;
    }
    .kamar-data-kembali-desktop{
        display: none !important;
    }
    .kamar-data-kembali-mobile{
        display: block;
    }
    .tab-content-mobile{
        display: flex;
    }

    .tab-content-mobile .km-btn{
        font-size: 14px;
        height: 48px;
    }

}

/* Fixed table header and scrollable body */
.kamar-scroll {
  max-height: 100vh; /* adjust as needed */
  overflow-y: auto;
}

.sticky-header-table thead th,
.sticky-header-table thead td {
  position: sticky;
  top: 0;
  z-index: 3; /* above body cells */
  /* Ensure header keeps its background when sticky */
  background-color: #212529; /* fallback for .table-dark */
  color: #fff;
}

/* Keep header row sticky across the full width in some browsers */
.sticky-header-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Optional: nicer scrolling on WebKit */
.kamar-scroll::-webkit-scrollbar {
  width: 8px;
}
.kamar-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}
