/* Nav Bar */
.navbar-nav .nav-link {
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* HOVER MENU UTAMA SAJA */
.navbar-nav > .nav-item > .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* MASTER PARENT HOVER TIDAK NGARUH SUBMENU */
.navbar-nav .submenu {
  padding-left: 15px;
}

.submenu .nav-link {
    color: #000 !important;
    background: transparent !important;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

/* Hover */
.submenu .nav-link:hover {
    background: #d4d4d4 !important;
    color: #000000 !important;
}


/* Active hanya item yang sedang dipilih */
.submenu .nav-link.active {
    background-color: #344767;
    color: #fff !important;
    font-weight: 600;
}

/* Icon mengikuti warna active */
.submenu .nav-link.active i {
    color: #fff;
}
.submenu {
  display: none;
}

.submenu.show {
  display: block;
}

.fa-caret-down.rotate {
  transform: rotate(180deg);
  transition: 0.3s ease;
}



/* -N-------------------------------------------------------------------Stat Table ------------------------------------------------------------- */
.table-responsive-v2 {

    flex: 1 1 auto;
    overflow-y: auto; /* scroll jika isi banyak */
    overflow-x: auto;
}

.table-v2 thead {

    color: #fff;
    position: sticky;   /* tetap di atas saat scroll */
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* efek timbul */
}

.table-v2 thead th {
    padding: 0.75rem;
    text-transform: uppercase;
    font-weight: 750;
    font-size: 12px;
}

table-v2 tbody tr td {
    height: 20px;         /* tinggi konsisten */
    vertical-align: middle;
    padding: 20px;         /* sama seperti baris yang ada data */
}

.table-v2 tfoot {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #f8f9fa; /* mirip bg-light */
  box-shadow: 0 -2px 5px rgba(0,0,0,0.15); /* efek timbul dari atas */
}

/* ------------------------------------------------------------------------ End Table -------------------------------------------------------------- */


/* -N----------------------------------------------------------------------Stat Card ---------------------------------------------------------------- */
.card-v2 {
    display: flex;
    flex-direction: column;
    height: 100%; /* penuh sesuai parent */
    background: #ffffff;
}

.card-header-v2 {
    flex: 0 0 auto; /* tinggi otomatis, min 10% */
    padding: 1rem;
    background: #f8f9fa;
    color: #fff;
    border:none;
}

.card-body-v2 {
    flex: 1 1 auto; /* body fleksibel sesuai sisa */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-footer-v2 {
    flex: 0 0 auto; /* tinggi otomatis, sekitar 10% */
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    border:none;
}



/* ---------------------------------------------------------------------- Stat Modal -------------------------------------------------------------- */
/* ---------------------------------------------------------------------- MODAL -------------------------------------------------------------- */

/* OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1055;
}

/* HANYA UNTUK MODAL */
.modal-overlay.show {
    display: flex;
    animation: fadeIn .3s ease-in-out;
}

/* MODAL BOX */
.modal-box {
    background: #fff;
    color: #212529;

    position: relative;

    display: flex;
    flex-direction: column;

    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);

    overflow: hidden;
}

/* ========================= */
/* SIZE */
/* ========================= */

.modal-large{
    width:95%;
    max-height:80vh;
}

.modal-regis{
    width:80%;
    height:80vh;
}

.modal-medium{
    width:60%;
    max-height:75vh;
}

.modal-small{
    width:40%;
    max-height:60vh;
}

.modal-xsmall{
    width:20%;
    max-height:40vh;
}

.modal-list{
    width:30%;
    height:80vh;
}

/* ========================= */
/* HEADER */
/* ========================= */

.modal-header{
    display:flex;
    flex-direction:column;
    align-items:center;

    padding:15px 20px;
}

.modal-header h5{
    margin:0;
    color:var(--bs-primary);
    letter-spacing:1px;
}

.modal-header h6{
    margin-top:5px;
    font-size:.9rem;
    opacity:.8;
}

/* ========================= */
/* BODY */
/* ========================= */

.extra-header,
.modal-body,
.modal-body thead th{
    font-size:clamp(.65rem,.8vw,1rem);
}

.modal-body{
    flex:1;

    overflow-y:auto;

    padding:15px 30px;

    background:#fff;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.modal-footer{
    position:sticky;
    bottom:0;

    display:flex;
    align-items:center;
    justify-content:flex-end;

    padding:20px;

    background:#fff;

    border-top:1px solid rgba(0,0,0,.08);
}

/* ========================= */
/* CLOSE */
/* ========================= */

.close-btn{
    position:absolute;
    top:10px;
    right:12px;

    border:none;
    background:transparent;

    color:#dc3545;
    font-size:20px;

    cursor:pointer;
}

/* ========================= */
/* ANIMATION */
/* ========================= */

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

/* ========================= */
/* LAPTOP */
/* ========================= */

@media (max-width:1366px){

    .extra-header,
    .modal-body,
    .modal-body thead th{
        font-size:.75rem;
    }

}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width:768px){

    .modal-box{
        width:90%;
        max-height:85vh;

        margin:10px;
        padding:15px;
    }

    .modal-small{
        width:90%;
        max-height:70vh;
    }

    .modal-medium{
        width:95%;
        max-height:75vh;
    }

    .modal-large{
        width:100%;
        max-height:80vh;

        margin:10px;
    }

}

/* ========================= */
/* TABLET */
/* ========================= */

@media (min-width:769px) and (max-width:1024px){

    .modal-box{
        width:80%;
        max-height:85vh;
        padding:20px;
    }

    .modal-xsmall{
        width:40%;
        max-height:50vh;
    }

    .modal-list{
        width:40%;
        height:70vh;
    }

    .modal-small{
        width:60%;
        max-height:65vh;
    }

    .modal-medium{
        width:75%;
        max-height:70vh;
    }

    .modal-large{
        width:90%;
        max-height:80vh;
    }

    .modal-regis{
        width:85%;
        height:80vh;
    }

}
/* ----------------------------------------------------------------------- End Modal -------------------------------------------------------------- */
.h-10  { height: 10% !important; }
.h-20  { height: 20% !important; }
.h-30  { height: 30% !important; }
.h-40  { height: 40% !important; }
.h-50  { height: 50% !important; }
.h-60  { height: 60% !important; }
.h-70  { height: 70% !important; }
.h-80  { height: 80% !important; }
.h-90  { height: 90% !important; }
.h-100 { height: 100% !important; }