/* Import Google Font */
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700');

:root {
    --header-height: 3rem;
    --nav-width: 68px;
    --first-color: #334155;
    --first-color-light: #d0d0d0;
    --white-color: #F7F6FB;
    --body-font: 'Nunito', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100
}

/* Basic Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7f6; /* A slightly off-white background */
}

a {
    text-decoration: none
}

/* Header */
.guest-header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: var(--first-color);
    z-index: var(--z-fixed);
    transition: .5s
}
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    transition: .5s
}

.header_toggle {
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer
}

.header_img {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden
}

.header_img img {
    width: 40px
}

/* Navbar Sidebar */
.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--first-color);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed)
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--white-color)
}

.nav_logo-name {
    color: var(--white-color);
    font-weight: 700;
    font-size: .85rem;
}

.nav_link {
    position: relative;
    color: var(--first-color-light);
    margin-bottom: 1.5rem;
    transition: .3s
}

.nav_link:hover {
    color: var(--white-color)
}

.nav_icon {
    font-size: 1.25rem
}

.nav_name {
    font-size: .775rem;
}

.nav-show {
    left: 0
}

.nav_list {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 5rem);
}

/* Styling scrollbar untuk .nav_list */
.nav_list::-webkit-scrollbar {
    width: 8px; /* Lebar scrollbar */
}

.nav_list::-webkit-scrollbar-track {
    background: #f1f1f1; /* Warna latar belakang track */
    border-radius: 10px;
}

.nav_list::-webkit-scrollbar-thumb {
    background: #888; /* Warna scrollbar handle */
    border-radius: 10px;
}

.nav_list::-webkit-scrollbar-thumb:hover {
    background: #555; /* Warna scrollbar handle saat di-hover */
}

main {
    padding: 1.5rem !important;
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}

.active {
    color: var(--white-color)
}

.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--white-color)
}

.height-100 {
    height: 100vh
}

.form-group-select {
    display: block;
    /* width: 100%; */
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_img {
        width: 40px;
        height: 40px
    }

    .header_img img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .nav-show {
        width: calc(var(--nav-width) + 156px)
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 188px)
    }
}

.daftar-temuan img {
    max-width: 70%;
    height: auto;
    display: block; /* Opsional: agar gambar tidak ada whitespace di bawahnya */
    margin: 0.5rem 0; /* Opsional: memberi jarak atas/bawah agar tidak menempel teks */
}

/* CSS untuk tampilan flat & zebra-striped */
.table {
    border-collapse: collapse; /* Menghilangkan jarak antar border */
    width: 100%;
}

.table th, .table td {
    vertical-align: middle;
    padding: 1rem 0.75rem; /* Padding standar */
    border: none; /* Menghilangkan semua border */
}

/* Warna selang-seling untuk baris genap */
.table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Warna abu-abu sangat terang */
}

.table thead th {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6; /* Hanya garis bawah untuk header */
}

.badge-status {
    padding: 0.5em 0.9em;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500; /* Font medium, tidak terlalu tebal */
    white-space: nowrap; /* Memastikan teks status tidak turun baris */
    min-width: 110px;
    text-align: center;
    display: inline-block;
}

.badge-selesai {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-dalam-proses {
    background-color: #fff3cd;
    color: #664d03;
}

.badge-belum-selesai {
    background-color: #f8d7da;
    color: #58151c;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.action-buttons .btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}


/* Styling untuk Halaman Detail Audit */
.audit-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Agar responsif di layar kecil */
    gap: 1rem;
}

.audit-details-header .title-block {
    flex-basis: 70%;
}

.audit-details-header .actions-block {
    text-align: right;
}

.finding-section {
    margin-bottom: 1.5rem; /* Jarak antar bagian Kondisi, Sebab, dll. */
}

.finding-section h6 {
    font-weight: 600;
    color: #6c757d; /* Warna abu-abu seperti header tabel */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef; /* Garis bawah tipis */
}

.recommendation-meta {
    font-size: 0.85em;
    color: #6c757d; /* text-muted color */
    margin-top: 0.5rem;
}

.recommendation-meta strong {
    color: #495057;
}