@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4F46E5; /* Indigo 600 */
    --primary-hover: #4338CA;
    --primary-light: #E0E7FF;
    --secondary: #06B6D4; /* Cyan 500 */
    --secondary-hover: #0891B2;
    --accent: #F59E0B; /* Amber 500 */
    --bg: #F3F4F6;
    --surface: #FFFFFF;
    --text: #111827; /* Gray 900 */
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --success: #10B981;
    --success-hover: #059669;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography & Utilities */
h1, h2, h3, h4 { color: var(--text); font-weight: 600; letter-spacing: -0.02em; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }
.w-100 { width: 100%; }

/* Particles Animation */
@keyframes floatUp {
  0% { transform: translateY(110vh) scale(0.5) rotate(0deg); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-20vh) scale(1.5) rotate(360deg); opacity: 0; }
}
.particle {
  position: absolute;
  top: 0;
  color: rgba(255, 255, 255, 0.15);
  animation: floatUp 15s linear infinite;
  z-index: 1;
}

/* Login Container */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    border-radius: 50%;
}
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
}
.login-box h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.login-box .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Layout Dashboard */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg);
    width: 100%;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 10;
}
.sidebar-header {
    padding: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
    color: #f8fafc;
}
.sidebar-menu {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1.8rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    border-radius: 0 12px 12px 0;
    margin-right: 12px;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #4ade80;
    border-left: 4px solid #4ade80;
    box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}
.nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-link { position: relative; }
.nav-badge {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.header-user-name-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.header-user-name {
    display: block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}
.header-user-role {
    margin-top: 0;
    font-size: 0.64rem;
    padding: 2px 6px;
    line-height: 1.15;
}

/* Dropdown hover di header desktop */
.header-user-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.header-user-dropdown .header-user-info {
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
    transition: background 0.18s;
}
.header-user-dropdown:hover .header-user-info {
    background: #f1f5f9;
}
.header-user-chevron {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-left: 2px;
    transition: transform 0.2s ease;
}
.header-user-dropdown:hover .header-user-chevron {
    transform: rotate(180deg);
}
.header-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
}
.header-user-dropdown:hover .header-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-dropdown-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 7px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}
.header-dropdown-logout-btn:hover {
    background: #fef2f2;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
}

/* Components */
.panel {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}
.panel.panel-compact {
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.panel.panel-compact .panel-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}
.panel:hover {
    box-shadow: var(--shadow-lg);
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.panel-header h3,
.panel-header > h4 {
    flex: 1 1 0;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    min-width: 0;
}
.panel-header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}
.panel-header button {
    min-width: auto;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
}
.panel-header > div:last-child {
    justify-content: flex-end;
}
@media (max-width: 900px) {
    .panel-header {
        justify-content: space-between;
    }
    .panel-header h3,
    .panel-header > h4 {
        font-size: 0.92rem;
    }
}
@media (max-width: 560px) {
    .panel-header {
        gap: 0.35rem;
        flex-direction: column;
        align-items: stretch;
    }
    .panel-header h3,
    .panel-header > h4 {
        font-size: 0.88rem;
        margin-bottom: 0.35rem;
    }
    .panel-header > div {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .panel-header button {
        padding: 0.3rem 0.65rem;
        font-size: 0.75rem;
    }
    .btn-text-desktop {
        display: none !important;
    }
    .btn-text-mobile {
        display: inline !important;
    }
    .panel-actions {
        flex-wrap: nowrap;
    }
    .panel-actions.panel-actions-2col {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .panel-actions.panel-actions-2col .table-action-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: calc((100% - 0.5rem) / 2);
        white-space: nowrap;
    }
    .tab-header.tab-header-2col {
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.5rem;
    }
    .tab-header.tab-header-2col .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: calc((100% - 10px) / 2);
    }
    .table-action-btn {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
        white-space: nowrap;
    }
    .btn-text-desktop {
        display: none !important;
    }
    .btn-text-mobile {
        display: inline !important;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4b5563;
}
.form-control, .form-control-file {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
select.form-control {
    appearance: auto;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}
.link-button {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.link-button:hover,
.link-button:focus {
    text-decoration: underline;
    outline: none;
}
.data-table td .link-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3); border: none; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover)); box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4); }
.btn-success { background: linear-gradient(135deg, var(--success), #34d399); color: white; border: none; }
.btn-success:hover { background: linear-gradient(135deg, var(--success-hover), #10b981); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-warning { background: #eab308; color: white; border: none; }
.btn-warning:hover { background: #ca8a04; }
.btn-info { background: var(--secondary); color: white; }
.btn-info:hover { background: var(--secondary-hover); }
.btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 6px; }
.btn-block { width: 100%; }

/* Tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 0;
    padding: 0;
    text-align: left;
}
.table-responsive.table-responsive-compact {
    padding-bottom: 0.2rem;
}
.table-responsive.table-responsive-compact table {
    margin-bottom: 0;
}
.table-responsive.table-responsive-compact .data-table th,
.table-responsive.table-responsive-compact .data-table td {
    padding: 0.55rem 0.7rem;
}
.table-responsive table {
    width: 100%;
    min-width: 0;
    margin-bottom: 0.35rem;
}
.data-table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
}
.data-table th,
.data-table td,
th, td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.data-table th,
th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
@media (min-width: 901px) {
    .data-table th,
    .data-table td {
        font-size: 1rem;
    }
}
@media (max-width: 900px) {
    .data-table th,
    .data-table td {
        font-size: 0.84rem;
    }
    .data-table th {
        font-size: 0.72rem;
    }
}

.desktop-only {
    display: table-cell;
}

.mobile-only {
    display: none;
}

.hide-on-mobile {
    display: table-cell;
}

.opd-table {
    border: none;
    border-collapse: collapse;
}

.opd-table th,
.opd-table td {
    border: none;
}

.opd-table th:first-child,
.opd-table td:first-child {
    min-width: 160px; /* Laptop: minimal 160px */
    width: 50%;
}

.opd-table th:not(:first-child),
.opd-table td:not(:first-child) {
    width: auto;
}

@media (max-width: 900px) {
    .desktop-only,
    .hide-on-mobile {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    th.mobile-only, td.mobile-only {
        display: table-cell !important;
    }
    button.mobile-only, span.mobile-only, i.mobile-only {
        display: inline-block !important;
    }
    .opd-table .desktop-only,
    .opd-table .hide-on-mobile {
        display: table-cell !important;
    }
    .opd-table .mobile-only {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .opd-table .desktop-only,
    .opd-table .hide-on-mobile {
        display: none !important;
    }
    .opd-table .mobile-only {
        display: block !important;
    }
    .opd-table th.mobile-only, .opd-table td.mobile-only {
        display: table-cell !important;
    }
}

/* Desktop: lebar kolom Aksi di tabel Pantau PKB */
/* Desktop: lebar kolom Aksi di tabel Pantau PKB */
.folder-opd-aksi-th,
.folder-opd-aksi-td {
    width: 150px;
    white-space: nowrap !important;
}

/* Di HP: sembunyikan teks label tombol pantau, tampilkan ikon saja */
@media (max-width: 900px) {
    .pantau-aksi-label {
        display: none !important;
    }
    .pantau-aksi-btn {
        padding: 8px 10px !important;
    }
}

/* Tombol aksi tabel Kelola Akun Superadmin */
.pengaturan-akun-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* Tabel Kelola Akun Superadmin - pastikan tidak ada min-width besar */
.superadmin-akun-tabel {
    table-layout: auto;
    width: 100%;
}

/* Card container di tab-akun */
.tab-akun-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0; /* Cegah overflow keluar dari parent */
    overflow: hidden;
}

/* Header card: title + tombol bisa wrap ke baris baru di HP */
.tab-akun-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tab-akun-card-header h4 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

/* Grid Backup & Restore: 2 kolom di desktop, 1 kolom di HP */
.backup-restore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.backup-restore-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    min-width: 0;
}

/* Di mobile, backup/restore stacked 1 kolom */
@media (max-width: 600px) {
    .backup-restore-grid {
        grid-template-columns: 1fr;
    }
    .tab-akun-card {
        padding: 14px;
    }
}



.mobile-app-header,
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .dashboard-layout {
        display: block;
    }
    .sidebar {
        display: none;
    }
    .mobile-app-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 30;
        width: 100%;
        /* Solid white - tidak transparan agar tidak tumpang tindih saat scroll */
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 0.9rem 1rem;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-header-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .mobile-logout-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.55rem;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        background: #ef4444;
        border: 1px solid rgba(239,68,68,0.4);
    }
    .mobile-logout-btn:hover {
        background: #dc2626;
    }
    .mobile-header-brand img,
    .mobile-header-brand i {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.05);
    }
    .mobile-header-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
    }
    .mobile-header-subtitle {
        font-size: 0.78rem;
        color: var(--text-muted);
    }
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0; /* Nempel ke layar bawah */
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 20px 20px 0 0; /* Membulat di atas saja */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        z-index: 40;
        padding: 6px 6px 10px 6px; /* Padding bawah sedikit lebih untuk keamanan */
    }
    .mobile-bottom-nav-inner {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }
    .mobile-nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        font-size: 0.58rem; /* Lebih kecil agar muat */
        white-space: nowrap; /* Mencegah teks turun ke bawah */
        overflow: hidden;
        text-overflow: ellipsis;
        color: #3b82f6; /* Warna biru yang lebih hidup */
        font-weight: 500;
        text-decoration: none;
        border-radius: 14px;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
        border-right: none;
        min-height: auto;
    }
    .mobile-nav-link.mobile-nav-link-flex {
        flex: 1;
    }
    .mobile-nav-link i {
        font-size: 1.25rem;
        color: #3b82f6; /* Warna ikon hidup */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    }
    .mobile-nav-link.active {
        color: #1d4ed8;
        font-weight: 700;
        background: rgba(59, 130, 246, 0.15);
    }
    .mobile-nav-link.active i {
        color: #1d4ed8;
        transform: translateY(-2px) scale(1.15);
    }
    .mobile-nav-link.center-item {
        flex: 0 0 auto;
        transform: translateY(-22px);
        background: linear-gradient(135deg, var(--tema-warna), var(--tema-warna2)); /* Sesuai pengaturan admin */
        color: white;
        border-radius: 50%;
        min-width: 58px;
        min-height: 58px;
        width: 58px;
        height: 58px;
        justify-content: center;
        padding: 0;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        border: 4px solid #ffffff;
        position: relative;
        overflow: visible;
    }
    .mobile-nav-link.center-item span {
        display: block;
        position: absolute;
        bottom: -20px;
        font-size: 0.7rem;
        color: #64748b;
        font-weight: 600;
        text-align: center;
        width: 150px;
        left: 50%;
        transform: translateX(-50%);
        line-height: 1.1;
    }
    .mobile-nav-link.center-item i {
        font-size: 1.5rem;
        color: white !important;
        margin-top: -2px; /* Slight adjustment because of span absolute */
    }
    .mobile-nav-link.center-item.active,
    .mobile-nav-link.center-item:hover {
        background: var(--primary);
        transform: translateY(-22px) scale(1.05);
        color: white;
    }
    /* Matikan klik nama/ikon di header kanan pada versi HP (menghilangkan tombol keluar ganda) */
    .header-user-dropdown {
        pointer-events: none;
    }
    .header-user-chevron {
        display: none !important;
    }
    .mobile-nav-badge {
        position: absolute;
        top: 6px;
        right: 12px;
        background: #ef4444;
        color: white;
        font-size: 0.65rem;
        padding: 2px 6px;
        border-radius: 999px;
    }
    .main-content {
        padding: 1rem 1rem 88px;
        flex: 1;
    }
    .grid-cards {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 1rem;
    }
    .data-table th,
    .data-table td {
        /* Hanya white-space nowrap di mobile untuk header saja, bukan semua td */
        white-space: normal;
    }
    .data-table th {
        white-space: nowrap;
    }

    .truncate-1-line {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .truncate-2-lines {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        line-height: 1.2;
        max-height: calc(2 * 1.2em);
    }
}

tr:last-child td { border-bottom: none; }
tr:hover td {
    background: #f1f5f9;
}
/* Kolom Aksi — td dan th harus tetap table-cell, BUKAN flex */
td.actions,
th.actions {
    display: table-cell !important;  /* override .actions{display:flex} */
    white-space: nowrap !important;
    vertical-align: middle;
}
/* Flex hanya untuk div/span.actions (tombol-tombol di dalam td) */
div.actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}
div.actions button {
    margin-right: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}
/* .actions class lama — masih ada di tempat lain */
.actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.actions button {
    margin-right: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}
.actions button i {
    margin-right: 0;
}

@media (max-width: 760px) {
    div.actions {
        gap: 0.2rem;
    }
    div.actions button,
    .actions button {
        padding: 0.35rem 0.45rem;
        font-size: 0.72rem;
        min-width: auto;
    }
}


/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0px;
    /* Hapus overflow-x: auto agar tidak ada scrollbar di kanan tab */
    overflow: visible;
}
.tabs .tab-btn,
.tab-header .tab-btn {
    flex: 1 1 0;
    max-width: 100%;
    min-width: 0;
}
.tab-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.tab-header.tab-header-2col {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.5rem;
}
.tab-header.tab-header-2col .tab-btn {
    flex: 0 0 calc(50% - 0.25rem);
    width: calc(50% - 0.25rem);
    max-width: calc(50% - 0.25rem);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    font-family: inherit;
    min-width: 100px;
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tab-btn:hover {
    color: var(--primary);
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active {
    display: block;
}
.settings-2col-form {
    display: block;
}
.settings-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.settings-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
}
.settings-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.color-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.color-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.color-input {
    width: 46px;
    height: 36px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.preview-box {
    width: 100%;
    min-height: 140px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-placeholder {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}
.small-text {
    font-size: 0.82rem;
    color: #6b7280;
}
.file-input {
    padding: 0.45rem 0.6rem;
}
@media (max-width: 900px) {
    .settings-2col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .settings-panel {
        padding: 1rem;
    }
    .tabs {
        gap: 0;
        /* Pastikan tab memenuhi lebar penuh, tidak ada scroll */
        width: 100%;
        overflow: visible;
    }
    .tab-btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.5rem;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        white-space: normal;      /* Izinkan teks wrap jika terlalu panjang */
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }
    .settings-section h4 {
        font-size: 0.95rem;
    }
    .form-group label,
    .form-control,
    .form-control-file {
        font-size: 0.85rem;
    }
    .form-control,
    .file-input {
        padding: 0.45rem 0.55rem;
    }
    .preview-box {
        min-height: 120px;
    }
    .header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .header-user-name {
        /* Perkecil max-width di layar kecil agar tidak tumpang tindih */
        max-width: 100px;
    }
    .header-user-info {
        gap: 0.35rem;
    }
    /* Untuk layar sangat kecil < 360px */
    @media (max-width: 360px) {
        .header-user-name {
            max-width: 70px;
        }
    }
    .header-user-role {
        display: none;
    }
    .table-responsive {
        overflow-x: auto;
    }
    .table-responsive.table-responsive-compact {
        display: block;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .table-responsive.table-responsive-compact table {
        width: auto;
        min-width: 620px;
        box-sizing: border-box;
    }
    .table-responsive.table-responsive-compact td,
    .table-responsive.table-responsive-compact th {
        word-break: break-word;
        white-space: normal;
        min-width: 90px;
    }
    .table-responsive .btn {
        width: auto;
        white-space: nowrap;
    }
    .pengaturan-akun-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .pengaturan-akun-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}
.compact-month-tabs {
    display: grid;
    grid-template-columns: repeat(14, minmax(80px, 1fr));
    grid-auto-flow: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    width: 100%;
}
.btn-tab-bulan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn-tab-bulan:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}
@media (max-width: 900px) {
    .compact-month-tabs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-auto-flow: row;
        overflow-x: hidden;
    }
    .btn-tab-bulan {
        font-size: 0.68rem;
        padding: 0.25rem 0.4rem;
        min-height: 28px;
    }
}
@media (max-width: 560px) {
    .compact-month-tabs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.35rem;
    }
    .btn-tab-bulan {
        font-size: 0.66rem;
        padding: 0.2rem 0.35rem;
    }
}
@media (max-width: 420px) {
    .compact-month-tabs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.25rem;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.compact-filter-row {
    display: grid;
    grid-template-columns: minmax(110px, 110px) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.75rem;
    min-width: 0;
}
.compact-filter-row > * {
    min-width: 0;
}
.compact-filter-row .compact-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}
.compact-filter-row .compact-filters select {
    flex: 1 1 0;
    min-width: 0;
    max-width: 160px;
    width: 100%;
}
.compact-filter-row .filter-search {
    min-width: 0;
}
.compact-select,
.compact-select-wide,
.compact-filter-row .filter-search,
select.form-control {
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.25;
    padding: 0.45rem 0.65rem;
    min-height: 32px;
}
.compact-select {
    max-width: 110px;
}
.compact-select-wide {
    max-width: 150px;
}
select.form-control option {
    font-size: 0.8rem;
    line-height: 1.25;
}
@media (max-width: 1024px) {
    .compact-filter-row {
        grid-template-columns: minmax(100px, 100px) minmax(180px, 1fr) minmax(180px, 1fr);
    }
    .compact-filter-row .compact-filters {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .compact-filter-row .compact-filters select {
        max-width: 150px;
    }
    .compact-select,
    .compact-select-wide,
    .compact-filter-row .filter-search,
    select.form-control {
        font-size: 0.78rem;
        padding: 0.35rem 0.6rem;
        min-height: 30px;
    }
}
@media (max-width: 760px) {
    .compact-filter-row {
        grid-template-columns: minmax(90px, 90px) minmax(140px, 1fr);
        gap: 0.35rem;
        margin-bottom: 0.65rem;
    }
    .compact-filter-row .compact-filters {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .compact-filter-row .compact-filters select {
        max-width: 140px;
    }
}
@media (max-width: 560px) {
    .compact-filter-row {
        grid-template-columns: 32% 68%;
        grid-template-rows: auto auto;
        gap: 0.35rem;
    }
    .compact-filter-row .compact-filters {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        width: 100%;
    }
    .compact-filter-row .compact-filters select,
    .compact-filter-row .compact-filters .form-control {
        width: 100%;
        max-width: none;
    }
    .compact-filter-row .filter-search {
        min-width: 0;
    }
    .compact-select,
    .compact-select-wide,
    .compact-filter-row .filter-search,
    select.form-control {
        font-size: 0.72rem;
        line-height: 1.25;
        padding: 0.32rem 0.5rem;
        min-height: 28px;
    }
    .compact-select {
        max-width: 110px;
    }
    .compact-select-wide {
        max-width: none;
    }
    select.form-control option {
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .data-table th,
    .data-table td {
        font-size: 0.76rem;
        padding: 0.45rem 0.55rem;
        white-space: nowrap;
    }
    .data-table th {
        font-size: 0.72rem;
    }
    .data-table th:first-child,
    .data-table td:first-child {
        width: 45%;
        max-width: 135px;
        min-width: 0; /* Hapus min-width agar lebih fleksibel */
        white-space: normal;
        word-wrap: break-word;
    }
    .data-table td:first-child .link-button {
        display: block;
        text-align: left;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
        max-height: calc(2 * 1.2em);
    }
    .data-table td.mobile-only {
        white-space: normal;
    }
    .actions {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.25rem;
        overflow-x: auto;
    }
    .actions button {
        padding: 0.35rem 0.45rem;
        font-size: 0.72rem;
        line-height: 1.2;
        min-width: 34px;
    }
    .actions button i {
        margin-right: 0;
    }
    .actions button .btn-label {
        display: none;
    }
    .compact-top-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }
    .compact-top-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 0.5rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    .compact-top-btn .btn-label {
        display: inline;
    }
    .compact-btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.78rem;
        border-radius: 6px;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    .compact-btn i {
        margin-right: 0;
    }
    .compact-docs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .compact-docs a {
        margin-right: 0;
        margin-bottom: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .compact-cell .compact-title {
        font-size: 0.88rem;
    }
    .compact-cell .compact-subtext {
        font-size: 0.75rem;
        color: #64748b;
    }
    .compact-status {
        font-size: 0.75rem;
        padding: 0.22rem 0.5rem;
        line-height: 1.2;
    }
    @media (max-width: 900px) {
        .compact-top-btn {
            padding: 0.28rem 0.45rem;
            font-size: 0.72rem;
            min-height: 32px;
        }
        .compact-top-btn .btn-label,
        .compact-btn .btn-label,
        .compact-docs .btn-label {
            display: none;
        }
        .compact-btn {
            padding: 0.28rem 0.4rem;
            font-size: 0.7rem;
            min-height: 30px;
        }
        .compact-status {
            font-size: 0.66rem;
            padding: 0.18rem 0.35rem;
        }
        .compact-cell .compact-title {
            font-size: 0.78rem;
        }
        .compact-cell .compact-subtext {
            font-size: 0.68rem;
        }
    }
    .table-responsive {
        overflow-x: auto;
    }
    .main-content {
        padding-bottom: 110px;
    }
}

.table-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 15px;
    font-size: 0.9rem;
}
.table-controls .pagination-buttons {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.table-controls button {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}
@media (max-width: 560px) {
    .table-controls {
        font-size: 0.75rem;
    }
    .table-controls button {
        padding: 0.25rem 0.45rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 560px) {
    .modal-content {
        padding: 1.25rem;
        width: 95%;
        max-width: 520px;
    }
    .modal-content h2 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    .modal-content .nav-tabs {
        flex-wrap: nowrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .modal-content .nav-tabs a {
        padding: 6px 8px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .modal-content .form-group {
        margin-bottom: 0.9rem;
    }
    .modal-content label,
    .modal-content .table th,
    .modal-content .table td {
        font-size: 0.82rem;
    }
    .modal-content .form-control,
    .modal-content select.form-control {
        font-size: 0.82rem;
        padding: 0.45rem 0.55rem;
    }
    .modal-content .table {
        font-size: 0.82rem;
    }
    .modal-content .table th,
    .modal-content .table td {
        padding: 0.45rem 0.55rem;
    }
    .modal-content .btn {
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
    }
    .modal-content .close-btn {
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* Grid Cards (Kamar Tahun / OPD) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
@media (max-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 1rem;
    }
    .card {
        padding: 1.5rem;
    }
}
@media (max-width: 840px) {
    .grid-cards {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 1rem;
    }
    .card {
        padding: 1.3rem;
    }
}
@media (max-width: 760px) {
    .grid-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .card {
        padding: 1rem;
    }
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card:hover::before {
    transform: scaleX(1);
}
.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 50%;
}
.year-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}
.year-card-subtext {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}
.year-card-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
}
.year-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 5px;
}
.year-card-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.year-card-icon-btn:hover {
    transform: scale(1.08);
}
.year-card-icon-btn i {
    font-size: 12px;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
}
.year-card-icon-edit {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.year-card-icon-delete {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}
.modal-content {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%; /* Default responsive width */
    max-width: 800px;
    max-height: 90vh;
    /* Gunakan dvh (dynamic viewport height) agar modal tidak tertutup keyboard virtual */
    max-height: 90dvh;
    overflow-y: auto;
    position: relative;
    box-shadow: none;
    border: none;
    animation: modalSlideUp 0.4s ease;
    /* Padding bawah ekstra agar tombol submit tidak tertutup keyboard virtual di HP */
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
}
/* Add Edit Modal Header Gradient */
.modal-header-edit h2 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid #fcd34d;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
/* Allow inline style max-width to override */
.modal-content[style*="max-width"] {
    /* If max-width is set inline, it will take precedence */
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close-btn:hover { color: var(--danger); background: #fee2e2; }

/* Badges */
.badge {
    padding: 0.35em 0.8em;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-success { background: #D1FAE5; color: #059669; }
.badge-primary { background: #E0E7FF; color: #4338CA; }

/* Custom Accordion Dropdown */
.acc-dropdown-container { position: relative; width: 100%; }
.acc-dropdown-selected {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.acc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    margin-top: 4px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}
.acc-dropdown-menu.show { display: block; }
.acc-group summary {
    padding: 4px 8px;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e2e8f0;
    list-style: none;
    outline: none;
}
.acc-group summary::-webkit-details-marker { display: none; }
.acc-group summary::after { content: '\25BC'; float: right; font-size: 10px; margin-top: 4px; color: #64748b; }
.acc-group[open] summary::after { content: '\25B2'; }
.acc-group[open] summary { border-bottom: none; }
.acc-item {
    padding: 4px 8px 4px 20px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}
.acc-item:hover { background: #e0e7ff; color: #4338ca; }
.acc-item.active { background: #4f46e5; color: #fff; }

.glass-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    text-align: center;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.floating-anim {
    animation: floatAnim 4s ease-in-out infinite;
}

/* Compact table layout for Kelola Pegawai */
.panel.panel-compact {
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
}
.panel.panel-compact .panel-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}
.panel.panel-compact .panel-actions {
    gap: 0.35rem;
}
.panel.panel-compact .table-responsive {
    padding: 0;
    border-width: 1px;
    border-radius: 6px;
    margin: 0;
}
.panel.panel-compact .table-responsive.table-responsive-compact {
    padding-bottom: 0;
}
.panel.panel-compact .data-table {
    margin: 0;
}
.panel.panel-compact .data-table th,
.panel.panel-compact .data-table td {
    padding: 0.45rem 0.65rem;
}
.panel.panel-compact .compact-filter-row {
    margin-bottom: 0.5rem;
    gap: 0.35rem;
}
.panel.panel-compact .table-controls {
    margin-top: 0.45rem;
}

/* Customizations for Landing Page on Mobile */
@media (max-width: 560px) {
    .glass-box {
        margin: 0 10px !important;
        padding: 25px 15px !important;
    }
    .landing-title {
        font-size: 2.2rem !important;
    }
    .landing-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
    .landing-btn {
        font-size: 1rem !important;
        padding: 10px 20px !important;
    }
    
    /* Login & Modals Spacing */
    .login-wrapper {
        padding: 0 15px !important;
    }
    .modal {
        padding: 0 15px !important; /* Memberikan batas layar untuk semua popup modal */
    }
    .modal-content {
        margin: auto !important; /* Memastikan tidak menempel ke pinggir layar */
        border-radius: 12px !important;
    }

    /* Membesarkan ukuran input kolom di HP untuk form login dan modal */
    .login-box .form-control,
    .modal-content .form-control {
        padding: 14px 15px !important;
        font-size: 1.05rem !important;
        height: auto !important;
    }

    /* Fix flex wrap for modals on mobile */
    .modal-content .form-group,
    .modal-content .flex-row {
        flex-wrap: wrap !important;
    }
    
    .modal-content {
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure table wrappers trigger horizontal scroll */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
}


/* Smooth Transitions & Responsive Modals */
.page-transition { animation: fadeSlideIn 0.25s ease-out forwards; }
@keyframes fadeSlideIn { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }

.form-col-half { width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); box-sizing: border-box; }
@media (max-width: 768px) { .form-col-half { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; } }

.alert-penting-kendaraan { background-color: #fff0d4; border: 1px solid #ff9800; color: #cc7a00; padding: 10px; margin-bottom: 15px; border-radius: 4px; font-weight: 500; font-size: 14px; }
@media (max-width: 768px) { .alert-penting-kendaraan { font-size: 12px; padding: 8px; } }

/* Tombol khusus HP - default tersembunyi di laptop */
.custom-mobile-eye { display: none !important; }

/* BREAKPOINT 900px — sama dengan breakpoint hide-on-mobile & desktop-only */
@media (max-width: 900px) {
    /* === TABEL INSTANSI/OPD (Menu Instansi) === */
    .opd-table {
        table-layout: fixed !important;
        width: 100% !important;
    }
    /* Kolom 1 (Nama OPD) - lebih kecil agar kolom lain muat */
    .opd-table th:nth-child(1), .opd-table td:nth-child(1) {
        min-width: 0 !important;
        width: 35% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow: hidden !important;
    }
    /* Kolom 2, 3 - hidden → beri width 0 agar tidak ambil ruang */
    .opd-table th:nth-child(2), .opd-table td:nth-child(2),
    .opd-table th:nth-child(3), .opd-table td:nth-child(3) {
        width: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    /* Kolom 4 (Kelola Pegawai) - ikon users */
    .opd-table th:nth-child(4), .opd-table td:nth-child(4) {
        width: 15% !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        text-align: center !important;
    }
    /* Kolom 5 (Aksi: Lihat/Edit/Hapus) */
    .opd-table th:nth-child(5), .opd-table td:nth-child(5) {
        width: 50% !important;
        white-space: nowrap !important;
    }
    /* Sembunyikan label teks tombol aksi, tampilkan ikon saja */
    .opd-table td:nth-child(5) .btn-label {
        display: none !important;
    }
    
    /* === TABEL OPD DI FOLDER TAHUN (Pantau PKB) === */
    /* Kunci tabel di 100% layar HP agar kolom Aksi tidak terdorong keluar */
    .folder-opd-table {
        table-layout: fixed !important;
        width: 100% !important;
    }
    /* Kolom 1 (Nama OPD): Ambil sisa ruang */
    .folder-opd-table th:nth-child(1), .folder-opd-table td:nth-child(1) {
        width: calc(100% - 60px) !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow: hidden !important;
    }
    /* Kolom 2, 3 - Sembunyikan sepenuhnya */
    .folder-opd-table th:nth-child(2), .folder-opd-table td:nth-child(2),
    .folder-opd-table th:nth-child(3), .folder-opd-table td:nth-child(3) {
        width: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
    /* Kolom 4 (Aksi): Kunci lebar persis seukuran ikon mata */
    .folder-opd-table th:nth-child(4), .folder-opd-table td:nth-child(4) {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }
    /* Sembunyikan teks label tombol, hanya tampilkan ikon */
    .pantau-aksi-label {
        display: none !important;
    }
}

/* Login Quick Links & Responsive Accordion Modals (FAQ & Dasar Hukum) */
.login-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
}
.login-quick-link-item {
    color: #475569;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 8px 3px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    min-width: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.login-quick-link-item i {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: #334155;
}
.login-quick-link-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}
.info-modal-card {
    text-align: left;
    margin: auto;
    padding: 1.75rem 1.75rem !important;
    max-width: 660px !important;
    width: 92% !important;
}
.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 2.25rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.info-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.helpdesk-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.helpdesk-contact-grid .btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 9px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 12px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.info-acc-scroll {
    max-height: 46vh;
    max-height: 46dvh;
    overflow-y: auto;
    padding-right: 2px;
}
.info-acc-scroll.info-acc-tall {
    max-height: 58vh;
    max-height: 58dvh;
}
.info-acc-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.info-acc-item.open {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.info-acc-trigger {
    width: 100%;
    background: #f8fafc;
    border: none;
    padding: 10px 12px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
}
.info-acc-item.open .info-acc-trigger {
    background: #eff6ff;
    color: #1e3a8a;
}
.info-acc-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.info-acc-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.info-acc-title-wrap {
    min-width: 0;
    flex: 1;
    word-break: break-word;
}
.info-acc-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    margin-top: 3px;
}
.info-acc-chevron {
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
    transition: transform 0.2s ease;
}
.info-acc-item.open .info-acc-chevron {
    transform: rotate(180deg);
    color: #1d4ed8;
}
.info-acc-body {
    display: none;
    padding: 10px 12px 12px 42px;
    font-size: 0.83rem;
    line-height: 1.55;
    color: #334155;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}
.info-acc-item.open .info-acc-body {
    display: block;
}
@media (max-width: 600px) {
    .login-box {
        padding: 1.6rem 1.2rem !important;
    }
    .info-modal-card {
        padding: 1.15rem 0.95rem !important;
        width: 95% !important;
        border-radius: 12px;
    }
    .info-modal-header h3 {
        font-size: 1rem;
    }
    .helpdesk-contact-grid {
        grid-template-columns: 1fr;
    }
    .info-acc-scroll {
        max-height: 44dvh;
    }
    .info-acc-scroll.info-acc-tall {
        max-height: 60dvh;
    }
    .info-acc-body {
        padding: 9px 11px 11px 14px;
        font-size: 0.8rem;
    }
    .info-acc-trigger {
        font-size: 0.82rem;
        padding: 9px 10px;
    }
    .login-quick-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
        margin-top: 15px;
    }
    .login-quick-link-item {
        padding: 6px 2px;
        font-size: 0.68rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .login-quick-link-item i {
        font-size: 1rem;
        margin-bottom: 4px;
    }
}
@media (max-width: 380px) {
    .login-quick-link-item {
        font-size: 0.62rem;
        padding: 5px 1px;
    }
    .login-quick-link-item i {
        font-size: 0.95rem;
    }
}

/* Pengaturan Topbar: Desktop & HP (3 baris rapi: 50/50, 50/50, 50/25/25 ikon log & reload) */
.pengaturan-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 15px;
}
.pengaturan-tabs {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto;
}
.pengaturan-top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 6px;
}
.pengaturan-action-btn {
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .pengaturan-topbar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        border-bottom: none;
        padding-bottom: 4px;
        margin-bottom: 12px;
    }
    .pengaturan-tabs,
    .pengaturan-top-actions {
        display: contents;
    }
    .pengaturan-tabs .tab-btn {
        grid-column: span 2;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 0;
        border: 1px solid #e2e8f0;
        border-bottom: 2px solid #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
        padding: 8px 6px;
        font-size: 0.76rem;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pengaturan-tabs .tab-btn.active {
        background: #eff6ff;
        border-color: #93c5fd;
        border-bottom-color: var(--primary);
        color: var(--primary);
    }
    .pengaturan-top-actions .pengaturan-action-btn {
        grid-column: span 1;
        width: 100%;
        min-width: 0;
        min-height: 36px;
        height: 100%;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 4px;
        margin: 0 !important;
    }
    .pengaturan-action-label {
        display: none !important;
    }
}

/* Modal Laporan Cerdas & Pratinjau Iframe */
.smart-report-modal {
    padding: 20px 22px !important;
}
.sr-modal-header {
    padding-right: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.sr-live-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #475569;
}
.sr-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
}
.sr-live-pill i {
    font-size: 0.5rem;
    color: #16a34a;
}
.sr-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.sr-filter-field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}
.sr-scope-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.sr-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
}
.sr-kpi-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 11px;
}
.sr-kpi-card.sr-kpi-green {
    background: #f0fdf4;
    border-color: #86efac;
}
.sr-kpi-card.sr-kpi-amber {
    background: #fffbeb;
    border-color: #fcd34d;
}
.sr-kpi-card.sr-kpi-blue {
    background: #eff6ff;
    border-color: #93c5fd;
}
.sr-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
}
.sr-kpi-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 3px 0;
}
.sr-kpi-val small {
    font-size: 0.82rem;
    font-weight: 700;
    color: #15803d;
}
.sr-kpi-sub {
    font-size: 0.74rem;
    color: #475569;
}
.sr-insights-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    max-height: 185px;
    overflow-y: auto;
}
.sr-insights-heading {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sr-insight-item {
    border-left: 3px solid #0284c7;
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 9px;
    margin-bottom: 6px;
    font-size: 0.78rem;
}
.sr-insight-item.sr-insight-success {
    border-left-color: #16a34a;
}
.sr-insight-item.sr-insight-warning {
    border-left-color: #d97706;
}
.sr-insight-title {
    font-weight: 700;
    color: #0f172a;
}
.sr-insight-detail {
    color: #475569;
    margin-top: 2px;
}
.sr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}
.sr-action-btn {
    min-width: 185px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.smart-report-preview-modal {
    max-width: 1000px !important;
    width: 96% !important;
    height: 92vh;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sr-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.sr-preview-left,
.sr-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sr-preview-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.sr-preview-title strong {
    font-size: 0.88rem;
    color: #0f172a;
}
.sr-preview-title small {
    font-size: 0.72rem;
    color: #64748b;
}
.sr-iframe-wrap {
    flex: 1 1 auto;
    background: #cbd5e1;
    padding: 10px;
    overflow: hidden;
}
.smart-report-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
}
@media (max-width: 768px) {
    .sr-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sr-modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .sr-action-btn {
        min-width: 0;
        width: 100%;
        font-size: 0.8rem;
        padding: 9px 8px;
    }
    .sr-hide-xs {
        display: none;
    }
    .sr-iframe-wrap {
        padding: 4px;
    }
}

/* ============================================================================
   HALAMAN LOGIN SPLIT 70% KIRI (INFO & GRAFIK 12 WILAYAH) / 30% KANAN (FORM)
   ============================================================================ */
.login-split-wrapper {
    width: 100%;
    padding: 20px 24px;
    align-items: center;
    justify-content: center;
}
.login-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
    gap: 20px;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
    z-index: 10;
}
.login-hero-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lh-header {
    padding: 16px 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.lh-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 380px;
}
.lh-logo-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
}
.lh-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lh-logo-box i {
    font-size: 1.8rem;
    color: #1e40af;
}
.lh-title-wrap {
    min-width: 0;
    flex: 1;
}
.lh-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.lh-title {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.lh-subtitle {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 2px;
}
.lh-org-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #e2e8f0;
}
.lh-instansi {
    color: #ffffff;
}
.lh-opd {
    color: #fde68a;
}
.lh-header-pills {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.lh-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}
.lh-pill-accent {
    background: rgba(22, 163, 74, 0.88);
    border-color: rgba(187, 247, 208, 0.45);
}
.lh-body {
    padding: 16px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}
.lh-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.lh-stat-card {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 11px 13px;
    min-width: 0;
}
.lh-stat-pns {
    border-left-color: #4f46e5;
    background: #eef2ff;
}
.lh-stat-pppk {
    border-left-color: #0d9488;
    background: #f0fdfa;
}
.lh-stat-total {
    border-left-color: #2563eb;
    background: #eff6ff;
}
.lh-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}
.lh-stat-pns .lh-stat-icon {
    color: #4338ca;
}
.lh-stat-pppk .lh-stat-icon {
    color: #0f766e;
}
.lh-stat-info {
    min-width: 0;
    flex: 1;
}
.lh-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.3px;
}
.lh-stat-value {
    font-size: 1.38rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 2px 0;
}
.lh-stat-sub {
    font-size: 0.7rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lh-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lh-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.lh-chart-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
}
.lh-chart-title i {
    color: #2563eb;
}
.lh-chart-sub {
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 2px;
}
.lh-chart-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
}
.lh-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lh-leg-item i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.lh-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.lh-chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 225px;
}
.lh-slogan-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 5px solid #d97706;
    border-radius: 12px;
    padding: 10px 14px;
}
.lh-slogan-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #d97706;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.lh-slogan-headline {
    font-size: 0.92rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1.25;
}
.lh-slogan-desc {
    font-size: 0.76rem;
    color: #78350f;
    line-height: 1.38;
    margin-top: 2px;
}
.login-box.login-box-right {
    max-width: 100%;
    width: 100%;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.42);
}
@media (max-width: 980px) {
    .login-split-wrapper {
        padding: 14px 12px;
    }
    .login-split-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .login-box.login-box-right {
        order: 1;
        padding: 1.55rem 1.25rem !important;
    }
    .login-hero-card {
        order: 2;
    }
}
@media (max-width: 640px) {
    .lh-header {
        padding: 14px 14px;
    }
    .lh-logo-box {
        width: 48px;
        height: 48px;
    }
    .lh-title {
        font-size: 1.2rem;
    }
    .lh-header-pills {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    .lh-body {
        padding: 12px 12px 14px 12px;
        gap: 10px;
    }
    .lh-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .lh-stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 9px 8px;
        border-left-width: 3px;
    }
    .lh-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .lh-stat-label {
        font-size: 0.64rem;
    }
    .lh-stat-value {
        font-size: 1.05rem;
    }
    .lh-stat-sub {
        font-size: 0.62rem;
        white-space: normal;
        line-height: 1.2;
    }
    .lh-chart-canvas-wrap {
        min-width: 580px;
        height: 215px;
    }
    .lh-slogan-banner {
        align-items: flex-start;
        padding: 10px 11px;
    }
    .lh-slogan-headline {
        font-size: 0.86rem;
    }
    .lh-slogan-desc {
        font-size: 0.72rem;
    }
}
