/* ==========================================================================
   STARLA MASTER STYLESHEET (CLEAN & UNIFIED)
   Version: 3.1 (Mobile Optimized)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & CONFIGURATION
   -------------------------------------------------------------------------- */
:root {
    /* --- COLORS --- */
    --primary: #0ea5e9;        /* Sky Blue */
    --primary-dark: #0284c7;   /* Darker Blue */
    --secondary: #6366f1;      /* Indigo */
    
    --text-dark: #0f172a;      /* Slate 900 */
    --text-main: #1e293b;      /* Slate 800 */
    --text-muted: #64748b;     /* Slate 500 */
    
    /* --- BACKGROUNDS & BORDERS --- */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --border-card: #cbd5e1;
    --border-light: #e2e8f0;

    /* --- GRADIENTS --- */
    --grad-main: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --grad-sidebar: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --grad-login-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* --- DIMENSIONS --- */
    --font-xs: 10px;
    --font-sm: 11px;
    --radius-box: 12px;
    --radius-el: 6px;
    --radius-pill: 50px;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 60px;
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-size: var(--font-sm);
    overflow-x: hidden;
    margin: 0; padding: 0;
}

input, select, textarea, button { font-family: inherit; font-size: inherit; }
input[type="text"], textarea, .text-upper { text-transform: uppercase; }
a { text-decoration: none; }

/* Global Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
    100% { transform: translate(0, 0); }
}

/* --------------------------------------------------------------------------
   3. LAYOUT STRUCTURE (SIDEBAR & MAIN)
   -------------------------------------------------------------------------- */
/* Sidebar Desktop Default */
.sidebar {
    width: var(--sidebar-width); 
    position: fixed; 
    top: 0; 
    bottom: 0; /* Full Height */
    left: 0;
    background: var(--grad-sidebar) !important; 
    padding: 0; 
    z-index: 1000;
    display: flex; flex-direction: column; 
    transition: width 0.3s ease;
    overflow: hidden; 
}

.sidebar .logo-area {
    height: 60px; 
    display: flex; align-items: center; padding: 0 20px;
    color: white; font-weight: 800; font-size: 18px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer;
    flex-shrink: 0; 
}

.user-widget {
    padding: 25px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: rgba(0,0,0,0.1); 
    flex-shrink: 0; transition: all 0.3s ease;
}

.user-avatar {
    width: 65px; height: 65px;
    border-radius: 50%; border: 3px solid rgba(255,255,255,0.2);
    object-fit: cover; margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); background: #fff;
}

.user-role-badge {
    font-size: 9px; background: var(--grad-main);
    padding: 3px 10px; border-radius: 20px;
    color: white; text-transform: uppercase; font-weight: 700;
    letter-spacing: 0.5px; margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-name {
    color: white; font-weight: 600; font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; opacity: 0.9;
}

.menu-content { 
    flex-grow: 1; overflow-y: auto; scrollbar-width: none; padding: 10px; 
}

.sidebar .menu-label { 
    padding: 15px 10px 5px 10px; font-size: 9px; 
    font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px;
}

.sidebar a {
    padding: 8px 10px; margin-bottom: 2px; 
    color: #94a3b8; display: flex; align-items: center; 
    border-radius: 6px; transition: 0.2s; font-weight: 500;
}
.sidebar a:hover { background: rgba(255,255,255,0.1); color: white; }
.sidebar a.active { 
    background: var(--grad-main); color: white; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}
.sidebar a i { width: 25px; text-align: center; margin-right: 10px; font-size: 13px; }
.sidebar a span { white-space: nowrap; transition: opacity 0.2s; }

/* Sidebar Collapsed (Desktop) */
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }
.sidebar.collapsed .logo-area { justify-content: center; padding: 0; }
.sidebar.collapsed .logo-area span,
.sidebar.collapsed .user-widget .user-name,
.sidebar.collapsed .user-widget .user-role-badge,
.sidebar.collapsed .menu-label,
.sidebar.collapsed a span { display: none; }
.sidebar.collapsed .user-widget { padding: 15px 5px; background: transparent; border-bottom: none; }
.sidebar.collapsed .user-avatar { width: 35px; height: 35px; margin-bottom: 0; border-width: 2px; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width); min-height: 100vh; padding: 15px;
    display: flex; flex-direction: column; gap: 12px;
    transition: margin-left 0.3s ease;
}
.main-content.expanded { margin-left: var(--sidebar-collapsed-width); }

/* --------------------------------------------------------------------------
   4. TOP BAR & PAGE HEADER
   -------------------------------------------------------------------------- */
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding: 5px 0;
}

.page-header-group { display: flex; align-items: center; gap: 12px; }

.page-title .icon-box {
    background: var(--grad-main); color: white;
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}
.page-title h6 { margin: 0; line-height: 1; padding-top: 2px; }

.search-pill { position: relative; width: 300px; margin-left: 15px; }
.search-pill input {
    width: 100%; padding: 10px 15px 10px 40px;
    border: 1px solid transparent; border-radius: 50px;
    background: #ffffff; font-size: 11px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.3s ease;
}
.search-pill input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15); width: 320px;
}
.search-pill .search-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 12px;
}

.btn-icon-soft {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border-light); background: white;
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-icon-soft:hover {
    background: #f0f9ff; color: var(--primary);
    border-color: var(--primary); transform: rotate(180deg);
}


/* ==========================================================================
   KHUSUS MODULE KELAHIRAN (.module-lahir)
   Mencegah konflik CSS dengan halaman/modul lain
   ========================================================================== */

.module-lahir .spreadsheet-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; 
    margin-bottom: 20px !important; 
    padding-bottom: 0 !important;
    
    height: calc(100vh - 180px); 
    display: flex;
    flex-direction: column;
}

.module-lahir .table-scroll-area {
    flex-grow: 1;
    overflow-y: auto !important; 
    overflow-x: auto !important; 
    
    border-bottom: 1px solid #e2e8f0; 
}

.module-lahir .table-sheet thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.module-lahir .table-footer {
    background: #f8fafc;
    padding: 12px 15px;
}

.module-lahir.sudah-dipindah {
    position: relative;
    z-index: 999999 !important; 
}

.module-lahir .modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px); 
    z-index: 999999 !important;
    
    /* WAJIB FLEX AGAR ISI MODAL KE TENGAH */
    display: flex !important; 
    align-items: center;
    justify-content: center;
    padding: 15px;

    /* LOGIKA PENYEMBUNYIAN (TANPA DISPLAY NONE) */
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* CLASS PENGERAK SAAT MODAL AKTIF */
.module-lahir .modal-overlay.show-modal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* Kembalikan fungsi klik */
}

/* 3. Styling Modal Box dengan Animasi Pop-Up Halus */
.module-lahir .modal-box {
    background: #fff;
    width: 100%;
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    
    /* Posisi awal sebelum muncul (Agak ke bawah & mengecil) */
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Saat modal aktif, box-nya kembali ke ukuran dan posisi normal */
.module-lahir .modal-overlay.show-modal .modal-box {
    transform: translateY(0) scale(1);
}

/* 4. Area Scrollable pada Modal Body */
.module-lahir .modal-body {
    overflow-y: auto;
    padding: 20px;
}

/* 6. Perbaikan Header Modal (Warna Elegan & Tulisan Jelas Terbaca) */
.module-lahir .modal-header-modern {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    border-bottom: none !important;
}

.module-lahir .modal-header-modern h6,
.module-lahir .modal-header-modern small {
    color: #ffffff !important; /* Paksa teks menjadi putih */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.module-lahir .modal-header-modern .bg-white i {
    color: #0ea5e9 !important; /* Icon bayi menjadi warna biru agar match */
}

.module-lahir .modal-header-modern .btn-close {
    filter: brightness(0) invert(1); /* Paksa tombol silang (X) menjadi warna putih */
    opacity: 0.8;
}

.module-lahir .modal-header-modern .btn-close:hover {
    opacity: 1;
}

/* 5. Floating Action Button (FAB) Mobile */
.module-lahir .fab-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s;
}
.module-lahir .fab-trigger:active {
    transform: scale(0.9);
}

/* Animasi sederhana untuk modal */
@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-lahir .search-filter-wrapper {
        margin: 10px 0 !important;
    }
    .module-lahir .search-filter-wrapper > .d-flex {
        flex-direction: row;
        width: 100%;
    }
    .module-lahir .search-filter-wrapper select {
        flex: 1; /* Membagi dua filter bulan dan tahun sama rata di HP */
    }
}


/* ==========================================================================
   KHUSUS MODULE KEMATIAN (.module-mati)
   Mencegah konflik CSS dengan halaman/modul lain
   ========================================================================== */
.module-mati .spreadsheet-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; 
    margin-bottom: 20px !important; 
    padding-bottom: 0 !important;
    height: calc(100vh - 180px); 
    display: flex;
    flex-direction: column;
}

.module-mati .table-scroll-area {
    flex-grow: 1;
    overflow-y: auto !important; 
    overflow-x: auto !important; 
    border-bottom: 1px solid #e2e8f0; 
}

.module-mati .table-sheet thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.module-mati .table-footer {
    background: #f8fafc;
    padding: 12px 15px;
}

.module-mati.sudah-dipindah {
    position: relative;
    z-index: 999999 !important; 
}

/* Modal Styling */
.module-mati .modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px); 
    z-index: 999999 !important;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    padding: 15px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.module-mati .modal-overlay.show-modal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; 
}

.module-mati .modal-box {
    background: #fff;
    width: 100%;
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.module-mati .modal-overlay.show-modal .modal-box {
    transform: translateY(0) scale(1);
}

.module-mati .modal-body {
    overflow-y: auto;
    padding: 20px;
}

/* Tema Khusus Kematian (Dark/Gray Gradient) */
.module-mati .modal-header-modern {
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%) !important;
    border-bottom: none !important;
}

.module-mati .modal-header-modern h6,
.module-mati .modal-header-modern small {
    color: #ffffff !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.module-mati .modal-header-modern .bg-white i {
    color: #1f2937 !important; 
}

.module-mati .modal-header-modern .btn-close {
    filter: brightness(0) invert(1); 
    opacity: 0.8;
}

.module-mati .modal-header-modern .btn-close:hover {
    opacity: 1;
}

/* Floating Action Button (FAB) Mobile */
.module-mati .fab-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #374151, #111827);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s;
}
.module-mati .fab-trigger:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .module-mati .search-filter-wrapper { margin: 10px 0 !important; }
    .module-mati .search-filter-wrapper > .d-flex { flex-direction: row; width: 100%; }
    .module-mati .search-filter-wrapper select { flex: 1; }
}

/* ==========================================================================
   END OF MODULE KEMATIAN
   ========================================================================== */
/* ==========================================================================
   KHUSUS MODULE KARTU KELUARGA (.module-kk)
   Mencegah konflik CSS dengan halaman/modul lain
   Tema Warna: Orange / Warning (#f59e0b - #d97706)
   ========================================================================== */

.module-kk .spreadsheet-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; 
    margin-bottom: 20px !important; 
    padding-bottom: 0 !important;
    height: calc(100vh - 180px); 
    display: flex;
    flex-direction: column;
}

.module-kk .table-scroll-area {
    flex-grow: 1;
    overflow-y: auto !important; 
    overflow-x: auto !important; 
    border-bottom: 1px solid #e2e8f0; 
}

.module-kk .table-sheet thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.module-kk .table-footer {
    background: #f8fafc;
    padding: 12px 15px;
}

.module-kk.sudah-dipindah {
    position: relative;
    z-index: 999999 !important; 
}

/* Modal Overlay & Animasi */
.module-kk .modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px); 
    z-index: 999999 !important;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    padding: 15px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.module-kk .modal-overlay.show-modal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; 
}

.module-kk .modal-box {
    background: #fff;
    width: 100%;
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.module-kk .modal-overlay.show-modal .modal-box {
    transform: translateY(0) scale(1);
}

.module-kk .modal-body {
    overflow-y: auto;
    padding: 20px;
}

/* Header Modal Tema Orange/Warning */
.module-kk .modal-header-modern {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-bottom: none !important;
}

.module-kk .modal-header-modern h6,
.module-kk .modal-header-modern small {
    color: #ffffff !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.module-kk .modal-header-modern .btn-close {
    filter: brightness(0) invert(1); 
    opacity: 0.8;
}

.module-kk .modal-header-modern .btn-close:hover {
    opacity: 1;
}

/* Floating Action Button (FAB) Mobile Tema Orange */
.module-kk .fab-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s;
}
.module-kk .fab-trigger:active {
    transform: scale(0.9);
}

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-kk .search-filter-wrapper { margin: 10px 0 !important; }
    .module-kk .search-filter-wrapper > .d-flex { flex-direction: row; width: 100%; }
    .module-kk .search-filter-wrapper select { flex: 1; }
}

/* Styling Input Focus Tema Orange (Opsional) */
.module-kk .form-control:focus, 
.module-kk .form-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}
/* ==========================================================================
   END OF MODULE KARTU KELUARGA
   ========================================================================== */

/* ==========================================================================
   KHUSUS MODULE KIA (.module-kia)
   Tema Warna: Pink / Rose (#ec4899 - #be185d)
   ========================================================================== */

.module-kia .spreadsheet-wrapper {
    position: relative; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; overflow: hidden; margin-bottom: 20px !important; 
    padding-bottom: 0 !important; height: calc(100vh - 180px); display: flex; flex-direction: column;
}
.module-kia .table-scroll-area { flex-grow: 1; overflow-y: auto !important; overflow-x: auto !important; border-bottom: 1px solid #e2e8f0; }
.module-kia .table-sheet thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.module-kia .table-footer { background: #f8fafc; padding: 12px 15px; }
.module-kia.sudah-dipindah { position: relative; z-index: 999999 !important; }

/* Modal Overlay & Animasi */
.module-kia .modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important; backdrop-filter: blur(3px); 
    z-index: 999999 !important; display: flex !important; align-items: center;
    justify-content: center; padding: 15px; visibility: hidden; opacity: 0;
    pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.module-kia .modal-overlay.show-modal { visibility: visible; opacity: 1; pointer-events: auto; }
.module-kia .modal-box {
    background: #fff; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.module-kia .modal-overlay.show-modal .modal-box { transform: translateY(0) scale(1); }
.module-kia .modal-body { overflow-y: auto; padding: 20px; }

/* Header Modal Tema Pink/Rose */
.module-kia .modal-header-modern { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important; border-bottom: none !important; }
.module-kia .modal-header-modern h6, .module-kia .modal-header-modern small { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.module-kia .modal-header-modern .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }
.module-kia .modal-header-modern .btn-close:hover { opacity: 1; }

/* FAB Mobile Tema Pink */
.module-kia .fab-trigger {
    position: fixed; bottom: 30px; right: 20px; width: 55px; height: 55px;
    background: linear-gradient(135deg, #ec4899, #be185d); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4); z-index: 999; cursor: pointer; transition: transform 0.2s;
}
.module-kia .fab-trigger:active { transform: scale(0.9); }

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-kia .search-filter-wrapper { margin: 10px 0 !important; }
    .module-kia .search-filter-wrapper > .d-flex { flex-direction: row; width: 100%; }
    .module-kia .search-filter-wrapper select { flex: 1; }
}
.module-kia .form-control:focus, .module-kia .form-select:focus { border-color: #ec4899; box-shadow: 0 0 0 0.25rem rgba(236, 72, 153, 0.25); }
/* ========================================================================== */
/* ==========================================================================
   KHUSUS MODULE IDENTITAS DIGITAL (IKD) (.module-ikd)
   Tema Warna: Emerald Green (#10b981 - #047857)
   Mencegah konflik CSS dengan halaman/modul lain
   ========================================================================== */

.module-ikd .spreadsheet-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; 
    margin-bottom: 20px !important; 
    padding-bottom: 0 !important;
    height: calc(100vh - 180px); 
    display: flex;
    flex-direction: column;
}

.module-ikd .table-scroll-area {
    flex-grow: 1;
    overflow-y: auto !important; 
    overflow-x: auto !important; 
    border-bottom: 1px solid #e2e8f0; 
}

.module-ikd .table-sheet thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.module-ikd .table-footer {
    background: #f8fafc;
    padding: 12px 15px;
}

.module-ikd.sudah-dipindah {
    position: relative;
    z-index: 999999 !important; 
}

/* Modal Overlay & Animasi */
.module-ikd .modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px); 
    z-index: 999999 !important;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    padding: 15px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.module-ikd .modal-overlay.show-modal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; 
}

.module-ikd .modal-box {
    background: #fff;
    width: 100%;
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.module-ikd .modal-overlay.show-modal .modal-box {
    transform: translateY(0) scale(1);
}

.module-ikd .modal-body {
    overflow-y: auto;
    padding: 20px;
}

/* Header Modal Tema Emerald Green */
.module-ikd .modal-header-modern {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    border-bottom: none !important;
}

.module-ikd .modal-header-modern h6,
.module-ikd .modal-header-modern small {
    color: #ffffff !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.module-ikd .modal-header-modern .btn-close {
    filter: brightness(0) invert(1); 
    opacity: 0.8;
}

.module-ikd .modal-header-modern .btn-close:hover {
    opacity: 1;
}

/* Floating Action Button (FAB) Mobile Tema Emerald Green */
.module-ikd .fab-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s;
}

.module-ikd .fab-trigger:active {
    transform: scale(0.9);
}

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-ikd .search-filter-wrapper { margin: 10px 0 !important; }
    .module-ikd .search-filter-wrapper > .d-flex { flex-direction: row; width: 100%; }
    .module-ikd .search-filter-wrapper select { flex: 1; }
}

/* Styling Input Focus Tema Emerald Green */
.module-ikd .form-control:focus, 
.module-ikd .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}
/* ==========================================================================
   END OF MODULE IKD
   ========================================================================== */

/* ==========================================================================
   KHUSUS MODULE CETAK KTP (.module-cetak)
   Tema Warna: Ocean Blue (#0ea5e9 - #0369a1)
   Mencegah konflik CSS dengan halaman/modul lain
   ========================================================================== */

.module-cetak .spreadsheet-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; 
    margin-bottom: 20px !important; 
    padding-bottom: 0 !important;
    height: calc(100vh - 180px); 
    display: flex;
    flex-direction: column;
}

.module-cetak .table-scroll-area {
    flex-grow: 1;
    overflow-y: auto !important; 
    overflow-x: auto !important; 
    border-bottom: 1px solid #e2e8f0; 
}

.module-cetak .table-sheet thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.module-cetak .table-footer {
    background: #f8fafc;
    padding: 12px 15px;
}

.module-cetak.sudah-dipindah {
    position: relative;
    z-index: 999999 !important; 
}

/* Modal Overlay & Animasi */
.module-cetak .modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px); 
    z-index: 999999 !important;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    padding: 15px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.module-cetak .modal-overlay.show-modal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; 
}

.module-cetak .modal-box {
    background: #fff;
    width: 100%;
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.module-cetak .modal-overlay.show-modal .modal-box {
    transform: translateY(0) scale(1);
}

.module-cetak .modal-body {
    overflow-y: auto;
    padding: 20px;
}

/* Header Modal Tema Ocean Blue */
.module-cetak .modal-header-modern {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%) !important;
    border-bottom: none !important;
}

.module-cetak .modal-header-modern h6,
.module-cetak .modal-header-modern small {
    color: #ffffff !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.module-cetak .modal-header-modern .btn-close {
    filter: brightness(0) invert(1); 
    opacity: 0.8;
}

.module-cetak .modal-header-modern .btn-close:hover {
    opacity: 1;
}

/* Floating Action Button (FAB) Mobile Tema Ocean Blue */
.module-cetak .fab-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s;
}

.module-cetak .fab-trigger:active {
    transform: scale(0.9);
}

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-cetak .search-filter-wrapper { margin: 10px 0 !important; }
    .module-cetak .search-filter-wrapper > .d-flex { flex-direction: row; width: 100%; }
    .module-cetak .search-filter-wrapper select { flex: 1; }
}

/* Styling Input Focus Tema Ocean Blue */
.module-cetak .form-control:focus, 
.module-cetak .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25);
}
/* ==========================================================================
   END OF MODULE CETAK KTP
   ========================================================================== */


/* ==========================================================================
   KHUSUS MODULE REKAM KTP (.module-rekam)
   Tema Warna: Indigo / Blue (#2563eb - #1d4ed8)
   ========================================================================== */

.module-rekam .spreadsheet-wrapper {
    position: relative; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; overflow: hidden; margin-bottom: 20px !important; 
    padding-bottom: 0 !important; height: calc(100vh - 180px); display: flex; flex-direction: column;
}
.module-rekam .table-scroll-area { flex-grow: 1; overflow-y: auto !important; overflow-x: auto !important; border-bottom: 1px solid #e2e8f0; }
.module-rekam .table-sheet thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.module-rekam .table-footer { background: #f8fafc; padding: 12px 15px; }
.module-rekam.sudah-dipindah { position: relative; z-index: 999999 !important; }

/* Modal Overlay & Animasi */
.module-rekam .modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important; backdrop-filter: blur(3px); 
    z-index: 999999 !important; display: flex !important; align-items: center; justify-content: center;
    padding: 15px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.module-rekam .modal-overlay.show-modal { visibility: visible; opacity: 1; pointer-events: auto; }
.module-rekam .modal-box {
    background: #fff; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.module-rekam .modal-overlay.show-modal .modal-box { transform: translateY(0) scale(1); }
.module-rekam .modal-body { overflow-y: auto; padding: 20px; }

/* Header Modal Tema Indigo */
.module-rekam .modal-header-modern { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; border-bottom: none !important; }
.module-rekam .modal-header-modern h6, .module-rekam .modal-header-modern small { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.module-rekam .modal-header-modern .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }
.module-rekam .modal-header-modern .btn-close:hover { opacity: 1; }

/* FAB Mobile Tema Indigo */
.module-rekam .fab-trigger {
    position: fixed; bottom: 30px; right: 20px; width: 55px; height: 55px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); z-index: 999; cursor: pointer; transition: transform 0.2s;
}
.module-rekam .fab-trigger:active { transform: scale(0.9); }

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-rekam .search-filter-wrapper { margin: 10px 0 !important; }
    .module-rekam .search-filter-wrapper > .d-flex { flex-direction: row; width: 100%; }
    .module-rekam .search-filter-wrapper select { flex: 1; }
}
.module-rekam .form-control:focus, .module-rekam .form-select:focus { border-color: #2563eb; box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25); }


/* ==========================================================================
   END OF MODULE CETAK KTP
   ========================================================================== */
/* ==========================================================================
   KHUSUS MODULE PENERBITAN NIK (.module-nik)
   Tema Warna: Teal / Blue-Green (#0d9488 - #0f766e)
   ========================================================================== */

.module-nik .spreadsheet-wrapper {
    position: relative; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; overflow: hidden; margin-bottom: 20px !important; 
    padding-bottom: 0 !important; height: calc(100vh - 180px); display: flex; flex-direction: column;
}
.module-nik .table-scroll-area { flex-grow: 1; overflow-y: auto !important; overflow-x: auto !important; border-bottom: 1px solid #e2e8f0; }
.module-nik .table-sheet thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.module-nik .table-footer { background: #f8fafc; padding: 12px 15px; }
.module-nik.sudah-dipindah { position: relative; z-index: 999999 !important; }

/* Modal Overlay & Animasi */
.module-nik .modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important; backdrop-filter: blur(3px); 
    z-index: 999999 !important; display: flex !important; align-items: center; justify-content: center;
    padding: 15px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.module-nik .modal-overlay.show-modal { visibility: visible; opacity: 1; pointer-events: auto; }
.module-nik .modal-box {
    background: #fff; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.module-nik .modal-overlay.show-modal .modal-box { transform: translateY(0) scale(1); }
.module-nik .modal-body { overflow-y: auto; padding: 20px; }

/* Header Modal Tema Teal (Untuk Form) */
.module-nik .modal-header-teal { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important; border-bottom: none !important; }
/* Header Modal Tema Dark Slate (Untuk Tarik Data) */
.module-nik .modal-header-dark { background: linear-gradient(135deg, #334155 0%, #0f172a 100%) !important; border-bottom: none !important; }

.module-nik .modal-header-teal h6, .module-nik .modal-header-teal small,
.module-nik .modal-header-dark h6, .module-nik .modal-header-dark small { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.module-nik .btn-close-white { filter: brightness(0) invert(1); opacity: 0.8; }
.module-nik .btn-close-white:hover { opacity: 1; }

/* FAB Mobile Tema Teal */
.module-nik .fab-trigger {
    position: fixed; bottom: 30px; right: 20px; width: 55px; height: 55px;
    background: linear-gradient(135deg, #0d9488, #0f766e); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4); z-index: 999; cursor: pointer; transition: transform 0.2s;
}
.module-nik .fab-trigger:active { transform: scale(0.9); }

/* Custom Badge Sumber Data */
.module-nik .bg-soft-teal { background: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }
.module-nik .bg-soft-blue { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Responsivitas Top Bar: Form Element Grouping */
@media (max-width: 768px) {
    .module-nik .search-filter-wrapper { margin: 10px 0 !important; width: 100%; flex-direction: column !important; }
    .module-nik .filter-group { display: flex; flex-direction: row; gap: 8px; width: 100%; }
    .module-nik .filter-group select { flex: 1; }
    .module-nik .search-box { width: 100% !important; max-width: 100% !important; margin-top: 8px; }
}
.module-nik .form-control:focus, .module-nik .form-select:focus { border-color: #0d9488; box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25); }
/* ========================================================================== */

/* ==========================================================================
   KHUSUS MODULE PINDAH KELUAR / SKPWNI (.module-pindah)
   Tema Warna: Teal / Blue-Green (#0d9488 - #0f766e)
   ========================================================================== */

.module-pindah .spreadsheet-wrapper {
    position: relative; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; overflow: hidden; margin-bottom: 20px !important; 
    padding-bottom: 0 !important; height: calc(100vh - 180px); display: flex; flex-direction: column;
}
.module-pindah .table-scroll-area { flex-grow: 1; overflow-y: auto !important; overflow-x: auto !important; border-bottom: 1px solid #e2e8f0; }
.module-pindah .table-sheet thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.module-pindah .table-footer { background: #f8fafc; padding: 12px 15px; }
.module-pindah.sudah-dipindah { position: relative; z-index: 999999 !important; }

/* Modal Overlay & Animasi */
.module-pindah .modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important; backdrop-filter: blur(3px); 
    z-index: 999999 !important; display: flex !important; align-items: center; justify-content: center;
    padding: 15px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.module-pindah .modal-overlay.show-modal { visibility: visible; opacity: 1; pointer-events: auto; }
.module-pindah .modal-box {
    background: #fff; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.module-pindah .modal-overlay.show-modal .modal-box { transform: translateY(0) scale(1); }
.module-pindah .modal-body { overflow-y: auto; padding: 20px; }

/* Header Modal Tema Teal */
.module-pindah .modal-header-modern { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important; border-bottom: none !important; }
.module-pindah .modal-header-modern h6, .module-pindah .modal-header-modern small { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.module-pindah .modal-header-modern .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }
.module-pindah .modal-header-modern .btn-close:hover { opacity: 1; }

/* FAB Mobile Tema Teal */
.module-pindah .fab-trigger {
    position: fixed; bottom: 30px; right: 20px; width: 55px; height: 55px;
    background: linear-gradient(135deg, #0d9488, #0f766e); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4); z-index: 999; cursor: pointer; transition: transform 0.2s;
}
.module-pindah .fab-trigger:active { transform: scale(0.9); }

/* Table Input untuk Anggota Keluarga */
.module-pindah .table-input td { padding: 4px !important; vertical-align: middle; }
.module-pindah .table-input input { border: none; background: transparent; width: 100%; padding: 4px 8px; font-weight: 500; font-size: 0.85rem; }
.module-pindah .table-input input:focus { background: #fff; outline: 2px solid #0d9488; border-radius: 4px; }
.module-pindah .table-input select { border: none; background: transparent; padding: 4px; font-size: 0.85rem; font-weight: bold; width: 100%; cursor: pointer;}
.module-pindah .table-input select:focus { outline: none; background: #fff; }

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-pindah .search-filter-wrapper { margin: 10px 0 !important; width: 100%; flex-direction: column !important; }
    .module-pindah .filter-group { display: flex; flex-direction: row; gap: 8px; width: 100%; }
    .module-pindah .filter-group select { flex: 1; }
    .module-pindah .search-box { width: 100% !important; max-width: 100% !important; margin-top: 8px; }
}

.module-pindah .form-control:focus, .module-pindah .form-select:focus { border-color: #0d9488; box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25); }
/* ========================================================================== */

/* ==========================================================================
   KHUSUS MODULE DATANG / SKDWNI (.module-datang)
   Tema Warna: Blue / Indigo (#3b82f6 - #2563eb)
   ========================================================================== */
.module-datang .spreadsheet-wrapper {
    position: relative; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; overflow: hidden; margin-bottom: 20px !important; 
    padding-bottom: 0 !important; height: calc(100vh - 180px); display: flex; flex-direction: column;
}
.module-datang .table-scroll-area { flex-grow: 1; overflow-y: auto !important; overflow-x: auto !important; border-bottom: 1px solid #e2e8f0; }
.module-datang .table-sheet thead th { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.module-datang .table-footer { background: #f8fafc; padding: 12px 15px; }
.module-datang.sudah-dipindah { position: relative; z-index: 999999 !important; }

/* Modal Overlay & Animasi */
.module-datang .modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5) !important; backdrop-filter: blur(3px); 
    z-index: 999999 !important; display: flex !important; align-items: center; justify-content: center;
    padding: 15px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.module-datang .modal-overlay.show-modal { visibility: visible; opacity: 1; pointer-events: auto; }
.module-datang .modal-box {
    background: #fff; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.module-datang .modal-overlay.show-modal .modal-box { transform: translateY(0) scale(1); }
.module-datang .modal-body { overflow-y: auto; padding: 20px; }

/* Header Modal Tema Blue */
.module-datang .modal-header-modern { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important; border-bottom: none !important; }
.module-datang .modal-header-modern h6, .module-datang .modal-header-modern small { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.module-datang .modal-header-modern .btn-close-white { filter: brightness(0) invert(1); opacity: 0.8; }
.module-datang .modal-header-modern .btn-close-white:hover { opacity: 1; }

/* FAB Mobile Tema Blue */
.module-datang .fab-trigger {
    position: fixed; bottom: 30px; right: 20px; width: 55px; height: 55px;
    background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); z-index: 999; cursor: pointer; transition: transform 0.2s;
}
.module-datang .fab-trigger:active { transform: scale(0.9); }

/* Table Input untuk Anggota Keluarga */
.module-datang .table-input td { padding: 4px !important; vertical-align: middle; }
.module-datang .table-input input { border: none; background: transparent; width: 100%; padding: 4px 8px; font-weight: 500; font-size: 0.85rem; }
.module-datang .table-input input:focus { background: #fff; outline: 2px solid #3b82f6; border-radius: 4px; }
.module-datang .table-input select { border: none; background: transparent; padding: 4px; font-size: 0.85rem; font-weight: bold; width: 100%; cursor: pointer;}
.module-datang .table-input select:focus { outline: none; background: #fff; }

/* Responsivitas Top Bar */
@media (max-width: 768px) {
    .module-datang .search-filter-wrapper { margin: 10px 0 !important; width: 100%; flex-direction: column !important; }
    .module-datang .filter-group { display: flex; flex-direction: row; gap: 8px; width: 100%; }
    .module-datang .filter-group select { flex: 1; }
    .module-datang .search-box { width: 100% !important; max-width: 100% !important; margin-top: 8px; }
}
.module-datang .form-control:focus, .module-datang .form-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25); }
/* ========================================================================== */


/* ==========================================================================
   MODUL LAPOR KEMATIAN FASKES & DESA (PREFIX: mati-)
   ========================================================================== */

/* --- 1. KARTU STATISTIK (BEAUTY CARDS) --- */
.mati-beauty-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    z-index: 1;
}
.mati-beauty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.mati-card-watermark {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.08;
    transform: rotate(-20deg);
    transition: all 0.4s ease-out;
    z-index: 0;
    pointer-events: none;
}
.mati-beauty-card:hover .mati-card-watermark {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.15;
    bottom: -5px;
    right: -5px;
}
@keyframes matiFloat { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-5px); } 
    100% { transform: translateY(0px); } 
}
.mati-beauty-icon {
    width: 38px; height: 38px; 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1rem;
    position: absolute;
    top: 15px; right: 15px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: matiFloat 3s ease-in-out infinite; 
}
.mati-beauty-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 5px; position: relative; z-index: 2; }
.mati-beauty-value { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin-bottom: 5px; position: relative; z-index: 2; }
.mati-beauty-footer { font-size: 0.75rem; color: #64748b; font-weight: 600; position: relative; z-index: 2; }

/* --- 2. FILTER ADMIN --- */
.mati-filter-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.mati-filter-header { background: #f8fafc; padding: 15px 20px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; border-radius: 16px 16px 0 0; }
.mati-filter-body { padding: 20px; }
.mati-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 5px; display: block; }
.mati-input { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; font-size: 11px; padding: 8px 12px; width: 100%; font-weight: 600; color: #334155; }
.mati-loading-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(255,255,255,0.8); z-index:10; display:none; align-items:center; justify-content:center; border-radius:16px; }
.mati-loading-overlay.active { display:flex; }

/* --- 3. KOMPONEN TABEL & TOMBOL --- */
.mati-pelapor-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px; text-align: center; }
.mati-tgl-jam-row { background: #fff1f2; color: #be123c; padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; border: 1px solid #fecdd3; display: flex; align-items: center; gap: 8px; width: fit-content; }
.mati-usia-badge { background: #3b82f6; color: white; font-size: 9px; padding: 1px 6px; border-radius: 4px; font-weight: bold; display: inline-block; margin-top: 4px; }

.mati-btn-wa-raised {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border: none; border-bottom: 3px solid #15803d; 
    color: #fff !important; border-radius: 8px; padding: 6px 10px;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2); box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.1s ease; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 5px; text-decoration: none; margin-top: 5px;
}
.mati-btn-wa-raised:active { transform: translateY(3px); border-bottom-width: 0; box-shadow: none; }

.mati-status-under-opt { display: block; margin-top: 8px; font-size: 9px; font-weight: 700; text-align: center; padding: 3px; border-radius: 4px; border: 1px solid transparent; }
.mati-st-pending { background: #f1f5f9; color: #64748b; border-color:#cbd5e1; }
.mati-st-proses  { background: #e0f2fe; color: #0369a1; border-color:#bae6fd; }
.mati-st-selesai { background: #dcfce7; color: #15803d; border-color:#bbf7d0; }


/* --- 5. ENHANCED TABLE UI --- */
/* Tombol WA Bulat Kecil */
.mati-btn-wa-circle {
    display: inline-flex; justify-content: center; align-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white; text-decoration: none;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.3); transition: all 0.2s;
}
.mati-btn-wa-circle:hover { transform: scale(1.1); color: white; box-shadow: 0 4px 8px rgba(22, 163, 74, 0.4); }

/* Kotak Info Compact (Ortu & Saksi) */
.mati-compact-box {
    background-color: #f8fafc; border: 1px dashed #cbd5e1;
    border-radius: 6px; padding: 5px 8px; margin-top: 6px;
    font-size: 9px; line-height: 1.4; color: #475569;
}
.mati-compact-box span.lbl { font-weight: 700; color: #64748b; margin-right: 3px; }
.mati-compact-box span.val { font-weight: 700; color: #1e293b; text-transform: uppercase; }

/* Status Tracking Badges yang Lebih Informatif */
.mati-track-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 10px; border-radius: 50px; font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px; width: 100%; border: 1px solid;
}
.track-0 { background: #fef2f2; color: #e11d48; border-color: #fecdd3; } /* Menunggu Desa */
.track-1 { background: #fffbeb; color: #d97706; border-color: #fde68a; } /* Draft / Belum Upload */
.track-2 { background: #f0fdfa; color: #4f46e5; border-color: #c7d2fe; } /* Terkirim Capil */
.track-3 { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; } /* Diproses Capil */
.track-4 { background: #f0fdf4; color: #0d9488; border-color: #a7f3d0; } /* Selesai Capil */
.track-5 { background: #f8fafc; color: #334155; border-color: #cbd5e1; } /* Sudah Dicetak Desa */
.track-9 { background: #fef2f2; color: #991b1b; border-color: #fca5a5; } /* Dikembalikan */


/* --- 4. WIZARD DESA (MULTI-STEP) --- */
.mati-wizard-progress { display: flex; justify-content: space-between; position: relative; margin-bottom: 30px; padding: 0 10px; }
.mati-wizard-progress::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: #e2e8f0; z-index: 1; transform: translateY(-50%); }
.mati-wizard-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mati-wizard-step-circle { width: 35px; height: 35px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 14px; transition: all 0.3s; border: 3px solid #fff; }
.mati-wizard-step.active .mati-wizard-step-circle { background: #2563eb; color: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.mati-wizard-step.completed .mati-wizard-step-circle { background: #10b981; color: #fff; }
.mati-wizard-step-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; text-align: center; }
.mati-wizard-step.active .mati-wizard-step-label { color: #2563eb; }

.mati-wizard-panel { display: none; animation: matiFadeIn 0.4s; }
.mati-wizard-panel.active { display: block; }
@keyframes matiFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   MODUL LAPOR KJDR FASKES (PREFIX: kjdr-)
   ========================================================================== */

/* --- 1. KARTU STATISTIK (BEAUTY CARDS) --- */
.kjdr-beauty-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 20px; position: relative; overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); z-index: 1;
}
.kjdr-beauty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.kjdr-card-watermark {
    position: absolute; bottom: -15px; right: -10px; font-size: 5rem;
    opacity: 0.08; transform: rotate(-20deg); transition: all 0.4s ease-out;
    z-index: 0; pointer-events: none;
}
.kjdr-beauty-card:hover .kjdr-card-watermark {
    transform: rotate(0deg) scale(1.1); opacity: 0.15; bottom: -5px; right: -5px;
}
@keyframes kjdrFloat { 
    0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } 
}
.kjdr-beauty-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem; position: absolute;
    top: 15px; right: 15px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: kjdrFloat 3s ease-in-out infinite; 
}
.kjdr-beauty-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 5px; position: relative; z-index: 2; }
.kjdr-beauty-value { font-size: 1.75rem; font-weight: 800; color: #1e293b; margin-bottom: 5px; position: relative; z-index: 2; }
.kjdr-beauty-footer { font-size: 0.75rem; color: #64748b; font-weight: 600; position: relative; z-index: 2; }

/* Warna Gradasi Khusus KJDR */
.kjdr-bg-primary { background: linear-gradient(135deg, #e11d48, #9f1239); } /* Merah/Rose */
.kjdr-text-primary { color: #e11d48; }

/* --- 2. KOMPONEN TABEL & TOMBOL --- */
.kjdr-btn-wa-circle {
    display: inline-flex; justify-content: center; align-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a); color: white; text-decoration: none;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.3); transition: all 0.2s;
}
.kjdr-btn-wa-circle:hover { transform: scale(1.1); color: white; box-shadow: 0 4px 8px rgba(22, 163, 74, 0.4); }

.kjdr-track-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 10px; border-radius: 50px; font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px; width: 100%; border: 1px solid;
}
.kjdr-track-0 { background: #fef2f2; color: #e11d48; border-color: #fecdd3; } /* Pending */
.kjdr-track-1 { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; } /* Proses Capil */
.kjdr-track-2 { background: #f0fdf4; color: #0d9488; border-color: #a7f3d0; } /* Selesai */
.kjdr-track-3 { background: #fffbeb; color: #d97706; border-color: #fde68a; } /* Dikembalikan */

/* --- FORM UI ENHANCEMENTS (KJDR) --- */
.kjdr-form-ribbon {
    display: flex; align-items: center;
    padding: 8px 12px; border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    margin-bottom: 10px; color: white;
}
.ribbon-ibu { background: linear-gradient(135deg, #e11d48, #be123c); border-left: 5px solid #881337; }
.ribbon-medis { background: linear-gradient(135deg, #f59e0b, #d97706); border-left: 5px solid #b45309; }
.ribbon-domisili { background: linear-gradient(135deg, #10b981, #059669); border-left: 5px solid #047857; }

.kjdr-form-ribbon h6 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.kjdr-form-ribbon i { font-size: 14px; margin-right: 8px; opacity: 0.9; }

.form-label-icon { font-size: 10px; font-weight: 700; color: #475569; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.form-label-icon i { color: #e11d48; width: 14px; text-align: center; } /* Warna icon menyesuaikan tema KJDR */

.kjdr-input-custom { border: 1px solid #cbd5e1; border-radius: 6px; font-size: 11px; transition: all 0.2s; background-color: #f8fafc; }
.kjdr-input-custom:focus { background-color: #ffffff; border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15); }

/* ==========================================================================
   MODUL DINSOS INTEGRASI - REFINED UI (PREFIX: dinsos-)
   ========================================================================== */

/* --- Background & Ambient --- */
.dinsos-star-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 350px;
    background: radial-gradient(circle at top, #f8fafc 0%, rgba(255,255,255,0) 80%);
    z-index: 0; pointer-events: none;
}

/* --- Top Header Styling --- */
.dinsos-header-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white;
    display: flex; justify-content: center; align-items: center; font-size: 1.3rem;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.25);
}
.dinsos-text-gradient {
    background: linear-gradient(135deg, #0f172a, #3b82f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- Beauty Cards --- */
.dinsos-beauty-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 20px; position: relative; overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.dinsos-beauty-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08); }
.dinsos-bc-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.dinsos-bc-value { font-size: 2.2rem; font-weight: 900; color: #1e293b; line-height: 1; margin-bottom: 10px; font-family: 'Outfit', sans-serif; }
.dinsos-bc-footer { font-size: 11px; font-weight: 700; color: #64748b; display: flex; gap: 12px; }

.dinsos-bc-icon {
    width: 45px; height: 45px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    position: absolute; top: 20px; right: 20px; z-index: 2;
}
.dinsos-bc-watermark {
    position: absolute; bottom: -15px; right: -15px; font-size: 6rem;
    opacity: 0.04; transform: rotate(-15deg); z-index: 1; pointer-events: none;
}

/* Varian Warna Card */
.dinsos-card-mati .dinsos-bc-label { color: #e11d48; }
.dinsos-card-mati .dinsos-bc-icon { background: #ffe4e6; color: #e11d48; }
.dinsos-card-pindah .dinsos-bc-label { color: #2563eb; }
.dinsos-card-pindah .dinsos-bc-icon { background: #dbeafe; color: #2563eb; }
.dinsos-card-export .dinsos-bc-label { color: #d97706; }
.dinsos-card-export .dinsos-bc-icon { background: #fef3c7; color: #d97706; }

/* --- UI Controls (Filter & Tabs) --- */
.dinsos-filter-select {
    border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 30px 7px 15px; 
    font-size: 12px; font-weight: 700; color: #334155; background-color: #fff; 
    outline: none; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: border 0.2s;
}
.dinsos-filter-select:focus { border-color: #3b82f6; }

.dinsos-tab-btn {
    background: transparent; border: none; padding: 8px 18px; font-size: 11px; 
    font-weight: 800; border-radius: 8px; color: #64748b; transition: all 0.3s ease;
}
/* Revisi: Warna aktif menjadi gradasi modern, bukan hitam */
.dinsos-tab-btn.active { 
    background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; 
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25); 
}

/* --- Compact Liquid Table --- */
.dinsos-table-wrapper { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.dinsos-table { width: 100%; margin: 0; border-collapse: collapse; }
.dinsos-table thead { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.dinsos-table th {
    font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; text-transform: uppercase;
    color: #475569; padding: 14px 15px; border: none; white-space: nowrap; letter-spacing: 0.5px;
}
.dinsos-table td { padding: 14px 15px; font-size: 12px; color: #334155; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.dinsos-table tbody tr:hover { background-color: #f8fafc; }
.dinsos-table tbody tr:last-child td { border-bottom: none; }

/* --- Table Footer (Pagination Pill) --- */
.dinsos-pagination-pill {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 50px;
    display: inline-flex; align-items: center; padding: 4px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}
.dinsos-page-btn {
    background: #f8fafc; border: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s;
}
.dinsos-page-btn:hover { background: #e2e8f0; color: #0f172a; }
.dinsos-page-info { font-size: 11px; font-weight: 800; color: #334155; padding: 0 20px; letter-spacing: 0.5px; }

/* --- Export Button Vibrant --- */
.dinsos-btn-export {
    background: linear-gradient(135deg, #10b981, #059669); border: none;
    color: white; padding: 10px 20px; font-size: 12px; font-weight: 800;
    border-radius: 50px; box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3); transition: all 0.3s;
}
.dinsos-btn-export:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); color: white; }



/* ==========================================================================
   MODUL VERIFIKASI BPJS - 3D COMPACT & VIBRANT (PREFIX: bpjs-)
   ========================================================================== */
   
/* --- 1. Background Teduh (Anti Silau) --- */
.bpjs-ambient-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 450px;
    overflow: hidden; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
}
.bpjs-glow-orb {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.15;
    animation: bpjsOrbFloat 8s ease-in-out infinite alternate;
}
.bpjs-orb-1 { width: 400px; height: 400px; background: #34d399; top: -100px; left: -50px; } 
.bpjs-orb-2 { width: 350px; height: 350px; background: #38bdf8; top: 10%; right: -100px; animation-delay: -3s; }

@keyframes bpjsOrbFloat { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(20px, 30px) scale(1.05); } 
}

/* --- 2. 3D Vibrant Cards (Timbul, Compact, & Ikon Terbang) --- */
.bpjs-3d-card {
    border-radius: 18px; padding: 15px 20px; position: relative; z-index: 2; height: 100%;
    color: white; border: none; margin-top: 15px; /* Margin atas untuk ikon terbang */
    box-shadow: 0 8px 20px -5px rgba(0,0,0,0.15), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.bpjs-3d-card:hover { transform: translateY(-5px); }

/* Varian Warna Card (Solid Elegan) */
.bpjs-c-pending { background: linear-gradient(135deg, #0284c7, #0369a1); box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25), inset 0 2px 0 rgba(255,255,255,0.2); }
.bpjs-c-selesai { background: linear-gradient(135deg, #059669, #047857); box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25), inset 0 2px 0 rgba(255,255,255,0.2); }
.bpjs-c-tolak   { background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 10px 20px rgba(225, 29, 72, 0.25), inset 0 2px 0 rgba(255,255,255,0.2); }

.bpjs-card-title { font-size: 11px; font-weight: 800; text-transform: uppercase; color: rgba(255,255,255,0.8); letter-spacing: 0.5px; margin-bottom: 2px; }
.bpjs-card-value { font-size: 2.8rem; font-weight: 900; color: #ffffff; line-height: 1; font-family: 'Outfit', sans-serif; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* Ikon Utama Terbang di Kiri Atas */
.bpjs-icon-flying {
    position: absolute; left: 20px; top: -20px; /* Overlap ke atas card */
    width: 55px; height: 55px; border-radius: 14px;
    display: flex; justify-content: center; align-items: center; font-size: 1.8rem;
    color: white; z-index: 3;
    animation: bpjsFloatIcon 3s ease-in-out infinite;
}

/* Pewarnaan Ikon Terbang */
.bpjs-c-pending .bpjs-icon-flying { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 8px 15px rgba(2, 132, 199, 0.4), inset 0 2px 0 rgba(255,255,255,0.4); }
.bpjs-c-selesai .bpjs-icon-flying { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 15px rgba(5, 150, 105, 0.4), inset 0 2px 0 rgba(255,255,255,0.4); }
.bpjs-c-tolak .bpjs-icon-flying   { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 8px 15px rgba(225, 29, 72, 0.4), inset 0 2px 0 rgba(255,255,255,0.4); }

@keyframes bpjsFloatIcon { 
    0%,100% { transform: translateY(0); } 
    50% { transform: translateY(-6px); } 
}

/* Statistik Gender di Kanan Atas */
.bpjs-gender-stats {
    position: absolute; right: 20px; top: 15px;
    display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.bpjs-gender-pill {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    font-size: 11px; font-weight: 800; color: #ffffff; min-width: 50px;
}
.bpjs-gender-pill .fa-mars { color: #bae6fd; } /* Biru sangat muda */
.bpjs-gender-pill .fa-venus { color: #fecdd3; } /* Pink sangat muda */

/* Penanda revisi khusus card tolak */
.bpjs-tolak-badge {
    position: absolute; right: 20px; top: 15px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    font-size: 9px; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- 3. UI Controls & Filters --- */
.bpjs-filter-box {
    background: #ffffff; border-radius: 50px; padding: 6px 15px; border: 1px solid #cbd5e1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; align-items: center; gap: 10px;
}
.bpjs-filter-input {
    border: none; background: transparent; font-size: 12px; font-weight: 700;
    color: #334155; outline: none; width: 100%; cursor: pointer;
}

/* --- 4. Floating Row Table & Avatar --- */
.bpjs-table-area { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.bpjs-table-area th {
    font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 800; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.5px; border: none; padding: 10px 15px;
}
.bpjs-table-area tbody tr {
    background: #ffffff; border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); 
    transition: all 0.2s ease;
}
.bpjs-table-area tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 166, 81, 0.15); z-index: 10; position: relative;
}
.bpjs-table-area td { padding: 12px 15px; vertical-align: middle; border: none; font-size: 12px; color: #334155; border-top: 1px solid transparent; border-bottom: 1px solid transparent;}
.bpjs-table-area td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; border-left: 3px solid #00a651; }
.bpjs-table-area td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

/* Avatar Bayi */
.bpjs-avatar-box {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; font-size: 16px;
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.2); border: 2px solid #fff; flex-shrink: 0;
}
.bpjs-avatar-p { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; box-shadow: 0 4px 8px rgba(190, 24, 93, 0.2); }

/* --- 5. 3D Action Buttons (Tindak Lanjut & Tolak) --- */
.bpjs-btn-action {
    width: 36px; height: 36px; border-radius: 10px; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; margin: 0 3px; cursor: pointer;
    position: relative; top: 0; transition: all 0.1s ease; outline: none;
}
.bpjs-btn-verif { 
    background: linear-gradient(to bottom, #22c55e, #16a34a); 
    box-shadow: 0 4px 0 #14532d, 0 5px 10px rgba(22, 163, 74, 0.4); text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.bpjs-btn-verif:active { top: 4px; box-shadow: 0 0 0 #14532d, 0 2px 5px rgba(22, 163, 74, 0.4); }

.bpjs-btn-tolak { 
    background: linear-gradient(to bottom, #ef4444, #dc2626); 
    box-shadow: 0 4px 0 #7f1d1d, 0 5px 10px rgba(239, 68, 68, 0.4); text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.bpjs-btn-tolak:active { top: 4px; box-shadow: 0 0 0 #7f1d1d, 0 2px 5px rgba(239, 68, 68, 0.4); }

/* --- 6. Pagination --- */
.bpjs-pagination-pill {
    display: inline-flex; align-items: center; background: #ffffff;
    border: 1px solid #e2e8f0; border-radius: 50px; padding: 5px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.bpjs-page-btn {
    width: 35px; height: 35px; border-radius: 50%; border: none; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center; color: #0f172a;
    font-weight: bold; transition: 0.2s; 
}
.bpjs-page-btn:hover { background: #00a651; color: white; transform: scale(1.05); }
.bpjs-page-info { font-size: 11px; font-weight: 800; padding: 0 20px; color: #334155; }

/* --- Custom Badge & Labels untuk Data yang di-Generate dari PHP --- */
.bpjs-badge-nik {
    background: #f8fafc; color: #334155; font-family: 'Inter', monospace; 
    font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; 
    border: 1px solid #cbd5e1; display: inline-block; cursor: pointer; transition: all 0.2s;
}
.bpjs-badge-nik:hover { background: #e2e8f0; color: #0f172a; }

.bpjs-badge-kk { 
    background: #ecfdf5; color: #15803d; font-family: 'Inter', monospace; 
    font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; 
    border: 1px dashed #4ade80; display: inline-block; cursor: pointer; transition: all 0.2s;
}
.bpjs-badge-kk:hover { background: #d1fae5; color: #166534; }

.bpjs-label-tiny { font-size: 9px; font-weight: 800; color: #94a3b8; text-transform: uppercase; display: block; margin-bottom: 4px; letter-spacing: 0.5px; }

/* Modal Customizations */
.bpjs-modal-content { border-radius: 20px; border: none; }
.bpjs-modal-header { padding: 15px 20px; border-bottom: none; border-top-left-radius: 20px; border-top-right-radius: 20px; }
.bg-verif { background: linear-gradient(135deg, #00a651, #008f45); color: white; }
.bg-tolak { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }



/* ==========================================================================
   MODUL LAPOR KAWIN STARLA - ADAPTASI DESAIN LAHIR (PREFIX: kw- & kwn-)
   ========================================================================== */

/* --- 1. Ambient Background & Top Bar --- */
.kw-ambient-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 350px;
    background: linear-gradient(180deg, #f8fafc 0%, rgba(255,255,255,0) 100%);
    z-index: 0; pointer-events: none;
}
.kw-top-bar { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2;
}
.kw-icon-box { 
    width: 48px; height: 48px; border-radius: 14px; 
    background: white; color: #4e73df; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e3e6f0;
}
.btn-year-pill { 
    background: #fff; border: 1px solid #e3e6f0; color: #5a5c69; border-radius: 50px; 
    padding: 0.5rem 1.2rem; font-weight: 700; font-size: 0.9rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.kw-search-pill { 
    background: white; padding: 10px 20px; border-radius: 50px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; align-items: center; 
    border: 1px solid #e3e6f0; transition: all 0.3s ease;
}
.kw-search-pill:focus-within { border-color: #4e73df; box-shadow: 0 0 0 3px rgba(78,115,223,0.1); }
.kw-search-pill input { border: none; outline: none; width: 100%; font-size: 13px; margin-left: 10px; color: #5a5c69; background: transparent; }


/* --- 2. Beauty Cards (Dashboard Stats) --- */
.beauty-card {
    background: #ffffff; border-radius: 12px; 
    /* REVISI PADDING: Sedikit dikecilkan secara keseluruhan, dan dikecilkan lebih signifikan di kanan */
    padding: 15px 10px 15px 15px; 
    position: relative; overflow: hidden; height: 100%; 
    display: flex; flex-direction: column; justify-content: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e3e6f0; border-left: 5px solid #ccc; transition: transform 0.2s; 
    /* REVISI TINGGI: Sedikit ditinggikan agar proporsional dan tidak terlihat terlalu lebar */
    min-height: 130px; 
}
.beauty-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.card-primary { border-left-color: #4e73df; }
.card-warning { border-left-color: #f6c23e; }
.card-info    { border-left-color: #36b9cc; }
.card-success { border-left-color: #1cc88a; }
.card-danger  { border-left-color: #e74a3b; }

.beauty-label { font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0.5px; position: relative; z-index: 2; }
.beauty-value { color: #5a5c69; font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 0; position: relative; z-index: 2; font-family: 'Outfit', sans-serif; }

.beauty-icon {
    position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 2;
    /* REVISI ANIMASI: Pastikan animasi mengambang (float) diterapkan secara tak terbatas */
    animation: float 3s ease-in-out infinite; 
}
.bg-grad-primary { background: linear-gradient(135deg, #4e73df, #2e59d9); }
.bg-grad-warning { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.bg-grad-info    { background: linear-gradient(135deg, #36b9cc, #258391); }
.bg-grad-success { background: linear-gradient(135deg, #1cc88a, #13855c); }
.bg-grad-danger  { background: linear-gradient(135deg, #e74a3b, #be2617); }

.card-watermark { 
    position: absolute; bottom: -15px; right: -10px; font-size: 80px; 
    opacity: 0.06; transform: rotate(-15deg); z-index: 0; pointer-events: none; transition: all 0.4s; 
}
.beauty-card:hover .card-watermark { transform: rotate(0deg) scale(1.1); opacity: 0.1; bottom: -5px; right: -5px; }

/* Pewarnaan Teks Label sesuai warna border */
.card-primary .beauty-label, .card-primary .card-watermark { color: #4e73df; }
.card-warning .beauty-label, .card-warning .card-watermark { color: #f6c23e; }
.card-info .beauty-label, .card-info .card-watermark { color: #36b9cc; }
.card-success .beauty-label, .card-success .card-watermark { color: #1cc88a; }
.card-danger .beauty-label, .card-danger .card-watermark { color: #e74a3b; }

/* Definisikan Animasi Mengambang (Floating) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* --- 3. Tabel Lapor Kawin --- */
.kw-table-wrapper { 
    background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; 
    overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 20px; 
}
.kw-table { width: 100%; border-collapse: collapse; min-width: 1200px; margin-bottom: 0;}
.kw-table thead th { 
    background: #f8f9fc; color: #4e73df; padding: 15px; font-size: 11px; 
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e3e6f0; 
}
.kw-table tbody td { padding: 15px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; color: #5a5c69; font-size: 12px; }
.kw-table tbody tr:hover { background-color: #fdfdfe; }


/* --- 4. Custom Pills & Badges --- */
.kw-pill {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 50px;
    font-size: 10px; font-weight: 700; margin-top: 3px; margin-right: 3px;
}
.kw-pill i { margin-right: 4px; }
.kw-pill-sinjai { background-color: #e1fce8; color: #13855c; border: 1px solid #bce8cb; }
.kw-pill-luar { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.kw-pill-jenis { background-color: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* Status Mini */
.stat-mini { font-size: 9px; padding: 3px 8px; border-radius: 4px; font-weight: 600; display: inline-block; width: 100%; text-align: center; border: 1px solid transparent; }
.stat-0 { background: #fff3cd; color: #856404; border-color: #ffeeba; } 
.stat-1 { background: #cce5ff; color: #004085; border-color: #b8daff; } 
.stat-2 { background: #d4edda; color: #155724; border-color: #c3e6cb; } 
.stat-3 { background: #f8d7da; color: #721c24; border-color: #f5c6cb; } 


/* --- 5. Action Buttons (Edit, Hapus, Proses) --- */
/* Tombol WA */
.btn-wa-3d {
    background: linear-gradient(to bottom, #25D366, #128C7E); color: white !important; border: none;
    border-bottom: 3px solid #075E54; border-radius: 6px; box-shadow: 0 3px 5px rgba(0,0,0,0.15);
    transition: all 0.1s; animation: pulse-green 2s infinite; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 6px 10px; font-size: 9px; display: block; width: 100%; text-align: center;
}
.btn-wa-3d:active { transform: translateY(2px); border-bottom: 1px solid #075E54; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-wa-3d:hover { background: linear-gradient(to bottom, #2ce271, #16a090); color: white; }
@keyframes pulse-green { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Tombol Ikon Bulat Kotak (Squircle) */
.kw-btn-action {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: white !important; font-size: 11px; margin: 0 2px; transition: transform 0.2s;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1); cursor: pointer; text-decoration: none;
}
.kw-btn-action:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.kw-btn-action:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.kw-btn-edit    { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.kw-btn-delete  { background: linear-gradient(135deg, #e74a3b, #be2617); }
.kw-btn-proses  { background: linear-gradient(135deg, #4e73df, #224abe); }
.kw-btn-check   { background: linear-gradient(135deg, #1cc88a, #13855c); }


/* --- 6. Loading Overlay --- */
.kw-loading-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(2px);
    z-index: 50; display: none; align-items: center; justify-content: center; border-radius: 12px;
}
.kw-loading-overlay.active { display: flex; }
.spinner-smart {
    width: 40px; height: 40px; border: 4px solid rgba(78, 115, 223, 0.2);
    border-left-color: #4e73df; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- 7. Pagination Pill --- */
.kw-pagination {
    display: inline-flex; align-items: center; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 50px; padding: 5px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.kw-page-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none; background: #f8f9fc;
    display: flex; align-items: center; justify-content: center; color: #5a5c69;
    font-weight: bold; transition: 0.2s; cursor: pointer;
}
.kw-page-btn:hover { background: #4e73df; color: white; transform: scale(1.05); }
.kw-page-info { font-size: 11px; font-weight: 800; padding: 0 20px; color: #5a5c69; }

/* --- 8. FAB Mobile Button --- */
.lhr-fab { 
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; 
    border-radius: 50%; background: linear-gradient(135deg, #4e73df, #224abe); 
    color: white; box-shadow: 0 4px 15px rgba(78, 115, 223, 0.5); 
    display: none; justify-content: center; align-items: center; 
    z-index: 99999 !important; border: none; outline: none; transition: transform 0.2s;
    animation: float 3s ease-in-out infinite; /* Terapkan animasi mengambang juga pada FAB */
}
.lhr-fab:active { transform: scale(0.9); }
@media (max-width: 768px) { .lhr-fab { display: flex !important; } }

/* ==========================================================================
   MODUL LAPOR KAWIN STARLA - ADAPTASI DESAIN LAHIR (PREFIX: kw-)
   ========================================================================== */

/* --- 1. Ambient Background --- */
.kw-ambient-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 350px;
    background: linear-gradient(180deg, #f8fafc 0%, rgba(255,255,255,0) 100%);
    z-index: 0; pointer-events: none;
}

/* --- 2. Header & Top Action --- */
.kw-header-row {
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; flex-wrap: wrap; position: relative; z-index: 2; gap: 15px;
}
.kw-icon-box { 
    width: 48px; height: 48px; border-radius: 14px; 
    background: white; color: #4e73df; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e3e6f0;
}
.kw-btn-add {
    background: linear-gradient(135deg, #4e73df 0%, #2e59d9 100%);
    color: white; border: none; padding: 10px 24px; border-radius: 50px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3); transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.kw-btn-add:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4); color: white; }

/* --- 3. Smart Filter Bar --- */
.kw-filter-bar {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 50px;
    padding: 6px 10px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 25px; flex-wrap: wrap;
}
.kw-btn-filter {
    background: transparent; border: none; color: #5a5c69; border-radius: 50px; 
    padding: 8px 16px; font-weight: 700; font-size: 12px; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
}
.kw-btn-filter:hover, .kw-btn-filter[aria-expanded="true"] { background: #f1f5f9; color: #4e73df; }
.kw-divider-v { width: 1px; height: 20px; background: #e2e8f0; }
.kw-search-input {
    border: none; background: transparent; font-size: 12px; font-weight: 600; color: #5a5c69;
    outline: none; width: 100%; min-width: 250px; padding: 8px 10px;
}

/* --- 4. Beauty Cards (Dashboard Stats) --- */
.beauty-card {
    background: #ffffff; border-radius: 12px; padding: 15px; position: relative;
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e3e6f0; border-left: 5px solid #ccc; transition: transform 0.2s; min-height: 100px;
}
.beauty-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.card-primary { border-left-color: #4e73df; }
.card-warning { border-left-color: #f6c23e; background-color: #fffbeb !important; }
.card-info    { border-left-color: #36b9cc; background-color: #ecfeff !important; }
.card-success { border-left-color: #1cc88a; background-color: #ecfdf5 !important; }
.card-danger  { border-left-color: #e74a3b; background-color: #fff1f2 !important; }

.beauty-label { font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 2px; letter-spacing: 0.5px; position: relative; z-index: 2; }
.beauty-value { font-size: 26px; font-weight: 800; line-height: 1; position: relative; z-index: 2; font-family: 'Outfit', sans-serif; }

.beauty-icon {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 2;
}
.bg-grad-primary { background: linear-gradient(135deg, #4e73df, #2e59d9); }
.bg-grad-warning { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.bg-grad-info    { background: linear-gradient(135deg, #36b9cc, #258391); }
.bg-grad-success { background: linear-gradient(135deg, #1cc88a, #13855c); }
.bg-grad-danger  { background: linear-gradient(135deg, #e74a3b, #be2617); }

.card-watermark { 
    position: absolute; bottom: -10px; right: -5px; font-size: 65px; 
    opacity: 0.05; transform: rotate(-15deg); z-index: 0; pointer-events: none; transition: all 0.4s; 
}
.beauty-card:hover .card-watermark { transform: rotate(0deg) scale(1.1); opacity: 0.1; }

.card-primary .beauty-label, .card-primary .beauty-value, .card-primary .card-watermark { color: #4e73df; }
.card-warning .beauty-label, .card-warning .beauty-value, .card-warning .card-watermark { color: #f6c23e; }
.card-info .beauty-label, .card-info .beauty-value, .card-info .card-watermark { color: #36b9cc; }
.card-success .beauty-label, .card-success .beauty-value, .card-success .card-watermark { color: #1cc88a; }
.card-danger .beauty-label, .card-danger .beauty-value, .card-danger .card-watermark { color: #e74a3b; }

/* --- 5. Tabel Lapor Kawin --- */
.kw-table-wrapper { 
    background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; 
    overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 20px; 
}
.kw-table { width: 100%; border-collapse: collapse; min-width: 1400px; margin-bottom: 0;}
.kw-table thead th { 
    background: #f8f9fc; color: #4e73df; padding: 15px; font-size: 11px; 
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e3e6f0; 
}
.kw-table tbody td { padding: 15px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; color: #5a5c69; font-size: 12px; }
.kw-table tbody tr:hover { background-color: #fdfdfe; }

/* --- 6. Custom Pills & Buttons --- */
.kwn-pill {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 50px;
    font-size: 10px; font-weight: 700; margin-top: 3px; margin-right: 3px;
}
.kwn-pill i { margin-right: 4px; }
.kwn-pill-sinjai { background-color: #e1fce8; color: #13855c; border: 1px solid #bce8cb; }
.kwn-pill-luar { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.kwn-pill-jenis { background-color: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.status-mini { font-size: 9px; padding: 3px 8px; border-radius: 4px; font-weight: 600; display: inline-block; width: 100%; text-align: center; border: 1px solid transparent; }

.btn-wa-3d {
    background: linear-gradient(to bottom, #25D366, #128C7E); color: white !important; border: none;
    border-bottom: 3px solid #075E54; border-radius: 6px; box-shadow: 0 3px 5px rgba(0,0,0,0.15);
    transition: all 0.1s; animation: pulse-green 2s infinite; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 6px 10px; font-size: 9px; display: block; width: 100%; text-align: center;
}
.btn-wa-3d:active { transform: translateY(2px); border-bottom: 1px solid #075E54; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
@keyframes pulse-green { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.kwn-btn-action {
    width: 32px; height: 32px; border-radius: 8px; border: none; display: inline-flex; align-items: center; justify-content: center;
    color: white !important; font-size: 11px; margin: 0 2px; transition: transform 0.2s; box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}
.kwn-btn-action:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.kwn-btn-edit    { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.kwn-btn-delete  { background: linear-gradient(135deg, #e74a3b, #be2617); }
.kwn-btn-proses  { background: linear-gradient(135deg, #36b9cc, #258391); }
.kwn-btn-check   { background: linear-gradient(135deg, #1cc88a, #13855c); }

.kw-loading-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(2px);
    z-index: 50; display: none; align-items: center; justify-content: center; border-radius: 12px;
}
.kw-loading-overlay.active { display: flex; }
.spinner-smart { width: 40px; height: 40px; border: 4px solid rgba(78, 115, 223, 0.2); border-left-color: #4e73df; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.kwn-pagination { display: inline-flex; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 50px; padding: 5px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.kwn-page-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: #f8f9fc; color: #5a5c69; font-weight: bold; transition: 0.2s; cursor: pointer; }
.kwn-page-btn:hover { background: #4e73df; color: white; transform: scale(1.05); }
.kwn-page-info { font-size: 11px; font-weight: 800; padding: 0 20px; color: #5a5c69; }


/* ==========================================================================
   MODUL LAPOR CERAI STARLA (PREFIX: cr-)
   ========================================================================== */

/* --- 1. Ambient Background --- */
.cr-ambient-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 350px;
    background: linear-gradient(180deg, #f8fafc 0%, rgba(255,255,255,0) 100%);
    z-index: 0; pointer-events: none;
}

/* --- 2. Header & Top Action --- */
.cr-header-row {
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; flex-wrap: wrap; position: relative; z-index: 2; gap: 15px;
}
.cr-icon-box { 
    width: 48px; height: 48px; border-radius: 14px; 
    background: white; color: #a855f7; /* Warna ungu Pengadilan */
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e3e6f0;
}
.cr-btn-add {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: white; border: none; padding: 10px 24px; border-radius: 50px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3); transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
}
.cr-btn-add:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(168, 85, 247, 0.4); color: white; }

/* --- 3. Smart Filter Bar --- */
.cr-filter-bar {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 50px;
    padding: 6px 10px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 25px; flex-wrap: wrap; position: relative; z-index: 2;
}
.cr-btn-filter {
    background: transparent; border: none; color: #5a5c69; border-radius: 50px; 
    padding: 8px 16px; font-weight: 700; font-size: 12px; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
}
.cr-btn-filter:hover, .cr-btn-filter[aria-expanded="true"] { background: #f1f5f9; color: #a855f7; }
.cr-divider-v { width: 1px; height: 20px; background: #e2e8f0; }
.cr-search-input {
    border: none; background: transparent; font-size: 12px; font-weight: 600; color: #5a5c69;
    outline: none; width: 100%; min-width: 250px; padding: 8px 10px;
}

/* --- 4. Beauty Cards (Dashboard Stats) --- */
/* Menggunakan base .beauty-card yang sama dengan Lapor Kawin, hanya beda varian warna ungu */
.card-purple { border-left-color: #a855f7; background-color: #faf5ff !important;}
.bg-grad-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.card-purple .beauty-label, .card-purple .beauty-value, .card-purple .card-watermark { color: #a855f7; }

/* --- 5. Tabel Lapor Cerai --- */
.cr-table-wrapper { 
    background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; 
    overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 20px; 
    position: relative; z-index: 2;
}
.cr-table { width: 100%; border-collapse: collapse; min-width: 1200px; margin-bottom: 0;}
.cr-table thead th { 
    background: #f8f9fc; color: #a855f7; padding: 15px; font-size: 11px; 
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e3e6f0; 
}
.cr-table tbody td { padding: 15px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; color: #5a5c69; font-size: 12px; }
.cr-table tbody tr:hover { background-color: #faf5ff; }

/* --- 6. Custom Pills & Buttons --- */
.cr-btn-proses { background: linear-gradient(135deg, #a855f7, #7e22ce); }

.cr-loading-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(2px);
    z-index: 50; display: none; align-items: center; justify-content: center; border-radius: 12px;
}
.cr-loading-overlay.active { display: flex; }
.spinner-smart-purple {
    width: 40px; height: 40px; border: 4px solid rgba(168, 85, 247, 0.2);
    border-left-color: #a855f7; border-radius: 50%; animation: spin 1s linear infinite;
}




/* --------------------------------------------------------------------------
   5. FLOATING INPUT BAR (DESKTOP DEFAULT)
   -------------------------------------------------------------------------- */
.input-bar {
    position: fixed; 
    bottom: 20px; 
    left: 270px; /* Sidebar 240 + 30px gap */
    right: 20px;
    
    display: flex; align-items: center; gap: 8px;
    height: 70px; padding: 0 15px !important;
    background: var(--grad-main) !important; 
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4) !important; 
    z-index: 2000;
    
    overflow-x: auto; white-space: nowrap;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

/* Responsive Position (Desktop) */
.main-content.expanded .input-bar { left: 90px; }

/* Custom Scrollbar */
.input-bar::-webkit-scrollbar { height: 8px; }
.input-bar::-webkit-scrollbar-track { 
    background: rgba(0, 0, 0, 0.1); border-radius: 10px; margin: 0 15px; 
}

.input-bar::-webkit-scrollbar-thumb { 
    background: #ffffff; border-radius: 10px; cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.input-bar .inp-cell {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent; color: #0f172a;
    font-size: 11px; font-weight: 600; height: 38px;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.2s;
}
.input-bar .inp-cell:focus {
    background: #ffffff; border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); outline: none;
}
.input-bar ::placeholder { color: #64748b; font-weight: 500; font-size: 10px; }

.input-bar-icon {
    color: white; min-width: 32px; height: 32px;
    background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 5px; border: 1px solid rgba(255,255,255,0.3);
}

.btn-save-floating {
    background: #ffffff; color: var(--primary-dark);
    font-weight: 800; border: none; height: 38px; padding: 0 25px;
    border-radius: 50px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.2s; white-space: nowrap;
}
.btn-save-floating:hover {
    transform: translateY(-2px); box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    color: var(--secondary);
}

/* Sembunyikan Elemen Mobile secara Default */
.fab-trigger, .mobile-form-header { display: none !important; }


/* --------------------------------------------------------------------------
   6. TABLE & SPREADSHEET STYLES
   -------------------------------------------------------------------------- */
.spreadsheet-wrapper { 
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: visible; 
    padding-bottom: 15px;
    margin-bottom: 120px;
    height: calc(100vh - 160px);
}
.table-scroll-area {
    overflow-x: auto; /* Scroll samping aktif disini */
    overflow-y: hidden;
    min-height: 200px;
    /* Opsional: Smooth scroll */
    scroll-behavior: smooth;
}
.table-sheet { 
    width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; 
}
.table-sheet thead th {
    background: #f1f5f9 !important; color: #475569 !important;
    font-weight: 700; font-size: 10px; text-transform: uppercase;
    padding: 8px 10px; border-bottom: 1px solid #cbd5e1 !important;
    border-right: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 10;
}
.table-sheet td {
    border-bottom: 1px solid #f1f5f9; border-right: 1px solid #f1f5f9;
    padding: 4px 8px; color: var(--text-main); vertical-align: middle; white-space: nowrap; 
}
.table-sheet tr:hover td { background-color: #f0f9ff; }

.table-razor { width: 100%; border-collapse: collapse; }
.table-razor th {
    background: #f1f5f9; color: #334155; font-size: 10px; font-weight: 700; 
    text-transform: uppercase; padding: 10px 12px; 
    border-bottom: 2px solid #94a3b8; border-right: 1px solid #e2e8f0;
}
.table-razor td {
    font-size: 11px; padding: 6px 12px; vertical-align: middle; color: #334155;
    border-bottom: 1px solid var(--border-card); border-right: 1px solid #f1f5f9;
}
.table-razor tr:hover td { background: #eff6ff; color: #0f172a; }

.table-footer {
    position: sticky; 
    left: 0;          
    bottom: 0;        
    
    width: 100%;      
    z-index: 10;      
    background-color: #fff; 
    border-top: 1px solid #e2e8f0;
    
    /* Agar tampilan rapi */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.btn-action-group { display: flex; justify-content: center; gap: 6px; }
.btn-action-mini {
    width: 28px; height: 28px; border-radius: 8px; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; cursor: pointer; transition: 0.2s;
    background: #f1f5f9; color: var(--text-muted);
}
.btn-action-mini:hover { transform: translateY(-2px); }
.btn-action-mini.edit:hover { background: #e0f2fe; color: #0ea5e9; }
.btn-action-mini.delete:hover { background: #fee2e2; color: #ef4444; }
.btn-action-mini.check:hover { background: #dcfce7; color: #10b981; }

/* --------------------------------------------------------------------------
   7. GENERAL FORM COMPONENTS & BUTTONS
   -------------------------------------------------------------------------- */
.inp-slim {
    font-size: 11px; padding: 4px 10px; height: 32px;
    border: 1px solid #cbd5e1; border-radius: 6px;
    background: #ffffff; color: var(--text-dark); width: 100%; 
    transition: all 0.2s ease;
}
.inp-slim:focus { 
    border-color: var(--primary); background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); outline: none; 
}
.inp-slim::placeholder { color: #94a3b8; font-style: italic; }

.btn-micro {
    border: none; border-radius: 50px; padding: 6px 16px; 
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: 0.2s; cursor: pointer; height: 30px;
}
.btn-primary-grad { 
    background: var(--grad-main); color: white; 
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2); 
}
.btn-primary-grad:hover { transform: translateY(-1px); opacity: 0.95; color: white; }

.btn-light-soft { 
    background: white; border: 1px solid var(--border-card); color: var(--text-muted); 
}
.btn-light-soft:hover { 
    border-color: var(--primary); color: var(--primary); background: #f0f9ff; 
}

.btn-gradient-pill {
    background: var(--grad-main); color: white; border: none;
    padding: 8px 20px; border-radius: 50px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); transition: transform 0.2s;
}
.btn-gradient-pill:hover { transform: translateY(-2px); opacity: 0.95; color: white; }

.upload-area {
    width: 80px; height: 80px; margin: 0 auto 10px;
    border-radius: 50%; border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden; position: relative;
    background: #f1f5f9; cursor: pointer;
}
.upload-area img { width: 100%; height: 100%; object-fit: cover; }
.upload-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 25px;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.upload-overlay i { color: white; font-size: 10px; }

/* --------------------------------------------------------------------------
   8. DASHBOARD WIDGETS & MODALS
   -------------------------------------------------------------------------- */
.stat-micro {
    background: var(--bg-card); border-radius: 12px; padding: 10px 15px;
    border: 1px solid var(--border-card); border-left-width: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between;
    transition: 0.2s;
}
.stat-micro:hover { transform: translateY(-2px); border-color: var(--primary); }
.stat-label { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.stat-val { font-size: 18px; font-weight: 800; color: var(--text-dark); line-height: 1.1; margin-top: 2px; }
.stat-icon { font-size: 20px; opacity: 0.8; }

.bd-blue { border-left-color: #3b82f6; } 
.bd-green { border-left-color: #10b981; }
.bd-orange { border-left-color: #f97316; } 
.bd-purple { border-left-color: #a855f7; }
.bd-pink { border-left-color: #ec4899; }

.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); 
    z-index: 9999; display: none; align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.3s ease; 
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-box { 
    background: white; width: 100%; max-width: 900px; border-radius: 12px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden; 
    border: 1px solid #94a3b8; transform: scale(0.95); transition: 0.3s;
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-box.export-mode { max-width: 420px; padding: 25px; }

.modal-header-modern { 
    background: linear-gradient(to right, #f8fbff, #fff);
    padding: 10px 20px; border-bottom: 1px solid var(--border-light); 
    display: flex; justify-content: space-between; align-items: center; 
}
.modal-body { padding: 20px; background: #fff; }
.modal-footer {
    padding: 15px 20px; background: #f8fafc;
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: flex-end; gap: 10px;
    border-radius: 0 0 12px 12px;
}
.modal-footer .btn-micro { height: 36px; padding: 0 20px; }

.icon-box-grad { 
    width: 32px; height: 32px; background: var(--grad-main); color: white; 
    border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; 
}

/* --------------------------------------------------------------------------
   9. LOGIN PAGE
   -------------------------------------------------------------------------- */
body.login-body {
    background-color: var(--login-bg); height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}
.blob-1 { width: 400px; height: 400px; background: #6366f1; top: -100px; left: -100px; }
.blob-2 { width: 300px; height: 300px; background: #0ea5e9; bottom: -50px; right: -50px; animation-delay: 2s; }
.blob-3 { width: 200px; height: 200px; background: #ec4899; top: 40%; left: 40%; filter: blur(100px); opacity: 0.2; }

.login-wrapper {
    position: relative; z-index: 10; padding: 2px; 
    background: linear-gradient(135deg, #0ea5e9, #ec4899, #6366f1);
    border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.login-card {
    background: #ffffff; width: 320px; padding: 35px 25px;
    border-radius: 20px; text-align: center;
}
.brand-glow {
    width: 50px; height: 50px; margin: 0 auto 15px;
    background: var(--grad-main); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}
.app-title { font-size: 18px; font-weight: 800; color: #1d5ca3; margin: 0; letter-spacing: 1px; }
.app-desc { font-size: 10px; color: #94a3b8; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 0.5px; }

.group-input { position: relative; margin-bottom: 15px; }
.input-icon { 
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%); 
    color: #64748b; font-size: 14px; transition: 0.3s;
}
.toggle-eye {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%); 
    color: #64748b; font-size: 12px; cursor: pointer;
}
.toggle-eye:hover { color: #fff; }

.inp-glass {
    width: 100%; height: 42px; padding-left: 40px; padding-right: 35px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; color: rgb(0, 0, 0); font-size: 12px; transition: 0.3s;
}
.inp-glass:focus {
    background: rgba(255, 255, 255, 0.1); border-color: var(--primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); outline: none;
}
.inp-glass:focus + .input-icon { color: var(--primary); }

.btn-neon {
    width: 100%; height: 42px; margin-top: 10px;
    background: var(--grad-main); border: none; border-radius: 50px;
    color: white; font-weight: 700; font-size: 12px; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-neon:hover {
    transform: translateY(-2px); box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}
.footer-login { margin-top: 25px; font-size: 9px; color: #475569; }

/* --------------------------------------------------------------------------
   10. UTILITIES
   -------------------------------------------------------------------------- */
.txt-main { font-weight: 700; display: block; line-height: 1.2; }
.txt-sub { font-size: 9px; color: #64748b; }
.badge-tiny { font-size: 9px; padding: 3px 6px; border-radius: 4px; font-weight: 600; }
.lbl-micro { font-size: 9px; font-weight: 700; text-transform: uppercase; color: #64748b; margin-bottom: 4px; display: block; }
.sec-title { 
    font-size: 10px; font-weight: 800; text-transform: uppercase; 
    padding-bottom: 5px; border-bottom: 2px solid var(--border-card); 
    margin-bottom: 12px; color: var(--primary); 
}


/* 1. Warna saat baris dipilih (Active Row) */
.table-sheet tbody tr.row-selected td {
    background-color: #fff3cd !important; /* Warna Kuning Lembut */
    border-top: 1px solid #ffecb5;
    border-bottom: 1px solid #ffecb5;
    color: #000;
}

/* 2. Agar input edit transparan menyesuaikan warna highlight */
.table-sheet tbody tr.row-selected td[contenteditable="true"] {
    background-color: transparent; 
    outline: 2px solid #ffc107; /* Garis fokus lebih jelas */
}

/* ==========================================================================
   10.A MODALS PINDAH 
   ========================================================================== */
/* --- MODAL & FORM STYLING MODERN --- */

/* 1. Modal di Depan & Fullscreen di HP */
.modal-backdrop { z-index: 10000 !important; } 
.modal { z-index: 10001 !important; }
.swal2-container {
        z-index: 99999999 !important;
    }
/* 2. Card Minimalis */
.card-form {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}
.card-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.card-header-clean {
    background: transparent;
    border-bottom: 1px dashed #e2e8f0;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #475569;
}

/* 3. Input Form Modern (Soft Background) */
.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    background-color: #f8fafc; /* Abu-abu sangat muda */
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: #6366f1; /* Warna Fokus Utama */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
/* Input Readonly lebih jelas */
.form-control[readonly] {
    background-color: #e2e8f0; 
    color: #64748b;
    border-color: transparent;
    cursor: not-allowed;
}

/* 4. Section Divider */
.section-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 20px 0 10px 0;
}
.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    margin-left: 10px;
}

/* 5. Custom Scrollbar untuk Modal */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }



/* ==========================================================================
   MODULE: LAPOR LAHIR (INTEGRASI FASKES)
   ========================================================================== */

/* --- A. TOP BAR & LAYOUT --- */

/* TAMBAHAN FIX OVERLAY LOADING SUPERADMIN */
    .llhr-loading-overlay {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.85); z-index: 10;
        display: flex; justify-content: center; align-items: center;
        opacity: 0; visibility: hidden; transition: 0.2s; border-radius: 12px;
    }
    .llhr-loading-overlay.active { opacity: 1; visibility: visible; }
    .spinner-smart { 
        width: 35px; height: 35px; border: 4px solid rgba(0,0,0,0.1); 
        border-top-color: #4e73df; border-radius: 50%; animation: spin 1s linear infinite; 
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* FIX ANIMASI & ALIGNMENT CARD */
    .row.g-3 { margin-right: 0; margin-left: 0; } /* Menghilangkan space kosong kanan */
    .beauty-card { 
        background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; 
        position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); z-index: 1; width: 100%;
    }
    .beauty-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
    
    @keyframes float-icon { 
        0% { transform: translateY(0px); } 
        50% { transform: translateY(-8px); } 
        100% { transform: translateY(0px); } 
    }
    .beauty-icon { 
        width: 38px; height: 38px; border-radius: 50%; display: flex; 
        align-items: center; justify-content: center; color: white; font-size: 1rem; 
        position: absolute; top: 15px; right: 15px; z-index: 2; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
        animation: float-icon 3s ease-in-out infinite; /* Animasi bergerak aktif */
    }


.lhr-top-bar { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; gap: 10px; flex-wrap: wrap; 
}
.lhr-icon-box { 
    width: 42px; height: 42px; border-radius: 12px; 
    background: white; color: #4e73df; 
    display: flex; align-items: center; justify-content: center; font-size: 18px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e3e6f0;
}
.lhr-search-pill { 
    background: white; padding: 8px 20px; border-radius: 50px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; align-items: center; 
    width: 100%; max-width: 450px; border: 1px solid #e3e6f0; margin: 0 auto; 
    transition: all 0.3s ease;
}
.lhr-search-pill:focus-within { border-color: #4e73df; box-shadow: 0 0 0 3px rgba(78,115,223,0.1); }
.lhr-search-pill input { border: none; outline: none; width: 100%; font-size: 13px; margin-left: 10px; color: #5a5c69; background: transparent; }

/* --- B. BEAUTY CARDS (DASHBOARD STATS) --- */
.beauty-card {
    background: #ffffff; border-radius: 12px; padding: 15px; position: relative;
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    justify-content: space-between; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    border: 1px solid #e3e6f0; border-left: 5px solid #ccc; transition: transform 0.2s; min-height: 110px;
}
.beauty-card:hover { transform: translateY(-5px); }
.card-primary { border-left-color: #4e73df; }
.card-warning { border-left-color: #f6c23e; }
.card-info    { border-left-color: #36b9cc; }
.card-success { border-left-color: #1cc88a; }

.beauty-label { color: #858796; font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0.5px; position: relative; z-index: 2; }
.beauty-value { color: #5a5c69; font-size: 24px; font-weight: 800; line-height: 1.1; margin-bottom: 10px; position: relative; z-index: 2; }
.beauty-icon {
    position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 2;
}
.bg-grad-primary { background: linear-gradient(45deg, #4e73df, #2e59d9); }
.bg-grad-warning { background: linear-gradient(45deg, #f6c23e, #dda20a); }
.bg-grad-info    { background: linear-gradient(45deg, #36b9cc, #258391); }
.bg-grad-success { background: linear-gradient(45deg, #1cc88a, #13855c); }
.bg-watermark { position: absolute; bottom: -15px; right: -15px; font-size: 80px; color: rgba(0,0,0,0.04); transform: rotate(-15deg); z-index: 0; pointer-events: none; }

.beauty-footer {
    display: flex; align-items: center; background: #f8f9fc; padding: 5px 10px;
    border-radius: 6px; width: fit-content; font-size: 11px; font-weight: 700; color: #858796;
    position: relative; z-index: 2; margin-top: auto;
}
.beauty-sep { margin: 0 8px; color: #d1d3e2; }
.gender-val i { margin-right: 3px; }
.text-L { color: #4e73df; }
.text-P { color: #e74a3b; }

/* --- C. TABEL & LAYOUT UTILS --- */
.lhr-table-wrapper { border-radius: 12px; border: none; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1); overflow: hidden; background: white; margin-bottom: 30px; }
.lhr-table thead th { background: #f8f9fc; color: #4e73df; padding: 12px 15px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e3e6f0; }
.lhr-table tbody td { padding: 10px 15px; vertical-align: top; border-bottom: 1px solid #e3e6f0; color: #5a5c69; font-size: 11px; }
.lhr-table tbody tr:hover { background-color: #fdfdfe; }

/* Utilitas Baris Compact (Info Row) */
.info-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; font-size: 10px; color: #555; }
.divider-v { width: 1px; height: 10px; background-color: #d1d3e2; display: inline-block; margin: 0 4px; }
.label-id { display: inline-block; width: 25px; font-weight: 700; font-size: 9px; color: #858796; }

/* --- D. BADGES & INDICATORS --- */
/* 1. Indikator Bulat 4D (Beads) */
.indicator-bead {
    width: 12px; height: 12px; border-radius: 50%; display: inline-block;
    box-shadow: inset 2px 2px 2px rgba(255,255,255,0.4), inset -2px -2px 2px rgba(0,0,0,0.2), 2px 2px 4px rgba(0,0,0,0.3);
}
.bead-blue { background: radial-gradient(circle at 30% 30%, #4e73df, #224abe); }
.bead-green { background: radial-gradient(circle at 30% 30%, #1cc88a, #13855c); }
.bead-purple { background: radial-gradient(circle at 30% 30%, #a56cc1, #5a32a3); }

/* 2. Status Nama Bayi */
.bayi-ada-nama { color: #1cc88a; font-weight: 800; font-size: 11px; text-transform: uppercase; }
.bayi-no-nama { 
    color: #e74a3b; font-weight: 600; font-style: italic; font-size: 10px; 
    background: #fff5f5; border: 1px dashed #e74a3b; padding: 2px 8px; border-radius: 4px; display: inline-block; 
}

/* 3. Badge Vital Signs (BB/PB/LK Group) */
.vital-badge-group { display: inline-flex; border: 1px solid #e3e6f0; border-radius: 6px; overflow: hidden; background: #fff; width: 100%; }
.vital-item { padding: 3px 0; flex: 1; text-align: center; font-size: 9px; border-right: 1px solid #e3e6f0; font-weight: 600; color: #4e73df; }
.vital-item:last-child { border-right: none; }
.vital-item i { color: #b7b9cc; margin-right: 2px; }

/* 4. Badge BPJS Bayi */
.badge-bpjs-bbl { display: block; width: 100%; text-align: center; background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; font-size: 9px; padding: 3px; border-radius: 4px; font-weight: 700; margin-top: 4px; }
.badge-bpjs-active { display: block; width: 100%; text-align: center; background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; font-size: 9px; padding: 3px; border-radius: 4px; font-weight: 700; margin-top: 4px; }

/* 5. Status Mini (Pending/Proses) */
.status-mini { font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 600; display: inline-block; width: 100%; color: #555; background-color: #f8f9fc; border: 1px solid #e3e6f0; }

/* --- E. TOMBOL & AKSI --- */
/* 1. Tombol WA 3D */
.btn-wa-3d {
    background: linear-gradient(to bottom, #25D366, #128C7E); color: white !important; border: none;
    border-bottom: 3px solid #075E54; border-radius: 6px; box-shadow: 0 3px 5px rgba(0,0,0,0.15);
    transition: all 0.1s; animation: pulse-green 2s infinite; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 6px 10px; font-size: 10px; line-height: 1.4; display: block; width: 100%;
}
.btn-wa-3d:active { transform: translateY(2px); border-bottom: 1px solid #075E54; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-wa-3d:hover { background: linear-gradient(to bottom, #2ce271, #16a090); color: white; }


@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 2. Tombol Aksi Bulat */
.btn-action-icon {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 11px; margin: 0 2px; transition: transform 0.2s;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1); cursor: pointer; text-decoration: none;
}
.btn-action-icon:hover { transform: translateY(-3px); }
.btn-process { background: linear-gradient(135deg, #36b9cc, #258391); }
.btn-verify  { background: linear-gradient(135deg, #1cc88a, #13855c); }
.btn-edit    { background: #fff; border: 1px solid #f6c23e; color: #f6c23e; }
.btn-delete  { background: #fff; border: 1px solid #e74a3b; color: #e74a3b; }
.btn-edit:hover   { background: #f6c23e; color: white; }
.btn-delete:hover { background: #e74a3b; color: white; }

/* 3. Tombol Tahun */
.btn-year-pill { background: #fff; border: 1px solid #e3e6f0; color: #5a5c69; border-radius: 50px; padding: 0.5rem 1.2rem; font-weight: 700; font-size: 0.9rem; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1); display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 140px; }
.year-dropdown-item.active-year { background-color: #4e73df1a; color: #4e73df; }

/* --- FAB MOBILE BUTTON --- */
.lhr-fab { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #4e73df, #224abe); 
    color: white; 
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.5); 
    display: none; /* Default Hidden di Desktop */
    justify-content: center; 
    align-items: center; 
    z-index: 99999 !important; /* Pastikan paling atas */
    border: none; 
    outline: none;
    transition: transform 0.2s;
}
.lhr-fab:active { transform: scale(0.9); }

/* --- TAMBAHAN KHUSUS FORM INPUT (Letakkan di bawah style.css) --- */

/* 1. Placeholder Cantik (Miring & Tipis) */
.form-control::placeholder, .form-select::placeholder {
    color: #9ca3af !important; /* Warna abu muda */
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

/* 2. Input Group Icon (Menyatu dengan Input) */
.input-group-text {
    background-color: #f1f5f9; /* Sesuai var(--bg-body) */
    border-color: #cbd5e1;     /* Sesuai var(--border-card) */
    color: var(--primary);     /* Biru Starla */
    font-size: 0.9rem;
    padding-left: 15px;
    padding-right: 15px;
}

/* 3. GENDER SELECTOR (Visual Radio Button) - Belum ada di CSS lama */
.gender-selector {
    display: flex;
    gap: 15px;
}
.gender-option {
    flex: 1;
    position: relative;
}
.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0; /* Sembunyikan radio asli */
    cursor: pointer;
    width: 100%; height: 100%; z-index: 2;
}
.gender-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
}
/* Efek saat dipilih (Laki-laki) */
.gender-option input[type="radio"]:checked + .gender-label.male {
    background-color: #eff6ff; /* Biru muda */
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}
/* Efek saat dipilih (Perempuan) */
.gender-option input[type="radio"]:checked + .gender-label.female {
    background-color: #fdf2f8; /* Pink muda */
    border-color: #ec4899;
    color: #ec4899;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}
.gender-label i { font-size: 1.2rem; }
.gender-label:hover { transform: translateY(-2px); }

/* TAMPILKAN DI MOBILE */
@media (max-width: 768px) {
    .lhr-fab { display: flex !important; } /* Pakai important agar muncul */
    .lhr-desktop-btn { display: none !important; } /* Sembunyikan tombol desktop */
}

/* ================================================================
   LLHR - SMART FILTER SYSTEM (Modern & Animated)
   ================================================================ */
.llhr-filter-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(71, 85, 105, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.llhr-filter-card:hover {
    box-shadow: 0 20px 40px -10px rgba(71, 85, 105, 0.15);
    transform: translateY(-2px);
}

/* Header Gradient */
.llhr-filter-header {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    padding: 15px 25px;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.llhr-title {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}

/* Form Elements */
.llhr-body { padding: 20px 25px; }

.llhr-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
}

.llhr-input {
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 10px;
    font-size: 11px;
    color: #334155;
    padding: 10px 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
}
.llhr-input:focus {
    background-color: #ffffff;
    border-color: #6366f1; /* Primary Starla */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Button Search */
.llhr-btn-search {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 38px; /* Samakan tinggi dengan input */
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s;
    margin-top: 21px; /* Align dengan input */
    cursor: pointer;
}
.llhr-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.4);
}

.llhr-btn-reset {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 10px;
    width: 100%;
    height: 38px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 21px;
    transition: 0.2s;
    cursor: pointer;
}
.llhr-btn-reset:hover { background: #f1f5f9; color: #ef4444; border-color: #ef4444; }


/* =========================================================
   MODUL LAPOR KAWIN (Prefix: kw-) - ADAPTASI LAPOR LAHIR
   ========================================================= */

/* --- 1. Top Bar & Header --- */
.kw-top-bar { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; gap: 10px; flex-wrap: wrap; 
}
.kw-icon-box { 
    width: 42px; height: 42px; border-radius: 12px; 
    background: white; color: #4e73df; 
    display: flex; align-items: center; justify-content: center; font-size: 18px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e3e6f0;
}
.kw-search-pill { 
    background: white; padding: 8px 20px; border-radius: 50px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; align-items: center; 
    width: 100%; max-width: 450px; border: 1px solid #e3e6f0; margin: 0 auto; 
    transition: all 0.3s ease;
}
.kw-search-pill:focus-within { border-color: #4e73df; box-shadow: 0 0 0 3px rgba(78,115,223,0.1); }
.kw-search-pill input { border: none; outline: none; width: 100%; font-size: 13px; margin-left: 10px; color: #5a5c69; background: transparent; }
.btn-year-pill { background: #fff; border: 1px solid #e3e6f0; color: #5a5c69; border-radius: 50px; padding: 0.5rem 1.2rem; font-weight: 700; font-size: 0.9rem; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1); display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 140px; }

/* --- 2. Beauty Cards (Dashboard Stats) --- */
.beauty-card {
    background: #ffffff; border-radius: 12px; padding: 15px; position: relative;
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    justify-content: space-between; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    border: 1px solid #e3e6f0; border-left: 5px solid #ccc; transition: transform 0.2s; min-height: 110px;
}
.beauty-card:hover { transform: translateY(-5px); }
.card-primary { border-left-color: #4e73df; }
.card-warning { border-left-color: #f6c23e; }
.card-info    { border-left-color: #36b9cc; }
.card-success { border-left-color: #1cc88a; }
.card-danger  { border-left-color: #e74a3b; }

.beauty-label { color: #858796; font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0.5px; position: relative; z-index: 2; }
.beauty-value { color: #5a5c69; font-size: 24px; font-weight: 800; line-height: 1.1; margin-bottom: 10px; position: relative; z-index: 2; }
.beauty-icon {
    position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 2;
}
.bg-grad-primary { background: linear-gradient(45deg, #4e73df, #2e59d9); }
.bg-grad-warning { background: linear-gradient(45deg, #f6c23e, #dda20a); }
.bg-grad-info    { background: linear-gradient(45deg, #36b9cc, #258391); }
.bg-grad-success { background: linear-gradient(45deg, #1cc88a, #13855c); }
.bg-grad-danger  { background: linear-gradient(45deg, #e74a3b, #be2617); }
.card-watermark { position: absolute; bottom: -15px; right: -15px; font-size: 80px; color: rgba(0,0,0,0.04); transform: rotate(-15deg); z-index: 0; pointer-events: none; transition: all 0.4s; }
.beauty-card:hover .card-watermark { transform: rotate(0deg) scale(1.1); opacity: 0.1; bottom: -10px; right: -10px; }

/* Pewarnaan Khusus Text Label sesuai Card */
.card-primary .beauty-label, .card-primary .card-watermark { color: #4e73df; }
.card-warning .beauty-label, .card-warning .card-watermark { color: #f6c23e; }
.card-info .beauty-label, .card-info .card-watermark { color: #36b9cc; }
.card-success .beauty-label, .card-success .card-watermark { color: #1cc88a; }
.card-danger .beauty-label, .card-danger .card-watermark { color: #e74a3b; }

/* --- 3. Tabel & Layout --- */
.kw-table-wrapper { border-radius: 12px; border: none; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1); overflow: hidden; background: white; margin-bottom: 30px; }
.kw-table { width: 100%; border-collapse: collapse; min-width: 1200px; margin-bottom: 0;}
.kw-table thead th { background: #f8f9fc; color: #4e73df; padding: 12px 15px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e3e6f0; }
.kw-table tbody td { padding: 10px 15px; vertical-align: top; border-bottom: 1px solid #e3e6f0; color: #5a5c69; font-size: 11px; }
.kw-table tbody tr:hover { background-color: #fdfdfe; }

/* Info Row Compact */
.info-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; font-size: 10px; color: #555; }
.divider-v { width: 1px; height: 10px; background-color: #d1d3e2; display: inline-block; margin: 0 4px; }
.label-id { display: inline-block; width: 25px; font-weight: 700; font-size: 9px; color: #858796; }

/* --- 4. Badges & Pills --- */
.kw-pill {
    display: inline-block; padding: 3px 10px; border-radius: 50px;
    font-size: 0.65rem; font-weight: 700; margin-top: 3px; margin-right: 3px;
}
.kw-pill-sinjai { background-color: #e1fce8; color: #13855c; border: 1px solid #bce8cb; }
.kw-pill-luar { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.kw-pill-jenis { background-color: #f1f3f8; color: #4e73df; }

/* Status Mini */
.status-mini { font-size: 9px; padding: 3px 8px; border-radius: 4px; font-weight: 600; display: inline-block; width: 100%; text-align: center; border: 1px solid transparent; }
.stat-0 { background: #fff3cd; color: #856404; border-color: #ffeeba; } 
.stat-1 { background: #cce5ff; color: #004085; border-color: #b8daff; } 
.stat-2 { background: #d4edda; color: #155724; border-color: #c3e6cb; } 
.stat-3 { background: #f8d7da; color: #721c24; border-color: #f5c6cb; } 

/* --- 5. Tombol Aksi --- */
/* Tombol WA */
.btn-wa-3d {
    background: linear-gradient(to bottom, #25D366, #128C7E); color: white !important; border: none;
    border-bottom: 3px solid #075E54; border-radius: 6px; box-shadow: 0 3px 5px rgba(0,0,0,0.15);
    transition: all 0.1s; animation: pulse-green 2s infinite; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 6px 10px; font-size: 9px; display: block; width: 100%; text-align: center;
}
.btn-wa-3d:active { transform: translateY(2px); border-bottom: 1px solid #075E54; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-wa-3d:hover { background: linear-gradient(to bottom, #2ce271, #16a090); color: white; }
@keyframes pulse-green { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Tombol Ikon Bulat Kotak (Squircle) */
.btn-action-icon {
    width: 28px; height: 28px; border-radius: 8px; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: white !important; font-size: 11px; margin: 0 2px; transition: transform 0.2s;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1); cursor: pointer; text-decoration: none;
}
.btn-action-icon:hover { transform: translateY(-3px); }
.btn-process { background: linear-gradient(135deg, #36b9cc, #258391); }
.btn-verify  { background: linear-gradient(135deg, #1cc88a, #13855c); }
.btn-edit    { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.btn-delete  { background: linear-gradient(135deg, #e74a3b, #be2617); }

/* Tombol Aksi Lebar */
.kw-btn-pill-timbul {
    border-radius: 50px; padding: 5px 10px; font-size: 9px; font-weight: 700; border: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); transition: all 0.2s ease-in-out; color: white !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.kw-btn-pill-timbul:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.btn-gagal { background: linear-gradient(135deg, #e74a3b, #be2617); }
.btn-selesai { background: linear-gradient(135deg, #1cc88a, #13855c); }

/* --- 6. Loading Overlay --- */
.kw-loading-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(2px);
    z-index: 50; display: none; align-items: center; justify-content: center; border-radius: 12px;
}
.kw-loading-overlay.active { display: flex; }
.spinner-smart {
    width: 40px; height: 40px; border: 4px solid rgba(78, 115, 223, 0.2);
    border-left-color: #4e73df; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }



/* ==========================================================================
   11. CSS Register Kelahiran
   ========================================================================== */

#modalFormKelahiran {
        z-index: 1055 !important;
        align-items: center;
        justify-content: center;
    }


/* ==========================================================================
   11. MOBILE RESPONSIVE AREA
   (Semua Logic Khusus HP ada di sini)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- A. SIDEBAR OVERLAY MODE --- */
    .sidebar {
        width: var(--sidebar-collapsed-width); z-index: 3000 !important;
    }
    .sidebar .logo-area span,
    .sidebar .user-widget .user-name, .sidebar .user-widget .user-role-badge,
    .sidebar .menu-label, .sidebar a span { display: none; }
    
    .sidebar .user-widget { padding: 15px 5px; background: transparent; border-bottom: none; }
    .sidebar .user-avatar { width: 35px; height: 35px; margin-bottom: 0; border-width: 2px; }
    .sidebar .logo-area { justify-content: center; padding: 0; }
    .sidebar a { justify-content: center; }
    .sidebar a i { margin-right: 0; }

    .main-content { margin-left: var(--sidebar-collapsed-width) !important; }

    /* Expanded Overlay */
    .sidebar.mobile-expanded {
        width: var(--sidebar-width); box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    }
    .sidebar.mobile-expanded .logo-area span,
    .sidebar.mobile-expanded .user-widget .user-name,
    .sidebar.mobile-expanded .user-widget .user-role-badge,
    .sidebar.mobile-expanded .menu-label, .sidebar.mobile-expanded a span { display: inline-block; }
    
    .sidebar.mobile-expanded .user-widget { padding: 25px 15px; background: rgba(0,0,0,0.1); border-bottom: 1px solid rgba(255,255,255,0.05); }
    .sidebar.mobile-expanded .user-avatar { width: 65px; height: 65px; margin-bottom: 10px; }
    .sidebar.mobile-expanded .logo-area { justify-content: flex-start; padding: 0 20px; }
    .sidebar.mobile-expanded a { justify-content: flex-start; }
    .sidebar.mobile-expanded a i { margin-right: 10px; }

    /* Backdrop */
    .sidebar-backdrop {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 2999; display: none; backdrop-filter: blur(2px);
    }
    .sidebar-backdrop.show { display: block; animation: fadeIn 0.3s; }


    /* --- B. TOP BAR STACK --- */
    .top-bar {
        flex-direction: column !important; align-items: stretch !important;
        gap: 12px; height: auto !important; padding-bottom: 10px;
    }
    .page-header-group { justify-content: center; width: 100%; }
    .search-pill { width: 100% !important; margin-left: 0 !important; margin-bottom: 5px; }
    .search-pill input { width: 100% !important; }
    .top-bar .d-flex { justify-content: center; width: 100%; }
    .top-bar .btn-gradient-pill { flex-grow: 1; justify-content: center; }


    /* --- C. INPUT BAR (BOTTOM SHEET / LACI) --- */
    .input-bar {
        flex-direction: column; align-items: stretch;
        position: fixed; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto;
        width: 100%; height: auto; max-height: 85vh;
        border-radius: 25px 25px 0 0; padding: 20px 25px !important;
        background: #ffffff; border-top: 5px solid var(--primary);
        transform: translateY(110%); opacity: 0; visibility: hidden;
        z-index: 3050; box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    }
    .input-bar.show-mobile { transform: translateY(0); opacity: 1; visibility: visible; }

    .input-bar .inp-cell {
        width: 100% !important; min-width: 100% !important; margin-bottom: 8px;
        border: 1px solid #cbd5e1; background: #f8fafc; height: 45px;
    }
    .btn-save-floating {
        width: 100%; margin-top: 15px; background: var(--grad-main); color: white; height: 45px;
    }
    .input-bar-icon, .input-bar::before { display: none !important; }

    /* Header Mobile & FAB */
    .mobile-form-header {
        display: flex !important; justify-content: space-between; align-items: center;
        margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0;
        color: var(--text-dark);
    }
    .fab-trigger {
        display: flex !important; position: fixed; bottom: 25px; right: 25px;
        width: 60px; height: 60px; background: var(--grad-main); color: white;
        border-radius: 50%; align-items: center; justify-content: center;
        font-size: 24px; box-shadow: 0 5px 20px rgba(14, 165, 233, 0.5);
        z-index: 2000; cursor: pointer; border: 2px solid white;
        animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    /* --- STYLE FAB (FLOATING ACTION BUTTON) --- */
    .fab-btn {
        position: fixed;
        bottom: 30px;
        right: 25px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #10b981, #059669); /* Warna Hijau Pindah */
        color: white;
        border: none;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        z-index: 1040; /* Di atas konten, di bawah modal */
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        cursor: pointer;
    }

    .fab-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    /* Animasi Pulse Halus */
    @keyframes pulse-green {
        0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
        100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }
    .fab-btn { animation: pulse-green 2s infinite; }
}



/* ========================================================
   MODAL UPLOAD BERKAS KEMATIAN DESA (PREFIX: upm-)
   ======================================================== */
.upm-drop-area { 
    border: 2px dashed #a5b4fc; 
    border-radius: 12px; 
    padding: 15px 20px; 
    text-align: center; 
    background: #eff6ff; 
    transition: all 0.3s ease; 
    position: relative; 
    cursor: pointer; 
}
.upm-drop-area:hover { 
    background: #dbeafe; 
    border-color: #6366f1; 
}
.upm-drop-area input[type="file"] { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    cursor: pointer; 
    z-index: 10; 
}
.upm-icon-box { 
    width: 45px; 
    height: 45px; 
    background: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 10px auto; 
    color: #4f46e5; 
    font-size: 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.upm-file-name { 
    font-size: 11px; 
    color: #1e40af; 
    font-weight: bold; 
    margin-top: 8px; 
    word-break: break-all; 
}
.upm-title { 
    font-weight: 700; 
    color: #1e3a8a; 
    font-size: 13px; 
    margin-bottom: 2px; 
}
.upm-subtitle { 
    font-size: 11px; 
    color: #64748b; 
}


/* CSS Khusus Animasi Mascot Bintang Starla */
    .starla-mascot {
        font-size: 70px; /* Ukuran Bintang Besar */
        color: #ffc107; /* Kuning Starla */
        filter: drop-shadow(0 8px 6px rgba(0,0,0,0.15)); /* Efek melayang */
        display: inline-block;
        /* Animasi dipanggil, durasi 1.5 detik, berulang terus, dengan ritme pantulan */
        animation: star-crazy 1.5s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
        transform-origin: center bottom; /* Titik tumpu di bawah agar efek terbanting realistis */
    }

    @keyframes star-crazy {
        0%   { transform: translateY(0) rotate(0deg) scale(1); }
        /* Melompat tinggi ke kiri sedikit */
        15%  { transform: translateY(-50px) translateX(-10px) rotate(-20deg) scale(0.9, 1.1); } 
        /* Terbanting ke tanah (Memipih/Penyok) */
        30%  { transform: translateY(15px) translateX(0) rotate(15deg) scale(1.3, 0.7); } 
        /* Terlempar sangat tinggi berputar balik */
        50%  { transform: translateY(-70px) rotate(180deg) scale(1, 1); } 
        /* Terbanting lagi */
        70%  { transform: translateY(10px) rotate(370deg) scale(1.2, 0.8); } 
        /* Terseok-seok oleng ke kiri */
        85%  { transform: translateY(-10px) translateX(-20px) rotate(340deg) scale(1); } 
        /* Terseok-seok oleng ke kanan */
        92%  { transform: translateY(-5px) translateX(15px) rotate(380deg) scale(1); } 
        /* Berdiri tegak ngos-ngosan */
        100% { transform: translateY(0) rotate(360deg) scale(1); } 
    }

    .loading-teks {
        animation: pulse-teks 1s infinite alternate;
    }

    @keyframes pulse-teks {
        0% { opacity: 1; text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
        100% { opacity: 0.4; }
    }