@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

/* STREAMING_CHUNK:Configuring Base Styles... */
body { font-family: 'Inter', sans-serif; background-color: #f8fafc; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* STREAMING_CHUNK:Defining Animations... */
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* STREAMING_CHUNK:Styling Captcha... /
/ Custom Captcha Styles */
.mock-recaptcha {
border: 1px solid #e5e7eb; background: #fafafa; border-radius: 4px; padding: 10px 14px;
display: flex; align-items: center; justify-content: space-between; box-shadow: 0px 2px 4px rgba(0,0,0,0.02);
width: 100%; transition: all 0.2s; cursor: pointer; user-select: none;
}
.mock-recaptcha:hover { background: #f3f4f6; border-color: #d1d5db; }
.mock-rc-checkbox {
width: 28px; height: 28px; border: 2px solid #c1c1c1; border-radius: 2px;
background: #fff; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.rc-loading { border-color: transparent !important; border-top-color: #059669 !important; border-radius: 50% !important; animation: rcSpin 0.8s linear infinite; }
.rc-success { border-color: transparent !important; background: transparent !important; }
.rc-success::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #059669; font-size: 22px; }
@keyframes rcSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* STREAMING_CHUNK:Styling Context Menu & Tabs... /
/ Styles for Custom Tabs & Context Menu */
.tab-btn { border-left: 4px solid transparent; transition: all 0.3s ease; }
.tab-btn.active { background-color: #ecfdf5; color: #059669; border-left-color: #059669; font-weight: bold; }

#context-menu {
display: none; position: absolute; z-index: 1000; background: white; border-radius: 8px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; width: 160px; overflow: hidden;
}
.context-item { padding: 10px 16px; font-size: 12px; color: #334155; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 8px; }
.context-item:hover { background: #f1f5f9; color: #0f172a; }
.context-item.danger:hover { background: #fef2f2; color: #e11d48; }

/* TEMA EMERALD, DRAG-DROP & STICKY COL (GLOBAL) */
#theme-bg{display:none}body.theme-emerald #theme-bg{display:block;position:fixed;inset:0;background:url('../img/Menu.jpeg') center/cover fixed;z-index:-2}body.theme-emerald #theme-bg::after{content:'';position:absolute;inset:0;background:rgba(6,95,70,.65);backdrop-filter:blur(12px);z-index:-1}body.theme-emerald #appView{background-color:transparent!important}body.theme-emerald header{background:rgba(15,23,42,.8)!important;backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.1)}body.theme-emerald aside .bg-white,body.theme-emerald section>.bg-white{background:rgba(255,255,255,.9)!important;backdrop-filter:blur(10px)}body.theme-emerald section>.bg-white{background:rgba(255,255,255,.92)!important;border-color:rgba(255,255,255,.4)}.dash-card.dragging{opacity:.5;border:2px dashed #10b981;transform:scale(.98)}.dash-card.drag-over{border:2px solid #10b981;padding-top:20px}.drag-handle{cursor:grab}.drag-handle:active{cursor:grabbing}.dashboard-dragging .dash-card *{pointer-events:none}.sticky-col-left{position:sticky;left:0;background-color:inherit;z-index:20;box-shadow:2px 0 5px -2px rgba(0,0,0,.1)}

/* ==========================================
   MOBILE DRAWER SIDEBAR (< 768px)
   ========================================== */
@media (max-width: 767px) {
    #appView {
        transform: none !important;
    }
    #main-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 100 !important;
        background: #ffffff !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
        overflow-y: auto !important;
        padding: 1rem 0.75rem 2rem 0.75rem !important;
        border-right: 1px solid #e2e8f0;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    #main-sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    body.theme-emerald #main-sidebar {
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    #sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 90 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease !important;
    }
    #sidebar-backdrop.mobile-open {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    body.theme-emerald #sidebar-mobile-header {
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }
    body.theme-emerald #sidebar-mobile-header span {
        color: #f1f5f9 !important;
    }
    body.theme-emerald #sidebar-mobile-header button {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #cbd5e1 !important;
    }
    body.theme-emerald #sidebar-mobile-header button:hover {
        background: rgba(244, 63, 94, 0.25) !important;
        color: #f43f5e !important;
    }
}


/* ========================================================
   DEFINITIVE NEUMORPHIC & GLASSMORPHIC SIDEBAR (SITAMI)
   ======================================================== */
#main-sidebar {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Container breathing room: ensures button box-shadows never clip against boundaries */
#main-sidebar .nav-group > .space-y-1 {
    padding: 3px 4px 6px 4px !important;
}

#main-sidebar .nav-group:not(.overflow-hidden) {
    overflow: visible !important;
}

/* Container breathing room: ensures button box-shadows never clip against boundaries */
#main-sidebar .nav-group > .space-y-1 {
    padding: 3px 4px 6px 4px !important;
}

#main-sidebar .nav-group:not(.overflow-hidden) {
    overflow: visible !important;
}

#main-sidebar .nav-group .space-y-1 > .nav-btn,
#main-sidebar .nav-btn {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    letter-spacing: -0.01em !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none;
    cursor: pointer;
}

/* Inactive State: Explicitly NO shadow, transparent background, identical font */
#main-sidebar .nav-btn:not(.active) {
    background: transparent !important;
    color: #475569 !important; /* text-slate-600 */
    font-weight: 700 !important;
    border: 1px solid transparent !important;
    border-left: 4px solid transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

#main-sidebar .nav-btn:not(.active) i:not(.text-rose-500):not(.text-indigo-500):not(.text-amber-500) {
    color: #94a3b8 !important; /* text-slate-400 */
    filter: none !important;
    transition: all 0.2s ease !important;
}

/* Inactive State Hover Effect */
#main-sidebar .nav-btn:not(.active):hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    border-left-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-0.5px) !important;
}

#main-sidebar .nav-btn:not(.active):hover i:not(.text-rose-500):not(.text-indigo-500):not(.text-amber-500) {
    color: #10b981 !important;
    transform: scale(1.08);
}

/* Tonjolan Neumorphism saat AKTIF (Only triggered by .active class) */
#main-sidebar .nav-btn.active,
body.theme-emerald #main-sidebar .nav-btn.active {
    background: #ffffff !important;
    color: #0f172a !important; /* text-slate-900 */
    font-weight: 800 !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.07), 0 2px 5px -1px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-0.5px) !important;
}

#main-sidebar .nav-btn.active i,
body.theme-emerald #main-sidebar .nav-btn.active i {
    color: #10b981 !important;
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.25));
}

/* TAMI AI SIDEBAR CARD (Glassmorphism Frosted Dark Navy / Emerald Tint) */
#tami-sidebar-card {
    background: rgba(15, 23, 42, 0.80) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#tami-sidebar-card:hover {
    background: rgba(15, 23, 42, 0.90) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
}

#tami-sidebar-card .tami-chat-pill {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    transition: all 0.2s ease !important;
}

#tami-sidebar-card:hover .tami-chat-pill {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #ffffff !important;
}


/* ==========================================
   TOAST NOTIFICATION (VIEWPORT-FIXED SSOT)
   ========================================== */
#toast-container {
    position: fixed !important;
    right: 1.5rem !important;
    bottom: 1.5rem !important;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Offset dynamically when Tami AI FAB is present in main dashboard views */
body:not(.in-pusat-kendali) #toast-container.with-fab {
    bottom: 5.5rem !important;
}

/* Context Awareness: Sembunyikan Tami AI FAB & Chat Modal saat di Pusat Kendali */
body.in-pusat-kendali #btn-tami-fab,
body.in-pusat-kendali #modal-tami-chat {
    display: none !important;
    pointer-events: none !important;
}

/* ==========================================================================
   Tami AI Quick Chips - Horizontal Drag-to-Scroll & Clean Scrollbar (SSOT)
   ========================================================================== */
.tami-chips-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tami-chips-scroll::-webkit-scrollbar {
    display: none;
}

.tami-chips-scroll.is-dragging,
.tami-chips-scroll.is-dragging * {
    cursor: grabbing !important;
}

/* ===== EXECUTIVE DOSSIER (modal detail pegawai): Apple iPhone Glassmorphism & Emerald/Indigo Aesthetics (SSOT) ===== */
#modal-detail {
    background-color: rgba(2, 6, 23, 0.80) !important; /* Deep cinematic dark navy backdrop matching all Sitami modals */
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* SELURUH TEKS DI MODAL DETAIL MENGGUNAKAN FONT APPLE IPHONE (SF PRO DISPLAY) */
#modal-detail div,
#modal-detail p,
#modal-detail span:not([class*="fa-"]),
#modal-detail h1,
#modal-detail h2,
#modal-detail h3,
#modal-detail h4,
#modal-detail h5,
#modal-detail h6,
#modal-detail button,
#modal-detail a,
#modal-detail input,
#modal-detail select,
#modal-detail textarea,
#modal-detail table,
#modal-detail th,
#modal-detail td,
#modal-detail li,
#modal-detail ul,
#modal-detail strong,
#modal-detail em,
#modal-detail label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', -system-ui, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* PROTEKSI MUTLAK FONTAWESOME: Tidak boleh tertimpa font teks */
#modal-detail i,
#modal-detail [class*="fa-"],
#modal-detail .fa,
#modal-detail .fa-solid,
#modal-detail .fa-brands,
#modal-detail .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    display: inline-block !important;
}

#modal-detail-card {
    width: 100%;
    max-width: 64rem;
    height: min(88vh, 780px);
    max-height: 92vh;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 30px 70px -15px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 8px 25px rgba(16, 185, 129, 0.08);
    letter-spacing: -0.011em;
}

#modal-detail-card.modal-expanded {
    width: 98vw;
    max-width: 98vw;
    height: 96vh;
    max-height: 96vh;
    border-radius: 1rem;
}

#modal-detail-card > * {
    min-height: 0;
}

@media (max-width: 767px) {
    #modal-detail-card > div:first-child { max-height: 38%; }
}

/* Apple SF Pro Typography for Headings & Titles */
#modal-detail h1,
#modal-detail h2,
#modal-detail h3,
#modal-detail #det-nama,
#modal-detail #modal-pns-nama {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif !important;
    letter-spacing: -0.025em;
    font-weight: 800 !important;
    color: #0f172a !important;
}

#modal-detail h4 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif !important;
    letter-spacing: 0.04em !important;
    font-weight: 800 !important;
    color: #312e81 !important; /* Deep Indigo-900 Accent */
}

#modal-detail .font-mono,
#modal-detail #modal-pns-nip,
#modal-detail #det-nip {
    font-family: 'SF Mono', Monaco, Menlo, Consolas, 'Liberation Mono', monospace !important;
    letter-spacing: -0.01em !important;
}

/* Sidebar tactile buttons with Apple Neumorphic feel */
#modal-detail .tab-btn {
    border-radius: 12px;
    border-left-width: 1px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 2px 2px 6px rgba(148, 163, 184, 0.12), -2px -2px 6px #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
    letter-spacing: -0.01em;
}

#modal-detail .tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 3px 3px 10px rgba(148, 163, 184, 0.18), -2px -2px 8px #ffffff;
}

#modal-detail .tab-btn.active {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%) !important;
    color: #047857 !important;
    border: 1px solid #6ee7b7 !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16), inset 0 1px 0 #ffffff !important;
    font-weight: 700 !important;
}

#modal-detail .tab-btn.active i {
    color: #059669 !important;
}

/* Glassmorphism Dossier Hero Header */
.dossier-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 50%, #f0fdfa 100%) !important;
    border: 1px solid #a7f3d0 !important;
    box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.12), inset 0 1px 0 #ffffff;
}

/* Tami AI Light Glass Card */
.dossier-tami {
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.94) 60%, rgba(240, 253, 250, 0.95)) !important;
    border: 1px solid #a7f3d0 !important;
    box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.12), inset 0 1px 0 #ffffff;
}

/* Apple-style Glass Biodata Cards */
#modal-detail .grid > div {
    background: rgba(255, 255, 255, 0.76) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#modal-detail .grid > div:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: #a7f3d0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.10) !important;
}

/* Indigo-tinted crisp uppercase labels on cards */
#modal-detail .grid > div p:first-child {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif !important;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
    color: #4f46e5 !important; /* Indigo-600 */
    font-size: 10px !important;
    text-transform: uppercase !important;
}

/* Crisp readable values on cards */
#modal-detail .grid > div p:last-child {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    letter-spacing: -0.01em !important;
}


/* ========================================================
   SITAMI GLASSMORPHISM & NEUMORPHIC MODAL SUITE
   Apple Vision / macOS Inspired Translucent Design
   ======================================================== */

@keyframes modalGlassPop {
    0% {
        opacity: 0;
        transform: scale(0.93) translateY(14px);
    }
    60% {
        transform: scale(1.008) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalBackdropFade {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

.modal-glass-pop {
    animation: modalGlassPop 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

.modal-backdrop-fade {
    animation: modalBackdropFade 0.28s ease-out forwards;
}

/* Glassmorphic Container */
.glass-modal-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 25px 60px -15px rgba(2, 6, 23, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 30px rgba(16, 185, 129, 0.12) !important;
}

/* Glassmorphic Header Emerald Tint - Solid & Radiant Khas SITAMI */
.glass-modal-header-emerald {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #047857 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 16px -2px rgba(5, 150, 105, 0.35) !important;
}

/* Glassmorphic Header Light Tint */
.glass-modal-header-light {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.85), rgba(236, 253, 245, 0.80)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

/* Neumorphic Inset Control (Input & Select) */
.glass-neumorph-input {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(203, 213, 225, 0.7) !important;
    box-shadow: inset 1px 2px 4px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-neumorph-input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #10b981 !important;
    box-shadow: 
        inset 1px 1px 2px rgba(16, 185, 129, 0.05),
        0 0 0 4px rgba(16, 185, 129, 0.16),
        0 4px 12px rgba(16, 185, 129, 0.12) !important;
}

/* Neumorphic Bevel Card / Info Section */
.glass-neumorph-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        3px 4px 12px rgba(148, 163, 184, 0.10),
        -2px -2px 10px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Tactile Soft-Extruded Button */
.neumorph-btn-emerald {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 
        0 4px 14px rgba(5, 150, 105, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.neumorph-btn-emerald:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 
        0 6px 20px rgba(5, 150, 105, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px);
}
.neumorph-btn-emerald:active {
    transform: scale(0.97) translateY(1px);
    box-shadow: 
        0 2px 6px rgba(5, 150, 105, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}


/* ===== Modal Ekspor SIASN BKN: backdrop gelap, kaca lebih tembus, switch neumorphic ===== */
@keyframes bknBackdropIn {
    from { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
    to   { opacity: 1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
@keyframes bknBackdropOut { to { opacity: 0; } }
@keyframes bknModalOut { 
    from { opacity: 1; transform: scale(1) translateY(0); }
    to   { opacity: 0; transform: scale(0.96) translateY(10px); } 
}

.bkn-backdrop {
    background: rgba(11, 15, 25, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: bknBackdropIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bkn-backdrop.bkn-closing { animation: bknBackdropOut 0.22s ease-in forwards; }
.bkn-backdrop.bkn-closing .bkn-modal,
.bkn-backdrop.bkn-closing .glass-modal-card { animation: bknModalOut 0.22s ease-in forwards; }

.bkn-modal.glass-modal-card,
.bkn-modal-glass {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.015em;
    background: rgba(236, 253, 245, 0.58) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    box-shadow: 
        0 25px 60px -15px rgba(2, 6, 23, 0.35),
        0 12px 32px -4px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 40px rgba(15, 23, 42, 0.18) !important;
}

/* Kepatuhan Ketat Tipografi Apple & Indigo/Inter SITAMI: Seluruh teks di modal BKN */
.bkn-modal-glass div,
.bkn-modal-glass p,
.bkn-modal-glass span:not([class*="fa-"]),
.bkn-modal-glass h1,
.bkn-modal-glass h2,
.bkn-modal-glass h3,
.bkn-modal-glass h4,
.bkn-modal-glass button,
.bkn-modal-glass a,
.bkn-modal-glass input,
.bkn-modal-glass select,
.bkn-modal-glass textarea,
.bkn-modal-glass label,
.bkn-modal-glass summary,
.bkn-modal-glass code,
.bkn-modal-glass option {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    letter-spacing: -0.01em;
}

/* Proteksi Ikon FontAwesome (Dilarang tertimpa font teks) */
.bkn-modal-glass i,
.bkn-modal-glass [class*="fa-"],
.bkn-modal-glass .fa,
.bkn-modal-glass .fa-solid,
.bkn-modal-glass .fa-brands,
.bkn-modal-glass .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Styling Chip Code Khusus agar Selaras dengan Tipografi Apple & Indigo SITAMI */
.bkn-modal-glass code {
    font-size: 10px !important;
    font-weight: 700 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #065f46 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* Smooth Accordion Slide & Bergulir Transition (Both Open & Undo/Close) */
.bkn-details-grid {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.30s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
details[open] > .bkn-details-grid,
details[open].bkn-expanded > .bkn-details-grid {
    grid-template-rows: 1fr;
    opacity: 1;
}
details.bkn-collapsing > .bkn-details-grid {
    grid-template-rows: 0fr !important;
    opacity: 0 !important;
}
.bkn-details-inner {
    overflow: hidden;
}

/* Chevron Rotation: Smooth sync with open and undo/collapse */
#bkn-advanced-chevron,
details summary i.fa-chevron-down {
    transition: transform 0.30s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
details.bkn-expanded #bkn-advanced-chevron,
details[open]:not(.bkn-collapsing) #bkn-advanced-chevron,
details.bkn-expanded summary i.fa-chevron-down,
details[open]:not(.bkn-collapsing) summary i.fa-chevron-down {
    transform: rotate(180deg) !important;
}
details.bkn-collapsing #bkn-advanced-chevron,
details.bkn-collapsing summary i.fa-chevron-down {
    transform: rotate(0deg) !important;
}

/* ===== Frosted Glass Buttons (SITAMI Elite Glassmorphism & Equal Ergonomic Alignment) ===== */
.bkn-btn-glass-ghost,
.bkn-btn-glass-secondary,
.bkn-btn-glass-primary {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    user-select: none !important;
    cursor: pointer !important;
}

.bkn-btn-glass-ghost {
    background: rgba(255, 255, 255, 0.70) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    color: #475569 !important;
    min-width: 76px !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 6px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bkn-btn-glass-ghost:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border-color: rgba(203, 213, 225, 0.9) !important;
    transform: translateY(-0.5px) scale(1.01);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 4px 12px rgba(15, 23, 42, 0.06) !important;
}
.bkn-btn-glass-ghost:active {
    transform: translateY(1px) scale(0.96) !important;
}

.bkn-btn-glass-secondary {
    background: rgba(236, 253, 245, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(110, 231, 183, 0.85) !important;
    color: #065f46 !important;
    font-weight: 800 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(16, 185, 129, 0.08) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bkn-btn-glass-secondary:hover {
    background: rgba(209, 250, 229, 0.95) !important;
    color: #047857 !important;
    border-color: rgba(52, 211, 153, 0.95) !important;
    transform: translateY(-0.5px) scale(1.01);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 4px 14px rgba(16, 185, 129, 0.16) !important;
}
.bkn-btn-glass-secondary:active {
    transform: translateY(1px) scale(0.96) !important;
}

.bkn-btn-glass-primary {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #047857 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 0 20px !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 4px 14px rgba(5, 150, 105, 0.35) !important;
    transition: all 0.20s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bkn-btn-glass-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #059669 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 6px 20px rgba(5, 150, 105, 0.45) !important;
    transform: translateY(-1px) scale(1.015);
}
.bkn-btn-glass-primary:active {
    transform: translateY(1px) scale(0.96) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.20),
        0 2px 6px rgba(5, 150, 105, 0.25) !important;
}

/* Proteksi khusus icon di dalam tombol agar tidak nabrak teks */
.bkn-btn-glass-ghost i,
.bkn-btn-glass-secondary i,
.bkn-btn-glass-primary i {
    font-size: 12px !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Tactile Pill & Button Spring Styles */
.bkn-pill-btn {
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.bkn-pill-btn:hover {
    transform: translateY(-1px) scale(1.01);
}
.bkn-pill-btn:active {
    transform: translateY(1px) scale(0.96);
}
.bkn-pill-btn .bkn-check-icon {
    display: none !important;
}
.bkn-pill-btn.bkn-pill-active .bkn-check-icon {
    display: inline-flex !important;
}
.bkn-pill-active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #065f46 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.18), inset 0 1px 1px #ffffff, 0 0 0 1.5px rgba(16, 185, 129, 0.5) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.bkn-row {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: inset 1px 1px 2px rgba(148, 163, 184, 0.1), inset -1px -1px 2px rgba(255, 255, 255, 0.9);
    transition: all 0.18s ease-out;
}
.bkn-row:hover {
    background: rgba(236, 253, 245, 0.7);
    border-color: rgba(16, 185, 129, 0.35);
}

.neu-switch {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #e2e8f0;
    box-shadow: inset 2px 2px 4px rgba(100, 116, 139, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
    transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.neu-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #e8edf3);
    box-shadow: 2px 2px 5px rgba(71, 85, 105, 0.35), -1px -1px 3px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.neu-switch-input:checked + .neu-switch { background: linear-gradient(135deg, #34d399, #059669); }
.neu-switch-input:checked + .neu-switch::after { transform: translateX(18px); }
.neu-switch-input:focus-visible + .neu-switch { outline: 2px solid rgba(16, 185, 129, 0.5); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .bkn-backdrop, .bkn-modal, .neu-switch, .neu-switch::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Rekap Selisih & Rekonsiliasi KPI Glassmorphic Cards (SITAMI UI/UX Pro Max)
   ========================================================================== */
.rekap-kpi-glass {
    position: relative;
    border-radius: 1rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

.rekap-kpi-glass:hover {
    transform: translateY(-4px) scale(1.012);
}

.rekap-kpi-glass:active {
    transform: translateY(1px) scale(0.975);
}

/* 1. Murni SIAP Bekasi (Emerald Glass) */
.rekap-kpi-emerald {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.78) 0%, rgba(209, 250, 229, 0.58) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 16px -2px rgba(16, 185, 129, 0.08);
}
.rekap-kpi-emerald:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.90) 0%, rgba(209, 250, 229, 0.70) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 16px 32px -6px rgba(16, 185, 129, 0.24),
        0 4px 12px rgba(2, 6, 23, 0.04);
}

/* 2. Diisolasi dari Rekap / Selisih (Rose Glass) */
.rekap-kpi-rose {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.78) 0%, rgba(255, 228, 230, 0.58) 100%);
    border: 1px solid rgba(244, 63, 94, 0.28);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 16px -2px rgba(244, 63, 94, 0.08);
}
.rekap-kpi-rose:hover {
    border-color: rgba(244, 63, 94, 0.55);
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.90) 0%, rgba(255, 228, 230, 0.70) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 16px 32px -6px rgba(244, 63, 94, 0.24),
        0 4px 12px rgba(2, 6, 23, 0.04);
}

/* 3. Mutasi & Non-ASN (Amber Glass) */
.rekap-kpi-amber {
    background: linear-gradient(135deg, rgba(254, 252, 232, 0.78) 0%, rgba(254, 243, 199, 0.58) 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 16px -2px rgba(245, 158, 11, 0.08);
}
.rekap-kpi-amber:hover {
    border-color: rgba(245, 158, 11, 0.55);
    background: linear-gradient(135deg, rgba(254, 252, 232, 0.90) 0%, rgba(254, 243, 199, 0.70) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 16px 32px -6px rgba(245, 158, 11, 0.24),
        0 4px 12px rgba(2, 6, 23, 0.04);
}

/* 4. Siap Integrasi BKN (Indigo Glass) */
.rekap-kpi-indigo {
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.78) 0%, rgba(224, 231, 255, 0.58) 100%);
    border: 1px solid rgba(99, 102, 241, 0.28);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 16px -2px rgba(99, 102, 241, 0.08);
}
.rekap-kpi-indigo:hover {
    border-color: rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.90) 0%, rgba(224, 231, 255, 0.70) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 16px 32px -6px rgba(99, 102, 241, 0.24),
        0 4px 12px rgba(2, 6, 23, 0.04);
}

/* Tactile Icon Glasswell */
.rekap-kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 6px rgba(15, 23, 42, 0.05);
}
.rekap-kpi-glass:hover .rekap-kpi-icon-box {
    transform: scale(1.10) rotate(2deg);
}

@media (prefers-reduced-motion: reduce) {
    .rekap-kpi-glass, .rekap-kpi-icon-box {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* SITAMI Violet Theme Extensions for Mobilitas Karir */
.bg-violet-50 { background-color: #f5f3ff !important; }
.bg-violet-100 { background-color: #ede9fe !important; }
.bg-violet-200 { background-color: #ddd6fe !important; }
.bg-violet-600 { background-color: #7c3aed !important; }
.bg-violet-700 { background-color: #6d28d9 !important; }
.bg-violet-800 { background-color: #5b21b6 !important; }
.text-violet-600 { color: #7c3aed !important; }
.text-violet-700 { color: #6d28d9 !important; }
.text-violet-800 { color: #5b21b6 !important; }
.border-violet-200 { border-color: #ddd6fe !important; }
.border-violet-300 { border-color: #c4b5fd !important; }
