 :root {
     --edmin-primary: #1E3A5F;
     --edmin-primary-rgb: 30, 58, 95;
     --edmin-primary-dark: #14283F;
     --edmin-sidebar-bg: #ffffff;
     --edmin-body-bg: #F8FAFC;
     --sidebar-width: 290px;

     /* Warna status/semantik (skala biru senada dengan primary, tanpa hijau) */
     --edmin-success: #0284C7;
     --edmin-success-rgb: 2, 132, 199;
     --edmin-warning: #B45309;
     --edmin-warning-rgb: 245, 158, 11;
     --edmin-danger: #DC2626;
     --edmin-danger-rgb: 220, 38, 38;

 }

.text-primary {
     color: var(--edmin-primary) !important;
 }

 body {
     background-color: var(--edmin-body-bg);
     /* GANTI: Menggunakan font Outfit */
     font-family: 'Outfit', sans-serif;
     overflow-x: hidden;
     -webkit-font-smoothing: antialiased;
 }

 /* =========================================
       1. TOP NAVBAR 
       ========================================= */
 .navbar-top {
     height: 70px;
     background: #fff;
     border-bottom: 1px solid #ebedef;
     position: fixed;
     top: 0;
     right: 0;
     left: 0;
     z-index: 1030;
     display: flex;
     align-items: center;
     padding: 0 1.5rem;
     transition: all 0.3s ease;
 }

 .navbar-brand-area {
     /* Menghitung lebar agar pas dengan sidebar */
     width: calc(var(--sidebar-width) - 1.5rem);
     display: flex;
     align-items: center;
     /* PENGGANTI: Mengatur jarak antara logo dan hamburger ke ujung masing-masing */
     justify-content: space-between;
     /* TAMBAHAN: Memberi sedikit ruang di sisi kanan tombol hamburger */
     padding-right: 5px;
 }

 .logo-text {
     font-weight: 700;
     font-size: 1.4rem;
     color: #313131;
     display: flex;
     align-items: center;
     gap: 8px;
     min-width: 0;
 }

 .logo-text span {
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .brand-logo-img {
     width: 48px;
     height: 48px;
     border-radius: 10px;
     object-fit: cover;
     flex-shrink: 0;
 }

 .navbar-app-name {
     display: flex;
     align-items: center;
     gap: 10px;
     background: #f5f7fa;
     border-radius: 8px;
     padding: 10px 15px;
     color: #5c607b;
     font-weight: 600;
     font-size: 0.92rem;
     letter-spacing: 0.01em;
 }

 .navbar-app-name i {
     color: var(--edmin-primary);
     font-size: 1rem;
     flex-shrink: 0;
 }

 #sidebarToggle {
     background-color: #f5f7fa;
     border-radius: 4px;
     padding: 6px 10px;
     cursor: pointer;
     transition: all 0.2s;
 }

 .icon-box {
     background-color: #f5f7fa;
     width: 38px;
     height: 38px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 4px;
     cursor: pointer;
     position: relative;
 }

 .notification-badge {
     position: absolute;
     top: -5px;
     right: -5px;
     color: white;
     font-size: 0.65rem;
     border-radius: 50%;
     width: 18px;
     height: 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid #fff;
 }

 /* Dropdown akun navbar (Profil Saya/Logout) -- ganti warna hover/active
    biru default Bootstrap jadi navy, konsisten sama tema app. Override
    lewat CSS var Bootstrap 5.3 (bukan !important) supaya rapi. */
 .dropdown-menu {
     --bs-dropdown-link-hover-bg: rgba(var(--edmin-primary-rgb), 0.08);
     --bs-dropdown-link-hover-color: var(--edmin-primary);
     --bs-dropdown-link-active-bg: var(--edmin-primary);
     --bs-dropdown-link-active-color: #fff;
 }

 /* =========================================
       2. SIDEBAR (STRUKTUR & SCROLL)
       ========================================= */
 .sidebar {
     width: var(--sidebar-width);
     height: calc(100vh - 70px);
     position: fixed;
     top: 70px;
     left: 0;
     background: var(--edmin-sidebar-bg);
     border-right: 1px solid #ebedef;
     z-index: 1000;
     transition: all 0.3s ease-in-out;
     padding-bottom: 50px;

     /* Scroll Logic: Sembunyi saat kursor jauh */
     overflow-y: hidden;
 }

 .sidebar:hover {
     overflow-y: auto;
     /* Muncul saat kursor di area sidebar */
 }

 /* Custom Scrollbar Styling (Hanya muncul saat hover) */
 .sidebar::-webkit-scrollbar {
     width: 4px;
     display: none;
 }

 .sidebar:hover::-webkit-scrollbar {
     display: block;
 }

 .sidebar::-webkit-scrollbar-thumb {
     background: #e0e0e0;
     border-radius: 10px;
 }

 .sidebar::-webkit-scrollbar-thumb:hover {
     background: var(--edmin-primary);
 }

 /* =========================================
       3. SIDEBAR MENU (STYLE & FONTS)
       ========================================= */
 .sidebar-section-title {
     padding: 0 1.5rem;
     font-size: 0.8rem;
     font-weight: 800;
     text-transform: uppercase;
     color: var(--edmin-primary);
     margin: 1.5rem 0 0.8rem;
 }

 /* Garis Putus-putus Section */
 .sidebar .sidebar-section-title:not(:first-child)::before {
     content: "";
     display: block;
     border-top: 1px dashed #ebedef;
     margin-bottom: 1.5rem;
 }

 .nav-link {
     padding: 0.75rem 1.5rem;
     color: #3D3D47;
     display: flex;
     align-items: center;
     font-size: 16px;
     transition: all 0.2s ease;
 }

 .nav-link i:first-child {
     margin-right: 14px;
     font-size: 1.15rem;
     color: #5c607b;
 }

 .nav-link.active {
     color: var(--edmin-primary) !important;
     background-color: rgba(var(--edmin-primary-rgb), 0.08) !important;
 }

 .nav-link.active i:first-child {
     color: var(--edmin-primary);
 }

 .badge-pill {
     background: var(--edmin-primary);
     color: white;
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.7rem;
     border-radius: 50%;
     margin-left: auto;
     margin-right: 10px;
 }

 .chevron-icon {
     font-size: 0.75rem;
     transition: transform 0.3s;
     margin-left: auto;
     color: var(--edmin-primary);
 }

 .nav-link[aria-expanded="true"] .chevron-icon {
     transform: rotate(180deg);
 }

 /* --- Submenu Style --- */
 .submenu-item {
     padding: 0.5rem 1.5rem 0.5rem 3.5rem !important;
     font-size: 0.9rem;
     font-weight: 500;
     color: #6c757d !important;
     position: relative;
 }

 .submenu-item::before {
     content: "\F138";
     font-family: "bootstrap-icons";
     position: absolute;
     left: 2rem;
     font-size: 0.75rem;
     opacity: 0.4;
     transition: all 0.2s;
 }

 .submenu-item:hover {
     color: var(--edmin-primary) !important;
 }

 .submenu-item:hover::before {
     opacity: 1;
     transform: translateX(3px);
 }

 /* Kartu profil ringkas di paling bawah sidebar -- avatar+nama+role,
    tombol logout cepat, ditutup baris credit pengembang. Diletakkan di
    alur normal sbg item terakhir <nav> (bukan position:fixed) supaya
    tidak perlu urus interaksi tambahan dgn animasi toggle sidebar. */
 .sidebar-profile-card {
     margin: 1.5rem 1rem 0.5rem;
     padding: 12px 14px;
     border-radius: 14px;
     background: rgba(var(--edmin-primary-rgb), 0.04);
     border: 1px solid rgba(var(--edmin-primary-rgb), 0.08);
 }

 .spc-user {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .spc-user img {
     width: 38px;
     height: 38px;
     border-radius: 10px;
     flex-shrink: 0;
 }

 .spc-user-text {
     flex: 1;
     min-width: 0;
 }

 .spc-name {
     font-size: 0.85rem;
     font-weight: 700;
     color: #2c323f;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .spc-role {
     font-size: 0.72rem;
     color: #8898aa;
     font-weight: 500;
 }

 .spc-logout-btn {
     width: 34px;
     height: 34px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(var(--edmin-danger-rgb), 0.08);
     color: var(--edmin-danger);
     flex-shrink: 0;
     transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
 }

 .spc-logout-btn:hover {
     background: var(--edmin-danger);
     color: #fff;
     transform: scale(1.06);
 }

 .spc-footer {
     margin-top: 10px;
     padding-top: 8px;
     border-top: 1px dashed rgba(var(--edmin-primary-rgb), 0.15);
     display: flex;
     flex-direction: column;
     gap: 1px;
 }

 .spc-footer span {
     font-size: 0.64rem;
     color: #b0b8c4;
     line-height: 1.45;
 }

 .spc-footer .spc-credit {
     font-weight: 700;
     color: #8898aa;
 }

 /* =========================================
       4. CONTENT & TOGGLE LOGIC
       ========================================= */
 .main-content {
     margin-left: var(--sidebar-width);
     margin-top: 70px;
     padding: 2rem;
     transition: all 0.3s ease-in-out;
 }

 /* --- Content Header & Breadcrumbs --- */
 .content-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 1.5rem;
 }

 .breadcrumb-container {
     background-color: rgba(var(--edmin-primary-rgb), 0.1);
     padding: 8px 15px;
     border-radius: 8px;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .breadcrumb-item+.breadcrumb-item::before {
     content: "/";
     color: var(--edmin-primary);
 }

 .breadcrumb-item a {
     color: var(--edmin-primary);
     text-decoration: none;
     font-weight: 600;
     font-size: 0.9rem;
 }

 .breadcrumb-item.active {
     color: #a5b4c1;
     font-weight: 500;
 }

 /* --- Card & DataTables Style --- */
 .card-custom {
     background: #fff;
     border: none;
     border-radius: 12px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
     padding: 1.5rem;
 }

 .table-custom thead th {
     background-color: #fbfcfd;
     border-top: 1px solid #f0f2f5;
     border-bottom: 2px solid #f0f2f5;
     color: #8898aa;
     font-weight: 700;
     font-size: 0.75rem;
     text-transform: uppercase;
     letter-spacing: 0.03em;
     padding: 14px 12px;
     white-space: nowrap;
 }

 .table-custom tbody tr {
     transition: background-color 0.15s ease;
 }

 .table-custom tbody tr:hover {
     background-color: #fafbfc;
 }

 .table-custom tbody td {
     padding: 16px 12px;
     vertical-align: middle;
     color: #5c607b;
     border-bottom: 1px solid #f8f9fa;
     font-weight: 500;
 }

 .table-custom tbody tr:last-child td {
     border-bottom: none;
 }

 /* white-space + width supaya kolom Aksi tidak pernah kepepet & tombolnya wrap ke bawah */
 td.action-btns {
     white-space: nowrap;
     width: 1%;
 }

 .action-btns .btn-icon {
     width: 34px;
     height: 34px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0;
     margin: 0 2px;
     border-radius: 8px;
     transition: all 0.2s ease;
 }

 .action-btns .btn-icon:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
 }

 .btn-edit-light {
     color: var(--edmin-primary);
     background: rgba(var(--edmin-primary-rgb), 0.1);
     border: none;
 }

 .btn-delete-light {
     color: #e74c3c;
     background: rgba(231, 76, 60, 0.1);
     border: none;
 }

 .btn-edit-light:hover {
     background: var(--edmin-primary);
     color: #fff;
 }

 .btn-delete-light:hover {
     background: #e74c3c;
     color: #fff;
 }

 /* Pagination & Info Style */
 .table-info-text {
     font-size: 0.9rem;
     color: #8898aa;
 }

 .pagination .page-link {
     border: none;
     background-color: #f8f9fa;
     color: #5c607b;
     font-weight: 600;
     font-size: 0.85rem;
     padding: 0.45rem 0.9rem;
     margin: 0 3px;
     border-radius: 8px !important;
     transition: all 0.2s ease;
 }

 .pagination .page-link:hover {
     background-color: rgba(var(--edmin-primary-rgb), 0.1);
     color: var(--edmin-primary);
 }

 .pagination .page-item.active .page-link {
     background-color: var(--edmin-primary);
     color: #fff;
 }

 .pagination .page-item.disabled .page-link {
     background-color: transparent;
     color: #c3c9d3;
 }

 /* --- Status Badges (reusable, terpusat) --- */
 .badge-status {
     font-weight: 600;
     font-size: 0.78rem;
     padding: 0.45em 0.9em;
     border-radius: 6px;
     display: inline-block;
 }

 .badge-status-success {
     background-color: rgba(var(--edmin-success-rgb), 0.1);
     color: var(--edmin-success);
 }

 .badge-status-warning {
     background-color: rgba(var(--edmin-warning-rgb), 0.12);
     color: var(--edmin-warning);
 }

 .badge-status-danger {
     background-color: rgba(var(--edmin-danger-rgb), 0.1);
     color: var(--edmin-danger);
 }

 .badge-status-info {
     background-color: rgba(var(--edmin-primary-rgb), 0.1);
     color: var(--edmin-primary);
 }

 /* --- Ikon Entitas Bulat (Departemen, Divisi, dll di dalam tabel) --- */
 .icon-chip {
     width: 36px;
     height: 36px;
     border-radius: 8px;
     background: rgba(var(--edmin-primary-rgb), 0.1);
     color: var(--edmin-primary);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1rem;
     flex-shrink: 0;
 }

 /* --- Stat Mini Card (ringkasan statistik di atas tabel) --- */
 .stat-mini-card {
     background: #fff;
     border: 1px solid #f1f3f5;
     border-radius: 12px;
     padding: 1.1rem 1.25rem;
     display: flex;
     align-items: center;
     gap: 14px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
 }

 .stat-mini-icon {
     width: 46px;
     height: 46px;
     border-radius: 10px;
     background: rgba(var(--edmin-primary-rgb), 0.1);
     color: var(--edmin-primary);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.3rem;
     flex-shrink: 0;
 }

 .stat-mini-value {
     font-size: 1.3rem;
     font-weight: 700;
     color: #2c323f;
     line-height: 1.2;
 }

 .stat-mini-label {
     font-size: 0.8rem;
     color: #8898aa;
     font-weight: 500;
 }

 /* =========================================================
    Dashboard modern -- kartu ringkasan berwarna + hover + chart.
    Semua class diberi prefix "dash-" dan dilingkupi di bawah
    .dashboard-page supaya TIDAK memengaruhi .stat-mini-card /
    .card-custom polos yang dipakai di 30+ halaman lain.
    ========================================================= */
 .dashboard-page .dash-hero {
     background: #fff;
     border-radius: 16px;
     padding: 1.75rem 2rem;
     color: #2c323f;
     position: relative;
     overflow: hidden;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     margin-bottom: 1.5rem;
 }

 .dashboard-page .dash-hero::before {
     content: "";
     position: absolute;
     top: -60px;
     right: -60px;
     width: 220px;
     height: 220px;
     border-radius: 50%;
     background: rgba(var(--edmin-primary-rgb), 0.05);
 }

 .dashboard-page .dash-hero::after {
     content: "";
     position: absolute;
     bottom: -80px;
     right: 90px;
     width: 160px;
     height: 160px;
     border-radius: 50%;
     background: rgba(var(--edmin-primary-rgb), 0.04);
 }

 .dashboard-page .dash-hero h4 {
     color: #2c323f;
     position: relative;
 }

 .dashboard-page .dash-hero-sub {
     color: #8898aa;
     font-size: 0.9rem;
     position: relative;
 }

 .dashboard-page .dash-hero-date {
     font-size: 0.75rem;
     font-weight: 700;
     letter-spacing: 0.06em;
     text-transform: uppercase;
     color: var(--edmin-primary);
     position: relative;
 }

 .dashboard-page .dash-stat-card {
     background: rgba(var(--dash-accent-rgb, var(--edmin-primary-rgb)), 0.08);
     border-radius: 14px;
     padding: 1.15rem 1.3rem;
     display: flex;
     align-items: center;
     gap: 14px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     border-left: 4px solid var(--dash-accent, var(--edmin-primary));
     transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
     animation: dashFadeUp 0.45s ease both;
 }

 .dashboard-page .dash-stat-card:hover {
     transform: translateY(-5px) scale(1.015);
     background: rgba(var(--dash-accent-rgb, var(--edmin-primary-rgb)), 0.13);
     box-shadow: 0 14px 28px rgba(var(--dash-accent-rgb, var(--edmin-primary-rgb)), 0.18);
 }

 .dashboard-page .dash-stat-card .stat-mini-icon {
     background: var(--dash-accent, var(--edmin-primary));
     color: #fff;
     transition: transform 0.22s ease;
 }

 .dashboard-page .dash-stat-card:hover .stat-mini-icon {
     transform: scale(1.08) rotate(-4deg);
 }

 .dashboard-page .dash-stat-card .stat-mini-value {
     font-variant-numeric: tabular-nums;
 }

 /* Palet soft khusus elemen dekoratif dashboard (card summary & chart
    departemen) -- BUKAN pengganti warna status Hadir/Terlambat/Alpha di
    tempat lain (itu tetap sky/amber/merah spt biasa, lihat memory
    project_color_palette). Di sini boleh lebih variatif krn cuma dekoratif. */
 .dashboard-page .dash-stat-card.v-blue   { --dash-accent: #5B8DEF; --dash-accent-rgb: 91, 141, 239; }
 .dashboard-page .dash-stat-card.v-green  { --dash-accent: #6FCF97; --dash-accent-rgb: 111, 207, 151; }
 .dashboard-page .dash-stat-card.v-amber  { --dash-accent: #F2B84B; --dash-accent-rgb: 242, 184, 75; }
 .dashboard-page .dash-stat-card.v-rose   { --dash-accent: #EF7C8E; --dash-accent-rgb: 239, 124, 142; }
 .dashboard-page .dash-stat-card.v-violet { --dash-accent: #9B8AFB; --dash-accent-rgb: 155, 138, 251; }
 .dashboard-page .dash-stat-card.v-orange { --dash-accent: #F2994A; --dash-accent-rgb: 242, 153, 74; }
 .dashboard-page .dash-stat-card.v-cyan   { --dash-accent: #56C6E0; --dash-accent-rgb: 86, 198, 224; }
 .dashboard-page .dash-stat-card.v-teal   { --dash-accent: #4DB6AC; --dash-accent-rgb: 77, 182, 172; }

 @keyframes dashFadeUp {
     from { opacity: 0; transform: translateY(10px); }
     to { opacity: 1; transform: translateY(0); }
 }

 .dashboard-page .row > [class*="col-"]:nth-child(1) .dash-stat-card { animation-delay: 0.02s; }
 .dashboard-page .row > [class*="col-"]:nth-child(2) .dash-stat-card { animation-delay: 0.08s; }
 .dashboard-page .row > [class*="col-"]:nth-child(3) .dash-stat-card { animation-delay: 0.14s; }
 .dashboard-page .row > [class*="col-"]:nth-child(4) .dash-stat-card { animation-delay: 0.20s; }

 .dashboard-page .dash-chart-card {
     background: #fff;
     border-radius: 14px;
     padding: 1.4rem 1.5rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     height: 100%;
     animation: dashFadeUp 0.5s ease both;
 }

 .dashboard-page .dash-chart-title {
     font-weight: 700;
     color: #2c323f;
     margin-bottom: 2px;
 }

 .dashboard-page .dash-chart-sub {
     font-size: 0.8rem;
     color: #8898aa;
     margin-bottom: 1.1rem;
 }

 .dashboard-page .dash-chart-wrap {
     position: relative;
 }

 .dashboard-page .dash-donut-center {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     text-align: center;
     pointer-events: none;
 }

 .dashboard-page .dash-donut-center .num {
     font-size: 1.6rem;
     font-weight: 800;
     color: #2c323f;
     line-height: 1;
     font-variant-numeric: tabular-nums;
 }

 .dashboard-page .dash-donut-center .lbl {
     font-size: 0.66rem;
     color: #8898aa;
     text-transform: uppercase;
     letter-spacing: 0.04em;
 }

 .dashboard-page .dash-legend {
     display: flex;
     flex-direction: column;
     gap: 9px;
     margin-top: 16px;
 }

 .dashboard-page .dash-legend-item {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 0.85rem;
     color: #5c607b;
 }

 .dashboard-page .dash-legend-dot {
     width: 10px;
     height: 10px;
     border-radius: 3px;
     flex-shrink: 0;
 }

 .dashboard-page .dash-legend-item strong {
     margin-left: auto;
     color: #2c323f;
     font-variant-numeric: tabular-nums;
 }

 @media (prefers-reduced-motion: reduce) {
     .dashboard-page .dash-stat-card,
     .dashboard-page .dash-stat-card .stat-mini-icon,
     .dashboard-page .dash-chart-card {
         animation: none !important;
         transition: none !important;
     }
 }

 /* =========================================================
    Halaman Bantuan & Dukungan -- semua class diberi prefix
    "help-" dan dilingkupi di bawah .help-page.
    ========================================================= */
 .help-page .help-hero {
     background: #fff;
     border-radius: 14px;
     padding: 1.5rem 1.75rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     display: flex;
     align-items: center;
     gap: 18px;
     margin-bottom: 1.5rem;
 }

 .help-page .help-hero-icon {
     width: 56px;
     height: 56px;
     border-radius: 14px;
     background: rgba(var(--edmin-primary-rgb), 0.1);
     color: var(--edmin-primary);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.6rem;
     flex-shrink: 0;
 }

 .help-page .help-quick-card {
     display: block;
     background: #fff;
     border-radius: 14px;
     padding: 1.25rem 1.4rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     text-decoration: none;
     color: inherit;
     height: 100%;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .help-page .help-quick-card:hover {
     transform: translateY(-4px);
     box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
     color: inherit;
 }

 .help-page .help-quick-icon {
     width: 42px;
     height: 42px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
     color: #fff;
     margin-bottom: 12px;
 }

 .help-page .help-quick-icon.v-blue   { background: #5B8DEF; }
 .help-page .help-quick-icon.v-amber  { background: #F2B84B; }
 .help-page .help-quick-icon.v-green  { background: #6FCF97; }

 .help-page .help-accordion .accordion-item {
     border: none;
     border-bottom: 1px solid #f0f2f5;
 }

 .help-page .help-accordion .accordion-item:last-child {
     border-bottom: none;
 }

 .help-page .help-accordion .accordion-button {
     font-weight: 600;
     font-size: 0.92rem;
     color: #2c323f;
     background: none;
     box-shadow: none;
     padding: 14px 4px;
 }

 .help-page .help-accordion .accordion-button:not(.collapsed) {
     color: var(--edmin-primary);
     background: none;
     box-shadow: none;
 }

 .help-page .help-accordion .accordion-button::after {
     background-size: 1.1rem;
 }

 .help-page .help-accordion .accordion-body {
     padding: 0 4px 16px;
     font-size: 0.88rem;
 }

 .help-page .help-contact-item {
     display: flex;
     align-items: center;
     gap: 14px;
     padding: 12px 14px;
     border-radius: 12px;
     background: #fafbfc;
     border: 1px solid #f1f3f5;
     text-decoration: none;
     color: inherit;
     transition: background-color 0.2s ease, transform 0.2s ease;
 }

 .help-page .help-contact-item:hover {
     background: #f0f4f8;
     transform: translateX(3px);
     color: inherit;
 }

 .help-page .help-contact-icon {
     width: 40px;
     height: 40px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.1rem;
     color: #fff;
     flex-shrink: 0;
 }

 .help-page .help-contact-icon.v-green { background: #6FCF97; }
 .help-page .help-contact-icon.v-blue  { background: #5B8DEF; }
 .help-page .help-contact-icon.v-cyan  { background: #56C6E0; }

 .help-page .help-about-card {
     background: linear-gradient(135deg, var(--edmin-primary) 0%, var(--edmin-primary-dark) 100%);
     color: #fff;
     border-radius: 14px;
     padding: 1.75rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
 }

 .help-page .help-about-card hr {
     border-color: rgba(255, 255, 255, 0.15);
     margin: 1rem 0;
 }

 .help-page .help-about-card .text-muted {
     color: rgba(255, 255, 255, 0.72) !important;
 }

 .help-page .help-about-logo {
     width: 48px;
     height: 48px;
     border-radius: 12px;
     background: rgba(255, 255, 255, 0.12);
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 800;
     font-size: 1.05rem;
     letter-spacing: 0.02em;
 }

 /* =========================================================
    Halaman Panduan Pengguna -- menampilkan panduan-penggunaan-
    aplikasi.html di dalam iframe, tetap di dalam shell sidebar
    aplikasi supaya HRD bisa baca panduan & pindah ke menu asli
    tanpa kehilangan konteks.
    ========================================================= */
 .panduan-page .panduan-toolbar {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     flex-wrap: wrap;
     background: #fff;
     border-radius: 12px;
     padding: 0.85rem 1.1rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     margin-bottom: 1rem;
 }

 .panduan-page .panduan-frame-wrap {
     background: #fff;
     border-radius: 14px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
     overflow: hidden;
 }

 .panduan-page .panduan-frame-wrap iframe {
     width: 100%;
     height: calc(100vh - 260px);
     min-height: 520px;
     border: none;
     display: block;
 }

 /* =========================================================
    Dropdown notifikasi (ikon bell navbar) -- ganti ikon2 template
    kosong (moon/star/bag/envelope) yang sebelumnya tidak berfungsi.
    ========================================================= */
 .notif-dropdown {
     width: 350px;
     padding: 0;
     border: none;
     border-radius: 14px;
     overflow: hidden;
 }

 .notif-dropdown-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 18px;
     border-bottom: 1px solid #f0f2f5;
 }

 .notif-count-pill {
     font-size: 0.7rem;
     font-weight: 700;
     color: var(--edmin-danger);
     background: rgba(var(--edmin-danger-rgb), 0.1);
     padding: 3px 10px;
     border-radius: 20px;
 }

 .notif-empty {
     text-align: center;
     padding: 2.5rem 1rem;
     color: #c1c9d2;
     font-size: 1.8rem;
 }

 .notif-list {
     max-height: 360px;
     overflow-y: auto;
 }

 .notif-item {
     display: flex;
     align-items: flex-start;
     gap: 12px;
     padding: 12px 18px;
     text-decoration: none;
     color: inherit;
     border-bottom: 1px solid #f7f8fa;
     transition: background-color 0.15s ease;
 }

 .notif-item:last-child {
     border-bottom: none;
 }

 .notif-item:hover {
     background: #fafbfc;
     color: inherit;
 }

 .notif-item-icon {
     width: 36px;
     height: 36px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1rem;
     color: #fff;
     flex-shrink: 0;
 }

 .notif-item-icon.v-violet { background: #9B8AFB; }
 .notif-item-icon.v-orange { background: #F2994A; }
 .notif-item-icon.v-teal   { background: #4DB6AC; }

 .notif-item-title {
     font-size: 0.85rem;
     font-weight: 600;
     color: #2c323f;
     line-height: 1.3;
 }

 .notif-item-sub {
     font-size: 0.76rem;
     color: #8898aa;
     margin-top: 2px;
 }

 .notif-dropdown-footer {
     display: block;
     text-align: center;
     padding: 12px;
     font-size: 0.82rem;
     font-weight: 600;
     color: var(--edmin-primary);
     text-decoration: none;
     border-top: 1px solid #f0f2f5;
     background: #fafbfc;
 }

 .notif-dropdown-footer:hover {
     color: var(--edmin-primary-dark);
     background: #f0f4f8;
 }



 /* Status Saat Sidebar Disembunyikan (Toggle) */
 body.sidebar-toggled .sidebar {
     margin-left: calc(var(--sidebar-width) * -1);
 }

 body.sidebar-toggled .main-content {
     margin-left: 0;
 }



 /* Style Tombol Aksi di Header Card */
.btn-action-group .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

/* Tombol Tambah (Primary) */
.btn-add {
    background-color: var(--edmin-primary);
    color: white;
    border: none;
}

/* Tombol Export/Download (Outline/Light) */
.btn-export {
    background-color: rgba(var(--edmin-primary-rgb), 0.1);
    color: var(--edmin-primary);
    border: 1px solid rgba(var(--edmin-primary-rgb), 0.2);
}

.btn-export:hover {
    background-color: var(--edmin-primary);
    color: white;
}

/* --- Filter Section Style --- */
.filter-row {
    background-color: #fcfcfd;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f1f3f5;
}

.form-select-custom {
    border: 1px solid #ebedef;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5c607b;
    padding: 0.45rem 1rem;
    cursor: pointer;
    background-color: #fff;
}

.form-select-custom:focus {
    border-color: var(--edmin-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--edmin-primary-rgb), 0.1);
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a5b4c1;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}


/* =========================================
   STYLE TOMBOL HRIS MODERN
   ========================================= */

/* Tombol Utama: Tambah & Simpan */
.btn-add, .btn-save {
    background-color: var(--edmin-primary);
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(var(--edmin-primary-rgb), 0.2);
}

.btn-add:hover, .btn-save:hover {
    background-color: var(--edmin-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--edmin-primary-rgb), 0.3);
}

/* Tombol Batal / Reset */
.btn-batal {
    background-color: #f8f9fa;
    color: #5c607b !important;
    border: 1px solid #ebedef;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-batal:hover {
    background-color: #e9ecef;
    color: #2c323f !important;
}

/* Tombol Export / Outline */
.btn-export {
    background-color: rgba(var(--edmin-primary-rgb), 0.1);
    color: var(--edmin-primary) !important;
    border: 1px solid rgba(var(--edmin-primary-rgb), 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-export:hover {
    background-color: var(--edmin-primary);
    color: #ffffff !important;
}

/* Container untuk tombol di form (pojok kanan bawah) */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
}


.modal-content {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.list-group-item {
    border-color: #f1f3f5;
    font-size: 0.9rem;
    color: #5c607b;
}

.list-group-item:hover {
    background-color: #fcfcfd;
}

/* Tombol tambah kecil di atas label */
.text-primary.small {
    font-size: 0.75rem !important;
    text-decoration: none;
    transition: 0.2s;
}

.text-primary.small:hover {
    color: var(--edmin-primary-dark) !important;
    transform: scale(1.05);
}


/* Container list di dalam modal agar tidak memanjang keluar layar */
.modal-list-container {
    max-height: 250px; /* Batasi tinggi maksimal list */
    overflow-y: auto;  /* Munculkan scrollbar jika data penuh */
    border: 1px solid #ebedef;
    border-radius: 12px;
    background-color: #fff;
}

/* Mempercantik tampilan scrollbar (Custom Scrollbar) */
.modal-list-container::-webkit-scrollbar {
    width: 6px;
}
.modal-list-container::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 10px;
}

/* List group item agar lebih compact */
.modal-list-container .list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 10px 15px;
}
.modal-list-container .list-group-item:last-child {
    border-bottom: none;
}

#modalKonfirmasiHapus .modal-content {
        box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    }
    
    /* Efek goyang sedikit pada ikon saat modal muncul */
    #modalKonfirmasiHapus.show .bi-exclamation-circle {
        animation: pulseDanger 0.5s ease-in-out;
    }

    @keyframes pulseDanger {
        0% { transform: scale(0.8); opacity: 0; }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); opacity: 0.8; }
    }

    #modalKonfirmasiHapus .btn-danger:hover {
        background-color: #c0392b !important;
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    }


    /* Efek blur untuk modal utama */
.modal-blur {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

/* Mengatur Z-index agar modal konfirmasi tetap tajam di depan */
#modalKonfirmasiHapus {
    z-index: 1065 !important;
}

/* Memastikan backdrop modal konfirmasi tidak ikut nge-blur */
.modal-backdrop.show:nth-of-type(odd) {
    z-index: 1050;
}
.modal-backdrop.show:nth-of-type(even) {
    z-index: 1060;
}

/* Menghilangkan semua jenis outline fokus pada tombol dan modal */
.modal-content, 
.modal-header, 
.btn-close, 
.btn-close:focus, 
.btn-close:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Memastikan tidak ada border biru/hitam saat modal dibuka */
.modal:focus {
    outline: none !important;
}


/* Toast modern -- kartu putih + ikon berwarna dlm chip, bukan blok warna
   solid (tampilan lama). Warna tipe (success/error/warning) ditandai lewat
   aksen kiri + ikon, bukan seluruh latar -- konsisten dgn palet aplikasi
   (success = sky-blue --edmin-success, bukan hijau). */
#liveToast {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    min-width: 320px;
    max-width: 380px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -4px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
    transform: translateX(130%);
}

#liveToast.showing,
#liveToast.show {
    transform: translateX(0);
    opacity: 1;
}

.app-toast-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--edmin-success);
}

.app-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(var(--edmin-success-rgb), .12);
    color: var(--edmin-success);
}

.app-toast-message {
    font-weight: 700;
    font-size: .89rem;
    color: #1c2430;
    line-height: 1.4;
}

.app-toast-time {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.app-toast-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px;
    flex-shrink: 0;
    cursor: pointer;
    transition: color .15s;
}

.app-toast-close:hover {
    color: #475569;
}

.app-toast-progress {
    height: 3px;
    width: 100%;
    background: var(--edmin-success);
    transform-origin: left;
}

.app-toast-progress.run {
    animation: appToastProgress 3s linear forwards;
}

#liveToast.toast-error .app-toast-accent,
#liveToast.toast-error .app-toast-progress { background: var(--edmin-danger); }
#liveToast.toast-error .app-toast-icon { background: rgba(var(--edmin-danger-rgb), .12); color: var(--edmin-danger); }

#liveToast.toast-warning .app-toast-accent,
#liveToast.toast-warning .app-toast-progress { background: var(--edmin-warning); }
#liveToast.toast-warning .app-toast-icon { background: rgba(var(--edmin-warning-rgb), .14); color: var(--edmin-warning); }

@keyframes appToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* =========================================
   7. FORM KARYAWAN (TAMBAH / EDIT)
   ========================================= */

/* --- Layout & Section Title --- */
.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--edmin-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-wrapper {
    background: #fcfcfd;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f1f3f5;
    margin-bottom: 30px;
}

/* --- Inputs, Labels & Selects --- */
.form-label-custom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5c607b;
    margin-bottom: 8px;
    display: block;
}

.form-control-custom {
    border: 1px solid #ebedef;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

.form-control-custom:focus {
    border-color: var(--edmin-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--edmin-primary-rgb), 0.1);
}

/* Spesifik Select */
select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

/* Spesifik Textarea */
textarea.form-control-custom {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* --- Input Groups (dengan Ikon) --- */
.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.input-group-text-custom {
    background-color: #f8f9fa;
    border: 1px solid #ebedef;
    border-right: none;
    border-radius: 10px 0 0 10px !important;
    color: #a5b4c1;
    min-width: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icon menyesuaikan posisi jika di dalam textarea */
.input-group:has(textarea) .input-group-text-custom {
    align-items: flex-start;
    padding-top: 12px;
}

.form-control-custom.with-icon {
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    flex: 1 1 auto;
    width: 1%;
    /* Trik bootstrap agar input stabil */
}

/* --- Profile Upload Component --- */
.profile-upload-v2 {
    width: 130px;
    height: 130px;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: 0.3s;
}

.profile-upload-v2:hover {
    border-color: var(--edmin-primary);
    background: rgba(var(--edmin-primary-rgb), 0.05);
    color: var(--edmin-primary);
}

.profile-upload-v2 i {
    font-size: 2rem;
    color: #9ca3af;
}

/* --- Dynamic Rows & Buttons --- */
.dynamic-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-remove {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    padding: 0 15px;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.btn-remove:hover {
    background-color: #e74c3c;
    color: white;
}

/* Breadcrumb form karyawan memakai .breadcrumb-container / .breadcrumb-item
   global yang sudah didefinisikan di bagian atas file ini (section 4). */

/* --- Custom Radio Button (Jenis Kelamin) --- */

/* Menghilangkan bayangan default bootstrap dan mempercantik border */
.form-check-input {
    cursor: pointer;
    border: 2px solid #d1d5db;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    transition: all 0.2s ease-in-out;
}

/* State saat radio button dipilih */
.form-check-input:checked {
    background-color: var(--edmin-primary);
    border-color: var(--edmin-primary);
    box-shadow: 0 0 0 4px rgba(var(--edmin-primary-rgb), 0.15);
}

/* State saat hover namun belum dipilih */
.form-check-input:hover {
    border-color: var(--edmin-primary);
}

/* Mempercantik Label di samping Radio */
.form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5c607b;
    padding-left: 5px;
    transition: color 0.2s;
}

/* Warna teks berubah saat radio di seberangnya dipilih */
.form-check-input:checked+.form-check-label {
    color: #2c323f;
    font-weight: 600;
}

/* Mengatur jarak antar pilihan agar lebih lega */
.form-check {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    padding-left: 0;
    /* Reset default padding bootstrap */
    margin-right: 1.5rem;
}

/* --- Select2, dibuat menyerupai .form-control-custom (dipakai di halaman --
   yang butuh dropdown searchable, mis. pilih karyawan di Koreksi Absensi) --- */
.select2-container--default .select2-selection--single {
    border: 1px solid #ebedef;
    border-radius: 10px;
    height: auto;
    padding: 0.7rem 1rem;
    font-family: 'Outfit', sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.3;
    color: #343a40;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--edmin-primary);
    box-shadow: 0 0 0 4px rgba(var(--edmin-primary-rgb), 0.1);
}

.select2-dropdown {
    border-color: #ebedef;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--edmin-primary);
}

.form-check .form-check-input {
    float: none;
    margin-left: 0;
    margin-right: 10px;
}