/* =============================================================
   SILANI — Design System
   Sistem Layanan Internal Terintegrasi
   ============================================================= */

/* ──────────────────────────────────────────────
   1. VARIABLES & RESET
   ────────────────────────────────────────────── */
:root {
    --sw: 284px;
    --th: 60px;
    --primary:   #4F46E5;
    --primary-h: #4338CA;
    --success:   #10B981;
    --warning:   #F59E0B;
    --danger:    #EF4444;
    --bg:        #F8FAFC;
    --card:      #FFFFFF;
    --text:      #1E293B;
    --muted:     #64748B;
    --border:    #E2E8F0;
    --shadow:    0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07);
    --radius:    10px;
}

html, body { margin: 0; padding: 0; height: 100%; }
*, *::before, *::after { box-sizing: border-box; }
* { font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.page-wrapper {
    margin-left: var(--sw);
    min-height: 100vh;
}

/* ──────────────────────────────────────────────
   2. SIDEBAR
   ────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sw);
    height: 100vh;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.sidebar-brand-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    flex-shrink: 0;
}
.sidebar-brand-text { color: #fff; font-weight: 700; font-size: 18px; line-height: 1.1; }
.sidebar-brand-sub  { color: #64748B; font-size: 11px; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar-nav::-webkit-scrollbar       { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-link {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 20px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
    cursor: pointer; white-space: nowrap;
}
.sidebar-link:hover                          { background: rgba(255,255,255,.04); color: #CBD5E1; }
.sidebar-link.active                         { background: rgba(79,70,229,.15); color: #fff; border-left-color: var(--primary); }
.sidebar-link i                              { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-back {
    margin: 4px 12px 8px; padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
    color: #CBD5E1; font-size: 12.5px; font-weight: 600;
}
.sidebar-back:hover { background: rgba(255,255,255,.06); color: #fff; }

.sidebar-dropdown { position: relative; }
.sidebar-dropdown > .sidebar-link::after {
    content: ''; margin-left: auto;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748B;
    transition: transform .2s; flex-shrink: 0;
}
.sidebar-dropdown.open > .sidebar-link::after { transform: rotate(180deg); border-top-color: #CBD5E1; }
.sidebar-dropdown-menu                        { display: none; background: rgba(0,0,0,.15); }
.sidebar-dropdown.open > .sidebar-dropdown-menu { display: block; }
.sidebar-dropdown-menu .sidebar-link          { padding-left: 40px; font-size: 13px; border-left: none; }

.sidebar-footer { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.sidebar-footer .sidebar-link       { color: #64748B; }
.sidebar-footer .sidebar-link:hover { color: #EF4444; background: rgba(239,68,68,.08); }
.cs-sidebar-badge { font-size:9px; font-weight:700; background:rgba(245,158,11,.18); color:#B45309; padding:2px 7px; border-radius:10px; letter-spacing:.04em; flex-shrink:0; border: 1px solid rgba(245,158,11,.3); }
.sidebar-dropdown--cs > .sidebar-link { gap: 10px; }
.sidebar-dropdown--cs > .sidebar-link .cs-sidebar-badge { margin-left: auto; margin-right: 4px; }

/* ──────────────────────────────────────────────
   3. TOPBAR
   ────────────────────────────────────────────── */
.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    position: sticky; top: 0;
    z-index: 100;
    height: var(--th);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-toggle {
    background: none; border: none;
    font-size: 22px; color: var(--text);
    cursor: pointer; padding: 4px; border-radius: 6px; display: none;
}
.topbar-toggle:hover { background: var(--bg); }
.topbar-breadcrumb              { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.topbar-breadcrumb .breadcrumb-item       { color: var(--muted); }
.topbar-breadcrumb .breadcrumb-item a     { color: var(--primary); text-decoration: none; }
.topbar-breadcrumb .breadcrumb-item.active { color: var(--text); font-weight: 600; }
.topbar-right  { display: flex; align-items: center; gap: 10px; }
.topbar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 6px;
    border-radius: 8px; cursor: pointer;
    transition: background .15s;
    border: 1px solid var(--border);
}
.topbar-user:hover { background: var(--bg); }
.topbar-avatar {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.topbar-user-info  { line-height: 1.3; }
.topbar-user-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.topbar-user-role  { font-size: 11px; color: var(--muted); }

/* ──────────────────────────────────────────────
   4. LAYOUT SHELL
   ────────────────────────────────────────────── */
.main-content { padding: 28px 32px; }
.main-footer  { text-align: center; padding: 20px; color: var(--muted); font-size: 12px; }

/* ──────────────────────────────────────────────
   5. PAGE HEADER
   ────────────────────────────────────────────── */
.page-header    { margin-bottom: 24px; }
.page-title     { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.page-subtitle  { font-size: 13px; color: var(--muted); margin: 0; }

/* ──────────────────────────────────────────────
   6. CARDS
   ────────────────────────────────────────────── */
.card        { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-size: 15px; font-weight: 600; margin: 0; color: var(--text); }
.card-body   { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: #FAFBFC; border-radius: 0 0 var(--radius) var(--radius); }

/* ──────────────────────────────────────────────
   7. BUTTONS
   ────────────────────────────────────────────── */
.btn-primary         { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 16px; }
.btn-primary:hover   { background: var(--primary-h); border-color: var(--primary-h); color: #fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 16px; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-secondary       { background: #F1F5F9; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 16px; }
.btn-secondary:hover { background: #E2E8F0; color: var(--text); }
.btn-success         { background: var(--success); border-color: var(--success); color: #fff; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 16px; }
.btn-danger          { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 16px; }

/* Table row action buttons — consistent square icon buttons with gap */
.table-actions       { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon            { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
                       border: 1px solid #E2E8F0; background: #F1F5F9; color: #475569;
                       border-radius: 8px; font-size: 14px; line-height: 1; transition: all .15s ease; }
.btn-icon:hover      { background: #E2E8F0; color: var(--text); border-color: #CBD5E1; }
.btn-icon i          { font-size: 14px; }
.btn-icon--edit      { color: var(--primary); background: rgba(79,70,229,.10); border-color: rgba(79,70,229,.22); }
.btn-icon--edit:hover{ background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-icon--danger    { color: var(--danger); background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22); }
.btn-icon--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-icon:disabled, .btn-icon[disabled] { opacity: .45; cursor: not-allowed; }
.btn-icon:disabled:hover { background: #F1F5F9; color: #475569; border-color: #E2E8F0; }

/* ──────────────────────────────────────────────
   8. TABLES
   ────────────────────────────────────────────── */
.table { font-size: 13.5px; }
.table thead th {
    background: #FAFBFC; color: var(--muted);
    font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--border); padding: 10px 14px;
}
.table tbody td              { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--border); color: var(--text); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover         { background: #FAFBFC; }

/* ──────────────────────────────────────────────
   9. STATUS BADGES
   ────────────────────────────────────────────── */
.badge-status   { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.badge-pending  { background: rgba(245,158,11,.12); color: #D97706; }
.badge-disetujui{ background: rgba(16,185,129,.12);  color: #059669; }
.badge-ditolak  { background: rgba(239,68,68,.12);   color: #DC2626; }
.badge-diperiksa{ background: rgba(79,70,229,.12);   color: #4338CA; }
.badge-draft    { background: rgba(100,116,139,.12); color: #475569; }

.badge-dot              { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }
.badge-pending  .badge-dot { background: #F59E0B; }
.badge-disetujui .badge-dot { background: #10B981; }
.badge-ditolak  .badge-dot { background: #EF4444; }
.badge-diperiksa .badge-dot { background: var(--primary); }
.badge-draft    .badge-dot { background: #94A3B8; }

/* ──────────────────────────────────────────────
   10. FORMS
   ────────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 8px; border: 1px solid var(--border);
    font-size: 13.5px; padding: 9px 13px; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    outline: none;
}
.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }

/* ──────────────────────────────────────────────
   11. UTILITIES
   ────────────────────────────────────────────── */

/* Search with icon */
.search-wrap               { position: relative; }
.search-wrap .search-icon  { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.search-wrap .form-control { padding-left: 34px; }

/* Generic filter tabs (status, year, etc.) */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab  {
    border: 1px solid var(--border); background: #fff; color: var(--muted);
    font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 8px;
    cursor: pointer; transition: all .15s; text-decoration: none; display: inline-block;
}
.filter-tab:hover,
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Info banner */
.info-banner {
    background: rgba(79,70,229,.04); border: 1px solid rgba(79,70,229,.15);
    border-radius: 12px; padding: 16px 20px;
    display: flex; align-items: flex-start; gap: 14px;
}
.info-banner > i { font-size: 20px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.info-banner-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.info-banner-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Empty state */
.empty-state       { padding: 56px 24px; text-align: center; }
.empty-state-icon  {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(79,70,229,.06); display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 28px; color: rgba(79,70,229,.3); margin-bottom: 16px;
}
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state-desc  { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* Avatar with gradient */
.avatar {
    border-radius: 10px; flex-shrink: 0; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
}
.avatar-sm  { width: 32px; height: 32px; font-size: 12px; }
.avatar-md  { width: 36px; height: 36px; font-size: 14px; }
.avatar-lg  { width: 40px; height: 40px; font-size: 16px; }
.avatar-xl  { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; }

/* Color palette avatars */
.av-0 { background: #4F46E5; }
.av-1 { background: #7C3AED; }
.av-2 { background: #059669; }
.av-3 { background: #B45309; }
.av-4 { background: #DC2626; }
.av-5 { background: #0284C7; }

/* ──────────────────────────────────────────────
   12. DASHBOARD
   ────────────────────────────────────────────── */

/* Legacy header (dipakai di halaman lain) */
.sil-header        { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sil-header-left   { flex: 1; min-width: 0; }
.sil-page-title    { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 6px; line-height: 1.2; }
.sil-page-subtitle { font-size: 13.5px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sil-name          { font-weight: 600; color: var(--text); }
.sil-role-badge    { display: inline-block; background: rgba(79,70,229,.1); color: var(--primary); font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.sil-header-right  { flex-shrink: 0; }
.sil-date-chip     { display: inline-flex; align-items: center; gap: 6px; background: rgba(79,70,229,.06); border: 1px solid rgba(79,70,229,.12); color: var(--primary); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 8px; }

/* Welcome Banner */
.dash-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1e1b4b 100%);
    border-radius: 16px; padding: 0; margin-bottom: 28px;
    position: relative; overflow: hidden;
}
.dash-banner-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 28px 32px; flex-wrap: wrap;
}
.dash-banner-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.dash-banner-orb--1 {
    width: 280px; height: 280px; right: -80px; top: -80px;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 65%);
}
.dash-banner-orb--2 {
    width: 160px; height: 160px; right: 120px; bottom: -60px;
    background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
}
.dash-greeting { color: #94A3B8; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.dash-name     { color: #F8FAFC; font-size: 24px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.dash-tagline  { color: #94A3B8; font-size: 12.5px; margin: 0; }
.dash-date-chip {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 16px; color: #94A3B8;
    font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
    white-space: nowrap; flex-shrink: 0;
}

/* Module Section Separator */
.dash-mod-sep {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.dash-mod-sep--cs { margin-top: 28px; }
.dash-mod-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.dash-mod-icon--primary { background: rgba(79,70,229,.12); color: var(--primary); }
.dash-mod-icon--muted   { background: rgba(100,116,139,.09); color: #94A3B8; }
.dash-mod-info { display: flex; flex-direction: column; gap: 1px; }
.dash-mod-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.dash-mod-desc { font-size: 11px; color: var(--muted); }
.dash-mod-badge {
    font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.dash-mod-badge--aktif  { background: #DCFCE7; color: #15803D; }
.dash-mod-badge--segera { background: #FEF3C7; color: #92400E; }
.dash-mod-rule { flex: 1; height: 1px; background: var(--border); }
.dash-mod-link {
    font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.dash-mod-link:hover { color: var(--primary); }

/* Stats Grid & Cards */
.sil-stats-grid      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 0; }
.sil-stat-card       {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px;
    box-shadow: var(--shadow); transition: box-shadow .2s, transform .18s;
}
.sil-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.sil-stat-icon       { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.sil-stat-body       { flex: 1; min-width: 0; }
.sil-stat-value      { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 5px; }
.sil-stat-label      { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.sil-stat-meta       { font-size: 11px; color: var(--muted); }

/* Stat card color variants — left accent border + icon color */
.sil-stat-card--blue   { border-left: 3px solid var(--primary); }
.sil-stat-card--blue   .sil-stat-icon { background: rgba(79,70,229,.1);  color: var(--primary); }
.sil-stat-card--yellow { border-left: 3px solid #F59E0B; }
.sil-stat-card--yellow .sil-stat-icon { background: rgba(245,158,11,.12); color: #D97706; }
.sil-stat-card--green  { border-left: 3px solid #10B981; }
.sil-stat-card--green  .sil-stat-icon { background: rgba(16,185,129,.12); color: #059669; }
.sil-stat-card--red    { border-left: 3px solid #EF4444; }
.sil-stat-card--red    .sil-stat-icon { background: rgba(239,68,68,.1);   color: #DC2626; }
.sil-stat-card--purple { border-left: 3px solid #7C3AED; }
.sil-stat-card--purple .sil-stat-icon { background: rgba(124,58,237,.12); color: #7C3AED; }
.sil-stat-card--orange { border-left: 3px solid #F97316; }
.sil-stat-card--orange .sil-stat-icon { background: rgba(249,115,22,.12);  color: #EA580C; }

/* Coming soon stat cards */
.sil-stat-card--cs {
    background: repeating-linear-gradient(-45deg, #F8FAFC 0px, #F8FAFC 5px, #fff 5px, #fff 10px);
    border: 1px dashed #CBD5E1; opacity: .75;
}
.sil-stat-card--cs:hover        { opacity: 1; transform: translateY(-2px); }
.sil-stat-icon--cs              { background: rgba(100,116,139,.08) !important; color: #94A3B8 !important; }
.sil-stat-value--cs             { font-size: 24px; color: #94A3B8; font-weight: 700; }
.sil-stat-label--cs             { color: #94A3B8; }

/* Legacy section label (dipakai halaman lain) */
.sil-section-label        { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sil-section-label > span { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.sil-section-rule         { flex: 1; height: 1px; background: var(--border); }
.sil-section-badge        { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.sil-section-badge--aktif { background: rgba(16,185,129,.1); color: #059669; }
.sil-section-badge--segera{ background: rgba(245,158,11,.12); color: #B45309; }
.sil-section-link         { font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.sil-section-link:hover   { color: var(--primary); }

.sil-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.sil-side-panel   { display: flex; flex-direction: column; gap: 16px; }

.sil-panel        { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.sil-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: #FAFBFC; }
.sil-panel-title  { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.sil-panel-title i { color: var(--primary); font-size: 16px; }
.sil-panel-body   { padding: 0; }

.sil-btn           { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 13px; font-weight: 600; padding: 7px 14px; text-decoration: none; transition: background .15s; cursor: pointer; border: none; }
.sil-btn-primary   { background: var(--primary); color: #fff; }
.sil-btn-primary:hover { background: var(--primary-h); color: #fff; }
.sil-btn-ghost     { background: transparent; color: var(--primary); padding: 5px 10px; font-size: 12.5px; }
.sil-btn-ghost:hover { background: rgba(79,70,229,.06); }
.sil-btn-sm        { padding: 5px 12px; font-size: 12.5px; }

.sil-table-wrap     { overflow-x: auto; }
.sil-table          { width: 100%; border-collapse: collapse; font-size: 13px; }
.sil-table thead tr { background: #FAFBFC; }
.sil-table thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.sil-table tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.sil-table tbody tr:last-child { border-bottom: none; }
.sil-table tbody tr:hover      { background: #FAFBFC; }
.sil-table tbody td            { padding: 12px 16px; vertical-align: middle; }
.sil-td-num        { color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; width: 40px; }
.sil-pegawai-name  { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.sil-pegawai-nip   { font-size: 11.5px; color: var(--muted); }
.sil-cuti-kode     { font-size: 12.5px; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.sil-cuti-nama     { font-size: 11.5px; color: var(--muted); }
.sil-td-date       { font-size: 12.5px; color: var(--muted); }
.sil-date-range    { font-size: 11.5px; color: var(--muted); }
.sil-date-days     { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 2px; }

/* Legacy sil-empty-state (dashboard) */
.sil-empty-state  { padding: 48px 24px; text-align: center; }
.sil-empty-icon   { width: 64px; height: 64px; border-radius: 50%; background: rgba(79,70,229,.06); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(79,70,229,.3); margin-bottom: 16px; }
.sil-empty-title  { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sil-empty-desc   { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.sil-quick-actions  { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.sil-action-btn     { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .15s; border: none; background: transparent; width: 100%; text-align: left; cursor: pointer; color: var(--text); }
.sil-action-btn:hover            { background: rgba(79,70,229,.06); }
.sil-action-btn i                { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }
.sil-action-btn--primary         { background: var(--primary); color: #fff; }
.sil-action-btn--primary:hover   { background: var(--primary-h); color: #fff; }
.sil-action-btn--primary i       { color: rgba(255,255,255,.85); }
.sil-action-btn--secondary i     { color: var(--primary); }

.sil-info-list      { padding: 8px 0; display: flex; flex-direction: column; }
.sil-info-item      { display: flex; align-items: flex-start; gap: 12px; padding: 10px 20px; }
.sil-info-item:hover { background: rgba(0,0,0,.02); }
.sil-info-icon      { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.sil-info-icon--blue   { background: rgba(79,70,229,.1);  color: var(--primary); }
.sil-info-icon--green  { background: rgba(16,185,129,.1); color: #10B981; }
.sil-info-icon--yellow { background: rgba(245,158,11,.1); color: #F59E0B; }
.sil-info-icon--red    { background: rgba(239,68,68,.1);  color: #EF4444; }
.sil-info-text  { flex: 1; }
.sil-info-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.sil-info-desc  { font-size: 11.5px; color: var(--muted); }

/* ──────────────────────────────────────────────
   13. PEGAWAI MODULE
   ────────────────────────────────────────────── */
.pegawai-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
}
.pegawai-name  { font-weight: 600; color: var(--text); font-size: 13.5px; margin-bottom: 1px; }
.pegawai-nip   { font-size: 11.5px; color: var(--muted); }

.jabatan-badge { display: inline-block; background: rgba(79,70,229,.08); color: var(--primary); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.unit-tag      { display: inline-block; background: #F1F5F9; color: var(--muted); font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.tmt-label     { font-size: 12px; color: var(--muted); }
.masa-kerja-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #10B981; background: rgba(16,185,129,.08); padding: 3px 10px; border-radius: 20px; }

/* ──────────────────────────────────────────────
   14. JENIS CUTI MODULE
   ────────────────────────────────────────────── */
.jenis-cuti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.jc-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.jc-card:hover    { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.jc-card::before  { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-color, var(--primary)); border-radius: 14px 14px 0 0; }
.jc-header        { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jc-icon          { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: var(--icon-bg, rgba(79,70,229,.1)); color: var(--icon-color, var(--primary)); }
.jc-kode          { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.jc-nama          { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.jc-plafon        { display: flex; align-items: center; gap: 8px; background: #F8FAFC; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.jc-plafon-num    { font-size: 28px; font-weight: 800; color: var(--accent-color, var(--primary)); line-height: 1; }
.jc-plafon-label  { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.jc-tags          { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.jc-tag           { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.jc-tag--lampiran    { background: rgba(245,158,11,.1); color: #B45309; }
.jc-tag--no-lampiran { background: rgba(100,116,139,.08); color: var(--muted); }
.jc-actions       { display: flex; gap: 8px; margin-top: auto; }

/* ──────────────────────────────────────────────
   15. CUTI BERSAMA / CALENDAR MODULE
   ────────────────────────────────────────────── */
.cb-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

.cal-wrap       { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.cal-header     { background: var(--primary); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.cal-month-label { font-size: 16px; font-weight: 700; }
.cal-year-label  { font-size: 13px; opacity: .8; }
.cal-grid        { padding: 16px; }
.cal-day-names   { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.cal-day-name    { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.cal-day-name:first-child, .cal-day-name:last-child { color: #EF4444; }
.cal-days        { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day         { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; border-radius: 8px; color: var(--text); position: relative; }
.cal-day.weekend      { color: #EF4444; }
.cal-day.other-month  { color: #CBD5E1; }
.cal-day.holiday          { background: rgba(239,68,68,.12); color: #DC2626; font-weight: 700; border: 1.5px solid rgba(239,68,68,.25); }
.cal-day.holiday--libur   { background: rgba(239,68,68,.12); color: #DC2626; border-color: rgba(239,68,68,.25); }
.cal-day.holiday--cb      { background: rgba(245,158,11,.15); color: #B45309; border: 1.5px solid rgba(245,158,11,.35); }
.cal-day.today            { background: var(--primary); color: #fff; font-weight: 700; }
.cal-day.holiday.today    { background: #DC2626; }
.cal-legend      { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); background: #FAFBFC; flex-wrap: wrap; }
.legend-item     { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-dot      { width: 12px; height: 12px; border-radius: 4px; }
.legend-dot--holiday { background: rgba(239,68,68,.15); border: 1.5px solid rgba(239,68,68,.3); }
.legend-dot--libur   { background: rgba(239,68,68,.15); border: 1.5px solid rgba(239,68,68,.3); }
.legend-dot--cb      { background: rgba(245,158,11,.2); border: 1.5px solid rgba(245,158,11,.4); }
.legend-dot--today   { background: var(--primary); }
.badge-cb            { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px; letter-spacing: .01em; }
.badge-cb--libur     { background: rgba(239,68,68,.08); color: #DC2626; border: 1px solid rgba(239,68,68,.2); }
.badge-cb--potong    { background: rgba(245,158,11,.1); color: #B45309; border: 1px solid rgba(245,158,11,.3); }

.cb-list-panel   { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.cb-list-header  { padding: 16px 20px; border-bottom: 1px solid var(--border); background: #FAFBFC; display: flex; align-items: center; justify-content: space-between; }
.cb-list-title   { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.cb-list-title i { color: var(--primary); }
.cb-list-body    { max-height: 460px; overflow-y: auto; }
.cb-item         { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); transition: background .12s; }
.cb-item:last-child { border-bottom: none; }
.cb-item:hover   { background: #FAFBFC; }
.cb-date-box     { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cb-date-day     { font-size: 16px; font-weight: 800; color: #DC2626; line-height: 1; }
.cb-date-mon     { font-size: 10px; font-weight: 600; color: #EF4444; text-transform: uppercase; letter-spacing: .04em; }
.cb-desc         { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.cb-year         { font-size: 11.5px; color: var(--muted); }
.cb-delete-btn   { margin-left: auto; background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 6px; transition: color .15s, background .15s; flex-shrink: 0; }
.cb-delete-btn:hover { color: #EF4444; background: rgba(239,68,68,.08); }

/* ──────────────────────────────────────────────
   16. PERMOHONAN MODULE
   ────────────────────────────────────────────── */

/* Status tabs */
.status-tabs { display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 4px; flex-wrap: wrap; }
.status-tab  { padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--muted); transition: all .15s; display: flex; align-items: center; gap: 5px; }
.status-tab:hover   { background: #F1F5F9; color: var(--text); }
.status-tab.active  { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25); }
.tab-count          { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 9px; font-size: 10.5px; font-weight: 700; padding: 0 5px; }
.status-tab.active  .tab-count { background: rgba(255,255,255,.25); color: #fff; }
.status-tab:not(.active) .tab-count { background: #E2E8F0; color: var(--muted); }

/* Inline workflow mini */
.wf-mini    { display: flex; align-items: center; gap: 3px; }
.wf-dot     { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.wf-dot--done    { background: rgba(16,185,129,.15); color: #059669; }
.wf-dot--active  { background: rgba(79,70,229,.15); color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.25); }
.wf-dot--pending { background: #F1F5F9; color: #CBD5E1; }
.wf-line         { width: 8px; height: 2px; background: var(--border); flex-shrink: 0; }
.wf-line--done   { background: #10B981; }

.permohonan-id { font-size: 11px; font-weight: 700; color: var(--muted); font-family: monospace; }

/* ── Permohonan Form (Stepper) ── */
.stepper { display: flex; align-items: flex-start; gap: 0; margin-bottom: 32px; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item + .step-item::before { content: ''; position: absolute; top: 16px; right: 50%; left: -50%; height: 2px; background: var(--border); z-index: 0; margin: 0 32px; }
.step-item.done + .step-item::before { background: var(--primary); }
.step-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    border: 2px solid var(--border); background: #fff; color: var(--muted);
    position: relative; z-index: 1; transition: all .2s;
}
.step-item.active .step-circle { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.step-item.done   .step-circle { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-label       { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 8px; text-align: center; line-height: 1.2; }
.step-item.active .step-label,
.step-item.done   .step-label  { color: var(--primary); }

.step-panel        { display: none; }
.step-panel.active { display: block; }

.biodata-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #F0FDF4 100%);
    border: 1px solid rgba(79,70,229,.15);
    border-radius: 14px; padding: 20px; margin-bottom: 24px;
}
.biodata-avatar { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #7C3AED); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.biodata-name   { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.biodata-nip    { font-size: 13px; color: var(--muted); font-weight: 600; }
.biodata-meta   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.biodata-chip   { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.7); border: 1px solid rgba(79,70,229,.1); color: var(--text); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.biodata-chip i { color: var(--primary); font-size: 13px; }

.saldo-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.saldo-item   { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; transition: border-color .15s; }
.saldo-item.selected { border-color: var(--primary); background: rgba(79,70,229,.03); box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.saldo-kode   { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.saldo-jumlah { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 2px; }
.saldo-label  { font-size: 11px; color: var(--muted); font-weight: 500; }
.saldo-item.low   .saldo-jumlah { color: #F59E0B; }
.saldo-item.empty .saldo-jumlah { color: #EF4444; }

.hari-kerja-result  { display: flex; align-items: center; gap: 16px; background: rgba(79,70,229,.04); border: 1.5px solid rgba(79,70,229,.2); border-radius: 12px; padding: 16px 20px; margin-top: 12px; transition: all .2s; }
.hari-kerja-result.loading { opacity: .5; pointer-events: none; }
.hari-kerja-num    { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.hari-kerja-label  { font-size: 13px; color: var(--text); font-weight: 600; }
.hari-kerja-sub    { font-size: 12px; color: var(--muted); margin-top: 2px; }

.upload-zone         { border: 2px dashed var(--border); border-radius: 12px; padding: 32px; text-align: center; transition: all .2s; cursor: pointer; background: #FAFBFC; }
.upload-zone:hover,
.upload-zone.dragover { border-color: var(--primary); background: rgba(79,70,229,.03); }
.upload-icon         { font-size: 36px; color: rgba(79,70,229,.3); margin-bottom: 10px; }
.upload-label        { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.upload-hint         { font-size: 12.5px; color: var(--muted); }
.upload-file-item    { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-size: 13px; }
.upload-file-item i  { color: var(--primary); flex-shrink: 0; }
.upload-file-name    { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-size    { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.upload-file-remove  { background: none; border: none; color: #94A3B8; cursor: pointer; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; }
.upload-file-remove:hover { color: #EF4444; }

.review-section         { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.review-section-header  { background: #FAFBFC; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.review-section-header i { color: var(--primary); font-size: 14px; }
.review-row  { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-key  { font-size: 12.5px; color: var(--muted); font-weight: 600; min-width: 150px; flex-shrink: 0; }
.review-val  { font-size: 13px; color: var(--text); font-weight: 500; }
.step-nav    { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ──────────────────────────────────────────────
   17. VERIFIKASI MODULE
   ────────────────────────────────────────────── */
.wf-timeline      { display: flex; align-items: center; gap: 4px; }
.wf-node          { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
.wf-node-circle   { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: all .2s; }
.wf-node-circle--done    { background: rgba(16,185,129,.15); color: #059669; border: 2px solid rgba(16,185,129,.3); }
.wf-node-circle--active  { background: rgba(79,70,229,.1); color: var(--primary); border: 2px solid rgba(79,70,229,.3); box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.wf-node-circle--pending { background: #F1F5F9; color: #CBD5E1; border: 2px solid #E2E8F0; }
.wf-node-circle--reject  { background: rgba(239,68,68,.1); color: #DC2626; border: 2px solid rgba(239,68,68,.2); }
.wf-node-label    { font-size: 9.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; white-space: nowrap; }
.wf-connector     { flex: 1; height: 2px; background: var(--border); min-width: 16px; }
.wf-connector--done { background: #10B981; }

.ver-card        { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 12px; transition: box-shadow .2s, transform .15s; cursor: pointer; }
.ver-card:hover  { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ver-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ver-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.ver-pegawai-avatar { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), #7C3AED); color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ver-name    { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ver-nip     { font-size: 11.5px; color: var(--muted); }
.ver-meta    { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; margin-bottom: 14px; }
.ver-chip    { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.ver-chip--cuti { background: rgba(79,70,229,.08); color: var(--primary); }
.ver-chip--date { background: #F1F5F9; color: var(--text); }
.ver-chip--days { background: rgba(16,185,129,.08); color: #059669; }
.ver-submitted  { font-size: 11.5px; color: var(--muted); }

.level-tabs    { display: flex; gap: 6px; flex-wrap: wrap; }
.level-tab     { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--muted); transition: all .15s; background: #fff; }
.level-tab i   { font-size: 15px; }
.level-tab:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,.03); }
.level-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25); }
.level-count   { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 9px; font-size: 10.5px; padding: 0 5px; }
.level-tab.active    .level-count { background: rgba(255,255,255,.25); }
.level-tab:not(.active) .level-count { background: #E2E8F0; color: var(--muted); }

.urgent-badge  { display: inline-flex; align-items: center; gap: 4px; background: rgba(239,68,68,.1); color: #DC2626; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ──────────────────────────────────────────────
   18. LAPORAN (COMING SOON)
   ────────────────────────────────────────────── */
.coming-soon-wrap { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.cs-icon-ring     { width: 100px; height: 100px; border-radius: 50%; background: rgba(79,70,229,.06); border: 2px solid rgba(79,70,229,.1); display: flex; align-items: center; justify-content: center; font-size: 44px; color: rgba(79,70,229,.4); margin-bottom: 24px; animation: pulse-ring 2.5s ease-in-out infinite; }
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,.12); }
    50%       { box-shadow: 0 0 0 16px rgba(79,70,229,.04); }
}
.cs-title    { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; text-align: center; }
.cs-subtitle { font-size: 14px; color: var(--muted); text-align: center; max-width: 440px; line-height: 1.6; margin-bottom: 32px; }
.cs-badge    { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,158,11,.1); color: #B45309; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
.cs-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; width: 100%; max-width: 640px; }
.cs-feature  { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow); }
.cs-feature-icon  { width: 36px; height: 36px; border-radius: 10px; background: rgba(79,70,229,.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cs-feature-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cs-feature-desc  { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* ──────────────────────────────────────────────
   19. PENGATURAN — USERS
   ────────────────────────────────────────────── */
.user-avatar    { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; color: #fff; }

.role-badge         { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.role-super-admin   { background: rgba(239,68,68,.1);   color: #DC2626; }
.role-operator      { background: rgba(79,70,229,.1);   color: var(--primary); }
.role-atasan        { background: rgba(245,158,11,.1);  color: #B45309; }
.role-kepegawaian   { background: rgba(16,185,129,.1);  color: #059669; }
.role-pejabat       { background: rgba(124,58,237,.1);  color: #7C3AED; }
.role-pegawai       { background: rgba(100,116,139,.1); color: #475569; }

/* Toggle switch */
.status-toggle         { position: relative; display: inline-flex; align-items: center; width: 38px; height: 22px; cursor: pointer; }
.status-toggle input   { opacity: 0; width: 0; height: 0; }
.toggle-slider         { position: absolute; inset: 0; background: #E2E8F0; border-radius: 11px; transition: background .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.status-toggle input:checked + .toggle-slider              { background: #10B981; }
.status-toggle input:checked + .toggle-slider::before      { transform: translateX(16px); }

/* ──────────────────────────────────────────────
   20. PENGATURAN — ROLES
   ────────────────────────────────────────────── */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.role-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 22px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .15s;
    position: relative; overflow: hidden;
}
.role-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.role-card::after { content: ''; position: absolute; bottom: -30px; right: -30px; width: 80px; height: 80px; border-radius: 50%; background: var(--role-accent, rgba(79,70,229,.05)); pointer-events: none; }
.role-icon       { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--role-icon-bg, rgba(79,70,229,.1)); color: var(--role-icon-color, var(--primary)); margin-bottom: 14px; }
.role-name       { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.role-desc       { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; min-height: 38px; }
.role-user-count { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; background: #F8FAFC; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 16px; }
.role-user-count i { color: var(--primary); }
.role-actions    { display: flex; gap: 8px; }

.roles-info-banner       { background: linear-gradient(135deg, rgba(79,70,229,.05), rgba(124,58,237,.05)); border: 1px solid rgba(79,70,229,.12); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: flex-start; gap: 14px; }
.roles-info-banner > i   { font-size: 20px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.roles-info-title        { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.roles-info-desc         { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ──────────────────────────────────────────────
   21. AUTH PAGES (login, register, dll)
   ────────────────────────────────────────────── */
body.auth-page {
    background: none;
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 460px;
    min-height: 100vh;
}

/* Hero */
.login-hero              { background: #0F172A; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.hero-bg-grid            { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(79,70,229,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,.15) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%); }
.hero-glow               { position: absolute; top: -80px; left: -80px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(79,70,229,.25) 0%, transparent 70%); pointer-events: none; }
.hero-glow-2             { position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%); pointer-events: none; }
.hero-brand              { position: relative; z-index: 1; }
.hero-logo               { height: 76px; display: inline-flex; margin-bottom: 18px; }
.hero-logo img           { height: 76px; width: auto; object-fit: contain; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.hero-institution        { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.hero-inst-logo          { height: 60px; width: auto; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.hero-inst-name          { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.25; }
.hero-inst-sub           { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.hero-app-name           { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.hero-app-tagline        { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 500; }
.hero-content            { position: relative; z-index: 1; }
.hero-headline           { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.4px; margin-bottom: 14px; }
.hero-headline em        { font-style: normal; color: rgba(165,148,249,1); }
.hero-body               { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 340px; }
.hero-stats              { position: relative; z-index: 1; display: flex; gap: 24px; }
.hero-stat-num           { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 3px; }
.hero-stat-label         { font-size: 11.5px; color: rgba(255,255,255,.45); font-weight: 500; }

/* Form panel */
.login-form-panel        { background: #F8FAFC; display: flex; align-items: center; justify-content: center; padding: 40px 48px; }
.login-form-inner        { width: 100%; max-width: 360px; }
.form-heading            { margin-bottom: 32px; }
.form-heading-title      { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.3px; }
.form-heading-sub        { font-size: 14px; color: var(--muted); }
.form-field              { margin-bottom: 18px; }
.form-field label        { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.field-wrap              { position: relative; }
.field-wrap .field-icon  { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.field-input             { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px 11px 40px; font-size: 14px; color: var(--text); background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s; outline: none; }
.field-input:focus       { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.field-input::placeholder { color: #CBD5E1; }
.field-toggle-pw         { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px; font-size: 16px; }
.form-extras             { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.check-label             { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.check-label input       { width: 15px; height: 15px; border-radius: 4px; accent-color: var(--primary); cursor: pointer; }
.forgot-link             { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.forgot-link:hover       { text-decoration: underline; }
.btn-submit              { width: 100%; padding: 13px; background: var(--primary); border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: .2px; transition: background .2s, box-shadow .2s, transform .1s; box-shadow: 0 4px 14px rgba(79,70,229,.3); }
.btn-submit:hover        { background: var(--primary-h); box-shadow: 0 6px 20px rgba(79,70,229,.4); transform: translateY(-1px); }
.btn-submit:active       { transform: translateY(0); }
.form-divider            { text-align: center; font-size: 12px; color: var(--muted); margin: 20px 0; position: relative; }
.form-divider::before    { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.form-divider span       { background: #F8FAFC; padding: 0 12px; position: relative; }
.form-footer             { text-align: center; font-size: 13px; color: var(--muted); }
.form-footer a           { color: var(--primary); font-weight: 700; text-decoration: none; }
.form-footer a:hover     { text-decoration: underline; }
.sil-alert               { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.sil-alert--error        { background: rgba(239,68,68,.07); color: #DC2626; border: 1px solid rgba(239,68,68,.15); }
.sil-alert--success      { background: rgba(16,185,129,.07); color: #059669; border: 1px solid rgba(16,185,129,.15); }
.sil-alert i             { font-size: 16px; flex-shrink: 0; }
.mobile-brand            { display: none; align-items: center; gap: 12px; margin-bottom: 28px; }
.mobile-logo             { height: 48px; display: flex; align-items: center; }
.mobile-logo img         { height: 48px; width: auto; object-fit: contain; display: block; }
.mobile-app-name         { font-size: 18px; font-weight: 800; color: var(--text); }
.mobile-app-sub          { font-size: 12px; color: var(--muted); }

/* ──────────────────────────────────────────────
   23. FORMS — SHARED UTILITIES
   ────────────────────────────────────────────── */

/* Section heading inside form cards */
.form-section-title {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px; margin-bottom: 18px;
}
.form-section-title--muted { color: var(--muted); border-color: var(--border); }
.form-section-title--danger { color: var(--danger); border-color: rgba(239,68,68,.2); }

/* Sub-label below input fields */
.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; margin-bottom: 0; }

/* Bootstrap validation overrides */
.form-control.is-invalid,
.form-select.is-invalid  { border-color: var(--danger); }
.invalid-feedback        { font-size: 12px; color: var(--danger); margin-top: 4px; display: block; }

/* Sticky action sidebar (two-column form layouts) */
.sticky-card  { position: sticky; top: 84px; }

/* Hint text inside action sidebar */
.form-action-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

/* Micro uppercase label (like "Aksi") */
.label-micro {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

/* Inline alert banners (inside page content, not auth) */
.alert-inline {
    display: flex; align-items: center; gap: 10px;
    border-radius: 10px; font-size: 13.5px;
    padding: 12px 16px; margin-bottom: 20px;
}
.alert-inline i                { flex-shrink: 0; }
.alert-inline--error           { background: rgba(239,68,68,.07);  color: #DC2626; border: 1px solid rgba(239,68,68,.15); }
.alert-inline--success         { background: rgba(16,185,129,.07); color: #059669; border: 1px solid rgba(16,185,129,.15); }
.alert-inline--info            { background: rgba(79,70,229,.05);  color: var(--primary); border: 1px solid rgba(79,70,229,.12); }

/* HR using design-system border color */
.divider-subtle { border-color: var(--border) !important; margin: 20px 0; }

/* ──────────────────────────────────────────────
   24. PEGAWAI — DETAIL & FORM
   ────────────────────────────────────────────── */

/* Large circle avatar for profile/detail header */
.pegawai-avatar-lg {
    width: 72px; height: 72px; border-radius: 18px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; flex-shrink: 0;
}

/* NIP monospace display pill */
.nip-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(79,70,229,.06); border: 1px solid rgba(79,70,229,.2);
    color: var(--primary); padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; font-family: monospace;
}

/* Profile card center layout */
.profile-card-center { text-align: center; padding: 32px 24px; }
.profile-card-name   { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.profile-card-sub    { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }

/* Inline contact list (profile right panel) */
.profile-contact     { text-align: left; }
.profile-contact-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--text); }
.profile-contact-row:last-child { margin-bottom: 0; }
.profile-contact-row i { font-size: 14px; color: var(--muted); width: 18px; text-align: center; flex-shrink: 0; }
.profile-contact-row span { word-break: break-all; }

/* Detail key-value rows */
.detail-row            { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F8FAFC; }
.detail-row:last-child { border-bottom: none; }
.detail-label          { font-size: 12px; color: var(--muted); font-weight: 500; min-width: 140px; flex-shrink: 0; padding-top: 1px; }
.detail-value          { font-size: 13.5px; color: var(--text); font-weight: 500; }
.detail-value--empty   { color: var(--muted); font-style: italic; font-weight: 400; }

/* Status pills (active / inactive) */
.status-pill            { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid; }
.status-pill--active    { background: rgba(16,185,129,.1); color: #059669; border-color: rgba(16,185,129,.2); }
.status-pill--inactive  { background: rgba(239,68,68,.1);  color: #DC2626; border-color: rgba(239,68,68,.2); }
.status-dot             { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot--active     { background: #10B981; }
.status-dot--inactive   { background: #EF4444; }

/* ──────────────────────────────────────────────
   25. JENIS CUTI — FORM / LIVE PREVIEW
   ────────────────────────────────────────────── */

/* Kode cuti display pill (edit header) */
.jc-kode-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(79,70,229,.06); border: 1px solid rgba(79,70,229,.2);
    color: var(--primary); padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; font-family: monospace;
}

/* Live preview card on tambah form */
.jc-live-preview       { background: rgba(79,70,229,.03); border: 1px dashed rgba(79,70,229,.2); border-radius: 12px; padding: 20px; margin-top: 8px; }
.jc-live-kode          { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.jc-live-nama          { font-size: 16px; font-weight: 700; color: var(--text); }
.jc-live-plafon        { font-size: 28px; font-weight: 800; color: var(--primary); margin: 8px 0 2px; line-height: 1; }
.jc-live-plafon-label  { font-size: 12px; color: var(--muted); }

/* ──────────────────────────────────────────────
   26. CUTI BERSAMA — FORM & INDEX
   ────────────────────────────────────────────── */

/* Year filter button row (index header) */
.year-filter  { display: flex; gap: 4px; }
.year-btn     { padding: 5px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--border); background: #fff; transition: all .15s; }
.year-btn:hover  { border-color: var(--primary); color: var(--primary); }
.year-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Date preview card (tambah form) */
.cb-date-card           { background: rgba(79,70,229,.04); border: 1px solid rgba(79,70,229,.12); border-radius: 12px; padding: 20px; text-align: center; transition: all .2s; margin-top: 16px; }
.cb-date-card__day      { font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.cb-date-card__info     { font-size: 14px; color: var(--text); font-weight: 600; }
.cb-date-card__sub      { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Info list in tambah right panel */
.cb-info-list           { font-size: 13px; color: var(--text); line-height: 1.8; padding-left: 20px; margin: 0; }
.cb-info-footer         { font-size: 12px; color: var(--muted); margin: 0; }

/* Jenis radio button (tambah form) */
.jenis-radio-btn        { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); color: var(--muted); background: #fff; transition: all .15s; user-select: none; }
.jenis-radio-btn input  { display: none; }
.jenis-radio-btn:hover  { border-color: var(--primary); color: var(--primary); }
.jenis-radio-btn.active { border-color: var(--primary); background: rgba(79,70,229,.06); color: var(--primary); }

/* ──────────────────────────────────────────────
   22. RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .sil-content-grid { grid-template-columns: 1fr 280px; }
    .cb-layout        { grid-template-columns: 1fr; }
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 991px) {
    .page-wrapper      { margin-left: 0; }
    .sidebar           { display: none; }
    .sidebar.open      { display: flex; }
    .main-content      { padding: 20px 16px; }
    .topbar            { padding: 0 16px; }
    .topbar-toggle     { display: block; }
    .sil-stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .sil-content-grid  { grid-template-columns: 1fr; }
    .sil-side-panel    { flex-direction: row; flex-wrap: wrap; }
    .sil-side-panel .sil-panel { flex: 1; min-width: 260px; }
}
@media (max-width: 900px) {
    .login-layout      { grid-template-columns: 1fr; }
    .login-hero        { display: none; }
    .login-form-panel  { padding: 32px 20px; }
    .mobile-brand      { display: flex; }
}
@media (max-width: 575px) {
    .sil-stats-grid    { grid-template-columns: 1fr; }
    .sil-header        { flex-direction: column; }
    .jenis-cuti-grid   { grid-template-columns: 1fr; }
    .saldo-grid        { grid-template-columns: repeat(2, 1fr); }
}
