@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap');
        html, body {
            background-color: #0f172a !important;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #0f172a !important;
            color: #e2e8f0 !important;
        }

        /* Keep the app invisible until the session check decides which view to show. */
        body:not(.auth-ready) > :not(#loginOverlay) {
            visibility: hidden !important;
        }

        body:not(.auth-ready) > #loginOverlay {
            visibility: hidden !important;
        }

        body.auth-ready > :not(#loginOverlay),
        body.auth-ready > #loginOverlay:not(.hidden) {
            visibility: visible !important;
        }

        body.logging-out > :not(#loginOverlay),
        body.logging-out > #loginOverlay {
            visibility: hidden !important;
        }

        /* Match the manual check-in card to the standalone presensi form. */
        #modalAdminCheckin > div {
            width: min(100%, 34rem);
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            scrollbar-width: thin;
            scrollbar-color: #b78923 #eef3f1;
            padding: 1.25rem;
            background: rgba(255, 255, 255, 0.98) !important;
            border: 1px solid #d9e2df !important;
            border-radius: 18px !important;
            color: #20302d !important;
            box-shadow: 0 22px 55px rgba(11, 43, 38, 0.18) !important;
        }

        #modalAdminCheckin > div::-webkit-scrollbar {
            width: 6px;
        }

        #modalAdminCheckin > div::-webkit-scrollbar-track {
            margin: 0.8rem 0;
            background: #eef3f1;
            border-radius: 999px;
        }

        #modalAdminCheckin > div::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #d5a537, #9b741d);
            border: 1px solid #eef3f1;
            border-radius: 999px;
        }

        #modalAdminCheckin > div::-webkit-scrollbar-thumb:hover {
            background: #8d6b22;
        }

        #modalAdminCheckin #adminCheckinForm {
            display: grid;
            gap: 0.9rem;
        }

        #modalAdminCheckin #adminCheckinForm > div,
        #modalAdminCheckin #adminCheckinForm > .pt-2 {
            min-width: 0;
        }

        #modalAdminCheckin #adminCheckinForm > div:nth-of-type(3) {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }

        #modalAdminCheckin #adminCheckinForm input:not([type="hidden"]),
        #modalAdminCheckin #adminCheckinForm select {
            min-height: 42px;
            width: 100%;
            border-radius: 10px;
            padding: 0.65rem 0.75rem;
            font-size: 0.75rem;
            line-height: 1.2;
        }

        #modalAdminCheckin #adminCheckinForm label {
            display: block;
            margin-bottom: 0.35rem;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.06em;
        }

        #modalAdminCheckin #adminCheckinForm > .pt-2 {
            display: grid;
            grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
            gap: 0.65rem;
            padding-top: 0.2rem;
        }

        #modalAdminCheckin #adminCheckinForm > .pt-2 button {
            width: 100%;
            min-height: 42px;
            border-radius: 10px;
        }

        @media (max-width: 520px) {
            #modalAdminCheckin > div {
                width: 100%;
                padding: 1rem;
            }

            #modalAdminCheckin #adminCheckinForm > div:nth-of-type(3),
            #modalAdminCheckin #adminCheckinForm > .pt-2 {
                grid-template-columns: 1fr;
            }
        }

        #modalAdminCheckin h3 {
            color: #0b2b26 !important;
        }

        #modalAdminCheckin p,
        #modalAdminCheckin label {
            color: #64736f !important;
        }

        #modalAdminCheckin input:not([type="hidden"]),
        #modalAdminCheckin select {
            background: #f8fafc !important;
            border-color: #cbd8d4 !important;
            color: #20302d !important;
        }

        #modalAdminCheckin input:not([type="hidden"]):focus,
        #modalAdminCheckin select:focus {
            border-color: #d5a537 !important;
            box-shadow: 0 0 0 3px rgba(213, 165, 55, 0.17) !important;
            outline: none;
        }

        #modalAdminCheckin #admPihakContainer {
            background: #f8fafc !important;
            border-color: #cbd8d4 !important;
            display: grid;
            gap: 0.25rem;
            padding: 0.4rem !important;
            scrollbar-width: thin;
            scrollbar-color: #b78923 #eef3f1;
        }

        #modalAdminCheckin #admPihakContainer::-webkit-scrollbar {
            width: 5px;
        }

        #modalAdminCheckin #admPihakContainer::-webkit-scrollbar-track {
            margin: 0.35rem 0;
            background: #eef3f1;
            border-radius: 999px;
        }

        #modalAdminCheckin #admPihakContainer::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #d5a537, #9b741d);
            border: 1px solid #eef3f1;
            border-radius: 999px;
        }

        #modalAdminCheckin #admPihakContainer::-webkit-scrollbar-thumb:hover {
            background: #8d6b22;
        }

        #modalAdminCheckin #admPihakContainer label {
            display: flex;
            align-items: center;
            background: #ffffff !important;
            border-color: #d9e2df !important;
            min-height: 26px;
            height: 26px;
            margin: 0 !important;
            padding: 0.2rem 0.45rem !important;
            border-radius: 6px !important;
            letter-spacing: 0;
            transition: background-color 0.18s ease, border-color 0.18s ease;
        }

        #modalAdminCheckin #admPihakContainer label:hover {
            background: #fffaf0 !important;
            border-color: #ead59a !important;
        }

        #modalAdminCheckin #admPihakContainer input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            display: inline-grid;
            place-content: center;
            width: 0.78rem !important;
            min-width: 0.78rem !important;
            height: 0.78rem !important;
            min-height: 0.78rem !important;
            margin: 0 0.35rem 0 0;
            flex: 0 0 0.72rem;
            border: 1px solid #b7c5c0;
            border-radius: 2px;
            background: #ffffff !important;
            box-shadow: none !important;
            outline: none !important;
            padding: 0 !important;
        }

        #modalAdminCheckin #admPihakContainer input[type="checkbox"]::before {
            content: "";
            width: 0.38rem;
            height: 0.2rem;
            border-left: 1.5px solid #ffffff;
            border-bottom: 1.5px solid #ffffff;
            transform: rotate(-45deg) scale(0);
            transition: transform 0.12s ease;
        }

        #modalAdminCheckin #admPihakContainer input[type="checkbox"]:checked {
            border-color: #b78923;
            background: #b78923 !important;
        }

        #modalAdminCheckin #admPihakContainer input[type="checkbox"]:checked::before {
            transform: rotate(-45deg) scale(1);
        }

        #modalAdminCheckin #admPihakContainer input[type="checkbox"]:focus-visible {
            box-shadow: 0 0 0 2px rgba(213, 165, 55, 0.22) !important;
        }

        #modalAdminCheckin #admPihakContainer label span {
            color: #40514d !important;
            font-size: 0.58rem;
            font-weight: 650;
            line-height: 1.1;
            overflow-wrap: anywhere;
        }

        #modalAdminCheckin #admNoPerkaraList {
            background: #ffffff !important;
            border-color: #cbd8d4 !important;
            max-height: min(38vh, 260px);
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: thin;
            scrollbar-color: #b78923 #f1f5f3;
        }

        #modalAdminCheckin #admNoPerkaraList button:hover {
            background: #fffaf0 !important;
        }

        #modalAdminCheckin .case-change-action {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-top: 0.55rem;
            padding: 0.55rem 0.7rem;
            border: 1px solid #ead59a;
            border-radius: 0.75rem;
            background: #fffaf0;
            color: #64736f;
            font-size: 0.68rem;
            line-height: 1.3;
        }

        #modalAdminCheckin .case-change-action button {
            flex: 0 0 auto;
            min-height: 30px;
            padding: 0.38rem 0.65rem;
            border: 1px solid #d5a537;
            border-radius: 0.55rem;
            background: #ffffff;
            color: #7a5710;
            font-size: 0.68rem;
            font-weight: 800;
            cursor: pointer;
            transition: background-color 0.18s ease, transform 0.18s ease;
        }

        #modalAdminCheckin .case-change-action button:hover,
        #modalAdminCheckin .case-change-action button:focus-visible {
            background: #fef0c7;
            outline: none;
            transform: translateY(-1px);
        }

        @media (max-width: 420px) {
            #modalAdminCheckin .case-change-action {
                align-items: flex-start;
                flex-direction: column;
            }

            #modalAdminCheckin .case-change-action button {
                width: 100%;
            }
        }

        #modalAdminCheckin button[type="submit"] {
            background: linear-gradient(135deg, #d5a537, #b78923) !important;
            color: #0b2b26 !important;
            border: 1px solid rgba(255, 225, 139, 0.5) !important;
            box-shadow: 0 10px 22px rgba(183, 137, 35, 0.2) !important;
        }

        #modalAdminCheckin button[type="button"]:not([onclick="closeCheckinModal()"]):not([onclick="unlockAdminSippFields()"]),
        #modalAdminCheckin button[onclick="closeCheckinModal()"] {
            color: #ffffff !important;
        }

        #modalAdminCheckin button[onclick="closeCheckinModal()"] {
            color: #64736f !important;
        }

        #modalAdminCheckin .text-slate-200,
        #modalAdminCheckin .text-slate-300,
        #modalAdminCheckin .text-slate-400,
        #modalAdminCheckin .text-slate-500,
        #modalAdminCheckin .text-amber-400,
        #modalAdminCheckin .text-amber-300,
        #modalAdminCheckin .text-white {
            color: #64736f !important;
        }

        #modalAdminCheckin h3,
        #modalAdminCheckin .text-slate-900,
        #modalAdminCheckin .text-slate-800 {
            color: #0b2b26 !important;
        }

        #actionNoticeModal {
            background: rgba(3, 15, 13, 0.68);
            backdrop-filter: blur(10px);
        }

        #dashboardCallRoomModal {
            background: rgba(15, 23, 42, 0.4) !important;
            backdrop-filter: blur(14px);
            color: #1f2937 !important;
        }

        #dashboardCallRoomModal > div {
            width: min(92vw, 480px);
        }

        #dashboardCallRoomModal .dashboard-call-room-card {
            border: 1px solid rgba(226, 232, 240, 0.8);
            border-radius: 16px;
            background: #ffffff;
            color: #1f2937;
            box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
            padding: 1.75rem;
        }

        #dashboardCallRoomModal .dashboard-call-room-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding-bottom: 1.1rem;
            border-bottom: 1px solid #edf1f0;
        }

        #dashboardCallRoomModal .dashboard-call-room-kicker {
            display: inline-flex;
            padding: 0.3rem 0.5rem;
            border: 1px solid rgba(167, 243, 208, 0.6);
            border-radius: 999px;
            color: #047857 !important;
            background: #ecfdf5;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 0.75rem;
            font-weight: 600 !important;
            letter-spacing: 0.1em;
        }

        #dashboardCallRoomModal .dashboard-call-room-header h2 {
            margin-top: 0.35rem;
            color: #0b2b26 !important;
            font-size: 1.25rem;
            font-weight: 700 !important;
            line-height: 1.25;
        }

        #dashboardCallRoomModal .dashboard-call-room-header p:last-child {
            margin-top: 0.45rem;
            color: #64736f !important;
            font-size: 0.875rem;
        }

        #dashboardCallRoomModal .dashboard-call-room-close {
            display: grid;
            place-items: center;
            width: 2rem;
            height: 2rem;
            flex: 0 0 2rem;
            border: 1px solid #d9e2df !important;
            border-radius: 8px;
            background: #ffffff !important;
            color: #64736f !important;
            cursor: pointer;
            transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
        }

        #dashboardCallRoomModal .dashboard-call-room-close:hover,
        #dashboardCallRoomModal .dashboard-call-room-close:focus-visible {
            border-color: #b7c5c0 !important;
            background: #f1f5f3 !important;
            color: #0b2b26 !important;
            outline: none;
        }

        #dashboardCallRoomModal p,
        #dashboardCallRoomModal button {
            opacity: 1 !important;
            font-weight: 400 !important;
        }

        #dashboardCallRoomModal h2 { opacity: 1 !important; font-weight: 700 !important; }

        #dashboardCallRoomModal p:first-child {
            color: #047857 !important;
            font-size: 0.68rem;
            letter-spacing: 0.12em;
        }

        #dashboardCallRoomModal h2 {
            color: #0b2b26 !important;
            font-size: 1.05rem;
        }

        #dashboardCallRoomModal p {
            color: #64736f !important;
        }

        #dashboardCallRoomModal .call-room-option {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            width: 100%;
            min-height: 3.5rem;
            margin-top: 0.65rem;
            padding: 0.65rem 0.85rem;
            border: 1px solid rgba(226, 232, 240, 0.8) !important;
            border-radius: 12px;
            background: rgba(248, 250, 252, 0.5) !important;
            color: #334155 !important;
            font-size: 0.875rem;
            font-weight: 500 !important;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        #dashboardCallRoomModal .call-room-option:hover,
        #dashboardCallRoomModal .call-room-option:focus-visible {
            transform: translateY(-1px);
            outline: none;
            border-color: #10b981 !important;
            background: #ffffff !important;
            box-shadow: 0 6px 16px rgba(15, 118, 110, 0.12);
        }

        #dashboardCallRoomModal .call-room-option.is-selected {
            border: 2px solid #059669 !important;
            background: rgba(236, 253, 245, 0.3) !important;
            color: #065f46 !important;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
        }

        #dashboardCallRoomModal .call-room-option-icon {
            display: grid;
            place-items: center;
            width: 1.8rem;
            height: 1.8rem;
            flex: 0 0 1.8rem;
            border-radius: 8px;
            color: #0b2b26;
            background: #e7f1ed;
        }

        #dashboardCallRoomModal .call-room-option-arrow {
            margin-left: auto;
            color: #9aa9a4;
            font-size: 0.68rem;
            transition: transform 0.2s ease;
        }

        #dashboardCallRoomModal .call-room-option-check { display: none; margin-left: auto; color: #059669; }
        #dashboardCallRoomModal .call-room-option.is-selected .call-room-option-check { display: block; }
        #dashboardCallRoomModal .call-room-option.is-selected .call-room-option-arrow { display: none; }

        #dashboardCallRoomModal .call-room-option:hover .call-room-option-arrow,
        #dashboardCallRoomModal .call-room-option:focus-visible .call-room-option-arrow { transform: translateX(0.25rem); }

        #dashboardCallRoomModal .dashboard-call-room-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.55rem;
            margin-top: 1.25rem;
            padding-top: 1rem;
            border-top: 1px solid #edf1f0;
        }

        #dashboardCallRoomModal .dashboard-call-room-cancel,
        #dashboardCallRoomModal .dashboard-call-room-confirm {
            min-height: 2.5rem;
            padding: 0.65rem 0.9rem;
            border-radius: 9px;
            cursor: pointer;
        }

        #dashboardCallRoomModal .dashboard-call-room-cancel {
            border: 0 !important;
            background: #ffffff !important;
            color: #475569 !important;
            font-size: 0.875rem;
            font-weight: 500 !important;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        #dashboardCallRoomModal .dashboard-call-room-cancel:hover { background: #f1f5f9 !important; color: #334155 !important; }

        #dashboardCallRoomModal .dashboard-call-room-confirm {
            border: 1px solid #059669 !important;
            background: #059669 !important;
            color: #ffffff !important;
            font-size: 0.875rem;
            font-weight: 600 !important;
            box-shadow: 0 5px 12px rgba(5, 150, 105, 0.3);
            transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }

        #dashboardCallRoomModal .dashboard-call-room-confirm:not(:disabled):hover { background: #047857 !important; color: #ffffff !important; box-shadow: 0 8px 18px rgba(5, 150, 105, 0.25); }
        #dashboardCallRoomModal .dashboard-call-room-confirm:not(:disabled):active { transform: scale(0.95); }

        #dashboardCallRoomModal #confirmDashboardCallButton {
            border: 1px solid #d5a537 !important;
            background: #d5a537 !important;
            color: #17352e !important;
        }

        #dashboardCallRoomModal #confirmDashboardCallButton:disabled {
            background: #eadfca !important;
            color: #8b8170 !important;
            border-color: #e1d8c8 !important;
        }

        #dashboardCallRoomModal button[onclick="closeCallRoomModal()"] {
            border: 1px solid #d9e2df !important;
            background: #ffffff !important;
            color: #40514d !important;
        }

        #actionNoticeModal > div {
            width: min(92vw, 360px);
            border: 1px solid rgba(213, 165, 55, 0.35);
            border-radius: 16px;
            background: #ffffff;
            color: #20302d;
            box-shadow: 0 18px 42px rgba(3, 25, 21, 0.24);
        }

        #actionNoticeModal.notice-danger > div {
            width: min(92vw, 410px);
            border: 1px solid #f0c8c5;
            border-top: 4px solid #b42318;
            border-radius: 18px;
            box-shadow: 0 26px 70px rgba(3, 25, 21, 0.28), 0 0 0 6px rgba(180, 35, 24, 0.06);
            animation: dangerNoticeReveal 0.22s ease-out both;
        }

        #actionNoticeModal.notice-danger .notice-icon {
            width: 44px;
            height: 44px;
            border: 1px solid #f3c2bd;
            border-radius: 50%;
            background: #fff0ef;
            color: #b42318;
            box-shadow: inset 0 0 0 5px #fff8f7;
        }

        #actionNoticeModal .reset-verification-panel {
            display: grid;
            gap: 0.7rem;
            margin-top: 1.1rem;
            padding: 0.9rem;
            border: 1px solid #eadedc;
            border-radius: 12px;
            background: #fffaf9;
        }

        #actionNoticeModal .reset-verification-panel.hidden {
            display: none;
        }

        #actionNoticeModal .reset-verification-panel label {
            display: grid;
            gap: 0.35rem;
            color: #64736f;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        #actionNoticeModal .reset-verification-panel input {
            min-height: 40px;
            width: 100%;
            border: 1px solid #d9e2df;
            border-radius: 9px;
            background: #ffffff;
            color: #20302d;
            font-size: 0.76rem;
            font-weight: 700;
            outline: none;
            padding: 0.55rem 0.7rem;
        }

        #actionNoticeModal .reset-verification-panel input:focus {
            border-color: #b42318;
            box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
        }

        #actionNoticeModal #resetVerificationMessage {
            color: #b42318;
            font-size: 0.68rem;
            font-weight: 700;
            line-height: 1.4;
        }

        #actionNoticeModal.notice-danger #noticeConfirm:disabled {
            cursor: not-allowed;
            opacity: 0.45;
            transform: none;
            box-shadow: none;
        }

        #actionNoticeModal.notice-danger #noticeTitle {
            font-size: 1rem;
            letter-spacing: -0.01em;
        }

        #actionNoticeModal.notice-danger #noticeMessage {
            line-height: 1.6;
        }

        #actionNoticeModal.notice-danger #noticeConfirm {
            border: 1px solid #9f2118;
            border-radius: 10px;
            background: #b42318;
            box-shadow: 0 7px 16px rgba(180, 35, 24, 0.2);
            transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
        }

        #actionNoticeModal.notice-danger #noticeConfirm:hover,
        #actionNoticeModal.notice-danger #noticeConfirm:focus-visible {
            background: #8f1d14;
            box-shadow: 0 9px 20px rgba(180, 35, 24, 0.28);
            outline: none;
            transform: translateY(-1px);
        }

        #actionNoticeModal.notice-danger #noticeCancel {
            border-color: #d9e2df;
            border-radius: 10px;
            transition: background-color 0.18s ease, border-color 0.18s ease;
        }

        #actionNoticeModal.notice-danger #noticeCancel:hover,
        #actionNoticeModal.notice-danger #noticeCancel:focus-visible {
            border-color: #b7c9c3;
            background: #f5f8f7;
            outline: none;
        }

        @keyframes dangerNoticeReveal {
            from { opacity: 0; transform: translateY(8px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @media (prefers-reduced-motion: reduce) {
            #actionNoticeModal.notice-danger > div {
                animation: none;
            }
        }

        #actionNoticeModal > div.p-5 {
            padding: 1.1rem !important;
        }

        #actionNoticeModal .notice-icon {
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 11px;
            background: #fff5d8;
            color: #a87512;
        }

        #actionNoticeModal.notice-danger .notice-icon {
            background: #fff0ef;
            color: #b33b32;
        }

        #actionNoticeModal #noticeTitle {
            color: #0b2b26 !important;
        }

        #actionNoticeModal #noticeMessage,
        #actionNoticeModal #noticeCancel {
            color: #64736f !important;
        }

        #actionNoticeModal #noticeConfirm {
            color: #ffffff !important;
        }

        #sosOperatorModal { background: rgba(35, 8, 7, 0.78); backdrop-filter: blur(12px); }
        #sosOperatorModal .sos-operator-card { width: min(92vw, 430px); border: 1px solid #f0a39b; border-top: 5px solid #b42318; border-radius: 20px; background: #ffffff; box-shadow: 0 28px 80px rgba(72, 24, 20, 0.38); animation: sosOperatorReveal 0.24s ease-out both; }
        #sosOperatorModal .sos-operator-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #ffffff; background: #b42318; animation: sosOperatorPulse 1s ease-in-out infinite; }
        #sosOperatorModal .sos-operator-card h2 { color: #7f241d; font-size: 1.15rem; font-weight: 900; }
        #sosOperatorModal .sos-operator-card p { color: #64736f; font-size: 0.78rem; line-height: 1.55; }
        #sosOperatorModal #sosAcknowledgeButton { min-height: 44px; border-radius: 10px; background: #b42318; color: #ffffff; font-size: 0.75rem; font-weight: 900; }
        @keyframes sosOperatorReveal { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes sosOperatorPulse { 50% { box-shadow: 0 0 0 10px rgba(180, 35, 24, 0.12); } }
        @media (prefers-reduced-motion: reduce) { #sosOperatorModal .sos-operator-card, #sosOperatorModal .sos-operator-icon { animation: none; } }

        #attendanceDetailModal .attendance-detail-card,
        #attendanceDetailModal .attendance-detail-card dd,
        #attendanceDetailModal .attendance-detail-card p {
            color: #20302d !important;
        }

        #attendanceDetailModal .attendance-detail-fields label {
            color: #64736f !important;
        }

        #attendanceDetailModal .detail-edit-input {
            min-height: 30px;
            border: 1px solid transparent;
            border-radius: 6px;
            background: transparent !important;
            color: #20302d !important;
            outline: none;
        }

        #attendanceDetailModal .detail-edit-input.is-editing {
            border-color: #cbd8d4;
            background: #f8fafc !important;
            padding: 0.35rem 0.5rem;
        }

        #attendanceDetailModal .detail-edit-input.is-editing:focus {
            border-color: #b78923;
            box-shadow: 0 0 0 3px rgba(183, 137, 35, 0.14);
        }

        #attendanceDetailModal {
            background: rgba(3, 20, 17, 0.76) !important;
            backdrop-filter: blur(12px);
        }

        #attendanceDetailModal .attendance-detail-card {
            position: relative;
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
            border: 1px solid rgba(213, 165, 55, 0.45) !important;
            border-radius: 20px !important;
            box-shadow: 0 28px 70px rgba(2, 24, 19, 0.3), 0 8px 24px rgba(2, 24, 19, 0.14) !important;
            animation: attendanceDetailReveal 0.24s ease-out both;
        }

        #attendanceDetailModal .attendance-detail-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto;
            height: 3px;
            background: linear-gradient(90deg, #d5a537, #f4d27b, #b78923);
            z-index: 2;
        }

        #attendanceDetailModal .attendance-detail-card > div:first-child {
            padding: 0.9rem 1.15rem !important;
            background: linear-gradient(135deg, #063d31 0%, #0b2b26 58%, #08231f 100%) !important;
        }

        #attendanceDetailModal .attendance-detail-card > div:first-child p {
            color: #f1c75b !important;
            font-size: 0.62rem;
            letter-spacing: 0.2em;
        }

        #attendanceDetailModal .attendance-detail-card > div:first-child h2 {
            color: #ffffff !important;
            letter-spacing: -0.01em;
        }

        #attendanceDetailModal .attendance-detail-card > div:first-child button {
            color: #dce9e5 !important;
            border-radius: 8px;
            transition: color 0.18s ease, background-color 0.18s ease;
        }

        #attendanceDetailModal .attendance-detail-card > div:first-child button:hover {
            color: #f1c75b !important;
            background: rgba(255, 255, 255, 0.08);
        }

        #attendanceDetailModal .attendance-detail-card > div:nth-child(2) {
            padding: 0.95rem 1.15rem !important;
            background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%) !important;
        }

        #attendanceDetailModal .attendance-detail-fields {
            column-gap: 1.1rem;
            row-gap: 0.6rem;
        }

        #attendanceDetailModal .attendance-detail-fields label {
            display: block;
            color: #71817c !important;
            font-size: 0.62rem;
            letter-spacing: 0.08em;
        }

        #attendanceDetailModal .attendance-detail-fields input,
        #attendanceDetailModal .attendance-detail-fields p {
            font-size: 0.74rem;
            line-height: 1.45;
        }

        #attendanceDetailModal .attendance-detail-fields input {
            font-weight: 600;
        }

        #attendanceDetailModal .attendance-detail-fields > div {
            min-width: 0;
            padding-bottom: 0.1rem;
        }

        #attendanceDetailModal .attendance-detail-fields > div:nth-child(4),
        #attendanceDetailModal .attendance-detail-fields > div:nth-child(9) {
            padding-top: 0.55rem;
            border-top: 1px solid #edf2f0;
        }

        #attendanceDetailModal #attendanceDetailPhoto,
        #attendanceDetailModal #attendanceDetailPhotoEmpty {
            height: 6rem;
            width: 4.25rem;
            border-color: #dbe7e2 !important;
            border-radius: 12px !important;
            box-shadow: 0 5px 14px rgba(11, 43, 38, 0.08);
        }

        #attendanceDetailModal .attendance-identity-viewer {
            width: 5.5rem;
        }

        #attendanceDetailModal .attendance-identity-viewport {
            display: flex;
            width: 5.5rem;
            height: 7.25rem;
            overflow: auto;
            align-items: center;
            justify-content: center;
            padding: 0;
            cursor: zoom-in;
            border: 1px solid #dbe7e2;
            border-radius: 12px;
            background: #f8fafc;
            box-shadow: 0 5px 14px rgba(11, 43, 38, 0.08);
        }

        #attendanceDetailModal #attendanceDetailIdentityPhoto {
            display: block;
            width: 100%;
            height: 100%;
            flex: 0 0 auto;
            object-fit: contain;
        }

        .operator-identity-preview-modal {
            position: fixed;
            inset: 0;
            z-index: 90;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            background: rgba(2, 6, 23, 0.82);
            backdrop-filter: blur(5px);
        }

        .operator-identity-preview-card {
            display: flex;
            flex-direction: column;
            width: min(92vw, 760px);
            max-height: 90vh;
            overflow: hidden;
            border: 1px solid rgba(245, 158, 11, 0.55);
            border-radius: 1rem;
            background: #fff;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
        }

        .operator-identity-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.8rem 1rem;
            color: #fff;
            background: #064e3b;
        }

        .operator-identity-preview-header h2 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 800;
        }

        .operator-identity-preview-header button {
            color: #d1fae5;
            font-size: 1.7rem;
            line-height: 1;
        }

        .operator-identity-preview-stage {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 18rem;
            max-height: calc(90vh - 4rem);
            overflow: auto;
            padding: 1rem;
            background: #0f172a;
        }

        .operator-identity-preview-stage img {
            display: block;
            width: auto;
            max-width: 100%;
            height: auto;
            max-height: calc(90vh - 6rem);
            object-fit: contain;
        }

        #attendanceDetailModal .attendance-detail-card > div:last-child {
            gap: 0.55rem;
            padding: 0.7rem 1.15rem !important;
            background: #f7faf9 !important;
        }

        #attendanceDetailModal #attendanceDetailClose,
        #attendanceDetailModal #attendanceDetailCancel {
            border-color: #d5a537 !important;
            color: #52635e !important;
            background: #ffffff !important;
        }

        #attendanceDetailModal #attendanceDetailEdit {
            background: linear-gradient(135deg, #e5b94f, #c99527) !important;
            color: #0b2b26 !important;
            box-shadow: 0 5px 12px rgba(183, 137, 35, 0.2);
        }

        #attendanceDetailModal #attendanceDetailSave {
            background: linear-gradient(135deg, #176b5b, #0b2b26) !important;
        }

        #attendanceDetailModal #attendanceDetailDelete {
            box-shadow: 0 5px 12px rgba(166, 61, 50, 0.16);
        }

        @keyframes attendanceDetailReveal {
            from { opacity: 0; transform: translateY(8px) scale(0.985); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @media (prefers-reduced-motion: reduce) {
            #attendanceDetailModal .attendance-detail-card {
                animation: none;
            }
        }

        header,
        aside,
        footer,
        .bg-slate-900, 
        .bg-slate-950,
        .bg-slate-800,
        .bg-slate-900\/80,
        .bg-slate-950\/80 {
            background: linear-gradient(135deg, #0f172a 0%, #0d1423 100%) !important;
            border-color: rgba(245, 158, 11, 0.28) !important;
            color: #ffffff !important;
        }

        /* Modern Card Styling */
        .stat-card {
            background: linear-gradient(135deg, #1a2332 0%, #151e2e 100%);
            border: 1px solid rgba(59, 130, 246, 0.15);
            border-radius: 16px;
            padding: 1.5rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: "";
            position: absolute;
            top: 0;
            right: -50px;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
            border-radius: 50%;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.3);
            background: linear-gradient(135deg, #1f2937 0%, #1a2332 100%);
        }

        .stat-card-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            margin-bottom: 0.75rem;
        }

        .stat-card-value {
            font-size: 1.875rem;
            font-weight: 900;
            color: #60a5fa;
        }

        .stat-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        /* Modern Sidebar */
        .sidebar-nav {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-nav-item {
            border-radius: 12px;
            padding: 0.875rem 1rem;
            margin-bottom: 0.5rem;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .sidebar-nav-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .sidebar-nav-item.active {
            background: linear-gradient(135deg, #f4c96d 0%, #d4a72c 100%);
            color: #1e3a8a !important;
            font-weight: 700;
            box-shadow: 0 8px 16px rgba(244, 201, 109, 0.3);
        }

        /* Modern Buttons */
        .btn-modern {
            border-radius: 10px;
            padding: 0.625rem 1rem;
            font-weight: 600;
            font-size: 0.875rem;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .btn-modern:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        .btn-primary {
            background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
        }

        /* Modern Input Fields */
        .input-modern {
            border-radius: 10px;
            padding: 0.625rem 0.875rem;
            border: 1px solid rgba(59, 130, 246, 0.25);
            font-size: 0.875rem;
            transition: all 0.2s ease;
            background: #1a2332;
            color: #e2e8f0;
        }

        .input-modern:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        /* Enhanced Animations */
        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .tab-content {
            animation: fadeIn 0.3s ease-in-out;
        }

        .text-slate-300,
        .text-slate-400,
        .text-slate-500,
        .text-slate-700,
        .text-slate-800,
        .text-slate-900 {
            color: #e2e8f0 !important;
        }

        .bg-amber-500,
        .bg-amber-400,
        .bg-amber-100,
        .text-amber-400,
        .text-amber-300,
        .text-amber-200 {
            color: #fbbf24 !important;
        }

        .bg-amber-500,
        .bg-amber-400 {
            background: linear-gradient(135deg, #d4a72c 0%, #f4c96d 100%) !important;
            color: #0b1d3a !important;
        }

        .nav-link,
        .nav-link:hover,
        button,
        .status-chip {
            border-color: rgba(245, 158, 11, 0.38) !important;
        }

        .sidebar-collapsed {
            transform: translateX(-100%) !important;
        }

        .login-overlay {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background:
                linear-gradient(90deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.62)),
                url('/silapse/background_halaman.png?v=20260818') center center / cover no-repeat fixed !important;
            overflow: hidden;
        }

        .login-overlay::before,
        .login-overlay::after {
            content: "";
            position: absolute;
            inset: -10% auto auto -10%;
            width: 40rem;
            height: 40rem;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.02) 45%, transparent 70%);
            animation: floatGlow 18s ease-in-out infinite alternate;
        }

        .login-card {
            position: relative;
            z-index: 1;
            width: min(100%, 460px);
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(255,255,255,0.72);
            box-shadow: 0 30px 85px rgba(2, 6, 23, 0.42), 0 10px 28px rgba(2, 6, 23, 0.12);
            border-radius: 18px;
            overflow: hidden;
            animation: loginCardReveal 0.55s ease-out both;
        }

        @keyframes loginCardReveal {
            from {
                opacity: 0;
                transform: translateX(18px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .login-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto;
            height: 4px;
            background: linear-gradient(90deg, #8b1e1e, #f59e0b 52%, #0f766e);
            pointer-events: none;
        }

        .login-panel {
            position: relative;
            z-index: 1;
            display: block !important;
        }

        .login-brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding-bottom: 0.9rem;
            margin-bottom: 1.1rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .login-brand-mark {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            border-radius: 12px;
            background: #fffaf0;
            border: 0;
            box-shadow: none;
            overflow: hidden;
        }

        .login-brand-mark img {
            width: 78%;
            height: 78%;
            object-fit: contain;
        }

        .login-brand-name {
            color: #172033;
            font-size: 0.72rem;
            font-weight: 800;
            line-height: 1.25;
            letter-spacing: 0.06em;
        }

        .login-brand-subtitle {
            margin-top: 0.15rem;
            color: #64748b;
            font-size: 0.62rem;
            font-weight: 600;
            line-height: 1.25;
        }

        .login-side {
            display: none !important;
        }

        .pn-logo {
            width: 72px;
            height: 72px;
            border-radius: 18px;
            background: #fffaf0;
            box-shadow: 0 12px 24px rgba(245, 158, 11, 0.16);
            border: 1px solid rgba(245, 158, 11, 0.3);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-heading-line {
            display: block;
            white-space: nowrap;
        }

        .login-side h2 .login-heading-line {
            display: block !important;
            width: 100%;
            white-space: nowrap !important;
        }

        .login-side h2 .login-heading-line + .login-heading-line {
            margin-top: 0.16em;
        }

        .pn-logo img {
            width: 76%;
            height: 76%;
            object-fit: contain;
            filter: drop-shadow(0 8px 16px rgba(128, 0, 0, 0.12));
        }

        .login-side::before,
        .login-side::after {
            content: "";
            position: absolute;
            border-radius: 9999px;
            border: 1px solid rgba(245, 158, 11, 0.32);
            animation: pulseBorder 9s ease-in-out infinite alternate;
        }

        .login-side::before {
            width: 220px;
            height: 220px;
            top: -60px;
            right: -60px;
        }

        .login-side::after {
            width: 160px;
            height: 160px;
            bottom: -48px;
            left: -46px;
            animation-delay: 1.2s;
        }

        @keyframes pulseBorder {
            0% { transform: scale(1); opacity: 0.7; }
            100% { transform: scale(1.15); opacity: 1; }
        }

        .court-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
            background-size: 22px 22px;
        }

        .login-input {
            background: #f8fafc;
            border: 1px solid #d8e0ea;
            color: #172033 !important;
            caret-color: #b45309;
            font-weight: 600;
            box-shadow: inset 0 1px 2px rgba(15,23,42,0.025);
            transition: all 0.2s ease;
        }

        .login-input:focus {
            background: #ffffff;
            border-color: #b45309;
            box-shadow: 0 0 0 4px rgba(245,158,11,0.14);
            outline: none;
        }

        .login-btn {
            color: #172033 !important;
            background: linear-gradient(135deg, #d18b16 0%, #f2b544 52%, #f7c85b 100%);
            box-shadow: 0 12px 26px rgba(180, 113, 13, 0.2);
            transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        }

        .login-btn:hover {
            transform: translateY(-1px);
            background: linear-gradient(135deg, #c47c0d 0%, #e9a52f 52%, #f4bb42 100%);
            box-shadow: 0 16px 34px rgba(180, 113, 13, 0.32);
            filter: saturate(1.08);
        }

        .login-btn:focus-visible {
            outline: none;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 12px 26px rgba(180, 113, 13, 0.24);
        }

        .login-btn:active {
            transform: translateY(0);
            box-shadow: 0 7px 16px rgba(180, 113, 13, 0.22);
        }

        .login-form-panel {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        }

        .login-form-panel > div {
            width: min(100%, 370px);
        }

        .login-form {
            padding-top: 0.25rem;
        }

        .login-field {
            position: relative;
        }

        .login-field .login-input {
            padding-left: 2.85rem;
        }

        .login-field-icon {
            position: absolute;
            bottom: 0.95rem;
            left: 1rem;
            z-index: 1;
            color: #94a3b8;
            font-size: 0.82rem;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        .login-field:focus-within .login-field-icon {
            color: #b45309;
        }

        .login-form-panel .text-slate-900 {
            color: #172033 !important;
        }

        .login-form-panel .text-slate-500 {
            color: #64748b !important;
        }

        .login-form-panel .text-slate-600 {
            color: #475569 !important;
        }

        .login-form-panel .text-slate-700 {
            color: #334155 !important;
        }

        .login-form-panel input::placeholder {
            color: #94a3b8;
            opacity: 1;
        }

        .login-password-wrap {
            position: relative;
        }

        .login-password-wrap .login-input {
            padding-left: 2.85rem;
            padding-right: 3.25rem;
        }

        .password-toggle {
            position: absolute;
            top: calc(50% + 0.7rem);
            right: 0.7rem;
            display: none;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            color: #64748b;
            border: 0;
            border-radius: 0.65rem;
            background: transparent;
            transform: translateY(-50%);
            cursor: pointer;
            transition: color 0.2s ease, background-color 0.2s ease;
            display: inline-flex;
        }

        .password-toggle:hover,
        .password-toggle:focus-visible {
            color: #92400e;
            background: #fff7ed;
            outline: none;
        }

        .login-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-top: -0.35rem;
        }

        .remember-option {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            color: #64748b;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
        }

        .remember-option input {
            width: 0.95rem;
            height: 0.95rem;
            accent-color: #d18b16;
        }

        .forgot-link {
            color: #9a6410;
            font-size: 0.72rem;
            font-weight: 800;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .forgot-link:hover,
        .forgot-link:focus-visible {
            color: #7c4a03;
            text-decoration: underline;
            outline: none;
        }

        .forgot-password-overlay {
            position: fixed;
            inset: 0;
            z-index: 60;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background: rgba(2, 6, 23, 0.68);
            backdrop-filter: blur(10px);
        }

        .forgot-password-card {
            width: min(100%, 420px);
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.78);
            border-radius: 22px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            box-shadow: 0 30px 90px rgba(2, 6, 23, 0.42);
            animation: loginCardReveal 0.35s ease-out both;
        }

        .forgot-password-header {
            padding: 1rem 1.25rem;
            color: #ffffff;
            background: linear-gradient(135deg, #172033 0%, #26354b 100%);
            border-bottom: 3px solid #e3a72d;
        }

        .forgot-password-body {
            padding: 1.15rem 1.25rem 1.25rem;
        }

        .forgot-password-intro {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            margin-bottom: 1rem;
            color: #64748b;
            font-size: 0.72rem;
            line-height: 1.45;
        }

        .forgot-password-intro i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            flex: 0 0 auto;
            border-radius: 0.7rem;
            color: #9a6410;
            background: #fff7ed;
            border: 1px solid #fed7aa;
        }

        .forgot-password-body .login-label {
            margin-bottom: 0.4rem;
        }

        .forgot-password-body .login-input {
            min-height: 44px;
        }

        .forgot-password-body .login-input {
            width: 100%;
        }

        .forgot-password-message {
            margin-bottom: 1rem;
            padding: 0.75rem 0.9rem;
            border-radius: 0.75rem;
            font-size: 0.75rem;
            font-weight: 700;
        }

        @media (max-width: 420px) {
            .login-options {
                align-items: flex-start;
                flex-direction: column;
                gap: 0.65rem;
            }

            .forgot-password-body {
                padding: 1.15rem;
            }
        }

        .login-form-panel .login-heading {
            color: #172033;
            font-size: clamp(1.7rem, 3vw, 2rem);
            font-weight: 800;
            line-height: 1.12;
            letter-spacing: -0.02em;
        }

        .login-form-panel .login-description {
            color: #64748b;
            font-size: 0.82rem;
            line-height: 1.6;
        }

        .login-form-panel .login-label {
            color: #475569;
            font-size: 0.66rem;
            font-weight: 800;
            letter-spacing: 0.12em;
        }

        .login-form-panel .login-btn {
            min-height: 48px;
            letter-spacing: 0.08em;
        }

        .login-security-note {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            margin-top: 1.15rem;
            color: #94a3b8;
            font-size: 0.65rem;
            font-weight: 600;
        }

        .login-security-note i {
            color: #0f766e;
        }

        @media (prefers-reduced-motion: reduce) {
            .login-card {
                animation: none;
            }
        }

        @media (max-width: 480px) {
            .login-overlay {
                padding: 0.75rem;
                justify-content: center;
                background:
                    linear-gradient(rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.62)),
                    none;
            }

            .login-card {
                border-radius: 20px;
            }
        }

        .status-chip {
            letter-spacing: 0.12em;
        }
            /* Dashboard theme: deep green, gold, and light gray */
            html,
            body {
                background: #eef1f0 !important;
            }

            body {
                color: #20302d !important;
            }

            header,
            aside,
            footer,
            .bg-slate-900,
            .bg-slate-950,
            .bg-slate-800,
            .bg-slate-900\/80,
            .bg-slate-950\/80 {
                background: #0b2b26 !important;
                border-color: rgba(213, 165, 55, 0.34) !important;
                color: #f8faf9 !important;
            }

            main[style*="background"] {
                background: #eef1f0 !important;
            }

            .stat-card,
            main .rounded-2xl[style*="background: #1a2332"],
            main .bg-slate-900\/80,
            main .bg-slate-950\/80 {
                background: #ffffff !important;
                border-color: #d9e2df !important;
                box-shadow: 0 8px 24px rgba(11, 43, 38, 0.08) !important;
            }

            .stat-card:hover {
                background: #fbfcfb !important;
                border-color: rgba(183, 137, 35, 0.55) !important;
                box-shadow: 0 14px 28px rgba(11, 43, 38, 0.13) !important;
            }

            .stat-card-title {
                color: #64736f !important;
            }

            .stat-card-value {
                color: #0b2b26 !important;
            }

            .sidebar-nav-item {
                color: #dbe8e4 !important;
            }

            .sidebar-nav-item:hover {
                background: rgba(255, 255, 255, 0.1) !important;
                color: #ffffff !important;
            }

            .sidebar-nav-item.active {
                background: linear-gradient(135deg, #e5b94f 0%, #c99527 100%) !important;
                color: #0b2b26 !important;
                box-shadow: 0 8px 18px rgba(201, 149, 39, 0.24) !important;
            }

            .btn-primary,
            main .bg-blue-600 {
                background: #0b2b26 !important;
                color: #ffffff !important;
            }

            .btn-primary:hover,
            main .bg-blue-600:hover {
                background: #12473d !important;
            }

            .input-modern {
                background: #ffffff !important;
                border-color: #cbd8d4 !important;
                color: #20302d !important;
            }

            .input-modern:focus {
                border-color: #b78923 !important;
                box-shadow: 0 0 0 3px rgba(183, 137, 35, 0.16) !important;
            }

            main table {
                color: #30413d !important;
            }

            main table thead,
            main table thead tr {
                background: #0b2b26 !important;
                color: #f1c75b !important;
            }

            main table tbody tr {
                border-color: #e1e8e5 !important;
            }

            main table tbody tr:hover {
                background: #f4f7f6 !important;
            }

            main .text-slate-300,
            main .text-slate-400,
            main .text-slate-500,
            main .text-slate-600,
            main .text-slate-700,
            main .text-slate-800,
            main .text-slate-900 {
                color: #40514d !important;
            }

            main .text-slate-200,
            main .text-white {
                color: #20302d !important;
            }

            main .text-emerald-400,
            main .text-emerald-300 {
                color: #16705d !important;
            }

            main .text-blue-400,
            main .text-blue-300 {
                color: #176b68 !important;
            }

            main .text-rose-500,
            main .text-rose-400 {
                color: #b42318 !important;
            }

            main input:not(.login-input),
            main select {
                background: #ffffff !important;
                color: #20302d !important;
                border-color: #cbd8d4 !important;
            }

            main input:not(.login-input)::placeholder {
                color: #82908c !important;
                opacity: 1;
            }

            main input:not(.login-input):focus,
            main select:focus {
                border-color: #b78923 !important;
                box-shadow: 0 0 0 3px rgba(183, 137, 35, 0.16) !important;
                outline: none;
            }

            main .bg-slate-950,
            main .bg-slate-800 {
                background: #f5f8f7 !important;
                color: #20302d !important;
            }

            main .text-slate-500 {
                color: #64736f !important;
            }

            main .border-slate-700,
            main .border-slate-800 {
                border-color: #d9e2df !important;
            }

            main .bg-amber-500,
            main .bg-amber-400 {
                background: linear-gradient(135deg, #e5b94f 0%, #c99527 100%) !important;
                color: #0b2b26 !important;
            }

            main .bg-amber-500:hover,
            main .bg-amber-400:hover {
                background: linear-gradient(135deg, #efc968 0%, #d9a839 100%) !important;
            }

            main button.bg-blue-600,
            main button.bg-gradient-to-r.from-blue-600 {
                background: #0b2b26 !important;
                color: #ffffff !important;
            }

            main button.bg-red-500,
            main button.bg-gradient-to-r.from-red-500 {
                background: #a63d32 !important;
                color: #ffffff !important;
            }

            main h2,
            main h3 {
                color: #0b2b26 !important;
            }

            main .text-amber-400,
            main .text-amber-300 {
                color: #a87512 !important;
            }

            #navUserManagement:not(.hidden) {
                display: flex !important;
            }

            .dashboard-shell {
                min-height: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                width: 100%;
            }

            .dashboard-main {
                height: calc(100vh - 4rem);
                min-height: 0;
                padding-bottom: 0 !important;
                background: #eef1f0 !important;
            }

            .dashboard-main:has(#dashboardTab:not(.hidden)) {
                overflow: hidden !important;
            }

            .header-logo-mark {
                width: 40px !important;
                height: 40px !important;
                padding: 0 !important;
                background: transparent !important;
                border: 0 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
            }

            .header-logo-mark img {
                width: 100% !important;
                height: 100% !important;
                object-fit: contain;
                image-rendering: auto;
                transform: translateZ(0);
            }

            #sidebarToggleBtn {
                width: 44px;
                height: 44px;
                flex: 0 0 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 0 !important;
                border: 1px solid rgba(255, 255, 255, 0.18) !important;
                border-radius: 10px !important;
                cursor: pointer;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
                transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
            }

            #sidebarToggleBtn:hover,
            #sidebarToggleBtn:focus-visible {
                background: rgba(213, 165, 55, 0.18) !important;
                color: #f1c75b !important;
                outline: none;
            }

            #sidebarToggleBtn:active {
                transform: scale(0.95);
            }

            #sidebarToggleBtn i {
                font-size: 1rem;
                pointer-events: none;
            }

            .dashboard-shell > .tab-content {
                flex: 0 0 auto;
                width: 100%;
            }

            .stat-card {
                min-height: 100px;
                height: 100px;
                padding: 0.8rem 1rem !important;
                border: 1px solid #dbe5e1 !important;
                border-top: 3px solid #d5a537 !important;
                border-radius: 18px !important;
                background: linear-gradient(145deg, #ffffff 0%, #f7faf8 100%) !important;
                box-shadow: 0 8px 20px rgba(11, 43, 38, 0.07) !important;
            }

            .stat-card::before {
                top: auto;
                right: -28px;
                bottom: -45px;
                width: 115px;
                height: 115px;
                background: radial-gradient(circle, rgba(213, 165, 55, 0.14), transparent 68%);
            }

            .stat-card:nth-child(2) {
                border-top-color: #0b2b26 !important;
            }

            .stat-card:nth-child(3) {
                border-top-color: #2b806d !important;
            }

            .stat-card:nth-child(4) {
                border-top-color: #8d6b22 !important;
            }

            .stat-icon {
                width: 44px;
                height: 44px;
                border-radius: 13px;
                box-shadow: 0 6px 14px rgba(11, 43, 38, 0.1);
            }

            .stat-card-title {
                max-width: 150px;
                margin-bottom: 0.5rem;
                font-size: 0.67rem;
                line-height: 1.3;
            }

            .stat-card-value {
                font-size: 1.45rem;
                line-height: 1;
            }

            .dashboard-table-scroll {
                flex: 1 1 auto;
                min-height: 0;
                max-height: none;
                overflow: hidden;
            }

            .dashboard-table-scroll thead {
                position: sticky;
                top: 0;
                z-index: 2;
            }

            #dashboardTab:not(.hidden) {
                display: flex !important;
                flex: 1 1 auto;
                flex-direction: column;
                height: 100%;
                min-height: 0;
                gap: 0.7rem;
            }

            #dashboardTab:not(.hidden) > * {
                margin-top: 0 !important;
            }

            #dashboardTab:not(.hidden) > div:first-child,
            #dashboardTab:not(.hidden) > .dashboard-filter-card {
                flex: 0 0 auto;
            }

            #dashboardTab:not(.hidden) > div:nth-child(3) {
                display: flex;
                flex: 1 1 auto;
                flex-direction: column;
                min-height: 0;
            }

            .dashboard-date-filter {
                display: flex;
                align-items: center;
                gap: 0.45rem;
                flex-wrap: wrap;
            }

            .date-range-control {
                position: relative;
            }

            .date-range-trigger {
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                min-height: 32px;
                min-width: 154px;
                padding: 0.28rem 0.55rem;
                border: 1px solid #cbd8d4;
                border-radius: 8px;
                background: #ffffff;
                color: #40514d;
                font-size: 0.66rem;
                font-weight: 700;
                text-align: left;
                cursor: pointer;
                transition: border-color 0.18s ease, box-shadow 0.18s ease;
            }

            .date-range-trigger:hover,
            .date-range-trigger:focus-visible {
                border-color: #b78923;
                box-shadow: 0 0 0 3px rgba(183, 137, 35, 0.14);
                outline: none;
            }

            .date-range-trigger i {
                color: #a87512;
                font-size: 0.7rem;
            }

            .date-range-popover {
                position: absolute;
                top: calc(100% + 0.45rem);
                left: 0;
                z-index: 25;
                display: grid;
                gap: 0.7rem;
                width: 220px;
                padding: 0.7rem;
                border: 1px solid #d9e2df;
                border-radius: 10px;
                background: #ffffff;
                box-shadow: 0 14px 30px rgba(11, 43, 38, 0.16);
            }

            .date-range-popover label {
                display: grid;
                gap: 0.3rem;
                color: #64736f;
                font-size: 0.65rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.06em;
            }

            .date-range-popover input {
                min-height: 31px;
                width: 100%;
                padding: 0.35rem 0.5rem;
                border: 1px solid #cbd8d4;
                border-radius: 8px;
                color: #20302d;
                font-size: 0.68rem;
            }

            .date-range-popover input:focus {
                border-color: #b78923;
                outline: none;
                box-shadow: 0 0 0 3px rgba(183, 137, 35, 0.14);
            }

            .date-range-actions {
                display: flex;
                justify-content: flex-end;
                gap: 0.45rem;
                padding-top: 0.2rem;
            }

            .date-range-actions button {
                min-height: 30px;
                padding: 0.3rem 0.6rem;
                border-radius: 7px;
                font-size: 0.67rem;
                font-weight: 800;
                cursor: pointer;
            }

            .date-range-clear {
                border: 1px solid #d9e2df;
                background: #ffffff;
                color: #64736f;
            }

            .date-range-apply {
                border: 1px solid #0b2b26;
                background: #0b2b26;
                color: #ffffff;
            }

            .dashboard-date-filter label {
                color: #64736f;
                font-size: 0.68rem;
                font-weight: 700;
            }

            .dashboard-date-filter input {
                min-height: 36px;
                height: 36px;
                padding: 0.35rem 0.6rem !important;
                border-radius: 9px !important;
                font-size: 0.72rem !important;
            }

            .dashboard-date-separator {
                color: #9aa9a5;
                font-size: 0.7rem;
                font-weight: 700;
            }

            @media (max-width: 640px) {
                .dashboard-date-filter {
                    width: 100%;
                }

                .dashboard-date-filter input {
                    flex: 1 1 120px;
                }
            }

            #dashboardTab > div:nth-child(2),
            #dashboardTab > div:nth-child(3) {
                border: 1px solid #dbe5e1 !important;
                border-radius: 18px !important;
                background: #ffffff !important;
                box-shadow: 0 8px 22px rgba(11, 43, 38, 0.06) !important;
            }

            #dashboardTab > div:nth-child(2) {
                padding: 1rem 1.2rem !important;
            }

            .dashboard-filter-card {
                min-height: 56px;
                padding: 0.5rem 0.75rem !important;
                border-radius: 14px !important;
                gap: 0.55rem !important;
            }

            .dashboard-filter-controls {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 0.45rem;
                width: auto;
            }

            .dashboard-filter-card .input-modern,
            .dashboard-filter-card .btn-modern,
            .dashboard-filter-controls .date-range-trigger {
                min-height: 36px;
                height: 36px;
                padding-top: 0.35rem !important;
                padding-bottom: 0.35rem !important;
                border-radius: 9px !important;
                font-size: 0.74rem !important;
            }

            .dashboard-filter-card .input-modern {
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
            }

            .dashboard-filter-card #searchInput {
                padding-left: 2.35rem !important;
            }

            .dashboard-filter-card .relative > i {
                left: 0.8rem;
                font-size: 0.75rem;
            }

            .dashboard-filter-card .btn-modern {
                padding-left: 0.8rem !important;
                padding-right: 0.8rem !important;
                box-shadow: 0 3px 8px rgba(11, 43, 38, 0.14) !important;
            }

            .dashboard-filter-controls .date-range-control,
            .dashboard-filter-controls #filterJenis,
            .dashboard-filter-controls button {
                flex: 0 0 auto;
            }

            .dashboard-filter-controls .date-range-trigger {
                min-width: 154px;
            }

            .dashboard-filter-controls #filterJenis {
                width: 140px;
            }

            .dashboard-filter-controls button[onclick="loadTableData()"] {
                min-width: 86px;
            }

            .dashboard-reset-button {
                border: 1px solid #d9e2df !important;
                background: #f7faf8 !important;
                color: #40514d !important;
            }

            .dashboard-reset-button:hover,
            .dashboard-reset-button:focus-visible {
                border-color: #b78923 !important;
                background: #fffaf0 !important;
                color: #7a5710 !important;
                outline: none;
            }

            .dashboard-reset-button.is-resetting i {
                animation: dashboardResetSpin 0.7s linear infinite;
            }

            @keyframes dashboardResetSpin {
                to { transform: rotate(-360deg); }
            }

            @media (max-width: 900px) {
                .dashboard-filter-controls {
                    width: 100%;
                    justify-content: flex-end;
                }
            }

            @media (max-width: 640px) {
                .dashboard-filter-controls {
                    justify-content: stretch;
                }

                .dashboard-filter-controls .date-range-control,
                .dashboard-filter-controls #filterJenis,
                .dashboard-filter-controls button[onclick="loadTableData()"] {
                    flex: 1 1 0;
                    min-width: 0;
                    width: auto;
                }
            }

            #dashboardTab > div:nth-child(3) {
                flex: 1 1 auto;
                min-height: 0;
                overflow: hidden;
            }

            #dashboardFooter {
                position: sticky;
                bottom: 0;
                z-index: 15;
                width: 100%;
                height: 56px;
                min-height: 56px;
                flex-shrink: 0;
                margin-top: auto !important;
                margin-bottom: 0 !important;
                border-top: 1px solid rgba(213, 165, 55, 0.42) !important;
                background: #0b2b26 !important;
                box-shadow: 0 -8px 18px rgba(11, 43, 38, 0.12);
            }

            #dashboardFooter p {
                color: #dce9e5 !important;
            }

            .header-actions {
                gap: 0.45rem !important;
            }

            .header-actions .header-user-chip,
            .header-actions .btn-modern {
                min-height: 32px;
                padding: 0.32rem 0.6rem !important;
                border-radius: 7px !important;
                font-size: 0.68rem !important;
                line-height: 1;
                gap: 0.32rem;
                box-shadow: 0 2px 6px rgba(11, 43, 38, 0.1) !important;
            }

            .header-actions .header-user-chip {
                background: rgba(255, 255, 255, 0.08) !important;
                border: 1px solid rgba(213, 165, 55, 0.2) !important;
                color: #f8faf9 !important;
            }

            .header-actions button[onclick="openCheckinModal()"] {
                background: linear-gradient(135deg, #d5a537 0%, #b78923 100%) !important;
                border: 1px solid rgba(255, 225, 139, 0.42) !important;
                color: #0b2b26 !important;
            }

            .header-actions button[onclick="openCheckinModal()"]:hover {
                background: linear-gradient(135deg, #e5b94f 0%, #c99527 100%) !important;
            }

            .header-actions button[onclick="exportToExcel()"] {
                background: #f7faf8 !important;
                border: 1px solid rgba(213, 165, 55, 0.45) !important;
                color: #0b2b26 !important;
            }

            .header-actions button[onclick="exportToExcel()"]:hover {
                background: #ffffff !important;
                border-color: #d5a537 !important;
            }

            .header-actions button[onclick="handleLogout()"] {
                background: #8f342d !important;
                border: 1px solid rgba(255, 190, 176, 0.28) !important;
                color: #ffffff !important;
            }

            .header-actions button[onclick="handleLogout()"]:hover {
                background: #a84439 !important;
            }

            .header-actions .btn-modern:hover {
                transform: translateY(-1px);
                box-shadow: 0 5px 12px rgba(11, 43, 38, 0.18) !important;
            }

            .header-actions .btn-modern i,
            .header-actions .header-user-chip span:first-child {
                font-size: 0.7rem;
            }

            .sidebar-nav {
                gap: 0.2rem !important;
            }

            .sidebar-nav-item {
                min-height: 36px;
                margin-bottom: 0 !important;
                padding: 0.55rem 0.7rem !important;
                border-radius: 8px !important;
                font-size: 0.75rem !important;
                line-height: 1.1;
                box-shadow: none;
            }

            .sidebar-nav-item i {
                width: 1rem !important;
                font-size: 0.78rem !important;
            }

            .sidebar-nav-item.active {
                border-left: 3px solid #f1c75b;
                padding-left: calc(0.7rem - 3px) !important;
                box-shadow: 0 4px 10px rgba(201, 149, 39, 0.14) !important;
            }

            .sidebar-nav-item:hover {
                transform: translateX(2px);
            }

            /* Compact dashboard typography */
            #dashboardTab,
            #usersTab,
            #profileTab,
            #jadwalTab,
            #kioskTab {
                font-size: 0.78rem;
                line-height: 1.4;
            }

            #dashboardTab .stat-card-title {
                font-size: 0.64rem !important;
                font-weight: 800;
                letter-spacing: 0.08em;
                line-height: 1.25;
            }

            #dashboardTab .stat-card-value {
                font-size: 1.45rem !important;
                font-weight: 800;
                letter-spacing: 0;
            }

            #dashboardTab .dashboard-filter-card input,
            #dashboardTab .dashboard-filter-card select,
            #dashboardTab .dashboard-filter-card button,
            #dashboardTab .date-range-trigger {
                font-size: 0.72rem !important;
                font-weight: 600;
            }

            #dashboardTab table {
                font-size: 0.74rem;
                line-height: 1.35;
            }

            #dashboardTab table thead {
                font-size: 0.66rem;
                letter-spacing: 0.06em;
            }

            #dashboardTab table th,
            #dashboardTab table td {
                padding: 0.65rem 0.75rem;
            }

            .barcode-cell {
                min-width: 170px;
            }

            .barcode-preview {
                display: none;
            }

            .barcode-code-text {
                display: block;
                margin-top: 0.2rem;
                color: #64736f !important;
                font-family: monospace;
                font-size: 0.58rem;
                line-height: 1.15;
                word-break: break-all;
            }

            .barcode-print-button {
                display: inline-flex;
                align-items: center;
                gap: 0.3rem;
                margin-top: 0.35rem;
                padding: 0.28rem 0.48rem;
                border: 1px solid #d5a537;
                border-radius: 6px;
                background: #fffaf0;
                color: #7a5710;
                font-size: 0.62rem;
                font-weight: 800;
                cursor: pointer;
            }

            .barcode-print-button:hover {
                background: #fef0c7;
            }

            #usersTab h2,
            #profileTab h2,
            #jadwalTab h2,
            #kioskTab h2 {
                font-size: 0.95rem !important;
                line-height: 1.25;
            }

            #usersTab label,
            #profileTab label,
            #usersTab input,
            #usersTab select,
            #profileTab input,
            #profileTab select,
            #usersTab button,
            #profileTab button {
                font-size: 0.72rem !important;
            }

            #usersTab input,
            #usersTab select,
            #profileTab input,
            #profileTab select {
                min-height: 36px;
                padding-top: 0.45rem !important;
                padding-bottom: 0.45rem !important;
            }

            /* Compact, formal login presentation */
            .login-card {
                width: min(100%, 430px);
                border-radius: 22px;
                box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32), 0 8px 20px rgba(2, 6, 23, 0.1);
            }

            .login-form-panel {
                padding: 1.35rem 1.5rem 1.4rem !important;
            }

            .login-form-panel > div {
                width: min(100%, 350px);
            }

            .login-brand {
                gap: 0.65rem;
                padding-bottom: 0.7rem;
                margin-bottom: 0.8rem;
            }

            .login-brand-mark {
                width: 38px;
                height: 38px;
                border-radius: 10px;
            }

            .login-brand-name {
                font-size: 0.66rem;
            }

            .login-brand-subtitle {
                font-size: 0.57rem;
            }

            .login-form-panel .login-heading {
                margin-top: 0.75rem !important;
                font-size: 1.55rem;
                letter-spacing: -0.01em;
            }

            .login-form-panel .login-description {
                margin-top: 0.35rem !important;
                font-size: 0.73rem;
                line-height: 1.45;
            }

            .login-form {
                padding-top: 0.1rem;
            }

            .login-form.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) {
                margin-top: 0.7rem;
            }

            .login-form-panel .login-label {
                margin-bottom: 0.35rem !important;
                font-size: 0.6rem;
            }

            .login-input {
                min-height: 42px;
                padding-top: 0.6rem !important;
                padding-bottom: 0.6rem !important;
                border-radius: 11px !important;
                font-size: 0.78rem !important;
            }

            .login-field-icon {
                bottom: 0.82rem;
                left: 0.9rem;
                font-size: 0.75rem;
            }

            .login-field .login-input,
            .login-password-wrap .login-input {
                padding-left: 2.55rem;
            }

            .login-options {
                margin-top: -0.05rem;
            }

            .login-btn {
                min-height: 44px !important;
                padding-top: 0.65rem !important;
                padding-bottom: 0.65rem !important;
                border-radius: 11px !important;
                font-size: 0.72rem !important;
                letter-spacing: 0.06em;
            }

            .login-form > .pt-2 {
                padding-top: 0.05rem;
            }

            .login-form > .pt-2 > p {
                font-size: 0.68rem;
            }

            .login-form > .pt-2 > a {
                min-height: 40px;
                margin-top: 0.4rem;
                padding-top: 0.55rem;
                padding-bottom: 0.55rem;
                border-radius: 10px;
                font-size: 0.68rem;
            }

            .login-security-note {
                margin-top: 0.75rem;
                font-size: 0.58rem;
            }

            @media (max-width: 480px) {
                .login-overlay {
                    padding: 0.65rem;
                }

                .login-form-panel {
                    padding: 1.15rem 1rem 1.2rem !important;
                }

                .login-card {
                    border-radius: 18px;
                }
            }

            @media (max-width: 640px) {
                .header-actions {
                    gap: 0.3rem !important;
                }

                .header-actions .header-user-chip,
                .header-actions .btn-modern {
                    min-height: 30px;
                    padding: 0.28rem 0.48rem !important;
                    font-size: 0.64rem !important;
                }
            }

/* Split login layout: SILAPSE identity on the left, access form on the right. */
        .login-overlay {
            align-items: center;
            justify-content: center;
            padding: clamp(1rem, 3vw, 3rem);
            background:
                linear-gradient(90deg, rgba(3, 20, 39, 0.78), rgba(3, 20, 39, 0.5)),
                url('/silapse/background_halaman.png?v=20260818') center / cover no-repeat fixed !important;
        }

        .login-card {
            width: min(100%, 1060px);
            max-height: min(680px, calc(100vh - 3rem));
            background: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 24px;
            box-shadow: 0 30px 80px rgba(1, 12, 27, 0.42);
        }

        .login-panel {
            display: grid !important;
            grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
            min-height: 560px;
        }

        .login-side {
            display: flex !important;
            min-height: 560px;
            padding: clamp(2rem, 4vw, 4.25rem) !important;
            background:
                linear-gradient(135deg, rgba(4, 32, 61, 0.92), rgba(5, 48, 76, 0.7)),
                url('/silapse/background_halaman.png?v=20260818') center / cover no-repeat;
            overflow: hidden;
        }

        .login-side::before {
            width: 320px;
            height: 320px;
            top: -130px;
            right: -90px;
            border-color: rgba(241, 199, 91, 0.42);
            animation: loginOrbit 12s ease-in-out infinite alternate;
        }

        .login-side::after {
            width: 210px;
            height: 210px;
            bottom: -90px;
            left: -70px;
            border-color: rgba(255, 255, 255, 0.18);
            animation: loginOrbit 15s ease-in-out infinite alternate-reverse;
        }

        @keyframes loginOrbit {
            from { transform: translate3d(0, 0, 0) rotate(0deg); }
            to { transform: translate3d(18px, -12px, 0) rotate(8deg); }
        }

        .login-side .relative.z-10 {
            animation: loginContentReveal 0.75s 0.1s ease-out both;
        }

        @keyframes loginContentReveal {
            from { opacity: 0; transform: translateY(14px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .login-side .pn-logo {
            width: 62px;
            height: 62px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.96);
            border-color: rgba(241, 199, 91, 0.6);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        }

        .login-side h2 {
            max-width: 520px;
            font-size: clamp(2.2rem, 4vw, 3.65rem);
            letter-spacing: -0.035em;
        }

        .login-side .grid.grid-cols-3 > div {
            border-radius: 12px;
            padding: 0.8rem;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.18);
        }

        .login-form-panel {
            display: flex;
            align-items: center;
            padding: clamp(2rem, 4vw, 4.25rem) !important;
            background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
        }

        .login-form-panel > div {
            width: min(100%, 360px);
        }

        .login-brand {
            margin-bottom: 0.85rem;
            padding-bottom: 0.75rem;
        }

        .login-form-panel .login-heading {
            font-size: clamp(1.6rem, 3vw, 2rem);
        }

        .login-input {
            min-height: 44px;
            border-radius: 11px !important;
        }

        .login-btn {
            min-height: 46px !important;
            border-radius: 11px !important;
        }

        @media (max-width: 760px) {
            .login-overlay {
                padding: 0.75rem;
                overflow-y: auto;
            }

            .login-card {
                width: min(100%, 430px);
                max-height: none;
                border-radius: 20px;
            }

            .login-panel {
                display: block !important;
                min-height: 0;
            }

            .login-side {
                display: none !important;
            }

            .login-form-panel {
                padding: 1.5rem 1.15rem 1.6rem !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .login-side .relative.z-10,
            .login-side::before,
            .login-side::after {
                animation: none;
            }
        }

/* Match the reference: full background on the left and one standalone form card. */
        .login-card {
            width: 100%;
            max-height: none;
            background: transparent;
            border: 0;
            border-radius: 0;
            box-shadow: none;
            overflow: visible;
            transform: none;
        }

        .login-overlay,
        .login-overlay button,
        .login-overlay input,
        .login-overlay a,
        .login-overlay label,
        .login-overlay p,
        .login-overlay h2,
        .login-overlay strong,
        .login-overlay span,
        .login-overlay div {
            font-family: 'Montserrat', sans-serif !important;
        }

        .login-overlay i,
        .login-overlay .fa-solid,
        .login-overlay .fa-regular {
            font-family: 'Font Awesome 6 Free' !important;
        }

        .login-overlay {
            justify-content: flex-end;
            padding: 1rem clamp(1rem, 2.5vw, 2.5rem) 1rem clamp(2rem, 5vw, 5.5rem);
        }

        .login-card::before {
            display: none;
        }

        .login-panel {
            display: grid !important;
            width: 100%;
            grid-template-columns: minmax(0, 660px) 430px;
            min-height: min(610px, calc(100vh - 2rem));
            align-items: center;
            justify-content: space-between;
            gap: clamp(3rem, 5vw, 5rem);
            padding: 0;
        }

        .login-side {
            display: flex !important;
            min-height: min(610px, calc(100vh - 2rem));
            padding: clamp(1.5rem, 3vw, 2.75rem) 0 !important;
            background: transparent;
        }

        .login-side .relative.z-10 {
            width: 100%;
            min-height: min(610px, calc(100vh - 2rem));
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto auto;
            row-gap: 0.7rem;
            align-content: stretch;
            transform: translateX(clamp(-1.75rem, -2.5vw, 0px));
        }

        .login-side .pn-logo {
            width: 94px;
            height: 94px;
            padding: 0;
            border: 0 !important;
            outline: 0 !important;
            border-radius: 0;
            background: transparent !important;
            box-shadow: none !important;
        }

        .login-side .pn-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));
        }

        .login-side .text-\[10px\] {
            font-size: 0.9rem !important;
            letter-spacing: 0.1em;
        }

        .login-side .text-lg {
            font-size: 1.55rem;
            letter-spacing: 0.04em;
        }

        .login-side-brand-copy {
            max-width: 360px;
        }

        .login-side-brand-name {
            color: #f8fafc;
            font-size: 1.2rem;
            font-weight: 900;
            letter-spacing: 0.035em;
            line-height: 1.2;
            white-space: nowrap;
        }

        .login-side-brand-subtitle {
            margin-top: 0.45rem;
            color: #f1c75b;
            font-size: 0.7rem;
            font-weight: 700;
            line-height: 1.35;
            white-space: nowrap;
        }

        .login-side h2 {
            max-width: 100%;
            font-family: 'Inter', sans-serif;
            font-size: clamp(1.9rem, 3.4vw, 3.15rem);
            font-weight: 900;
            letter-spacing: 0;
            line-height: 1.04;
        }

        .login-side .space-y-5 {
            display: flex;
            align-items: center;
            margin: 0;
            transform: translateY(0.5rem);
            padding-bottom: 0.5rem;
        }

        .login-side .space-y-5 > div {
            width: 100%;
        }

        .login-side h2 .login-heading-line {
            display: block !important;
            width: 100%;
            white-space: nowrap !important;
        }

        .login-side h2 .login-heading-line + .login-heading-line {
            margin-top: 0.2em;
        }

        .login-side h2 br + .login-heading-accent {
            display: inline-block;
            margin-top: 0.18em;
            letter-spacing: 0;
        }

        .login-heading-accent {
            color: #f1c75b;
        }

        .login-copyright {
            margin-top: 0;
            color: rgba(226, 232, 240, 0.72);
            font-size: 0.62rem;
            line-height: 1.6;
        }

        .login-copyright span {
            color: rgba(226, 232, 240, 0.52);
            font-size: 0.58rem;
        }

        .login-trust-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            width: 100%;
            box-sizing: border-box;
            min-height: 86px;
            padding: 1.1rem 1.35rem;
            border: 1px solid rgba(191, 219, 239, 0.45);
            border-radius: 14px;
            background: rgba(8, 35, 62, 0.9);
            box-shadow: 0 14px 30px rgba(1, 12, 27, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(8px);
            margin-top: 0.25rem;
        }

        .login-trust-card span {
            white-space: nowrap;
        }

        .login-trust-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            flex: 0 0 auto;
            border: 1px solid rgba(241, 199, 91, 0.9);
            border-radius: 50%;
            color: #f1c75b;
            font-size: 1.25rem;
        }

        .login-trust-card strong,
        .login-trust-card span {
            display: block;
        }

        .login-trust-card strong {
            color: #ffffff;
            font-size: 1.08rem;
            font-weight: 800;
        }

        .login-trust-card span {
            margin-top: 0.2rem;
            color: #f1f7fb;
            font-size: 0.76rem;
            line-height: 1.4;
            white-space: normal;
        }

        .login-form-panel {
            min-height: 578px;
            width: 430px;
            box-sizing: border-box;
            justify-self: end;
            transform: translateX(-18px);
            padding: 1.75rem 1.5rem 1.6rem !important;
            border: 1px solid rgba(255, 255, 255, 0.85);
            border-radius: 18px;
            box-shadow: 0 22px 55px rgba(1, 12, 27, 0.28);
        }

        .login-form-panel .login-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: left;
            border-bottom: 0;
            margin-bottom: 0.85rem;
            padding-bottom: 0;
        }

        .login-form-panel .login-brand-mark,
        .login-side .pn-logo {
            border: 0 !important;
            outline: 0 !important;
            box-shadow: none !important;
        }

        .login-form-panel .login-brand-name {
            font-size: 0.86rem;
            letter-spacing: 0.07em;
        }

        .login-form-panel .login-brand-subtitle {
            font-size: 0.58rem;
        }

        .login-form-panel .status-chip {
            margin-bottom: 1.15rem;
        }

        .login-form-panel .login-heading {
            margin-top: 0 !important;
            font-size: 1.8rem;
        }

        @media (max-width: 760px) {
            .login-overlay {
                justify-content: center;
                padding: 0.75rem;
            }

            .login-card {
                width: min(100%, 430px);
                transform: none;
            }

            .login-panel {
                display: block !important;
                min-height: 0;
                padding: 0;
            }

            .login-side {
                display: none !important;
            }

            .login-form-panel {
                min-height: 0;
                border-radius: 20px;
                box-shadow: 0 20px 45px rgba(1, 12, 27, 0.3);
                transform: none;
            }

            .login-trust-card span {
                white-space: normal;
            }
        }

@media (min-width: 1025px) {
            .login-side .space-y-5 {
                transform: none !important;
                padding-bottom: 0 !important;
            }

            .login-trust-card {
                margin-top: -1.5rem !important;
            }
        }

        @media (min-width: 761px) and (max-width: 1024px) {
            .login-overlay {
                justify-content: center;
                padding: 1rem;
                overflow-y: auto;
            }

            .login-card {
                width: min(100%, 430px);
                max-width: 100%;
                max-height: none;
                box-sizing: border-box;
            }

            .login-panel {
                display: block !important;
                min-height: 0;
            }

            .login-side {
                display: none !important;
            }

            .login-form-panel {
                width: 100%;
                max-width: 100%;
                min-height: 0;
                box-sizing: border-box;
                border-radius: 20px;
                box-shadow: 0 20px 45px rgba(1, 12, 27, 0.3);
                transform: none;
            }
        }

        @media (max-width: 760px) {
            .login-card,
            .login-form-panel {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }

            .login-form-panel {
                padding: clamp(1.1rem, 4vw, 1.5rem) clamp(0.9rem, 4vw, 1.5rem) clamp(1.2rem, 4vw, 1.6rem) !important;
            }

            .login-form-panel > div {
                width: 100%;
                max-width: 350px;
            }
        }

@media (max-width: 1024px) {
            .login-overlay {
                justify-content: center;
                padding: 0.75rem;
                overflow-y: auto;
            }

            .login-card {
                width: min(100%, 430px);
                max-width: 100%;
                max-height: none;
            }

            .login-panel {
                display: block !important;
                min-height: 0;
            }

            .login-side {
                display: none !important;
            }

            .login-form-panel {
                width: 100%;
                max-width: 100%;
                min-height: 0;
                box-sizing: border-box;
                border-radius: 20px;
            }

            .dashboard-main {
                height: auto !important;
                min-height: calc(100vh - 4rem);
                overflow-y: auto !important;
                overflow-x: hidden;
                padding: 0.85rem !important;
            }

            .dashboard-main:has(#dashboardTab:not(.hidden)) {
                overflow: auto !important;
            }

            .dashboard-shell {
                height: auto;
                min-height: calc(100vh - 5.7rem);
                gap: 1rem;
            }

            #dashboardTab:not(.hidden) {
                display: block !important;
                height: auto;
                min-height: 0;
            }

            #dashboardTab:not(.hidden) > * {
                margin-top: 0 !important;
                margin-bottom: 0.85rem;
            }

            #dashboardTab:not(.hidden) > div:nth-child(3) {
                display: block;
                min-height: 0;
                overflow: visible;
            }

            .dashboard-table-scroll {
                max-height: min(55vh, 30rem);
                overflow-x: auto;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .dashboard-table-scroll > table {
                min-width: 780px;
            }

            .dashboard-filter-card {
                align-items: stretch !important;
                padding: 0.75rem !important;
            }

            .dashboard-filter-card > .relative {
                width: 100% !important;
            }

            .dashboard-filter-controls {
                width: 100% !important;
                flex-wrap: wrap;
                justify-content: stretch !important;
            }

            .dashboard-filter-controls .date-range-control,
            .dashboard-filter-controls #filterJenis,
            .dashboard-filter-controls button[onclick="loadTableData()"],
            .dashboard-filter-controls .dashboard-reset-button {
                flex: 1 1 0;
                min-width: 0;
            }

            .dashboard-filter-controls .date-range-trigger,
            .dashboard-filter-controls #filterJenis,
            .dashboard-filter-controls button[onclick="loadTableData()"],
            .dashboard-filter-controls .dashboard-reset-button {
                width: 100%;
            }

            .header-actions .header-user-chip {
                max-width: 9rem;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }

        @media (min-width: 641px) and (max-width: 1024px) {
            #dashboardTab:not(.hidden) > div:first-child {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.75rem;
            }

            #dashboardTab:not(.hidden) > div:first-child > .stat-card {
                width: 100%;
            }
        }

        @media (max-width: 640px) {
            .dashboard-main {
                padding: 0.65rem !important;
            }

            .dashboard-shell {
                min-height: calc(100vh - 5.3rem);
            }

            .stat-card {
                min-height: 88px;
                height: auto;
            }

            .dashboard-filter-controls {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            }

            .dashboard-filter-controls .date-range-control,
            .dashboard-filter-controls #filterJenis {
                width: 100%;
            }

            .dashboard-filter-controls button[onclick="loadTableData()"] {
                grid-column: 1 / -1;
            }

            .dashboard-filter-controls .dashboard-reset-button {
                grid-column: 1 / -1;
            }

            .date-range-popover {
                left: auto;
                right: 0;
                width: min(220px, calc(100vw - 2rem));
            }

            .header-actions .header-user-chip span#userDisplayName {
                display: none;
            }

            .header-actions .header-user-chip {
                width: 2rem;
                justify-content: center;
                padding: 0.32rem !important;
            }

            #dashboardTab table {
                min-width: 780px;
            }

            #dashboardTab > div:nth-child(3) {
                border-radius: 14px !important;
            }
        }
