body {
    font-family: 'Poppins', sans-serif;
    padding-top: 8%;
    background-color: #f1f3f5;
}
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-row {
    border-bottom: 1px solid #dee2e6;
}
.dropdown-menu {
    border-radius: 0 !important;
    background-color: #0d6efd;
}
.dropdown-menu .dropdown-item {
    color: #fff;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #0b5ed7;
    color: #fff;
}
@media (max-width: 768px) {
    .navbar-nav .nav-item .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    .navbar-nav .nav-item .nav-link .bi-chevron-down {
    margin-left: auto;
    }
}
.dropdown-toggle::after {
    display: none !important;
}
.nav-link:hover,
.nav-link:focus {
    background-color: transparent !important;
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
}
.nav-link.active {
    background-color: transparent !important;
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
}
.nav-link {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.navbar-icons {
    display: flex;
    align-items: center;
    position: relative;
}
.navbar-icons .dropdown {
    position: relative;
    margin-left: 10px;
}
.badge-notif {
    position: absolute;
    top: 2px;
    right: 2px;
    transform: translate(50%, -50%);
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 50%;
    background: red;
    color: white;
    line-height: 1;
}
.dropdown-menu-notif {
    min-width: 250px;
    right: 0;
    left: auto;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 1050;
}
.dropdown-menu-notif .dropdown-item {
    white-space: normal;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #212529;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* menghilangkan delay efek muncul */
}
.dropdown-menu-notif .dropdown-item:hover {
    background-color: #212529;
    color: #fff;
}
@media (max-width: 576px) {
    body {
    padding-top: 0px;
    }
}
.navbar-icons .nav-link i {
    color: #000;
    transition: color 0.2s ease-in-out;
}
.navbar-icons .nav-link:hover i,
.navbar-icons .nav-link:focus i {
    color: grey;
}
.navbar-icons .nav-link {
    background-color: transparent !important;
}
/* Fieldset rapi */
fieldset.custom-fieldset {
    border: 1px solid #ccc;
    padding: 1.5rem 1rem 1rem 1rem;
    border-radius: 0.5rem;
    position: relative;
}

/* Legend tampil seperti label dengan border */
legend.custom-legend {
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    position: absolute;
    top: -0.85rem;
    left: 1rem;
    background: white;
    color: #0d6efd;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    display: inline-block;
    width: auto;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Loader */
#cover-spin {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#cover-spin::after {
    content: '';
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 50px;
    height: 50px;
    border-style: solid;
    border-color: lightblue;
    border-top-color: blue;
    border-width: 8px;
    border-radius: 50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}
table.dataTable thead th {
    padding: 4px;
    color: #927b77;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border-top: 1px solid #dddddd !important;
    border-bottom: 3px solid #dddddd !important;
}

/* Mengatur padding pada sel body tabel */
table.dataTable tbody td {
    padding: 3px;
    /* Sesuaikan nilai padding */
}

/* Opsional: Padding pada footer tabel */
table.dataTable tfoot th {
    padding: 4px;
    /* Sesuaikan nilai padding */
}

table.dataTable tbody tr:last-child td {
    border-bottom: 1px solid #ddd !important;
}
#kcfinderModal .modal-content {
    height: 90vh;
    border-radius: 0.5rem;
    /* Sesuai lekukan Bootstrap */
    overflow: hidden;
    /* Penting agar isi tidak keluar */
}

#kcfinderModal .modal-body {
    padding: 0;
    margin: 0;
    height: calc(100% - 56px);
    /* Kurangi header modal */
    overflow: hidden;
    /* Jangan biarkan isinya overflow */
}

#kcfinderFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
offcanvas {
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
}

.offcanvas-header {
    background-color: #0d6efd;
    color: #fff;
    border-bottom: 1px solid #dee2e6;
}
.offcanvas-title {
    font-weight: 600;
}
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none; /* hilangkan garis di item terakhir */
    }
}
#clock {
    display: inline-block;
    min-width: 80px; /* cukup untuk jam seperti 23:59:59 */
    font-family: monospace;
}