:root {
    color-scheme: light;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Manrope', sans-serif;
    --app-bg: #edf2f7;
    --app-bg-alt: #e6edf5;
    --surface: #ffffff;
    --surface-soft: #f5f6ff;
    --surface-muted: #eff1fb;
    --surface-glass: rgba(255, 255, 255, 0.76);
    --border: #e3e6f5;
    --border-strong: #d7dbef;
    --text: #23273a;
    --text-muted: #8087a3;
    --heading: #1b2033;
    --accent: #dc2626;
    --accent-strong: #b91c1c;
    --accent-soft: #fee2e2;
    --accent-rgb: 220, 38, 38;
    --success: #2daa64;
    --danger: #e5566b;
    --warning: #f2aa3b;
    --sidebar-shadow: 0 28px 60px rgba(91, 100, 148, 0.15), 0 8px 24px rgba(30, 35, 61, 0.06);
    --card-shadow: 0 20px 40px rgba(90, 101, 152, 0.1);
    --ring: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

html.theme-dark {
    color-scheme: dark;
    --app-bg: #181818;
    --app-bg-alt: #1f1f1f;
    --surface: #252525;
    --surface-soft: #343434;
    --surface-muted: #3c3c3c;
    --surface-glass: rgba(37, 37, 37, 0.96);
    --border: #3d3d3d;
    --border-strong: #515151;
    --text: #f2f2f2;
    --text-muted: #b8b8b8;
    --heading: #ffffff;
    --accent: #3b3b3b;
    --accent-strong: #4a4a4a;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --accent-rgb: 74, 74, 74;
    --success: #34c27d;
    --danger: #ff6f86;
    --warning: #f0b34f;
    --sidebar-shadow: none;
    --card-shadow: none;
    --ring: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}

@view-transition {
    navigation: auto;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--app-bg);
    transition: background 0.28s ease, color 0.28s ease;
}

body.page-leaving {
    pointer-events: none;
}

@keyframes shellCrossFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.2s;
    animation-timing-function: ease;
}

::view-transition-old(root) {
    animation-name: shellCrossFadeOut;
}

::view-transition-new(root) {
    animation-name: shellCrossFadeIn;
}

@keyframes shellCrossFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

body::before,
body::after {
    display: none;
}

.sidebar,
.main-navbar,
.main-content,
.main-footer,
.auth-shell,
.auth-theme-toggle {
    opacity: 1;
    animation: shellCrossFadeIn 0.22s ease both;
    transition: opacity 0.2s ease;
}

body.page-leaving .sidebar,
body.page-leaving .main-navbar,
body.page-leaving .main-content,
body.page-leaving .main-footer,
body.page-leaving .auth-shell,
body.page-leaving .auth-theme-toggle {
    opacity: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.125em;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 27, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 900;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 304px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--sidebar-shadow);
    z-index: 1000;
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

html.theme-dark .sidebar {
    background: #252525;
    border-right-color: #3d3d3d;
}

.sidebar-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 16px 16px;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.22);
    border-radius: 999px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 18px;
}

.brand-logo-box {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

html.theme-dark .brand-logo-box {
    background: transparent;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    margin: 0 0 2px;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--heading);
}

.brand-subtitle {
    display: block;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-section {
    padding: 0 12px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-menu {
    list-style: none;
    padding: 0 6px;
    margin: 0;
}

.nav-menu > li {
    margin-bottom: 8px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 17px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-menu li a:hover {
    color: #991b1b;
    background: #fee2e2;
    transform: translateY(-1px);
}

.nav-menu li a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: none;
}

.nav-menu li a.active:hover {
    color: #ffffff;
}

.nav-menu .nav-dropdown-toggle[aria-expanded="true"],
.nav-menu .nav-dropdown-toggle.active {
    color: var(--heading);
    background: transparent;
    box-shadow: none;
}

.nav-menu .nav-dropdown-toggle[aria-expanded="true"]:hover,
.nav-menu .nav-dropdown-toggle.active:hover {
    color: var(--heading);
    background: transparent;
    box-shadow: none;
}

.nav-menu .app-icon {
    width: 20px;
    min-width: 20px;
    font-size: 20px;
}

.menu-caret {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.18s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .menu-caret,
.nav-dropdown-toggle.active .menu-caret {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    padding: 10px 0 0 14px;
    margin: 8px 0 0 14px;
    border-left: 1px solid rgba(var(--accent-rgb), 0.14);
    background: transparent;
}

.nav-submenu > li {
    margin-bottom: 8px;
}

.nav-submenu li a {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px;
}

.nav-submenu li a .app-icon {
    font-size: 18px;
}

.sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-utility-link,
.theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--heading);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sidebar-utility-link:hover,
.theme-toggle:hover {
    transform: translateY(-1px);
    background: transparent;
    color: var(--heading);
}

.sidebar-utility-link.active {
    background: transparent;
    border-color: transparent;
    color: var(--heading);
}

.sidebar-utility-link {
    margin-bottom: 10px;
}

.sidebar-utility-label,
.theme-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sidebar-utility-label iconify-icon,
.theme-toggle-label iconify-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.theme-toggle {
    border: 0;
    cursor: pointer;
}

.theme-toggle-switch {
    width: 50px;
    height: 28px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(128, 135, 163, 0.28);
    transition: background 0.18s ease;
}

.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-switch {
    background: rgba(var(--accent-rgb), 0.78);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    transform: translateX(22px);
}

.main-navbar {
    position: relative;
    margin: 20px 20px 0 344px;
    min-height: 84px;
    padding: 16px 26px 16px 28px;
    border-radius: 28px;
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 22px 46px rgba(36, 45, 84, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 1;
}

html.theme-dark .main-navbar {
    border-color: #3d3d3d;
    background: rgba(37, 37, 37, 0.96);
}

html.theme-dark .nav-menu li a.active,
html.theme-dark .nav-menu .nav-dropdown-toggle[aria-expanded="true"],
html.theme-dark .nav-menu .nav-dropdown-toggle.active,
html.theme-dark .main-navbar,
html.theme-dark .user-pill,
html.theme-dark .user-avatar,
html.theme-dark .main-footer .d-flex,
html.theme-dark .theme-toggle-thumb,
html.theme-dark .btn-primary,
html.theme-dark .auth-highlight iconify-icon {
    box-shadow: none !important;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toggle-btn {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: var(--surface);
    color: var(--heading);
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.toggle-btn iconify-icon {
    font-size: 22px;
}

.page-heading {
    min-width: 0;
}

.page-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--heading);
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.user-pill-copy {
    text-align: right;
}

.user-pill-copy strong {
    display: block;
    color: var(--heading);
    font-size: 13px;
    line-height: 1.2;
}

.user-pill-copy small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.user-avatar-photo {
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
    overflow: hidden;
}

.main-content {
    position: relative;
    z-index: 1;
    margin-left: 344px;
    margin-top: 22px;
    padding: 18px 20px 10px 0;
    min-height: calc(100vh - 160px);
}

.breadcrumb-wrapper {
    margin-bottom: 22px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--heading);
}

.card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

html.theme-dark .card {
    background: rgba(37, 37, 37, 0.96);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.card-header h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: -0.03em;
    color: var(--heading);
}

.card-body {
    padding: 24px;
}

.table thead th {
    background: var(--surface-soft);
    border-bottom: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 15px 16px;
    border-top-color: var(--border);
    color: var(--text);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(var(--accent-rgb), 0.04);
}

.table-shell-full {
    width: 100%;
    overflow-x: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar,
.table-shell-full::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track,
.table-shell-full::-webkit-scrollbar-track,
.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb,
.table-shell-full::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.table-shell-full::-webkit-scrollbar-thumb:hover,
.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
    border-radius: 999px;
}

.table-responsive .table {
    min-width: 980px;
    margin-bottom: 0;
}

.table-shell-full .table {
    width: 100% !important;
    margin-bottom: 0;
}

.table-shell-full .dataTables_wrapper {
    width: 100%;
}

.table-shell-full .dataTables_scrollHeadInner,
.table-shell-full .dataTables_scrollHeadInner table,
.table-shell-full .dataTables_scrollBody table {
    width: 100% !important;
}

.table-pegawai-full {
    min-width: 1080px;
}

.pegawai-table-fit,
.table-page-fit {
    width: calc(100% + 40px);
    margin-left: -40px;
}

.pegawai-table-fit .table-pegawai-full,
.pegawai-table-fit .table-responsive .table,
.pegawai-table-fit .dataTables_scrollHeadInner,
.pegawai-table-fit .dataTables_scrollHeadInner table,
.pegawai-table-fit .dataTables_scrollBody table,
.table-page-fit .table-pegawai-full,
.table-page-fit .table-responsive .table,
.table-page-fit .dataTables_scrollHeadInner,
.table-page-fit .dataTables_scrollHeadInner table,
.table-page-fit .dataTables_scrollBody table {
    width: 100% !important;
    min-width: 1240px;
}

.card-flat-shell {
    border-radius: 0;
}

.card-flat-shell .card-header,
.card-flat-shell .card-body {
    border-radius: 0;
}

.pegawai-form-shell .form-control,
.pegawai-form-shell .custom-select,
.pegawai-form-shell textarea.form-control {
    border-radius: 0;
}

.table-bordered td,
.table-bordered th {
    border-color: var(--border);
}

.form-control,
.custom-select {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    box-shadow: none;
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus,
.custom-select:focus {
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: var(--ring);
    background: var(--surface);
    color: var(--text);
}

.form-group label {
    color: var(--heading);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.btn {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
}

.btn-sm {
    min-height: 36px;
    border-radius: 12px;
    padding: 8px 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: transparent;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-color: transparent;
}

.btn-secondary {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #fecaca;
    color: #991b1b;
    border-color: #fca5a5;
}

.btn-info {
    background: #ffe4e6;
    border-color: #fecdd3;
    color: #be123c;
}

.btn-info:hover,
.btn-info:focus {
    background: #fecdd3;
    border-color: #fda4af;
    color: #9f1239;
}

.btn-warning {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #9f1239;
}

.btn-success {
    background: #fef2f2;
    border-color: #fecaca;
    color: #c81e1e;
}

.btn-success:hover,
.btn-success:focus {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.btn-action-read {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.btn-action-read:hover,
.btn-action-read:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.btn-action-edit {
    background: #ffff00;
    border-color: #e5e500;
    color: #5c4b00;
}

.btn-action-edit:hover,
.btn-action-edit:focus {
    background: #e5e500;
    border-color: #cccc00;
    color: #4a3c00;
}

.btn-action-upload {
    background: #bfdbfe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.btn-action-upload:hover,
.btn-action-upload:focus {
    background: #93c5fd;
    border-color: #60a5fa;
    color: #1e40af;
}

.btn-action-delete {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.btn-action-delete:hover,
.btn-action-delete:focus {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.btn-action-approve {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.btn-action-approve:hover,
.btn-action-approve:focus {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.btn-action-save {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.btn-action-save:hover,
.btn-action-save:focus {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.table-action-group .btn {
    min-width: 38px;
    padding-left: 10px;
    padding-right: 10px;
}

.badge {
    display: inline;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none !important;
}

.badge-laki {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--heading);
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.badge-perempuan {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--heading);
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.gender-label {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0;
    border-radius: 0;
    color: var(--heading);
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
}

code {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit;
    padding: 0;
    font: inherit;
    box-shadow: none !important;
}

.gender-code {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0;
    border-radius: 0;
    color: var(--heading);
    font-weight: 700;
    box-shadow: none;
}

.gender-label {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    color: var(--heading);
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
}

.gender-code {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    color: var(--heading);
    font-weight: 700;
    box-shadow: none;
}

code {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

h5[style*="color:#3182ce"] {
    color: var(--heading) !important;
}

.main-footer {
    position: relative;
    z-index: 1;
    margin-left: 344px;
    padding: 0 20px 22px 0;
    background: transparent;
    border-top: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.main-footer .d-flex {
    padding: 18px 22px;
    border-radius: 22px;
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    padding: 0 12px;
}

.dataTables_wrapper,
.dataTables_scroll,
.dataTables_scrollHead,
.dataTables_scrollBody,
.dataTables_scrollFoot {
    width: 100% !important;
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
    min-width: 980px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.swal2-popup {
    border-radius: 24px !important;
    font-family: var(--font-body) !important;
}

.state-overview-row .small-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    min-height: 190px;
    padding: 26px 24px;
    box-shadow: none;
}

.state-overview-row .small-box .inner {
    position: relative;
    z-index: 2;
}

.state-overview-row .small-box h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.state-overview-row .small-box p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.95;
}

.state-overview-row .small-box .icon {
    position: absolute;
    right: 20px;
    bottom: 14px;
    opacity: 0.2;
    z-index: 1;
}

.state-overview-row .small-box .icon iconify-icon {
    font-size: 88px;
}

.small-box-primary {
    background: linear-gradient(135deg, #1f6b43 0%, #14532d 100%);
}

.small-box-info {
    background: linear-gradient(135deg, #1992ff 0%, #0d6ddf 100%);
}

.small-box-pink {
    background: linear-gradient(135deg, #ec5f9a 0%, #c84888 100%);
}

.auth-screen {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        linear-gradient(135deg, rgba(12, 20, 32, 0.58) 0%, rgba(13, 22, 34, 0.34) 46%, rgba(12, 20, 32, 0.6) 100%),
        url('../images/auth-login-bg.png') center center / cover no-repeat;
    overflow: hidden;
}

.auth-screen::before,
.auth-screen::after {
    content: '';
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.auth-screen::before {
    top: 10%;
    left: 8%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
}

.auth-screen::after {
    right: 10%;
    bottom: 12%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 214, 170, 0.22) 0%, rgba(255, 214, 170, 0) 72%);
}

html.theme-dark .auth-screen {
    background:
        linear-gradient(135deg, rgba(10, 14, 20, 0.72) 0%, rgba(11, 16, 22, 0.56) 48%, rgba(10, 14, 20, 0.78) 100%),
        url('../images/auth-login-bg.png') center center / cover no-repeat;
}

.auth-theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 20;
}

.auth-theme-toggle.theme-toggle {
    width: auto;
    min-width: 176px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #ffffff;
}

.auth-theme-toggle.theme-toggle .theme-toggle-label,
.auth-theme-toggle.theme-toggle .theme-toggle-label iconify-icon {
    color: #ffffff;
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 430px);
    gap: 26px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.auth-shell-login {
    max-width: 430px;
    display: block;
}

.auth-showcase,
.auth-card {
    border-radius: 32px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--sidebar-shadow);
    overflow: hidden;
}

html.theme-dark .auth-showcase,
html.theme-dark .auth-card {
    background: rgba(37, 37, 37, 0.96);
}

html.theme-dark .card,
html.theme-dark .auth-showcase,
html.theme-dark .auth-card {
    background: rgba(37, 37, 37, 0.96);
}

html.theme-dark .nav-menu li a:hover,
html.theme-dark .sidebar-utility-link,
html.theme-dark .theme-toggle {
    background: transparent;
}

html.theme-dark .toggle-btn {
    background: rgba(220, 38, 38, 0.14);
}

html.theme-dark .nav-menu li a.active {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
}

html.theme-dark .nav-menu .nav-dropdown-toggle[aria-expanded="true"],
html.theme-dark .nav-menu .nav-dropdown-toggle.active {
    background: transparent;
    color: #ffffff;
}

html.theme-dark .nav-menu .nav-dropdown-toggle[aria-expanded="true"]:hover,
html.theme-dark .nav-menu .nav-dropdown-toggle.active:hover {
    background: transparent;
    color: #ffffff;
}

html.theme-dark .nav-submenu {
    border-left-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .sidebar-utility-link:hover,
html.theme-dark .theme-toggle:hover {
    background: transparent;
}

html.theme-dark .toggle-btn:hover {
    background: rgba(220, 38, 38, 0.22);
}

html.theme-dark .sidebar-utility-link.active {
    background: transparent;
    border-color: transparent;
    color: #ffffff;
}

html.theme-dark .theme-toggle-switch {
    background: rgba(255, 255, 255, 0.16);
}

html.theme-dark .theme-toggle[aria-pressed="true"] .theme-toggle-switch {
    background: #626262;
}

.auth-showcase {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-brand-logo {
    width: 86px;
    height: 86px;
    border-radius: 0;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-brand-copy h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--heading);
}

html.theme-dark [style*="color:#2d3748"] {
    color: var(--heading) !important;
}

html.theme-dark [style*="color:#4a5568"],
html.theme-dark [style*="color:#718096"],
html.theme-dark [style*="color:#a0aec0"] {
    color: var(--text-muted) !important;
}

html.theme-dark [style*="background:#f7fafc"],
html.theme-dark [style*="background:#edf2f7"],
html.theme-dark [style*="background:#ebf4ff"],
html.theme-dark [style*="background:#ebf8ff"],
html.theme-dark [style*="background:#f0fff4"],
html.theme-dark [style*="background:#fffaf0"],
html.theme-dark [style*="background:#fff3cd"],
html.theme-dark [style*="background:#fdf2f8"],
html.theme-dark [style*="background:#fef3f2"] {
    background: var(--surface-soft) !important;
}

html.theme-dark [style*="border:1px dashed #cbd5e0"] {
    border-color: var(--border-strong) !important;
}

html.theme-dark [style*="border-bottom:2px solid #ebf4ff"] {
    border-bottom-color: rgba(var(--accent-rgb), 0.2) !important;
}

.auth-brand-copy p {
    margin: 8px 0 0;
    max-width: 420px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.auth-highlight {
    padding: 18px;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.auth-highlight strong {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--heading);
}

.auth-highlight span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 13px;
}

.auth-highlight iconify-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #ffffff;
    font-size: 22px;
    box-shadow: none;
}

.auth-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-login {
    padding: 28px 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(34px);
    -webkit-backdrop-filter: blur(34px);
}

.auth-login-top {
    text-align: center;
}

.auth-login-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-card-login .auth-kicker {
    color: rgba(255, 255, 255, 0.86);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
}

.auth-card-header h2 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: 31px;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.auth-card-header p {
    margin: 10px 0 0;
    font-family: 'Manrope', sans-serif;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.auth-form {
    margin-top: 30px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    font-family: 'Instrument Sans', sans-serif;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-form .form-control {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-left: 16px;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.auth-form .form-control:focus {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    font-size: 14px;
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.auth-footer-note {
    margin-top: 18px;
    font-family: 'Manrope', sans-serif;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-align: center;
    letter-spacing: 0.04em;
}

.settings-layout {
    display: grid;
    gap: 18px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.88);
}

html.theme-dark .settings-card {
    background: rgba(37, 37, 37, 0.96);
}

.settings-card .card-header {
    padding-top: 22px;
    padding-bottom: 18px;
    border-bottom: 0;
}

.settings-card .card-header h3 {
    display: block;
}

.settings-card .card-header p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.settings-profile-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.settings-photo-preview-wrap {
    display: flex;
    justify-content: flex-start;
}

.settings-photo-preview {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    background: #4b4640;
    color: var(--heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 62px;
    overflow: hidden;
    cursor: default;
    user-select: none;
    touch-action: none;
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.18);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.settings-photo-preview:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    transform: translateY(-1px);
}

.settings-photo-preview.has-image {
    background-size: cover;
    background-repeat: no-repeat;
    cursor: grab;
}

.settings-photo-preview.has-image.is-dragging {
    cursor: grabbing;
    transform: none;
}

.settings-photo-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.settings-photo-preview.has-image .settings-photo-overlay {
    opacity: 1;
}

.settings-photo-guide {
    position: absolute;
    background: rgba(255, 255, 255, 0.82);
}

.settings-photo-guide-v-one,
.settings-photo-guide-v-two {
    top: 0;
    bottom: 0;
    width: 1px;
}

.settings-photo-guide-v-one {
    left: 33.333%;
}

.settings-photo-guide-v-two {
    left: 66.666%;
}

.settings-photo-guide-h-one,
.settings-photo-guide-h-two {
    left: 0;
    right: 0;
    height: 1px;
}

.settings-photo-guide-h-one {
    top: 33.333%;
}

.settings-photo-guide-h-two {
    top: 66.666%;
}

.settings-photo-overlay-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.settings-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.settings-photo-meta {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.settings-upload-btn {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--heading) !important;
}

.settings-upload-btn:hover,
.settings-upload-btn:focus {
    background: var(--surface-muted) !important;
    border-color: var(--border-strong) !important;
    color: var(--heading) !important;
}

.settings-remove-btn {
    border: 0;
    background: transparent;
    color: #d04d63;
    font-size: 13px;
    font-weight: 700;
    padding: 0 4px;
}

.settings-remove-btn:hover,
.settings-remove-btn:focus {
    color: #b63f54;
    outline: none;
}

.settings-position-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.settings-position-block strong {
    display: block;
    margin-bottom: 10px;
    color: var(--heading);
    font-size: 13px;
}

.settings-position-status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--heading);
    font-size: 13px;
    font-weight: 700;
}

.settings-photo-hint {
    margin-top: 10px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-form-grid .settings-form-col-span {
    grid-column: 1 / -1;
}

.settings-form-note {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.btn-cancel-action {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-cancel-action:hover,
.btn-cancel-action:focus,
.btn-cancel-action:active {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.btn-cancel-action iconify-icon,
.btn-cancel-action span,
.btn-cancel-action strong {
    color: inherit !important;
    background: transparent !important;
}

html.theme-dark .btn-cancel-action,
html.theme-dark .btn-cancel-action:hover,
html.theme-dark .btn-cancel-action:focus,
html.theme-dark .btn-cancel-action:active {
    color: #ffffff !important;
    box-shadow: none !important;
}

.surat-progress {
    width: 100%;
    min-width: 0;
    max-width: 340px;
    margin: 0 auto;
}

.surat-progress-summary {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.surat-progress-summary.tone-muted,
.surat-progress-summary.tone-info,
.surat-progress-summary.tone-warning {
    color: #1d4ed8;
}

.surat-progress-summary.tone-success {
    color: #15803d;
}

.surat-progress-summary.tone-danger {
    color: #dc2626;
}

.surat-progress-track {
    position: relative;
    padding: 0 6px;
}

.surat-progress-track::before {
    content: '';
    position: absolute;
    top: 37px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #e7eef5;
}

.surat-progress-fill {
    position: absolute;
    top: 37px;
    left: 15px;
    height: 3px;
    background: #1d66c2;
}

.surat-progress-fill.tone-danger {
    background: #dc2626;
}

.surat-progress-steps {
    position: relative;
    z-index: 1;
    display: grid;
    column-gap: 4px;
    align-items: end;
}

.surat-progress-step {
    min-width: 0;
    display: grid;
    grid-template-areas:
        "label"
        "marker";
    grid-template-rows: minmax(24px, auto) 18px;
    justify-items: center;
    align-items: end;
    row-gap: 7px;
    text-align: center;
}

.surat-progress-label {
    grid-area: label;
    display: block;
    min-height: 24px;
    margin-bottom: 0;
    font-size: 8px;
    line-height: 1.15;
    font-weight: 800;
    color: #2d3748;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
    word-break: normal;
    overflow-wrap: anywhere;
}

.surat-progress-step.is-done .surat-progress-label,
.surat-progress-step.is-current .surat-progress-label {
    color: #1d4ed8;
}

.surat-progress-step.is-rejected .surat-progress-label {
    color: #dc2626;
}

.surat-progress-marker {
    position: relative;
    grid-area: marker;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid #e7eef5;
    background: #e7eef5;
}

.surat-progress-marker::before {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.surat-progress-step.is-done .surat-progress-marker {
    border-color: #1d66c2;
    background: #1d66c2;
}

.surat-progress-step.is-done .surat-progress-marker::before {
    content: '\2713';
    color: #ffffff;
}

.surat-progress-step.is-current .surat-progress-marker {
    border-color: #1d66c2;
    background: #ffffff;
}

.surat-progress-step.is-rejected .surat-progress-marker {
    border-color: #dc2626;
    background: #dc2626;
}

.surat-progress-step.is-rejected .surat-progress-marker::before {
    content: '\00d7';
    color: #ffffff;
}

html.theme-dark .surat-progress-track::before {
    background: #4b5563;
}

html.theme-dark .surat-progress-label {
    color: #e5e7eb;
}

html.theme-dark .surat-progress-step.is-done .surat-progress-label,
html.theme-dark .surat-progress-step.is-current .surat-progress-label {
    color: #93c5fd;
}

html.theme-dark .surat-progress-step.is-rejected .surat-progress-label,
html.theme-dark .surat-progress-summary.tone-danger {
    color: #fca5a5;
}

html.theme-dark .surat-progress-marker {
    background: #4b5563;
    border-color: #4b5563;
}

html.theme-dark .surat-progress-step.is-done .surat-progress-marker {
    background: #2563eb;
    border-color: #2563eb;
}

html.theme-dark .surat-progress-step.is-current .surat-progress-marker {
    background: #111827;
    border-color: #60a5fa;
}

html.theme-dark .surat-progress-step.is-rejected .surat-progress-marker,
html.theme-dark .surat-progress-fill.tone-danger {
    background: #ef4444;
    border-color: #ef4444;
}

@media (max-width: 1199px) {
    .sidebar {
        width: 288px;
    }

    .main-navbar {
        margin-left: 328px;
    }

    .main-content,
    .main-footer {
        margin-left: 328px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-shell-login {
        max-width: 430px;
    }

    .auth-showcase {
        min-height: auto;
    }

    .pegawai-table-fit,
    .table-page-fit {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991px) {
    body {
        padding: 0;
    }

    .sidebar {
        transform: translateX(calc(-100% - 28px));
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .app-overlay {
        opacity: 1;
        visibility: visible;
    }

    .main-navbar,
    .main-content,
    .main-footer {
        margin-left: 16px;
        margin-right: 16px;
    }

    .main-navbar {
        min-height: 78px;
        padding: 14px 18px;
    }

    .toggle-btn {
        display: inline-flex;
    }

    .main-content,
    .main-footer {
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: min(296px, calc(100vw - 32px));
    }

    .page-title {
        font-size: 24px;
    }

    .page-kicker {
        font-size: 10px;
    }

    .user-pill {
        padding: 0;
        border-radius: 0;
    }

    .user-pill-copy {
        display: none;
    }

    .card-header,
    .card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-card,
    .auth-showcase {
        padding: 24px;
        border-radius: 28px;
    }

    .auth-card-login {
        padding: 24px 22px 22px;
    }

    .auth-brand {
        align-items: flex-start;
    }

    .auth-brand-copy h1 {
        font-size: 30px;
    }

    .auth-highlight-grid {
        grid-template-columns: 1fr;
    }

    .settings-profile-row,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-photo-preview-wrap {
        justify-content: flex-start;
    }
}
