        /* =========================================
       CSS MODERN (ENHANCED & POLISHED)
       ========================================= */
        html {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        :root {
            --bg-app: #f1f5f9;
            --bg-surface: #ffffff;
            --bg-header: #ffffff;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --accent: #4f46e5;
            --accent-hover: #3730a3;
            --accent-light: #eef2ff;
            --border: #e2e8f0;
            --success: #059669;
            --success-bg: #ecfdf5;
            --warning: #d97706;
            --warning-bg: #fffbeb;
            --danger: #dc2626;
            --danger-bg: #fef2f2;
            --sidebar-width: 200px;
            --header-height: 54px;
            --radius-lg: 10px;
            --radius-md: 8px;
            --radius-sm: 4px;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --glass-bg: rgba(255, 255, 255, 0.8);
            --glass-border: rgba(255, 255, 255, 0.2);
            --base-font: 11px;
            --th-bg: #1e293b;
            --th-color: #ffffff;
        }

        [data-theme="dark"] {
            --bg-app: #020617;
            --bg-surface: #0f172a;
            --bg-header: #0f172a;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --border: #1e293b;
            --success-bg: rgba(5, 150, 105, 0.15);
            --warning-bg: rgba(217, 119, 6, 0.15);
            --danger-bg: rgba(220, 38, 38, 0.15);
            --accent-light: rgba(79, 70, 229, 0.15);
            --glass-bg: rgba(15, 23, 42, 0.8);
            --glass-border: rgba(30, 41, 59, 0.5);
            --th-bg: #020617;
            --th-color: #f8fafc;
        }

        /* --- LOGIN GATE STYLES --- */
        #loginGate {
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at top right, var(--accent), var(--bg-app));
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(20px);
        }

        .login-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            padding: 40px;
            border-radius: 24px;
            width: 100%;
            max-width: 400px;
            text-align: center;
            box-shadow: var(--shadow-lg);
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .login-logo {
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 20px;
            margin: 0 auto 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
        }

        .login-logo i {
            font-size: 40px;
            color: var(--accent);
        }

        .pin-input-group {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin: 30px 0;
        }

        .pin-field {
            width: 100%;
            padding: 16px;
            border-radius: 12px;
            border: 2px solid var(--border);
            background: var(--bg-surface);
            font-size: 11px;
            font-weight: 800;
            text-align: center;
            letter-spacing: 12px;
            color: var(--accent);
            outline: none;
            transition: 0.3s;
        }

        .pin-field:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-light);
        }

        /* Hiding main content before login */
        body:not(.access-granted) .sidebar,
        body:not(.access-granted) .main-wrapper {
            display: none !important;
        }

        /* Jika datang dari Portal — langsung tampilkan konten tanpa login gate */
        html.portal-bypass body .sidebar,
        html.portal-bypass body .main-wrapper {
            display: flex !important;
        }

        html.portal-bypass #loginGate {
            display: none !important;
        }

        body.access-granted #loginGate {
            opacity: 0;
            pointer-events: none;
            transition: 0.5s ease;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
        }

        body {
            background: var(--bg-app);
            color: var(--text-primary);
            height: 100vh;
            display: flex;
            overflow: hidden;
            font-size: var(--base-font);
            line-height: 1.3;
            scroll-behavior: smooth;
        }

        html,
        body {
            max-width: 100vw;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        [data-theme="dark"] ::-webkit-scrollbar-thumb {
            background: #475569;
        }

        .text-mono {
            font-family: 'Roboto Mono', monospace;
            letter-spacing: -0.5px;
        }

        .hidden {
            display: none !important;
        }

        .text-sm {
            font-size: 6px;
        }

        .text-xs {
            font-size: 6px;
        }

        .text-left {
            text-align: left !important;
        }

        /* SIDEBAR */
        .sidebar {
            width: var(--sidebar-width);
            height: 100vh;
            background: linear-gradient(180deg, #0f4c35 0%, #1a6b47 35%, #166534 70%, #14532d 100%);
            border-right: none;
            display: flex;
            flex-direction: column;
            z-index: 50;
            box-shadow: 4px 0 30px rgba(15, 76, 53, 0.35);
            position: relative;
        }

        /* Efek cahaya halus di atas sidebar */
        .sidebar::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 200px;
            background: radial-gradient(ellipse at top left, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .sidebar-header {
            padding: 10px 12px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            z-index: 1;
        }

        .brand-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #4ade80, #16a34a);
            color: white;
            box-shadow: 0 4px 14px rgba(74, 222, 128, 0.45);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .brand-icon:hover {
            transform: rotate(5deg) scale(1.05);
        }

        .brand-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .brand-icon i {
            font-size: 20px;
            color: white;
        }

        .brand-text h1 {
            font-size: 12px;
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.01em;
            color: #ffffff;
        }

        .brand-text p {
            font-size: 11px;
            color: rgba(187, 247, 208, 0.75);
            margin-top: 2px;
            font-weight: 500;
        }

        .sidebar-menu {
            flex: 1;
            padding: 4px 6px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 1;
        }

        /* Scrollbar sidebar */
        .sidebar-menu::-webkit-scrollbar { width: 3px; }
        .sidebar-menu::-webkit-scrollbar-track { background: transparent; }
        .sidebar-menu::-webkit-scrollbar-thumb { background: rgba(74, 222, 128, 0.3); border-radius: 10px; }

        .menu-category {
            font-size: 8px;
            font-weight: 800;
            color: rgba(187, 247, 208, 0.55);
            padding: 14px 12px 4px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-top: 4px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
            transition: all 0.2s ease;
            font-size: 11px;
            position: relative;
        }

        .nav-item:hover {
            background: rgba(74, 222, 128, 0.15);
            color: #ffffff;
            transform: translateX(6px);
        }

        .nav-item.active {
            background: linear-gradient(90deg, rgba(74, 222, 128, 0.3), rgba(74, 222, 128, 0.1));
            color: #ffffff;
            box-shadow: 0 2px 12px rgba(74, 222, 128, 0.2);
            border-left: 3px solid #4ade80;
        }

        .nav-item.active i {
            color: #4ade80;
        }

        .nav-item i {
            font-size: 20px;
            transition: color 0.3s;
            color: rgba(255, 255, 255, 0.7);
        }

        .nav-item:hover i {
            color: #4ade80;
        }

        /* MAIN CONTENT */
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
            position: relative;
            width: calc(100vw - var(--sidebar-width));
            background: #f0fdf4;
        }

        header {
            background: #ffffff;
            height: var(--header-height);
            border-bottom: 1px solid #d1fae5;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
            padding-top: env(safe-area-inset-top, 0);
            box-shadow: 0 1px 12px rgba(22, 101, 52, 0.07);
            z-index: 200;
            flex-shrink: 0;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            width: 100%;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .datetime-container {
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(90deg, #16a34a, #15803d);
            padding: 6px 14px;
            border-radius: 50px;
            color: white;
            box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
            font-feature-settings: "tnum";
        }

        .date-text {
            font-size: 11px;
            font-weight: 500;
            opacity: 0.9;
            border-right: 1px solid rgba(255, 255, 255, 0.3);
            padding-right: 12px;
        }

        .live-time {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            min-width: 60px;
            text-align: center;
        }

        /* NOTIFICATION BADGE */
        .notif-wrapper {
            position: relative;
            cursor: pointer;
        }

        .notif-icon {
            font-size: 24px;
            color: #64748b;
            transition: 0.2s;
        }

        .notif-wrapper:hover .notif-icon {
            color: #16a34a;
        }

        .badge-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger);
            color: white;
            font-size: 11px;
            font-weight: 700;
            height: 18px;
            min-width: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            border: 2px solid #ffffff;
        }

        .notif-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 10px;
            width: 380px;
            max-height: 500px;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            z-index: 100;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .notif-dropdown.open {
            display: flex;
        }

        .notif-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            font-weight: 600;
            background: var(--bg-app);
        }

        .notif-list {
            overflow-y: auto;
            flex: 1;
        }

        .notif-item {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: background 0.1s;
        }

        .notif-item:hover {
            background: var(--bg-app);
        }

        .notif-item:last-child {
            border-bottom: none;
        }

        .notif-item.auto-acc {
            background: rgba(16, 185, 129, 0.05);
            border-left: 3px solid var(--success);
            opacity: 0.85;
        }

        .notif-item.auto-acc:hover {
            background: rgba(16, 185, 129, 0.1);
        }

        .notif-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .notif-info-col {
            flex: 1;
        }

        .notif-name {
            font-weight: 600;
            font-size: 11px;
            color: var(--text-primary);
        }

        /* CUSTOM PERIOD PICKER STYLE */
        .period-picker-container {
            position: relative;
            display: inline-flex;
            align-items: center;
            background: #ffffff;
            border: 1.5px solid #d1fae5;
            border-radius: 10px;
            padding: 0 12px;
            height: 38px;
            cursor: pointer;
            min-width: 220px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08);
        }

        .period-picker-container:hover {
            border-color: #4ade80;
            box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
        }

        .period-picker-container input[type="month"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            width: 100%;
            height: 100%;
            z-index: 2;
        }

        .period-picker-container .period-display {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
            pointer-events: none;
        }

        .period-picker-container .period-display i {
            color: #16a34a;
            font-size: 18px;
        }

        /* PERIOD NAVIGATION */
        .period-nav {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .nav-btn {
            width: 32px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border: 1.5px solid #d1fae5;
            border-radius: 8px;
            color: #4ade80;
            cursor: pointer;
            transition: all 0.2s;
        }

        .nav-btn:hover {
            color: #ffffff;
            border-color: #16a34a;
            background: #16a34a;
        }

        .nav-btn i {
            font-size: 20px;
        }

        .notif-date {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 2px;
            display: block;
        }

        .notif-reason {
            font-size: 11px;
            color: var(--text-primary);
            font-style: italic;
        }

        .notif-image-preview {
            width: 100%;
            height: 140px;
            background-color: #f1f5f9;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border);
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }

        .notif-image-preview:hover {
            transform: scale(1.02);
            border-color: var(--accent);
        }

        .notif-image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .notif-image-placeholder {
            color: var(--text-secondary);
            font-size: 11px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .notif-actions {
            display: flex;
            gap: 8px;
            margin-top: 4px;
            justify-content: flex-end;
        }

        .notif-empty {
            padding: 20px;
            text-align: center;
            color: var(--text-secondary);
            font-size: 11px;
        }

        .theme-switch {
            width: 44px;
            height: 24px;
            background: var(--bg-app);
            border: 1px solid var(--border);
            border-radius: 50px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s;
        }

        .theme-switch:hover {
            border-color: var(--accent);
        }

        .theme-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            background: white;
            border-radius: 50%;
            transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        [data-theme="dark"] .theme-switch::after {
            left: 22px;
            background: var(--text-primary);
        }

        /* AUTO APPROVE SWITCH */
        .auto-acc-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: var(--bg-app);
            border: 1px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            user-select: none;
        }

        .auto-acc-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .switch-toggle {
            width: 36px;
            height: 20px;
            background: #cbd5e1;
            border-radius: 10px;
            position: relative;
            transition: 0.3s;
        }

        .switch-toggle::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            transition: 0.3s;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .auto-acc-wrapper.active .switch-toggle {
            background: var(--success);
        }

        .auto-acc-wrapper.active .switch-toggle::after {
            left: 18px;
        }

        .auto-acc-wrapper:hover {
            border-color: var(--accent);
        }

        .content-area {
            flex: 1;
            padding: 20px 24px;
            overflow-y: auto;
            position: relative;
            scroll-padding-top: 20px;
            width: 100%;
            background: #f0fdf4;
        }

        /* Scrollbar area konten */
        .content-area::-webkit-scrollbar { width: 5px; }
        .content-area::-webkit-scrollbar-track { background: #f0fdf4; }
        .content-area::-webkit-scrollbar-thumb { background: #86efac; border-radius: 10px; }
        .content-area::-webkit-scrollbar-thumb:hover { background: #4ade80; }

        footer {
            height: 50px;
            background: #ffffff;
            border-top: 1px solid #d1fae5;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 32px;
            font-size: 11px;
            color: var(--text-secondary);
            flex-shrink: 0;
            z-index: 30;
        }

        footer span strong {
            color: #16a34a;
            font-weight: 700;
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-content.active {
            display: flex;
            flex-direction: column;
            gap: 24px;
            width: 100%;
        }

        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
        }

        .stat-card {
            background: #ffffff;
            padding: 18px 16px;
            border-radius: 16px;
            border: 1px solid #d1fae5;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 10px;
            box-shadow: 0 2px 12px rgba(22, 163, 74, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        /* Garis aksen atas stat-card */
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, #4ade80, #16a34a);
            border-radius: 16px 16px 0 0;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 28px rgba(22, 163, 74, 0.15);
            border-color: #86efac;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: linear-gradient(135deg, #dcfce7, #bbf7d0);
            color: #16a34a;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
        }

        .stat-info h3 {
            font-size: 22px;
            font-weight: 800;
            line-height: 1.1;
            margin: 0;
            letter-spacing: -1px;
            color: #0f172a;
            background: linear-gradient(135deg, #15803d, #166534);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-info p {
            font-size: 9px;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin: 2px 0 0 0;
        }

        .card {
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            padding: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.3s, border-color 0.3s;
        }

        .card:hover {
            box-shadow: 0 8px 24px rgba(22, 163, 74, 0.1);
            border-color: #bbf7d0;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 14px;
            border-bottom: 2px solid #f0fdf4;
            flex-wrap: wrap;
            gap: 8px;
        }

        .card-title {
            font-size: 12px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #166534;
        }

        .card-title i {
            color: #16a34a;
        }

        .input-group {
            margin-bottom: 16px;
        }

        .input-group label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 6px;
            color: #166534;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .input-group input,
        .input-group select,
        .input-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1.5px solid #d1fae5;
            border-radius: 10px;
            font-size: 11px;
            background: #f8fffc;
            color: var(--text-primary);
            outline: none;
            transition: all 0.2s;
        }

        .input-group input:focus {
            border-color: #4ade80;
            box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
        }

        .search-container {
            position: relative;
            width: 260px;
        }

        .search-input {
            width: 100%;
            padding: 9px 12px 9px 38px;
            border-radius: 50px;
            border: 1.5px solid #d1fae5;
            background: #ffffff;
            color: var(--text-primary);
            outline: none;
            transition: 0.2s;
            font-size: 11px;
        }

        .search-input:focus {
            border-color: #4ade80;
            box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
        }

        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #4ade80;
            font-size: 18px;
            pointer-events: none;
        }

        .input-date {
            padding: 9px 12px;
            border: 1.5px solid #d1fae5;
            border-radius: 10px;
            font-size: 11px;
            background: #f8fffc;
            color: var(--text-primary);
            outline: none;
        }

        .input-group-control {
            width: 100%;
            padding: 10px 12px;
            border: 1.5px solid #d1fae5;
            border-radius: 10px;
            font-size: 11px;
            background: #f8fffc;
            color: var(--text-primary);
            outline: none;
            transition: all 0.2s;
        }

        .input-group-control:focus {
            border-color: #4ade80;
            box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.15);
        }

        .btn {
            padding: 8px 16px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: 700;
            font-size: 11px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
            user-select: none;
            letter-spacing: 0.2px;
        }

        .btn i {
            font-size: 18px;
        }

        .btn:active {
            transform: scale(0.97);
        }

        .btn-primary {
            background: linear-gradient(135deg, #16a34a, #15803d);
            color: white;
            box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #15803d, #166534);
            box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
            transform: translateY(-1px);
        }

        .btn-success {
            background: #dcfce7;
            color: #15803d;
            border: 1px solid #bbf7d0;
        }

        .btn-success:hover {
            background: #16a34a;
            color: white;
            border-color: #16a34a;
        }

        .btn-danger {
            background: var(--danger-bg);
            color: var(--danger);
        }

        .btn-danger:hover {
            background: var(--danger);
            color: white;
        }

        .btn-outline {
            border: 1.5px solid #d1fae5;
            background: transparent;
            color: #166534;
        }

        .btn-outline:hover {
            background: #f0fdf4;
            border-color: #4ade80;
            color: #15803d;
        }

        .btn-sm {
            padding: 5px 10px;
            font-size: 11px;
        }

        /* Tombol Refresh — hijau outline dengan animasi spin saat loading */
        .btn-refresh {
            border: 1.5px solid #16a34a;
            background: transparent;
            color: #16a34a;
            font-weight: 700;
            gap: 4px;
        }

        .btn-refresh:hover {
            background: #16a34a;
            color: white;
            box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
        }

        .btn-refresh:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn-refresh.loading i {
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .table-wrapper {
            overflow-x: auto;
            border-radius: 14px;
            border: 1px solid #d1fae5;
            max-width: 100%;
            box-shadow: 0 2px 10px rgba(22, 163, 74, 0.06);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
            white-space: nowrap;
        }

        th,
        td {
            padding: 8px 12px;
            text-align: center;
            border: 1px solid #e2e8f0;
            font-size: 11px;
            vertical-align: middle;
        }

        th:last-child,
        td:last-child {
            border-right: none;
        }

        th:last-child,
        td:last-child {
            border-right: none;
        }

        th {
            background: linear-gradient(180deg, #166534 0%, #15803d 100%);
            font-weight: 700;
            color: #ffffff;
            text-transform: uppercase;
            font-size: 10px;
            letter-spacing: 0.06em;
            cursor: pointer;
            user-select: none;
            position: sticky;
            top: 0;
            z-index: 10;
            height: 40px;
        }

        th:hover {
            background: linear-gradient(180deg, #14532d 0%, #166534 100%) !important;
            color: #bbf7d0 !important;
        }

        tr:nth-child(even) td {
            background: #f0fdf4;
        }

        tr:hover td {
            background: #dcfce7 !important;
        }

        .rekap-full-table th,
        .rekap-full-table td {
            white-space: normal !important;
            word-break: normal !important;
            overflow-wrap: break-word;
            line-height: 1.3;
            vertical-align: middle;
            padding: 8px 6px;
        }

        /* Optimasi Kolom Nama (Kolom 2) agar lebar dulu sebelum wrap */
        .rekap-full-table th:nth-child(2),
        .rekap-full-table td:nth-child(2) {
            min-width: 180px;
            font-weight: 700;
        }

        /* Angka/Nominal tetap diusahakan satu baris agar mudah dibaca */
        .rekap-full-table td.text-mono {
            white-space: nowrap !important;
        }

        /* Freeze Columns untuk Rekap Bulanan */
        .rekap-full-table th:nth-child(-n+3),
        .rekap-full-table td:nth-child(-n+3) {
            position: sticky;
            z-index: 10;
            background-color: var(--bg-surface) !important;
            opacity: 1 !important;
        }

        .rekap-full-table th:nth-child(1),
        .rekap-full-table td:nth-child(1) {
            left: 0;
            width: 30px;
        }

        .rekap-full-table th:nth-child(2),
        .rekap-full-table td:nth-child(2) {
            left: 30px;
            min-width: 180px;
        }

        .rekap-full-table th:nth-child(3),
        .rekap-full-table td:nth-child(3) {
            left: 210px;
            min-width: 100px;
            border-right: 2px solid var(--border) !important;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        }

        /* Pastikan angka nominal tidak wrap ke baris baru */
        .rekap-full-table td.text-mono,
        .rekap-full-table th.text-mono {
            white-space: nowrap;
            min-width: 95px;
        }

        .rekap-full-table td.text-right {
            white-space: nowrap;
            padding-right: 10px;
        }

        .rekap-full-table thead th:nth-child(-n+3) {
            z-index: 11;
            background-color: var(--th-bg) !important;
            color: var(--th-color) !important;
        }

        /* Sticky Footer untuk Total */
        #rekapFullFooter tr {
            position: sticky;
            bottom: 0;
            z-index: 15;
            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
        }

        #rekapFullFooter td {
            background-color: #1e293b !important;
            color: white !important;
            border-top: 2px solid var(--accent);
        }

        /* KIOSK MONITORING STYLES */
        .kiosk-status-card {
            background: var(--bg-surface);
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }

        .kiosk-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
            margin-top: 12px;
        }

        .kiosk-item {
            background: var(--bg-app);
            padding: 14px;
            border-radius: 14px;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: 0.3s;
        }

        .kiosk-item:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .battery-bar-container {
            height: 8px;
            background: var(--border);
            border-radius: 4px;
            overflow: hidden;
            margin: 5px 0;
        }

        .battery-bar-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        th:hover {
            color: var(--accent);
        }

        .allowance-detail {
            font-size: 10px;
            color: var(--text-secondary);
            text-align: left;
            margin-top: 4px;
            white-space: normal;
            line-height: 1.3;
        }

        tr:hover td {
            background-color: var(--bg-app);
        }

        tr:last-child td {
            border-bottom: none;
        }

        .jam-badge,
        .badge {
            padding: 4px 10px;
            border-radius: 50px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            white-space: nowrap;
            display: inline-block;
            border: none;
        }

        .jam-bad {
            background: var(--danger-bg);
            color: #991b1b;
        }

        .jam-warning {
            background: var(--warning-bg);
            color: #92400e;
        }

        .jam-success {
            background: var(--success-bg);
            color: #065f46;
        }

        .jam-normal {
            background: var(--bg-app);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }

        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #1e293b;
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 600;
            z-index: 999;
            animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        /* =========================================
           SETTINGS DASHBOARD STYLES (NEW)
           ========================================= */
        .settings-container {
            display: flex;
            gap: 24px;
            align-items: flex-start;
        }

        .settings-sidebar {
            width: 200px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex-shrink: 0;
            position: sticky;
            top: 0;
        }

        .settings-nav-v {
            padding: 8px;
            border-radius: var(--radius-lg);
            background: var(--bg-surface);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }

        .settings-btn-v {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            transition: 0.2s;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .settings-btn-v:hover {
            background: var(--bg-app);
            color: var(--accent);
        }

        .settings-btn-v.active {
            background: var(--accent);
            color: white;
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
        }

        .settings-btn-v i {
            font-size: 20px;
        }

        .settings-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .settings-group-card {
            background: var(--bg-surface);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            padding: 24px;
            box-shadow: var(--shadow-sm);
            animation: fadeIn 0.3s ease;
        }

        .settings-group-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--accent);
            padding-bottom: 8px;
            border-bottom: 1px dashed var(--border);
        }

        .settings-panel {
            display: none;
        }

        .settings-panel.active {
            display: block;
        }

        /* --- AGENDA DASHBOARD (ADMIN) --- */
        .agenda-dash-card {
            margin-bottom: 20px;
            background: var(--bg-surface);
            border-radius: 16px;
            border: 1px solid var(--border);
            padding: 15px;
            box-shadow: var(--shadow-sm);
        }

        .agenda-top-blink {
            border: 2px solid #ef4444 !important;
            animation: border-glow-colors 1.5s infinite;
        }

        .agenda-top-blink * {
            animation: text-glow-colors 1.5s infinite;
        }

        @keyframes text-glow-colors {
            0% {
                color: #ef4444;
            }

            50% {
                color: #f59e0b;
            }

            100% {
                color: #ef4444;
            }
        }

        @keyframes border-glow-colors {
            0% {
                border-color: #ef4444;
                box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
            }

            50% {
                border-color: #f59e0b;
                box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
            }

            100% {
                border-color: #ef4444;
                box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
            }
        }

        .dash-agenda-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 250px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .dash-agenda-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: var(--bg-app);
            border: 1px solid var(--border);
            border-radius: 12px;
            transition: 0.2s;
        }

        .dash-agenda-item:hover {
            border-color: var(--accent);
            transform: translateY(-1px);
        }

        /* --- CHIPS / BADGES --- */
        .chip-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 12px;
            background: var(--bg-app);
            border: 1px solid var(--border);
            border-radius: 12px;
            min-height: 50px;
            margin-top: 8px;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--bg-surface);
            color: var(--text-primary);
            border: 1px solid var(--border);
            border-radius: 50px;
            font-size: 11px;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
            animation: slideUp 0.2s ease;
        }

        .chip i {
            font-size: 14px;
            color: var(--danger);
            cursor: pointer;
            padding: 2px;
            border-radius: 50%;
        }

        .chip i:hover {
            background: var(--danger-bg);
        }

        .reset-btn {
            font-size: 11px;
            font-weight: 700;
            color: var(--danger);
            cursor: pointer;
            text-transform: uppercase;
            text-decoration: underline;
            background: none;
            border: none;
            padding: 0;
        }

        @media (max-width: 768px) {
            .settings-container {
                flex-direction: column;
            }

            .settings-sidebar {
                width: 100%;
                overflow-x: auto;
                flex-direction: row;
                padding-bottom: 10px;
            }

            .settings-nav-v {
                display: flex;
                flex-direction: row;
                background: transparent;
                border: none;
                box-shadow: none;
                padding: 0;
            }
        }

        .dynamic-row {
            display: grid;
            grid-template-columns: 2fr 1fr 2fr auto;
            gap: 10px;
            margin-bottom: 10px;
        }

        .dash-filter {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 10px;
        }

        .dash-tab {
            padding: 6px 12px;
            font-size: 11px;
            cursor: pointer;
            border-radius: 8px;
            color: var(--text-secondary);
            font-weight: 600;
            border: 1px solid transparent;
        }

        .dash-tab.active {
            background: var(--accent);
            color: white;
        }

        .card-header-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .search-wrapper {
            position: relative;
            width: 220px;
        }

        .search-input-mini {
            width: 100%;
            padding: 7px 12px 7px 34px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--bg-surface);
            color: var(--text-primary);
            font-size: 11px;
            outline: none;
        }

        .search-icon-mini {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 18px;
            pointer-events: none;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.open {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: var(--bg-surface);
            width: 95%;
            max-width: 1000px;
            max-height: 90vh;
            border-radius: 16px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--border);
            animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-content-sm {
            max-width: 500px;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-app);
        }

        .modal-header h3 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .close-btn {
            background: transparent;
            border: none;
            font-size: 24px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: 0.2s;
        }

        .close-btn:hover {
            color: var(--danger);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 0;
            overflow-y: auto;
            flex: 1;
        }

        .table-detail th {
            background: #1e293b;
            color: white;
            position: sticky;
            top: 0;
            z-index: 20;
            font-size: 11px;
            border-right: 1px solid #334155;
        }

        .table-detail td {
            vertical-align: middle;
            border-right: 1px solid var(--border);
        }

        .table-detail td:last-child {
            border-right: none;
        }

        /* Image Thumbnail for Table */
        .img-thumb {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 1px solid var(--border);
            transition: transform 0.2s;
        }

        .img-thumb:hover {
            transform: scale(1.5);
            z-index: 10;
            position: relative;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        /* Modal Image Big Preview */
        .modal-img-preview {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
            background: #f1f5f9;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideIn {
            from {
                transform: translateX(30px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @media print {
            body * {
                visibility: hidden;
            }

            #printArea,
            #printArea * {
                visibility: visible;
            }

            #printArea {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                background: white;
                color: black;
                padding: 20px;
            }

            .sidebar,
            header,
            .modal-overlay,
            .btn,
            footer {
                display: none !important;
            }
        }

        #printArea {
            display: none;
        }

        /* Rekap Full Summary Cards */
        .rekap-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .summary-card-mini {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            padding: 15px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .summary-mini-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .summary-mini-info h4 {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .summary-mini-info p {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        /* Period Nav Custom Style */
        .period-nav-container {
            display: flex;
            align-items: center;
            background: var(--bg-app);
            border: 1px solid var(--border);
            border-radius: 30px;
            padding: 4px;
        }

        .period-nav-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .period-nav-btn:hover {
            background: var(--border);
        }

        .period-nav-label {
            padding: 0 12px;
            font-weight: 700;
            font-size: 11px;
            color: var(--accent);
            min-width: 260px;
            text-align: center;
            line-height: 1.3;
        }

        /* =========================================
           RESPONSIVE MOBILE STYLES (NEW)
           ========================================= */
        #sidebarOverlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 45;
            display: none;
            opacity: 0;
            backdrop-filter: blur(4px);
            transition: opacity 0.3s ease;
        }

        .mobile-toggle {
            display: none;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            color: var(--text-primary);
            width: 40px;
            height: 40px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        @media (max-width: 1024px) {
            :root {
                --sidebar-width: 260px;
            }

            .sidebar {
                position: fixed;
                left: calc(var(--sidebar-width) * -1);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 100;
                /* Above header */
            }

            body.sidebar-open .sidebar {
                transform: translateX(var(--sidebar-width));
                box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
            }

            body.sidebar-open #sidebarOverlay {
                display: block;
                opacity: 1;
            }

            .main-wrapper {
                margin-left: 0 !important;
                width: 100%;
            }

            header {
                padding: 0 20px;
            }

            .mobile-toggle {
                display: flex;
            }
        }

        @media (max-width: 768px) {
            body {
                font-size: 6px;
            }

            .allowance-cell {
                display: flex;
                justify-content: flex-end;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
            }

            .btn-icon {
                min-width: 32px;
                width: 32px;
                padding: 6px;
                justify-content: center;
            }

            .btn-icon i {
                margin: 0;
            }

            header {
                padding: 10px 10px 0 10px;
                height: 55px;
            }

            .sidebar {
                width: 260px;
            }

            .main-wrapper {
                padding: 8px !important;
                width: 100vw !important;
                max-width: 100vw !important;
                overflow-x: hidden !important;
            }

            .header-actions {
                gap: 5px;
            }

            .date-text {
                display: none;
            }

            .live-time {
                font-size: 11px;
                min-width: 52px;
            }

            .datetime-container {
                padding: 4px 8px;
                gap: 5px;
                font-size: 10px;
            }

            /* Content area lebih compact */
            .content-area {
                padding: 10px;
            }

            /* Card lebih compact */
            .card {
                padding: 12px;
            }

            .card-title {
                font-size: 11px;
            }

            /* Stat grid dan stat cards diperkecil */
            .stat-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .stat-card {
                padding: 10px 12px;
            }

            .stat-value {
                font-size: 18px;
            }

            .stat-label {
                font-size: 9px;
            }

            /* Tombol diperkecil */
            .btn {
                font-size: 11px;
                padding: 5px 10px;
            }

            .btn-sm {
                font-size: 10px;
                padding: 3px 7px;
            }

            /* Tabel diperkecil + scroll horizontal */
            .table-responsive,
            .table-wrapper {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
                margin-bottom: 10px;
                border-radius: 8px;
                width: 100%;
            }

            table {
                min-width: 600px;
                /* Ensure table doesn't squish too much, forces internal scroll instead of page zoom */
                font-size: 11px;
            }

            th,
            td {
                padding: 5px 7px;
                font-size: 11px;
            }

            /* Sidebar nav items diperkecil */
            .nav-item {
                font-size: 11px;
                padding: 10px 14px;
                gap: 8px;
            }

            .nav-item i {
                font-size: 18px;
            }

            /* Input diperkecil */
            .input-group-control,
            input,
            select,
            textarea {
                font-size: 11px;
                padding: 6px 10px;
            }

            /* Settings group card */
            .settings-group-card {
                padding: 14px;
            }

            .settings-group-title {
                font-size: 11px;
            }

            /* Dynamic row 2 kolom */
            .dynamic-row {
                grid-template-columns: 1fr 1fr;
            }

            /* Auto-acc label lebih compact */
            .auto-acc-label {
                font-size: 10px;
            }

            /* Notif dropdown lebih compact */
            .notif-item {
                font-size: 11px;
            }

            /* Card header actions scroll kalau overflow */
            .card-header-actions {
                overflow-x: auto;
                padding-bottom: 2px;
            }
        }

        @media (max-width: 480px) {

            /* Layar sangat kecil: diperkecil lagi */
            body {
                font-size: 10px;
            }

            .stat-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }

            .brand-text h1 {
                font-size: 11px;
            }

            .brand-text p {
                font-size: 9px;
            }

            .stat-value {
                font-size: 16px;
            }

            .content-area {
                padding: 8px;
            }

            .card {
                padding: 10px;
            }

            table {
                font-size: 10px;
            }

            th,
            td {
                padding: 4px 6px;
            }

            .btn {
                font-size: 10px;
                padding: 4px 8px;
            }

            .btn-sm {
                font-size: 9px;
                padding: 3px 6px;
            }

            /* Compact filter buttons */
            .dash-filter {
                flex-wrap: wrap;
                gap: 4px;
            }
        }

        .stat-mini-box {
            background: var(--bg-app);
            padding: 15px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            transition: transform 0.2s;
            border: 1px solid var(--border);
        }

        .stat-mini-box:hover {
            transform: translateX(5px);
            background: white;
            box-shadow: var(--shadow-sm);
        }

        .stat-mini-box .label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
            font-weight: 700;
        }

        .stat-mini-box .value {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
        }

        @media (max-width: 1024px) {
            #statistik_kedisiplinan>div {
                grid-template-columns: 1fr !important;
            }

            .sidebar-rekap {
                position: static !important;
            }
        }

        /* Spin Animation untuk Loading Indicators */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
