/* ================================================ */
/* ==           FILE STYLE.CSS UTAMA             == */
/* ================================================ */

/* === Reset Dasar & Pengaturan Umum === */
body {
    margin: 0;
    padding: 0;
    font-family: Calibri, Arial, sans-serif; 
    font-size: 11pt; 
    line-height: 1.6;
    background-color: #f8f9fa; 
    color: #212529;

    /* Tambahan untuk sticky footer */
    min-height: 100vh;           /* tinggi minimal setinggi layar */
    display: flex;               /* jadikan body container flex */
    flex-direction: column;      /* susun header, main, footer secara vertikal */
}

.container,
.main-container {
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.content-wrapper {
    width: 100%;                 /* isi penuh kolom konten */
    max-width: 1200px;           /* konsisten dengan halaman-halaman "app" lain */
    margin: 0 auto 20px auto;    /* tetap di tengah */
    padding: 25px 30px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    line-height: 1.7;
    font-size: 1rem;
    color: #333;
}

/* di monitor besar boleh sedikit lebih lebar */
@media (min-width: 1440px) {
  .content-wrapper {
    max-width: 1300px;
  }
}

.content-wrapper--wide {
    max-width: 1200px;
}

/* Optional: di monitor besar, boleh lebih lebar sedikit */
@media (min-width: 1440px) {
    .content-wrapper--wide {
        max-width: 1300px;
    }
}

a {
    color: #0d6efd; 
    text-decoration: none; 
}

a:hover {
    text-decoration: underline; 
}

h1, h2, h3 { 
    color: #343a40; 
    margin-top: 0; 
    margin-bottom: 0.75em; 
}
/* Style H1 di dalam wrapper konten */
.content-wrapper h1 { 
    font-size: 1.8em; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #eee; 
    margin-bottom: 25px;
}
/* Style H2 di dalam wrapper konten */
.content-wrapper h2 { 
    font-size: 1.4em; 
    padding-bottom: 10px; 
    border-bottom: 1px solid #eee; /* Opsional, bisa dihapus jika terlalu ramai */
    margin-bottom: 20px;
}
.content-wrapper h3 { 
    font-size: 1.2em; 
    margin-bottom: 10px; 
}


section { /* Jika Anda menggunakan tag section */
    margin-bottom: 40px; 
}


/* === Header === */
.main-header {
    background-color: #343a40; 
    color: #fff;
    padding: 15px 0;
    border-bottom: 3px solid #adb5bd;
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

/* Flex layout untuk header utama */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Box info user + logout */
.header-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.header-user-greeting strong {
    font-weight: 600;
}

/* Link logout di header */
.header-logout-link {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ffc9c9;
    background-color: #ffe3e3;
    color: #c92a2a;
    font-size: 0.8rem;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.06s ease;
}

.header-logout-link:hover {
    background-color: #fa5252;
    color: #fff;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

/* === Main Container (Layout Sidebar + Konten) === */
.main-container {
    display: flex;
    margin-top: 20px; 
    width: 95%; 
    max-width: 1400px; 
    margin-left: auto;
    margin-right: auto;

    /* Tambahan supaya area konten jadi "isi" di tengah antara header & footer */
    flex: 1 0 auto;
}

/* === Sidebar (Navigasi Kiri) === */
/* === Sidebar (Navigasi Kiri) === */
/* === SIDEBAR REFRESH (OVERRIDE) === */

/* Container sidebar dibuat lebih lembut dan modern */
nav.sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 14px;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(229, 231, 235, 0.8);
    border: none;
}

/* Rapikan list & jarak antar item */
nav.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

nav.sidebar li {
    margin-bottom: 4px;
}

/* Gaya dasar link sidebar */
nav.sidebar li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #374151;
    border-radius: 999px;
    font-size: 0.9rem;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.06s ease;
}

.sidebar-webinfo-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Icon panah di kanan */
.sub-menu-icon {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
}

.sub-menu-icon svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.16s ease;
}

/* Dropdown menu di bawah WEB INFORMATION */
.dropdown-menu {
    display: none;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid #ccc;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li a {
    font-size: 0.9em;
    padding: 6px 10px;
    display: block;
    color: #333;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}
/* Hover lebih lembut */
nav.sidebar li a:hover {
    background-color: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}

/* Titik kecil untuk aksen item (opsional) */
.nav-item-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #9ca3af;
    flex-shrink: 0;
}

nav.sidebar li.active .nav-item-dot {
    background: #2563eb;
}

/* === Area Konten Utama === */
.content-area {
    flex-grow: 1; 
    min-width: 0; /* Mencegah konten meluber */
}

/* Pastikan layout utama rapi: sidebar fix, konten fleksibel */
.main-container {
    display: flex;
    margin-top: 20px; 
    width: 95%; 
    max-width: 1400px; 
    margin-left: auto;
    margin-right: auto;
    flex: 1 0 auto;
}

/* Sidebar selalu lebar stabil di desktop */
.sidebar {
    flex: 0 0 230px;       /* lebar sidebar fix */
}

/* Area konten isi sisa ruang */
.content-area {
    flex: 1 1 auto;
    min-width: 0;          /* penting supaya tabel bisa shrink & scroll */
}

/* === Footer === */
.main-footer {
    margin-top: 40px;
    background-color: #e9ecef; 
    color: #6c757d;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    font-size: 0.9em;

    /* Tambahan: jangan ikut "krempeng" saat flex */
    flex-shrink: 0;
}

/* ================================= */
/* == Styling Spesifik Konten ====== */
/* ================================= */

/* Target umum untuk konten dalam .content-wrapper */
.content-wrapper p { margin-top: 0; margin-bottom: 1.1em; }
.content-wrapper p:last-child { margin-bottom: 0; }
.content-wrapper a { color: #0056b3; text-decoration: none; }
.content-wrapper a:hover { text-decoration: underline; }
.content-wrapper b, .content-wrapper strong { font-weight: bold; }
.content-wrapper i, .content-wrapper em { font-style: italic; }
.content-wrapper u { text-decoration: underline; }
.content-wrapper mark { background-color: #fff3cd; padding: 0.1em 0.2em; border-radius: 3px; font-weight: 600; }

/* Styling Tabel (berlaku untuk tabel di KB, JD, Admin) */
.content-wrapper table { 
    width: 100%;                     
    max-width: 100%;                 
    border-collapse: collapse;       
    margin: 1.8em 0;                 
    font-size: 0.9em;                
    border-top: 2px solid #dee2e6;   
}
.content-wrapper td {
    border: none;                     
    border-bottom: 1px solid #e9ecef; 
    padding: 12px 10px;               
    vertical-align: top;              
    text-align: left;                 
}
/* Sel header (TH) jika Anda menggunakannya nanti */
.content-wrapper th {
    border: none;                     
    border-bottom: 2px solid #dee2e6; /* Garis bawah header lebih tebal */
    padding: 12px 10px;               
    vertical-align: bottom;           /* Rata bawah */
    text-align: left;
    font-weight: 600;                 /* Tebal */
    background-color: #f8f9fa;        /* Latar abu */
}
.content-wrapper tr:last-child td { border-bottom: none; }
/* Baris pertama td sebagai header visual (jika tidak pakai TH) */
/* .content-wrapper tr:first-child td { font-weight: 600; background-color: #f8f9fa; border-bottom-width: 2px; } */ /* Pilih salah satu cara styling header */

/* Styling List (UL/LI) */
.content-wrapper ul {
    list-style: disc;                 
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding-left: 30px; /* Indentasi bisa disesuaikan */              
}
/* Style OL jika Anda implementasi parsernya nanti */
/* .content-wrapper ol { ... list-style: decimal; ... } */
.content-wrapper li {
    margin-bottom: 0.5em;             
    padding-left: 5px;                
}
.content-wrapper li p:last-child { margin-bottom: 0; }


/* === Style spesifik KB === */
.kb-category { margin-bottom: 30px; }
.kb-category h2 { 
    background-color: #e9ecef; color: #343a40; padding: 10px 15px;       
    margin-top: 0; margin-bottom: 15px; border-radius: 4px;       
    border-bottom: none; font-weight: 600; font-size: 1.3em; display: block;           
} 
.kb-category p.description { font-style: italic; color: #555; margin-bottom: 15px; }
.kb-category ul { list-style: none; padding-left: 0; margin-bottom: 0; } 
.kb-category li { margin-bottom: 8px; }
.kb-category li a { text-decoration: none; color: #007bff; }
.kb-category li a:hover { text-decoration: underline; }
.no-articles { color: #6c757d; font-style: italic; }

/* Style spesifik Artikel/JD/Pengumuman (biasanya sudah tercakup .content-wrapper) */
.article-meta { font-size: 0.9em; color: #6c757d; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.no-announcement { text-align: center; font-style: italic; color: #6c757d; }

/* === Tombol & Form === */
.sheet-button, .jd-button, .action-link { 
    display: inline-block; padding: 8px 15px; margin: 5px; margin-right: 10px; margin-bottom: 10px; cursor: pointer; 
    border: 1px solid #ccc; background-color: #f0f0f0; border-radius: 4px; 
    text-decoration: none; color: #333; font-size: 0.95em; 
    transition: background-color 0.2s ease;
}
.sheet-button:hover, .jd-button:hover, .action-link:hover { background-color: #e0e0e0; }

.delete-button { 
    padding: 5px 10px; background-color: #dc3545; color: white; border: none; 
    border-radius: 4px; cursor: pointer; font-size: 0.9em; text-decoration: none; 
    display: inline-block; margin-left: 5px; 
}

.edit-link { 
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #fff4e6;      /* soft orange */
    color: #d9480f;                 /* tulisan oranye */
    border-radius: 999px;           /* pill / kapsul */
    border: 1px solid #ffc078;
    cursor: pointer;
    font-size: 0.9em;               /* ukuran teks: tetap seperti sekarang */
    text-decoration: none;
    gap: 4px;
    line-height: 1.2;
}

.edit-link:hover {
    background-color: #ffecdc;
    color: #c03800;
}

/* Style Form Admin (Contoh, sesuaikan) */
form label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
form input[type="text"], 
form input[type="number"], 
form input[type="search"], 
form select, 
form textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 5px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 1em; 
    box-sizing: border-box; 
    font-family: inherit; /* Warisi font dari body */
}
form textarea { min-height: 150px; resize: vertical; }
form select { height: 45px; }
form button[type="submit"] { 
    padding: 12px 25px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 1.1em; 
    background-color: #007bff; 
    color: white; 
    transition: background-color 0.2s ease; 
    margin-top: 10px;
}
form button[type="submit"]:hover { background-color: #0056b3; }
.form-field { margin-bottom: 20px; } 
.field-description { font-size: 0.85em; color: #6c757d; margin-top: 5px; margin-bottom: 15px; }
.nav-links { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.nav-link { display: inline-block; margin-right: 15px; color: #007bff; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }


/* === Lain-lain === */
.suggestions-dropdown {
    display: none; 
    position: absolute; 
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none; 
    z-index: 100; 
    max-height: 200px; 
    overflow-y: auto; 
}
.suggestions-dropdown div { 
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.suggestions-dropdown div:last-child { border-bottom: none; }
.suggestions-dropdown div:hover { background-color: #f0f0f0; }

/* Mencegah Seleksi Teks (jika masih diperlukan) */
/* .content-area .kb-category, */ 
/* .content-area .article-content, */
/* .content-area .document-content { */
/* -webkit-user-select: none; ... */   
/* user-select: none; */        
/* } */

/* ================================================ */
/* == Pencegahan Seleksi Teks Konten             == */
/* ================================================ */

/* Targetkan elemen pembungkus utama DAN/ATAU elemen konten spesifik di dalamnya */
/* Pilih salah satu atau keduanya tergantung seberapa luas Anda ingin mencegah copy */

/* Opsi 1: Mencegah copy di seluruh area konten utama (termasuk judul H1) */

/* Opsi 2: Mencegah copy HANYA pada elemen konten spesifik (Lebih umum) */
/* Pastikan aturan ini ADA dan AKTIF */
.content-wrapper .kb-category,    /* Box kategori di /kb */
.content-wrapper .article-content, /* Konten detail di /kb/article/:id */
.content-wrapper .document-content /* Konten detail di /jd/view/:id */ {
    -webkit-user-select: none; /* Untuk Safari */
    -moz-user-select: none;    /* Untuk Firefox */
    -ms-user-select: none;     /* Untuk IE/Edge */
    user-select: none;         /* Standar */
}

/* === Responsif Sederhana === */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; 
        width: 100%; 
        margin-top: 10px;
    }
    .sidebar {
        width: auto; 
        height: auto; 
        margin-right: 0;
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        position: static; 
    }
    .content-area {
        padding: 15px; 
    }
    .content-wrapper { /* Terapkan juga ke wrapper */
        max-width: 100%; /* Gunakan lebar penuh di mobile */
        padding: 15px;
        margin: 10px 0;
    }
    .content-wrapper table { font-size: 0.85em; }
    .content-wrapper td, 
    .content-wrapper th { padding: 8px 6px; }
    form input, form select, form textarea { font-size: 1rem; } /* Ukuran font form di mobile */
}
        /* Pindahkan style ini ke style.css nanti */
        .accordion details {
            border: 1px solid #e0e0e0;
            border-radius: 5px;
            margin-bottom: 10px;
            background-color: #fff;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }
        .accordion summary {
            padding: 15px 20px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.1em;
            color: #333;
            background-color: #f8f9fa;
            border-radius: 5px 5px 0 0; /* Bulat di atas saja */
            border-bottom: 1px solid #e0e0e0; 
            list-style: none; /* Sembunyikan marker default */
            position: relative;
        }
        .accordion summary:hover {
            background-color: #e9ecef;
        }
        /* Tambahkan ikon panah sederhana */
        .accordion summary::before {
            content: '▶';
            font-size: 0.8em;
            margin-right: 10px;
            display: inline-block;
            transition: transform 0.2s ease;
        }
        .accordion details[open] summary::before {
             transform: rotate(90deg);
        }
        /* Sembunyikan marker bawaan (terutama di Safari) */
         .accordion summary::-webkit-details-marker {
             display:none;
        }
        .accordion .category-content {
            padding: 15px 20px;
            border-top: 1px solid #e0e0e0; /* Garis pemisah */
        }
        .accordion .category-content ul {
             list-style: disc; /* Atau none jika tidak mau bullet */
             padding-left: 20px;
             margin-top: 10px;
             margin-bottom: 5px;
        }
         .accordion .category-content li {
             margin-bottom: 8px;
        }
         .accordion .category-content li a {
             text-decoration: none;
             color: #007bff;
        }
        .accordion .category-content li a:hover {
             text-decoration: underline;
        }
         .accordion .category-description {
             font-style: italic;
             color: #555;
             font-size: 0.95em;
             margin-bottom: 15px;
         }

         /* Styling untuk Kartu Kategori Sumber Belajar */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Jarak antar kartu */
    margin-top: 25px;
    justify-content: center; /* Pusatkan kartu jika ada sisa ruang */
}
a.category-card { /* Targetkan link agar seluruh kartu bisa diklik */
    display: flex; /* Gunakan flex untuk layout ikon & teks */
    flex-direction: column; /* Susun ikon di atas teks */
    align-items: center; /* Tengahkan item secara horizontal */
    flex: 0 1 280px; /* Jangan membesar, basis 280px, bisa menyusut */
    min-width: 220px; 
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out; 
    border-top: 6px solid #0d6efd; /* Aksen warna */
}
a.category-card:hover {
    transform: translateY(-6px); /* Efek floating lebih jelas */
    box-shadow: 0 8px 15px rgba(0,0,0,0.18);
    text-decoration: none; /* Pastikan tidak ada underline di hover */
    color: #333; /* Jaga warna teks */
}
.category-card i { /* Styling ikon */
    font-size: 3em; /* Ukuran ikon */
    color: #0d6efd; /* Warna ikon */
    margin-bottom: 20px;
    display: block; 
}
.category-card h3 {
    font-size: 1.25em;
    margin-bottom: 8px;
    color: #0056b3;
    border-bottom: none; 
    padding-bottom: 0;
}
.category-card p {
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 15px; /* Jarak ke jumlah materi */
}
 .category-card p:last-of-type { /* Target paragraf terakhir (jumlah materi) */
    font-size: 0.85em;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 0;
 }
 /* Di dalam style.css */

/* Styling untuk link judul artikel di halaman daftar per kategori */
.article-list li a {
    text-decoration: none;
    color: #0056b3;     /* Warna biru sedikit lebih gelap */
    font-size: 1.1em;   /* Sedikit perbesar ukuran font */
    font-weight: 600;   /* Buat semi-bold */
    display: inline-block; /* Agar margin/padding lebih terprediksi */
    margin-bottom: 3px; /* Sedikit jarak bawah jika judul panjang & wrap */
}

.article-list li a:hover {
    text-decoration: underline;
    color: #003d80; /* Warna hover sedikit lebih gelap */
}

/* Pastikan style dasar untuk LI juga ada */
.article-list ul { list-style: none; padding-left: 0; }
.article-list li { 
    margin-bottom: 12px; /* Jarak antar list item */
    padding-bottom: 12px; /* Jarak ke garis bawah */
    border-bottom: 1px dotted #e0e0e0; /* Garis putus-putus tipis */
}
 .article-list li:last-child { 
    border-bottom: none; /* Hapus garis di item terakhir */
    margin-bottom: 0; 
    padding-bottom: 0;
 }
 /* Di dalam style.css */

/* Styling untuk sub-judul "Daftar Artikel:" */
h2.article-list-title {
    font-size: 1.2em;  /* Ukuran lebih kecil dari H1 utama */
    font-weight: 500;  /* Sedikit lebih tipis dari bold biasa */
    color: #495057;   /* Warna lebih lembut */
    margin-top: 25px; /* Jarak dari deskripsi kategori di atasnya */
    margin-bottom: 15px; /* Jarak ke daftar artikel di bawahnya */
    padding-bottom: 8px;  
    border-bottom: 1px solid #e0e0e0; /* Garis bawah lebih tipis */
}

/* Tambahkan override serupa untuk class link khusus lainnya jika perlu */

.admin-header {
    background-color: #f8f9fa; /* Warna latar belakang header */
    padding: 1rem; /* Padding di sekitar header */
    margin-bottom: 1.5rem; /* Margin di bawah header */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Efek bayangan halus */
}

.admin-header-container {
    display: flex; /* Gunakan Flexbox untuk tata letak */
    justify-content: space-between; /* Spasi rata antara elemen */
    align-items: center; /* Vertikal tengah */
}

.admin-logo {
    font-size: 1.25rem; /* Ukuran font logo */
    font-weight: bold; /* Tebal */
    color: #495057; /* Warna teks logo */
}

.admin-nav {
    display: flex; /* Gunakan Flexbox untuk menata link */
    align-items: center;
}

.admin-nav-link {
    display: inline-block; /* Tampilkan sebagai inline-block */
    padding: 0.5rem 1rem; /* Padding di dalam link */
    margin-right: 0.5rem; /* Margin di kanan link */
    text-decoration: none; /* Hilangkan garis bawah default */
    color: #007bff; /* Warna teks link */
    background-color: transparent; /* Latar belakang transparan */
    border: 1px solid transparent; /* Border transparan */
    border-radius: 0.25rem; /* Sudut membulat */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; /* Transisi halus */
}

.admin-nav-link:hover {
    color: #fff; /* Warna teks saat hover */
    background-color: #007bff; /* Warna latar belakang saat hover */
}

.admin-logout-link {
    color: #dc3545; /* Warna teks link logout (merah) */
}

.admin-logout-link:hover {
    color: #fff;
    background-color: #dc3545;
}

.admin-header-divider {
    border: none;
    height: 1px;
    background-color: #dee2e6;
    margin: 1rem 0;
}

.admin-footer-divider {
    border: none;
    height: 1px;
    background-color: #dee2e6;
    margin: 1rem 0;
}

/* === Style untuk form login staff-data check data === */
.login-form-wrapper,
.search-form-wrapper {
    max-width: 400px;
    margin: 0 auto 30px auto;
    padding: 20px 25px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.login-form-wrapper h2,
.search-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    color: #343a40;
}

.login-form-wrapper input,
.search-form-wrapper input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form-wrapper button,
.search-form-wrapper button {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-form-wrapper button:hover,
.search-form-wrapper button:hover {
    background-color: #0b5ed7;
}

/* Container untuk tabel WD di halaman utama */
#sheet-data-container {
    width: 100%;
    overflow-x: auto;   /* scroll horizontal di HP */
}

/* Tabel yang dibuat dari JS (class="sheet-table") */
#sheet-data-container table.sheet-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 700px;   /* di HP akan bisa di-scroll */
}

/* === WEBSITE LOG === */

.website-log-table-wrapper {
    width: 100%;
    overflow-x: auto;      /* kalau kepanjangan, cukup scroll horizontal di tabel */
}

.website-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;    /* biarkan browser atur lebar kolom sesuai isi */
}

.website-log-table th,
.website-log-table td {
    border: 1px solid #dee2e6;
    padding: 6px 8px;
    vertical-align: top;
}

.website-log-table thead th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Lebar kolom (sesuai urutan Waktu | Web | Tipe Log | Status | Pelapor | Detail | Waktu Normal | Durasi | Aksi) */
.website-log-table th:nth-child(1),
.website-log-table td:nth-child(1) {
    width: 140px;
    white-space: nowrap;
}

.website-log-table th:nth-child(2),
.website-log-table td:nth-child(2) {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.website-log-table th:nth-child(3),
.website-log-table td:nth-child(3) {
    width: 150px;
}

.website-log-table th:nth-child(4),
.website-log-table td:nth-child(4) {
    width: 160px;
}

.website-log-table th:nth-child(5),
.website-log-table td:nth-child(5) {
    width: 150px;
}

/* Detail: biarkan lebih lebar, bisa multi-line */
.website-log-table th:nth-child(6),
.website-log-table td:nth-child(6) {
    min-width: 220px;
}

/* Waktu Normal */
.website-log-table th:nth-child(7),
.website-log-table td:nth-child(7) {
    width: 150px;
    white-space: nowrap;
}

/* Durasi */
.website-log-table th:nth-child(8),
.website-log-table td:nth-child(8) {
    width: 90px;
    white-space: nowrap;
    text-align: center;
}

/* Aksi (hapus) */
.website-log-table th:nth-child(9),
.website-log-table td:nth-child(9) {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

/* Detail log: teks + tombol (...) */

.log-detail-cell {
    max-width: 260px;
    white-space: nowrap;
}

.log-detail-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: top;
}

.log-detail-text.expanded {
    white-space: normal;
}

.log-detail-toggle {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-left: 4px;
    padding: 0 4px;
    line-height: 1;
}

.log-detail-toggle::after {
    content: '…';   /* icon saat collapsed */
}

.log-detail-toggle.expanded::after {
    content: '×';   /* icon saat expanded */
}

/* >>> Tetap boleh nowrap untuk WD PGA supaya kolom bank/nominal rapi <<< */
#sheet-data-container th,
#sheet-data-container td {
    white-space: nowrap;
}

/* Grup tombol selector (PGA WD, Active Account, Update Links, dll) */
#sheet-selector,
#link-group-selector,
#account-group-selector,
#brand-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

/* Teks intro di atas tombol */
#sheet-selector p,
#link-group-selector p,
#account-group-selector p {
    flex: 1 0 100%;
    margin-bottom: 4px;
}

/* Tombol selector - earth tone, pill, konsisten */
.sheet-button,
.brand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 14px;
    margin: 2px 0;

    flex: 0 1 140px;        /* lebar kurang lebih seragam */
    box-sizing: border-box;
    text-align: center;

    border-radius: 999px;   /* Biar nggak kotak */
    border: 1px solid #d0b49f;

    background: linear-gradient(135deg, #f4e4d4, #e2c9a7); /* earth tone */
    color: #4a3b2a;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;

    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition:
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.06s ease,
        border-color 0.16s ease;
}

/* Hover state */
.sheet-button:hover,
.brand-button:hover {
    background: linear-gradient(135deg, #f1dcc7, #debf96);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* State tombol aktif (tombol yang sedang dipilih) */
.sheet-button.is-active,
.brand-button.is-active {
    background: linear-gradient(135deg, #d9c2a3, #c9a47a);
    border-color: #c58b50;
    color: #3a2a1a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

/* Fokus keyboard - aksesibilitas */
.sheet-button:focus-visible,
.brand-button:focus-visible {
    outline: 2px solid #c58b50;
    outline-offset: 2px;
}

/* Responsif: di HP, tombol bisa 2 kolom */
@media (max-width: 768px) {
    .sheet-button,
    .brand-button {
        flex: 1 1 calc(50% - 8px);
    }
}

/* ===== Website Log: Filter Bar & Issue Pills ===== */

.wl-filter-form {
    margin-bottom: 10px;
}

.wl-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.wl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wl-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
}

.wl-filter-group input[type="month"],
.wl-filter-group select {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 160px;
    font-size: 0.9rem;
}

.wl-filter-group button {
    padding: 7px 14px;
    border-radius: 4px;
    border: none;
    background-color: #007bff;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.wl-filter-group button:hover {
    background-color: #0056b3;
}

.wl-issue-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.wl-issue-filter span {
    font-size: 0.85rem;
    font-weight: 600;
}

.issue-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    color: #333;
    background-color: #f8f8f8;
}

.issue-pill:hover {
    background-color: #e6e6e6;
}

.issue-pill.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ===== Website Log Table Refinement ===== */

/* Supaya header boleh multi-baris, tapi detail tetap bisa di-ellipsis */
.website-log-table th {
    white-space: normal;
}

.website-log-table td {
    white-space: normal;
}

/* Kolom detail: versi pendek + ... */
.website-log-table td.log-detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* Kolom aksi */
.website-log-table td.log-actions {
    text-align: center;
}

.website-log-table td.log-actions form {
    margin: 0;
    display: inline-block;
}

.website-log-table td.log-actions button {
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dc3545;
    background-color: #fff;
    color: #dc3545;
    font-size: 0.85rem;
    cursor: pointer;
}

.website-log-table td.log-actions button:hover {
    background-color: #dc3545;
    color: #fff;
}

.log-actions-placeholder {
    font-size: 0.8rem;
    color: #bbb;
}

.wl-select {
    position: relative;
    min-width: 190px;
    font-size: 0.9rem;
}

.wl-select-trigger {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease,
        transform 0.06s ease;
}

.wl-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-select-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

/* state open */
.wl-select.open .wl-select-trigger {
    border-color: #0d6efd;
    box-shadow: 0 6px 18px rgba(15,23,42,0.12);
    background-color: #f8f9ff;
    transform: translateY(-1px);
}

.wl-select.open .wl-select-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.wl-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15,23,42,0.18);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 40;
}

.wl-select.open .wl-select-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wl-option {
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.88rem;
}

.wl-option:hover {
    background-color: #f1f5ff;
}

.wl-option.selected {
    background-color: #e0ecff;
    font-weight: 500;
}

/* === Header + Actions (untuk halaman yang bisa dikelola management) === */
.page-header-with-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.page-header-with-actions h1 {
    margin: 0;
}

.page-header-with-actions p {
    margin: 4px 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-action-button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    font-size: 0.8rem;
    text-decoration: none;
    color: #212529;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.page-action-button.primary {
    border-color: #0d6efd;
    color: #0d6efd;
    background-color: #e7f1ff;
}

.page-action-button:hover {
    background-color: #e2e6ea;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

/* Tombol edit kecil di dalam konten */
.inline-edit-link {
    font-size: 0.8rem;
    color: #0d6efd;
    text-decoration: none;
    margin-left: 8px;
}

.inline-edit-link:hover {
    text-decoration: underline;
}

/* Area aksi di bawah artikel */
.article-actions {
    margin-top: 12px;
}

.article-edit-link {
    font-size: 0.85rem;
    color: #0d6efd;
    text-decoration: none;
}

.article-edit-link:hover {
    text-decoration: underline;
}

/* === SIDEBAR CLEANUP: Samakan tampilan semua menu === */

/* Hover untuk semua link khusus ini -> samakan dengan hover default */
.sidebar-pengumuman-link:hover,
.sidebar-sumber-belajar-link:hover {
    background-color: #d4dadf !important; /* sama seperti nav.sidebar li a:hover */
    color: #000 !important;
}

/* ACTIVE STATE: semua item sidebar yang aktif pakai gaya yang sama */
nav.sidebar li.active {
    background-color: #e5f0ff;   /* biru muda lembut */
    border-radius: 4px;
}

nav.sidebar li.active a {
    color: #1d4ed8 !important;   /* teks biru */
    font-weight: 600;            /* sedikit ditebalkan (tapi tidak terlalu berat) */
}

/* === Website Log: Filter & Tabel === */

.filter-bar {
    margin-bottom: 15px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.85rem;
    color: #495057;
}

.filter-group input[type="month"],
.filter-group select {
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-group button {
    align-self: flex-start;
    margin-top: 2px;
}

.btn-primary,
.btn-secondary {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
    border-color: #d4d4d8;
}

.btn-secondary:hover {
    background-color: #d4d4d8;
}

/* Body utama daftar laporan Website Log */
.log-table-section {
    margin-top: 12px;
    background-color: #ffffff;      /* sama seperti filter-bar */
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

/* Bungkus tabel – kalau kolom kebanyakan, scroll horizontal di dalam kartu saja */
.website-log-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-wrapper-horizontal {
    width: 100%;
    overflow-x: auto;
}

.website-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.website-log-table th,
.website-log-table td {
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.website-log-table thead th {
    background-color: #f8fafc;
}

/* Detail log dengan titik tiga */
.log-detail-cell {
    max-width: 320px;
}

.log-detail-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: top;
}

.log-detail-text.expanded {
    white-space: normal;
}

.log-detail-toggle {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-left: 4px;
    padding: 0 4px;
    line-height: 1;
}

.log-detail-toggle::after {
    content: '…';
}

.log-detail-toggle.expanded::after {
    content: '×';
}

/* Layout dasar item sidebar */
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin: 0;
  padding: 0;
}

.sidebar a.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 6px;
}

/* Icon & label */
.sidebar-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.sidebar-item-label {
  flex: 1;
}

/* Hover & active */
.sidebar a.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar li.active > a.sidebar-item {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* Separator antara single & dropdown */
.sidebar-separator {
  margin: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.sidebar li.dropdown > a.sidebar-item {
  position: relative;
}

.sidebar li.dropdown .sub-menu-icon {
  margin-left: auto;
  display: inline-flex;
}

/* Rotate arrow ketika open */
.sidebar li.dropdown.open .sub-menu-icon svg {
  transform: rotate(180deg);
  transition: transform 0.15s ease-out;
}

/* Sub-menu indent */
.sidebar li.dropdown > ul.dropdown-menu {
  margin: 0.2rem 0 0.2rem;
  padding-left: 1.6rem; /* indent ke kanan */
}

/* Sub-menu item bisa sedikit lebih kecil */
.sidebar li.dropdown > ul.dropdown-menu .sidebar-item {
  font-size: 0.88rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* 1) Cara modern (browser baru) */
html {
  scrollbar-gutter: stable;
  overflow-x: hidden;   /* cegah overflow horizontal di root */
}

/* 2) Fallback untuk browser yang belum support scrollbar-gutter */
body {
  overflow-y: scroll;   /* scrollbar vertikal selalu muncul */
  overflow-x: hidden;   /* cegah scroll horizontal di body */
}

/* === TOP NAV DI HEADER (Dashboard) === */

.top-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1b1f29;
}

.top-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: #2a3140;
  color: #f5f5f5;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.top-nav-toggle i {
  font-size: 0.85rem;
}

.top-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

/* state saat menu “collapse” di layar kecil */
@media (max-width: 900px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav-menu {
    width: 100%;
    display: none;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .top-nav-menu.top-nav-menu--open {
    display: flex;
    flex-wrap: wrap;
  }
}

.top-nav-link,
.top-nav-group-trigger {
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #e2e6f3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.top-nav-link:hover,
.top-nav-group-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.top-nav-link.is-active {
  background: #ffffff;
  color: #1b1f29;
  font-weight: 600;
}

.top-nav-group {
  position: relative;
}

.top-nav-group .caret {
  border-top: 4px solid currentColor;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  display: inline-block;
  margin-left: 0.1rem;
}

.top-nav-group-menu {
  position: absolute;
  top: 130%;
  left: 0;
  min-width: 210px;
  padding: 0.4rem;
  border-radius: 0.6rem;
  background: #1f2430;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 50;
}

.top-nav-group-menu.open {
  display: block;
}

.top-nav-group-menu a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  color: #e6e9f5;
  text-decoration: none;
}

.top-nav-group-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* === DASHBOARD HERO === */

.dashboard-hero {
  margin: 1.5rem 0 1.25rem;
}

.dashboard-hero-inner {
  position: relative;
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  overflow: hidden;

  /* PENTING: gunakan shorthand background + !important untuk menimpa semua background lama */
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)),
    url("/img/hero-leaves.jpg") center/cover no-repeat !important;

  color: #ffffff;
}


.dashboard-hero-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0.6;
}

.dashboard-hero-text {
  position: relative;
  max-width: 640px;
}

.dashboard-hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.dashboard-hero-title {
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.dashboard-hero-title span {
  font-family: "Pacifico", "Segoe Script", system-ui;
  font-size: 2.75rem;
  font-weight: 400;
}

.dashboard-hero-subtitle {
  font-size: 0.95rem;
  max-width: 520px;
  opacity: 0.9;
  margin-bottom: 1.4rem;
}

/* Search bar */

.dashboard-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.dashboard-search-input-wrap {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  gap: 0.5rem;
}

.dashboard-search-input-wrap i {
  opacity: 0.9;
}

.dashboard-search-input-wrap input {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.dashboard-search-button {
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

.dashboard-search-button:hover {
  background: #e5f6eb;
}

/* chips */

.dashboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
}

.dashboard-chip:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* === DASHBOARD TILES === */

.dashboard-tiles {
  margin-bottom: 1.5rem;
}

.dashboard-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.dashboard-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f6ec;
  color: #0f9b4c;
  margin-bottom: 0.3rem;
}

.dashboard-tile-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.dashboard-tile-desc {
  font-size: 0.82rem;
  color: #6b7280;
}

/* === WHAT'S NEW SECTION === */

.dashboard-whatsnew {
  margin-bottom: 2.5rem;
}

.dashboard-section-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.dashboard-section-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.9rem;
}

.dashboard-whatsnew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.whatsnew-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.whatsnew-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e5f6eb;
  color: #166534;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.whatsnew-card h3 {
  font-size: 0.95rem;
}

.whatsnew-card p {
  font-size: 0.82rem;
  color: #6b7280;
}

.whatsnew-link {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.whatsnew-link i {
  font-size: 0.75rem;
}

/* DASHBOARD TILES – tampilan kartu utama */

.dashboard-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* seluruh kartu adalah link, tapi jangan kasih underline */
.dashboard-tile {
  display: flex;
  flex-direction: column;
  align-items: center;        /* rata tengah horizontal */
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  text-decoration: none;      /* hilangkan underline */
  color: #111827;
  text-align: center;         /* teks di tengah */
  cursor: pointer;
}

.dashboard-tile:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.dashboard-tile-icon {
  width: 52px;                /* icon sedikit lebih besar */
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f6ec;
  color: #0f9b4c;
  font-size: 22px;            /* besarin icon */
}

/* label pakai Open Sans & center, tanpa underline */
.dashboard-tile-label {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

/* pastikan hover tidak meng-underline label */
.dashboard-tile:hover .dashboard-tile-label {
  text-decoration: none;
}

/* === DASHBOARD HERO (versi baru) === */

.dashboard-hero {
  margin: 1.5rem 0 1.25rem;
}

.dashboard-hero-inner {
  position: relative;
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  overflow: hidden;
  /* background daun + overlay gelap tipis */
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)),
    url("/img/hero-leaves.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

/* nanti kamu taruh file gambar di: public/img/hero-leaves.jpg */

.dashboard-hero-text {
  position: relative;
  max-width: 760px;
  margin: 0 auto;          /* rata tengah blok */
  text-align: center;      /* semua isi ke tengah */
}

.dashboard-hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* "Welcome, Sabina!" */
.dashboard-hero-title {
  margin: 0 0 0.6rem;
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
}

.dashboard-hero-title span {
  display: inline-block;
  font-family: "Pacifico", "Segoe Script", system-ui;
  font-size: 3.1rem;
  font-weight: 700;        /* lebih tebal */
  color: #ffffff;          /* full putih */
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.dashboard-hero-subtitle {
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 1.4rem;
  opacity: 0.95;
}

/* Search bar di tengah */

.dashboard-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;     /* center */
  gap: 0.6rem;
  margin: 0 auto 1.1rem;
  max-width: 620px;
}

.dashboard-search-input-wrap {
  flex: 1 1 260px;
  background: #ffffff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0.35rem 1rem;
  gap: 0.5rem;
}

.dashboard-search-input-wrap i {
  color: #6b7280;
}

.dashboard-search-input-wrap input {
  border: none;
  background: transparent;
  color: #111827;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.dashboard-search-button {
  border: none;
  border-radius: 999px;
  background: #0f9b4c;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.45rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
}

.dashboard-search-button:hover {
  background: #15803d;
}

/* chip row di tengah */

.dashboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;    /* center */
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2933;
  text-decoration: none;
}

.dashboard-chip:hover {
  background: #ffffff;
}
/* === DASHBOARD TILES: hijau dengan icon & teks putih === */

.dashboard-tiles {
  margin-bottom: 1.5rem;
}

.dashboard-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.dashboard-tile {
  display: flex;
  flex-direction: column;
  align-items: center;          /* rata tengah */
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  background: #7ac852;         /* hijau muda */
  border-radius: 1rem;
  text-decoration: none;
  color: #ffffff;              /* semua teks putih */
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.dashboard-tile:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.dashboard-tile-icon {
  width: 56px;                 /* sedikit lebih besar */
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);  /* ring tipis */
  color: #ffffff;              /* icon putih */
  font-size: 24px;
}

/* label: Open Sans, putih, tidak underline */

.dashboard-tile-label {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

/* jaga-jaga: jangan underline saat hover */
.dashboard-tile:hover .dashboard-tile-label {
  text-decoration: none;
}
/* === WHAT'S NEW – kartu dengan gambar di atas & blok hijau di bawah === */

.dashboard-whatsnew {
  margin-bottom: 2.5rem;
}

.dashboard-section-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.dashboard-section-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.9rem;
}

.dashboard-whatsnew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.whatsnew-card {
  border-radius: 1.2rem;
  overflow: hidden;                      /* gambar & blok hijau menyatu */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  background: #0f172a;
  display: flex;
  flex-direction: column;
}

.whatsnew-image-wrap img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.whatsnew-image-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #e5e7eb;
  font-weight: 600;
}

/* blok teks hijau menyatu dengan gambar */
.whatsnew-body {
  background: #7ac852;
  color: #ffffff;
  padding: 0.9rem 1rem 1rem;
}

.whatsnew-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.whatsnew-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.whatsnew-body p {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.whatsnew-link {
  font-size: 0.8rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.whatsnew-link i {
  font-size: 0.75rem;
}

.whatsnew-link:hover {
  text-decoration: underline;
}

.dashboard-whatsnew-empty {
  font-size: 0.85rem;
  color: #6b7280;
}

/* === DASHBOARD TILES – hijau, teks putih, tanpa underline === */

.dashboard-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* anchor sebagai kartu */
.dashboard-tiles .dashboard-tile,
.dashboard-tiles .dashboard-tile:link,
.dashboard-tiles .dashboard-tile:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  background: #7ac852;
  border-radius: 1rem;
  text-align: center;
  text-decoration: none !important;   /* override global a:hover */
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.dashboard-tiles .dashboard-tile:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* icon lebih besar & putih */
.dashboard-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 24px;
}

/* label pakai Open Sans, putih, tidak underline */
.dashboard-tile-label {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  color: #ffffff !important;
}

.dashboard-tiles .dashboard-tile:hover .dashboard-tile-label {
  text-decoration: none !important;
  color: #ffffff !important;
}

.admin-section {
  margin: 1.5rem 0 2rem;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-section-header h1 {
  font-size: 1.2rem;
}

.btn-primary,
.btn-secondary,
.link-small,
.link-danger {
  font-size: 0.85rem;
}

/* ... dll, ini optional banget ... */
/* === WHAT'S NEW SLIDER === */

.dashboard-whatsnew {
  margin-bottom: 2.5rem;
}

.dashboard-section-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.dashboard-section-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.9rem;
}

.whatsnew-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsnew-viewport {
  flex: 1;
  overflow: hidden;
}

.whatsnew-track {
  display: flex;
  transition: transform 0.35s ease;
}

/* Tiap slide menempati 1/3 lebar viewport di desktop */
.whatsnew-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 0.4rem;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .whatsnew-slide {
    flex: 0 0 calc(100% / 2);
  }
}

@media (max-width: 640px) {
  .whatsnew-slide {
    flex: 0 0 100%;
  }
}

.whatsnew-card {
  border-radius: 1.2rem;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.whatsnew-image-wrap img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.whatsnew-image-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #e5e7eb;
  font-weight: 600;
}

/* Blok deskripsi hijau di bawah gambar */
.whatsnew-text {
  background: #7ac852;
  color: #ffffff;
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsnew-text p {
  margin: 0;
}

/* Tombol panah kiri/kanan */
.whatsnew-arrow {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
}

.whatsnew-arrow i {
  font-size: 16px;
}

.whatsnew-arrow[disabled] {
  opacity: 0.3;
  cursor: default;
}

.dashboard-whatsnew-empty {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Judul section dashboard (termasuk "What's New?") */
.dashboard-section-header h2 {
  font-size: 1.6rem;         /* lebih besar */
  font-weight: 700;
  color: #044135;            /* warna sesuai permintaan */
  margin-bottom: 0.25rem;
}

/* Slider What's New */

.whatsnew-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsnew-viewport {
  flex: 1;
  overflow: hidden;
}

.whatsnew-track {
  display: flex;
  transition: transform 0.35s ease;
}

/* 3 kartu di desktop */
.whatsnew-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 0.4rem;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .whatsnew-slide {
    flex: 0 0 calc(100% / 2);
  }
}

@media (max-width: 640px) {
  .whatsnew-slide {
    flex: 0 0 100%;
  }
}

/* Panah kiri/kanan */
.whatsnew-arrow {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
}

.whatsnew-arrow i {
  font-size: 16px;
}

.whatsnew-arrow[disabled] {
  opacity: 0.3;
  cursor: default;
}
/* Hilangkan border di dashboard tiles */
.dashboard-tiles .dashboard-tile,
.dashboard-tiles .dashboard-tile:link,
.dashboard-tiles .dashboard-tile:visited {
  border: none !important;      /* buang garis pinggir */
}
/* === FINAL OVERRIDE: DASHBOARD TILES TANPA BORDER / OUTLINE === */

.dashboard-tiles .dashboard-tile,
.dashboard-tiles .dashboard-tile:link,
.dashboard-tiles .dashboard-tile:visited,
.dashboard-tiles .dashboard-tile:hover,
.dashboard-tiles .dashboard-tile:focus,
.dashboard-tiles .dashboard-tile:active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  background: #7ac852;
  border-radius: 1rem;

  /* ini yang penting */
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);

  text-align: center;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
}

/* jaga-jaga: icon di dalam tile juga jangan punya border */
.dashboard-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 24px;
  border: none !important;
  outline: none !important;
}

/* label tetap putih, tanpa underline */
.dashboard-tile-label {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  color: #ffffff !important;
}
/* === OVERRIDE: Dashboard Tiles flat, tanpa border / shadow === */

.dashboard-tiles .dashboard-tile,
.dashboard-tiles .dashboard-tile:link,
.dashboard-tiles .dashboard-tile:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;

  background: #7ac852;
  border-radius: 1rem;
  text-align: center;

  /* warna & link behaviour */
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer;

  /* penting: benar-benar hilangkan garis/bayang */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hover: sedikit naik, tapi tetap flat, tanpa shadow / underline */
.dashboard-tiles .dashboard-tile:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Icon di dalam tile */
.dashboard-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 26px;
}

.dashboard-tile-icon i {
  font-size: 24px;
}

/* Label: Open Sans, putih, rata tengah, tanpa underline */
.dashboard-tile-label {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
}

/* pastikan hover tidak meng-underline label */
.dashboard-tiles .dashboard-tile:hover .dashboard-tile-label {
  text-decoration: none;
}

/* === FINAL OVERRIDE: WHAT'S NEW CARD TANPA BORDER / SHADOW === */

.whatsnew-card {
  border-radius: 1.2rem;
  overflow: hidden;

  /* ini yang penting */
  background: transparent;        /* atau #f3f4f6 kalau mau senada background */
  border: none !important;
  box-shadow: none !important;

  display: flex;
  flex-direction: column;
}

/* === WHAT'S NEW CARD – NATURAL, TANPA BORDER === */

.whatsnew-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;

  border-radius: 1.5rem;     /* sudut tumpul */
  overflow: hidden;          /* anak-anak ikut radius */

  background: transparent;   /* JANGAN hijau di sini */
  border: none !important;
  box-shadow: none !important;
}

/* wrapper gambar: no padding, no gap */
.whatsnew-image-wrap {
  margin: 0;
  padding: 0;
  line-height: 0;            /* hilangkan gap putih di bawah img */
}

/* gambar isi bagian atas card, ikut radius atas */
.whatsnew-image-wrap img {
  display: block;
  width: 100%;
  height: 220px;             /* boleh diubah 200–240 sesuai selera */
  object-fit: cover;
  border-radius: 0;          /* radius datang dari .whatsnew-card */
}

/* placeholder kalau tidak ada gambar */
.whatsnew-image-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #e5e7eb;
  font-weight: 600;
  border-radius: 0;
}

/* blok deskripsi: hanya bagian bawah yang hijau */
.whatsnew-text {
  background: #7ac852;       /* hijau deskripsi */
  color: #ffffff;
  padding: 0.9rem 1rem;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.whatsnew-text p {
  margin: 0;
}
/* Warna teks deskripsi What’s New – lebih jelas tapi tetap soft */
.whatsnew-text {
  background: #7ac852;
  color: #fdfdfd;            /* default warna teks di blok ini */
}

.whatsnew-text p {
  margin: 0;
  color: #fdfdfd;            /* paksa teks jadi putih lembut */
  font-weight: 500;          /* sedikit lebih tebal biar kebaca */
  letter-spacing: 0.01em;    /* tipis saja, biar rapi */
}
/* === LIST ARTIKEL (Sumber Belajar) === */

.article-list-section {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.article-list-section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.article-list-section-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.article-list-item:hover {
  border-color: #0f9b4c;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.article-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e0f5e7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0f9b4c;
  font-size: 16px;
}

.article-list-content {
  flex: 1;
  min-width: 0;
}

.article-list-title {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.article-list-title a {
  color: #044135;
  text-decoration: none;
}

.article-list-title a:hover {
  text-decoration: underline;
}

.article-list-summary {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.article-list-actions {
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.article-list-edit-btn {
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
  text-decoration: none;
}

.article-list-edit-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

/* === WARNING RECORD STAFF === */

.warning-record-section {
  margin-top: 1rem;
}

.warning-record-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.warning-record-filter label {
  color: #374151;
}

.warning-record-filter select {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.9rem;
}

.warning-record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: auto;
}

.warning-record-table th,
.warning-record-table td {
  border: 1px solid #dee2e6;
  padding: 6px 8px;
  vertical-align: top;
}

.warning-record-table thead th {
  background-color: #f8fafc;
  font-weight: 600;
}

.warning-record-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #6b7280;
}

body {
  overflow-x: hidden;   /* jangan biarkan body melebar lebih dari viewport */
}

/* ========================================= */
/* == DASHBOARD FAQ SECTION =============== */
/* ========================================= */

.dashboard-faq {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.dashboard-faq .dashboard-section-header {
  margin-bottom: 0.75rem;
}

/* list FAQ */
.dashboard-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* satu item FAQ (question bar + answer) */
.faq-item {
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
}

/* bar pertanyaan: chip panjang warna #17264a */
.faq-toggle {
  width: 100%;
  border: none;
  outline: none;
  background-color: #17264a;
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .faq-toggle {
    padding-top: 1rem;
    padding-bottom: 1rem; /* sedikit lebih tinggi dari dashboard-chip */
  }
}

/* ikon panah di kiri */
.faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.faq-toggle-icon i {
  transition: transform 0.18s ease;
}

.faq-question {
  flex: 1;
  font-weight: 600;
}

/* jawaban: hidden awalnya */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  padding: 0 1.2rem;
  transition: max-height 0.22s ease,
              padding-top 0.18s ease,
              padding-bottom 0.18s ease;
}

.faq-answer p {
  margin: 0.75rem 0 0.9rem;
  font-size: 0.9rem;
  color: #333333;  /* jelas, tapi tidak menyilaukan */
}

/* state open */
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 0.6rem;
  padding-bottom: 0.8rem;
}

.faq-item.open .faq-toggle-icon i {
  transform: rotate(180deg); /* panah ke atas saat terbuka */
}

/* link More.. di kanan bawah */
.faq-more {
  margin-top: 0.5rem;
  text-align: right;
}

.faq-more-link {
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
}

.faq-more-link:hover {
  text-decoration: underline;
}

/* teks jika kosong */
.dashboard-faq-empty {
  font-style: italic;
  font-size: 0.9rem;
  color: #6c757d;
}

.website-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.website-checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d0b49f;
  background: #f8f1e9;
  cursor: pointer;
  font-size: 0.85rem;
}

.website-checkbox-pill input[type="checkbox"] {
  /* kalau browser support, warna centang ikut earth-tone */
  accent-color: #c58b50;
}

.website-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.website-checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d0b49f;
  background: #f8f1e9;
  cursor: pointer;
  font-size: 0.85rem;
}

.website-checkbox-pill input[type="checkbox"] {
  accent-color: #c58b50; /* earth tone */
}

/* ===== Website Log: Filter laporan dibuat sejajar ===== */
.filter-form .form-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)); /* 4 kolom: Bulan, Brand, Tipe, Status */
  gap: 12px 14px;
  align-items: end;
}

@media (max-width: 1000px){
  .filter-form .form-row{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 560px){
  .filter-form .form-row{
    grid-template-columns: 1fr;
  }
}

.filter-form .form-field label{
  display: block;
  margin-bottom: 6px;
}

.filter-form .form-field select,
.filter-form .form-field input[type="month"]{
  width: 100%;
}

/* tombol action biar rapih */
.filter-form .form-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}

/* samakan spacing Fraud Member dengan halaman selector lain */
#brand-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

/* ==========================================================
   UI REFRESH PATCH (tempel di paling bawah style.css)
   Fokus: konsistenin layout, card, button, form, table
   ========================================================== */

:root{
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --primary: #0f9b4c;
  --primary-700: #0b7a3b;
  --primary-soft: #e5f6eb;

  --blue: #0d6efd;
  --danger: #dc2626;
  --danger-soft: #ffe3e3;

  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 12px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 18px 55px rgba(15,23,42,.14);
  --ring: 0 0 0 3px rgba(15,155,76,.18);
  --ring-blue: 0 0 0 3px rgba(13,110,253,.18);
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Link lebih modern */
a{ text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Fokus keyboard (aksesibilitas) */
:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* ---------- Header ---------- */
.main-header{
  background: linear-gradient(180deg, #111827, #0f172a);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.main-header .logo{
  letter-spacing: .2px;
}

.header-user-box{
  background: rgba(255,255,255,.06);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

/* Logout biar lebih “premium” */
.header-logout-link{
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Layout Container ---------- */
.main-container{
  gap: 18px;
  align-items: flex-start;
}

/* ---------- Sidebar ---------- */
nav.sidebar{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: sticky;
  top: 18px;
}

nav.sidebar li a{
  font-weight: 600;
}

nav.sidebar li.active > a,
nav.sidebar a.active{
  background: var(--primary);
  color: #fff !important;
}

nav.sidebar li.active .nav-item-dot{
  background: #fff;
}

/* Dropdown menu lebih rapih */
.dropdown-menu{
  border-left: 2px solid var(--border);
}

/* ---------- Content Wrapper ---------- */
.content-wrapper{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* H1 lebih clean */
.content-wrapper h1{
  border-bottom: 1px solid var(--border);
}

/* ---------- Form Inputs ---------- */
form input[type="text"],
form input[type="number"],
form input[type="search"],
form input[type="month"],
form select,
form textarea{
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

form input:focus,
form select:focus,
form textarea:focus{
  outline: none;
  box-shadow: var(--ring-blue);
  border-color: var(--blue);
}

/* Submit button lebih modern */
form button[type="submit"]{
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

form button[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Action Buttons ---------- */
.page-action-button{
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.page-action-button.primary{
  background: #e7f1ff;
  border-color: var(--blue);
}

/* ---------- Tables ---------- */
.content-wrapper table{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.content-wrapper th{
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.content-wrapper tr:hover td{
  background: rgba(15,155,76,.05);
}

/* Website log table: sticky header */
.website-log-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ---------- Dashboard Cards ---------- */
.dashboard-tile{
  border: 1px solid var(--border);
  transition: transform .12s ease, box-shadow .12s ease;
}

.dashboard-tile:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  nav.sidebar{
    position: static;
    top: auto;
  }
  .main-container{
    gap: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* ==========================================================
   FIX KHUSUS: /data-cleanup-playbook (konten mentok ke samping)
   - Aktif hanya saat link /data-cleanup-playbook sedang active
   - Hanya apply jika di halaman tsb tidak ada .content-wrapper
   ========================================================== */

/* Card + padding untuk content-area (kalau wrapper tidak ada) */
body:has(nav.sidebar a[href="/data-cleanup-playbook"].active) .content-area:not(:has(.content-wrapper)),
body:has(nav.sidebar li.active > a[href="/data-cleanup-playbook"]) .content-area:not(:has(.content-wrapper)),
body:has(nav.sidebar li.active a[href="/data-cleanup-playbook"]) .content-area:not(:has(.content-wrapper)) {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 25px 30px;

  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  line-height: 1.7;
  color: #333;
}

/* Rapihin konten doc supaya enak dibaca (khusus page ini) */
body:has(nav.sidebar a[href="/data-cleanup-playbook"].active) .content-area:not(:has(.content-wrapper)) p,
body:has(nav.sidebar li.active a[href="/data-cleanup-playbook"]) .content-area:not(:has(.content-wrapper)) p {
  margin: 0 0 1.1em 0;
}

/* Tabel Google Doc kadang panjang: bikin bisa scroll horizontal */
body:has(nav.sidebar a[href="/data-cleanup-playbook"].active) .content-area:not(:has(.content-wrapper)) table,
body:has(nav.sidebar li.active a[href="/data-cleanup-playbook"]) .content-area:not(:has(.content-wrapper)) table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

/* Pastikan gambar aman di container */
body:has(nav.sidebar a[href="/data-cleanup-playbook"].active) .content-area:not(:has(.content-wrapper)) img,
body:has(nav.sidebar li.active a[href="/data-cleanup-playbook"]) .content-area:not(:has(.content-wrapper)) img {
  max-width: 100%;
  height: auto;
}

/* Mobile: padding lebih kecil */
@media (max-width: 768px) {
  body:has(nav.sidebar a[href="/data-cleanup-playbook"].active) .content-area:not(:has(.content-wrapper)),
  body:has(nav.sidebar li.active a[href="/data-cleanup-playbook"]) .content-area:not(:has(.content-wrapper)) {
    padding: 15px;
    margin: 10px 0;
    max-width: 100%;
  }
}

/* === Data Cleanup Playbook (Google Doc render) === */
.jd-document {
  overflow-x: auto;              /* tabel lebar tidak nabrak layout */
  overflow-wrap: anywhere;       /* teks panjang tidak nyundul */
}

.jd-document p {
  line-height: 1.65;
}

.jd-document img {
  display: block;
  max-width: 100%;
  height: auto;
}

.jd-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

/* ==========================================================
   Dashboard Cleanup Reminder (Monday) - chat widget
   ========================================================== */

.cleanup-reminder {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;

  /* default hidden untuk cegah flash saat bukan hari Senin */
  display: none;

  gap: 10px;
  align-items: flex-end;

  /* non-blocking: container tidak "nangkap" klik, hanya anaknya */
  pointer-events: none;
}

.cleanup-reminder.is-enabled {
  display: flex;
}

.cleanup-reminder__fab,
.cleanup-reminder__bubble,
.cleanup-reminder__close,
.cleanup-reminder__link {
  pointer-events: auto;
}

.cleanup-reminder__fab {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: #0f9b4c;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cleanup-reminder__fab:hover {
  transform: translateY(-1px);
}

.cleanup-reminder__bubble {
  width: 320px;
  max-width: calc(100vw - 60px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);

  padding: 12px 14px 12px 14px;
  position: relative;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.cleanup-reminder__bubble.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* “tail” chat bubble */
.cleanup-reminder__bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

.cleanup-reminder__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.cleanup-reminder__close:hover {
  color: #0f172a;
}

.cleanup-reminder__title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}

.cleanup-reminder__text {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 10px;
}

.cleanup-reminder__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cleanup-reminder__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;

  background: #e5f6eb;
  color: #0b7a3b;
  border: 1px solid #bfe9cf;
}

.cleanup-reminder__link:hover {
  filter: brightness(0.98);
}

@media (max-width: 768px) {
  .cleanup-reminder {
    left: 12px;
    bottom: 12px;
  }
  .cleanup-reminder__bubble {
    width: 280px;
  }
}

/* ==========================================================
   Galaxy Theme - Cleanup Reminder Bubble
   ========================================================== */

/* tombol chat (FAB) jadi gradien galaksi */
.cleanup-reminder__fab{
  background: radial-gradient(circle at 30% 30%, #7c3aed 0%, #2563eb 35%, #0ea5e9 70%, #0b1020 110%);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.28), 0 12px 28px rgba(37, 99, 235, 0.22);
}

/* bubble galaksi */
.cleanup-reminder__bubble{
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(1000px 420px at -10% -20%, rgba(124,58,237,.55) 0%, rgba(124,58,237,0) 60%),
    radial-gradient(900px 420px at 110% 0%, rgba(37,99,235,.45) 0%, rgba(37,99,235,0) 55%),
    radial-gradient(700px 380px at 40% 120%, rgba(14,165,233,.25) 0%, rgba(14,165,233,0) 60%),
    linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  box-shadow:
    0 18px 55px rgba(2, 6, 23, .55),
    0 0 0 1px rgba(255,255,255,.06) inset;
  color: rgba(255,255,255,.92);
}

/* bintang-bintang subtle */
.cleanup-reminder__bubble::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 14px;
  pointer-events:none;
  background-image:
    radial-gradient(2px 2px at 18% 22%, rgba(255,255,255,.70) 40%, transparent 42%),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(255,255,255,.55) 40%, transparent 42%),
    radial-gradient(1.2px 1.2px at 48% 36%, rgba(255,255,255,.40) 40%, transparent 42%),
    radial-gradient(1.8px 1.8px at 82% 55%, rgba(255,255,255,.45) 40%, transparent 42%),
    radial-gradient(1.3px 1.3px at 28% 62%, rgba(255,255,255,.35) 40%, transparent 42%),
    radial-gradient(1.6px 1.6px at 56% 78%, rgba(255,255,255,.40) 40%, transparent 42%);
  opacity: .55;
}

/* “tail” bubble ikut gelap */
.cleanup-reminder__bubble::after{
  background: linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  border-left: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

/* teks */
.cleanup-reminder__title{
  color: rgba(255,255,255,.92);
  letter-spacing: .2px;
}
.cleanup-reminder__text{
  color: rgba(255,255,255,.82);
}

/* tombol close */
.cleanup-reminder__close{
  color: rgba(255,255,255,.65);
}
.cleanup-reminder__close:hover{
  color: rgba(255,255,255,.95);
}

/* link action jadi “neon pill” */
.cleanup-reminder__link{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(124,58,237,.18);
  color: rgba(255,255,255,.92);
}
.cleanup-reminder__link:hover{
  background: rgba(37,99,235,.22);
}

/* Fix kontras teks tombol "Buka Playbook" */
.cleanup-reminder__link,
.cleanup-reminder__link:visited{
  color: #fff !important;
}

.cleanup-reminder__link:hover,
.cleanup-reminder__link:active{
  color: #fff !important;
}

.cleanup-reminder__link{
  text-shadow: 0 1px 10px rgba(255,255,255,.18);
}

/* === WORK ANALYST: INTERVAL PROCESS === */
.wa-report-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wa-report-btn{
  border: 1px solid rgba(148,163,184,.35);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  text-align:left;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wa-report-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
}
.wa-report-date{
  font-weight: 800;
  letter-spacing: .2px;
}
.wa-report-meta{
  margin-top: 8px;
  opacity: .85;
}
.wa-report-meta .chip{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(99, 102, 241, .25);
}

/* Modal non-blocking */
.wa-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  pointer-events: none; /* background tetap bisa diklik */
}
.wa-modal.open{ display:block; }

.wa-modal-panel{
  pointer-events: auto;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100vw - 34px));
  height: min(80vh, 820px);
  background: #0b1220;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  box-shadow: 0 26px 90px rgba(0,0,0,.45);
  overflow: hidden;
}

.wa-modal-close{
  position:absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 22px;
  cursor:pointer;
}

.wa-modal-body{
  position:absolute;
  inset: 46px 0 0 0;
}

.wa-modal-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* modal overlay */
.wa-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,.72);
  z-index: 99990;

  /* penting: biar scroll wheel nggak “ketahan” di body */
  overflow: hidden;
}

.wa-modal.is-open{
  display: flex;
}

/* wrapper konten modal */
.wa-modal__panel{
  width: min(1100px, 96vw);
  height: min(86vh, 920px);
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;

  display: flex;
  flex-direction: column;

  /* penting untuk flex + overflow */
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* tombol close */
.wa-modal-x{
  position: absolute; /* lebih aman di dalam panel */
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.75);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  pointer-events: auto;
}

/* area body harus bisa scroll */
#waDetailBody{
  flex: 1 1 auto;
  min-height: 0;                 /* INI KUNCI: tanpa ini sering “nggak bisa scroll” */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #0b1220;
  position: relative;
}

/* iframe penuh + bisa diklik/scroll */
.wa-report-iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  pointer-events: auto;          /* pastikan klik masuk ke iframe */
}

/* LIST REPORT: tambah ke bawah (vertical) */
.wa-report-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;

  /* pastikan tidak jadi horizontal scroll */
  grid-auto-flow: row;
  overflow-x: hidden;
}
.wa-report-grid{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wa-report-btn{
  width: 100%;
  text-align: left;
}

/* === UPGRADE FAQ STYLE === */
  .dashboard-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  }
  /* Saat FAQ sedang dibuka */
  .faq-item.open {
    border-color: #0d6efd;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.08);
  }
  .faq-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    text-align: left;
    outline: none;
  }
  .faq-toggle-icon {
    color: #64748b;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
    color: #0d6efd;
  }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    background: #f8fafc;
    padding: 0 20px;
  }
  .faq-item.open .faq-answer {
    max-height: 1000px; /* Angka besar agar muat banyak teks */
    padding: 0 20px 16px 20px;
    border-top: 1px solid #f1f5f9;
  }
  .faq-answer p {
    margin: 12px 0 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    white-space: pre-wrap; /* INI KUNCI: Mempertahankan 'enter' dari textarea */
  }
  .faq-more {
    text-align: center;
    margin-top: 8px;
  }
  .faq-more-link {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    background: #e7f1ff;
    border-radius: 999px;
    display: inline-block;
    transition: background 0.2s;
  }
  .faq-more-link:hover {
    background: #d0e4ff;
  }

  /* === FIX RESPONSIVE UNTUK ARTIKEL SOP & TABEL DI MOBILE === */

/* Memastikan gambar di dalam artikel mengecil otomatis di HP */
.content-wrapper img, 
.content-wrapper iframe, 
.content-wrapper video {
  max-width: 100%;
  height: auto;
}

/* Membuat tabel di dalam artikel SOP bisa di-scroll horizontal di HP */
.content-wrapper table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

/* Menghindari teks panjang (seperti link) merusak layout */
.content-wrapper p, 
.content-wrapper li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}