/* =========================================================
   RMC EXTEND - Tema Biru & Putih
   ========================================================= */
:root {
    --rmc-blue-dark: #0b3d91;
    --rmc-blue: #1565c0;
    --rmc-blue-light: #e8f1fc;
    --rmc-blue-accent: #2f80ed;
    --rmc-white: #ffffff;
    --rmc-gray: #64748b;
    --rmc-bg: #f4f8fd;
    --rmc-radius: 14px;
}

* { box-sizing: border-box; }

html { font-size: 15px; } /* sedikit lebih kecil dari default 16px, lebih rapi & tidak "berat" */

body {
    background: var(--rmc-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    font-size: .95rem;
    -webkit-font-smoothing: antialiased;
}

/* Turunkan ketebalan default supaya tidak terasa terlalu "berat" di semua halaman */
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.fw-bold { font-weight: 600 !important; }
.badge { font-weight: 500; font-size: .72em; padding: .38em .6em; }
.btn { font-weight: 500; font-size: .9rem; }
.form-label { font-weight: 500; font-size: .82rem; }
.small, small { font-size: .8rem; }

/* ===== Layout Auth (login/register) - Redesain profesional ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 15% 15%, #123f8f 0%, #0b3d91 45%, #082a66 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
/* Dekorasi blob abstrak di background */
.auth-wrapper::before, .auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: .12;
    background: #fff;
}
.auth-wrapper::before { width: 420px; height: 420px; top: -140px; right: -120px; }
.auth-wrapper::after { width: 320px; height: 320px; bottom: -120px; left: -80px; background: var(--rmc-blue-accent); opacity: .25; }

.auth-card {
    background: var(--rmc-white);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(3,20,60,.45);
    overflow: hidden;
    max-width: 940px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: authFadeIn .5s ease both;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-side {
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.10) 0, transparent 45%),
        linear-gradient(160deg, var(--rmc-blue-dark) 0%, var(--rmc-blue) 60%, var(--rmc-blue-accent) 130%);
    color: #fff;
    padding: 52px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.auth-side .logo-circle {
    width: 60px; height: 60px;
    background: #fff;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--rmc-blue-dark); font-size: 18px;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.auth-logo-img {
    width: 60px; height: 60px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.auth-side h3 { font-weight: 700; letter-spacing: .2px; font-size: 1.35rem; }
.auth-side .lead-sub { opacity: .85; font-size: 14.5px; line-height: 1.6; }

.auth-feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature-item { display: flex; align-items: flex-start; gap: 12px; }
.auth-feature-item .icon-badge {
    width: 34px; height: 34px; flex: 0 0 34px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.auth-feature-item .feature-text b { display: block; font-size: 13.5px; }
.auth-feature-item .feature-text span { display: block; font-size: 12px; opacity: .75; }

.auth-form { padding: 52px 44px; }
.brand-title { font-weight: 700; color: var(--rmc-blue-dark); letter-spacing: .2px; font-size: 1.25rem; }
.brand-sub { color: var(--rmc-gray); font-size: 13.5px; }

/* Input dengan ikon di dalam kotak (lebih rapi/profesional) */
.input-icon-group { position: relative; }
.input-icon-group i.icon-left {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--rmc-gray); font-size: 14px; pointer-events: none;
}
.input-icon-group .form-control {
    padding-left: 40px;
}
.input-icon-group .toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--rmc-gray); font-size: 14px; cursor: pointer;
}
.form-control-lg.rmc-input { border-radius: 10px; border: 1.5px solid #e2e8f0; padding-top: .65rem; padding-bottom: .65rem; }
.form-control-lg.rmc-input:focus { border-color: var(--rmc-blue-accent); }

.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #94a3b8; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e6edf7; }


.form-control:focus, .form-select:focus {
    border-color: var(--rmc-blue-accent);
    box-shadow: 0 0 0 .2rem rgba(47,128,237,.18);
}
.btn-rmc {
    background: var(--rmc-blue-dark);
    border-color: var(--rmc-blue-dark);
    color: #fff;
    font-weight: 600;
}
.btn-rmc:hover { background: var(--rmc-blue); border-color: var(--rmc-blue); color:#fff; }
.btn-outline-rmc {
    border: 1.5px solid var(--rmc-blue-dark);
    color: var(--rmc-blue-dark);
    font-weight: 600;
}
.btn-outline-rmc:hover { background: var(--rmc-blue-dark); color:#fff; }

/* ===== App Shell (dashboard) ===== */
.app-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--rmc-blue-dark), var(--rmc-blue));
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0;
    color: #fff;
    z-index: 1030;
    transition: transform .25s ease;
}
.app-sidebar .brand {
    padding: 22px 20px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.app-sidebar .brand .logo-circle {
    width: 40px; height: 40px; background: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rmc-blue-dark); font-weight: 700; font-size: 14px;
}
.app-sidebar .brand .sidebar-logo-img {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #fff;
}
.app-sidebar .brand-text { line-height: 1.1; }
.app-sidebar .brand-text b { font-size: 15px; }
.app-sidebar .brand-text small { color: rgba(255,255,255,.75); font-size: 11px; }

.app-sidebar .nav-link {
    color: rgba(255,255,255,.85);
    padding: 11px 20px;
    font-size: 14.5px;
    border-left: 3px solid transparent;
    display: flex; align-items: center; gap: 10px;
}
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-sidebar .nav-link.active {
    background: rgba(255,255,255,.14);
    border-left-color: #fff;
    color: #fff;
    font-weight: 600;
}
.app-sidebar .nav-section-title {
    padding: 14px 20px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: rgba(255,255,255,.55);
}

.app-main { margin-left: 250px; min-height: 100vh; }
.app-topbar {
    background: #fff;
    border-bottom: 1px solid #e6edf7;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1020;
}
.app-content { padding: 24px; }

.card-rmc {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: var(--rmc-radius);
    box-shadow: 0 4px 18px rgba(11,61,145,.05);
}
.stat-card {
    border-radius: var(--rmc-radius);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stat-card.blue1 { background: linear-gradient(135deg, #0b3d91, #1565c0); }
.stat-card.blue2 { background: linear-gradient(135deg, #1565c0, #2f80ed); }
.stat-card.blue3 { background: linear-gradient(135deg, #0f4c81, #3fa9f5); }
.stat-card.blue4 { background: linear-gradient(135deg, #073b6b, #1e88e5); }
.stat-card .stat-icon {
    position: absolute; right: 14px; top: 14px; font-size: 34px; opacity: .35;
}
.stat-card h3 { font-weight: 700; margin-bottom: 2px; font-size: 1.5rem; }
.stat-card span { font-size: 13px; opacity: .9; }

.table-rmc thead { background: var(--rmc-blue-light); }
.table-rmc thead th { color: var(--rmc-blue-dark); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; border-bottom: none; }
.table-rmc td, .table-rmc th { vertical-align: middle; }

.page-title { color: var(--rmc-blue-dark); font-weight: 700; font-size: 1.05rem; }
.breadcrumb-rmc { font-size: 13px; color: var(--rmc-gray); }

.badge-bagian { background: var(--rmc-blue-light); color: var(--rmc-blue-dark); font-weight: 600; }

/* ===== Halaman Absen ===== */
.absen-wrapper {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--rmc-blue-dark), var(--rmc-blue) 60%, var(--rmc-blue-accent));
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.absen-card {
    background: #fff;
    border-radius: 22px;
    max-width: 460px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
    text-align: center;
}
.camera-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #0b1220;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid var(--rmc-blue-light);
}
#video, #overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.face-status {
    position: absolute; bottom: 10px; left: 10px; right: 10px;
    background: rgba(11,61,145,.85);
    color: #fff; font-size: 13px; padding: 8px 10px; border-radius: 10px;
}
.gps-status {
    text-align: left;
    font-size: 12.5px;
    background: var(--rmc-blue-light);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 12px;
}
.gps-status .ok { color: #16a34a; font-weight: 700; }
.gps-status .warn { color: #dc2626; font-weight: 700; }
.clock-big { font-size: 36px; font-weight: 700; color: var(--rmc-blue-dark); letter-spacing: .5px; }

@media (max-width: 991px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
}

/* =========================================================
   ANDROID-STYLE BOTTOM NAVIGATION (mobile / PWA standalone)
   ========================================================= */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 64px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(11,61,145,.12);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #eef3fb;
}
.bottom-nav .bn-item {
    background: none; border: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: #94a3b8; font-size: 10.5px; text-decoration: none;
    width: 56px; padding: 6px 0;
    transition: color .15s ease;
}
.bottom-nav .bn-item i { font-size: 18px; }
.bottom-nav .bn-item.active { color: var(--rmc-blue-dark); font-weight: 700; }
.bottom-nav .bn-item:active { transform: scale(.92); }
.bottom-nav .bn-fab { position: relative; top: -18px; width: 60px; }
.bottom-nav .bn-fab-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--rmc-blue-dark), var(--rmc-blue-accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    box-shadow: 0 8px 20px rgba(11,61,145,.45);
}

/* Reserve space so content isn't hidden behind bottom nav on mobile */
@media (max-width: 991px) {
    .app-content { padding-bottom: 90px; }
    .pb-nav-safe { padding-bottom: 80px !important; }
}
@media (min-width: 992px) {
    .bottom-nav { display: none !important; }
}

/* =========================================================
   MODE ANDROID untuk MOBILE (berlaku SEMUA role: admin/hrd/karyawan)
   Desktop tetap tampilan admin klasik dengan sidebar biasa.
   ========================================================= */
@media (max-width: 991px) {
    /* App-bar berwarna solid ala Android, bukan putih polos */
    .app-topbar {
        background: linear-gradient(135deg, var(--rmc-blue-dark), var(--rmc-blue));
        border-bottom: none;
        box-shadow: 0 3px 14px rgba(11,61,145,.25);
        padding: 12px 16px;
    }
    .app-topbar .page-title { color: #fff; font-size: .98rem; }
    .app-topbar .breadcrumb-rmc { color: rgba(255,255,255,.75); font-size: 11px; }
    .app-topbar .btn-light {
        background: rgba(255,255,255,.16);
        color: #fff;
        border: none;
    }
    .app-topbar .btn-light:hover, .app-topbar .btn-light:active { background: rgba(255,255,255,.28); color:#fff; }
    .app-topbar .btn-install-pwa { background: #dc2626; color: #fff; border: none; }
    .app-topbar .dropdown-menu { border-radius: 14px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
    .app-topbar .rounded-circle.bg-primary { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }

    /* Konten lebih rapat, khas app mobile */
    .app-content { padding: 14px 12px 90px; }
    .card-rmc { border-radius: 16px; }
    .card-rmc.p-3 { padding: 14px !important; }
    .card-rmc.p-4 { padding: 18px !important; }

    /* Stat card sedikit dipadatkan */
    .stat-card { padding: 14px; border-radius: 16px; }
    .stat-card h3 { font-size: 1.25rem; }
    .stat-card span { font-size: 11.5px; }
    .stat-card .stat-icon { font-size: 26px; }

    /* Tabel lebih ringkas di layar kecil */
    .table-rmc { font-size: .82rem; }
    .table-rmc thead th { font-size: 10px; }
    .badge { font-size: .68rem; }

    h5 { font-size: 1.05rem; }
    h6 { font-size: .92rem; }

    /* Tombol lebih besar (touch target Android ~44-48px) tapi teks tidak membesar */
    .btn-lg { padding: .6rem 1rem; font-size: .95rem; }
}

/* Auth (login/register) juga lebih ringkas di HP */
@media (max-width: 576px) {
    .auth-side { padding: 32px 24px; }
    .auth-form { padding: 32px 24px; }
    .auth-side h3 { font-size: 1.15rem; }
    .auth-feature-item .feature-text b { font-size: 12.5px; }
    .auth-feature-item .feature-text span { font-size: 11px; }
}

/* Standalone PWA mode: hide browser-redundant chrome, feel more native */
@media (display-mode: standalone) {
    .app-topbar { padding-top: calc(12px + env(safe-area-inset-top)); }
    .absen-wrapper { padding-top: calc(20px + env(safe-area-inset-top)); }
}

/* PENTING: cegah auto-zoom iOS/Android saat fokus ke input/select/textarea.
   Browser mobile otomatis zoom in jika font-size elemen form < 16px.
   Berlaku untuk SEMUA form di aplikasi (Bootstrap .form-control/.form-select
   termasuk), bukan hanya form login. */
input, select, textarea,
.form-control, .form-select, .field-box input {
    font-size: 16px !important;
}

/* Install App button */
/* Install App button - MERAH & mencolok, supaya user langsung sadar
   aplikasi ini bisa diinstal saat pertama kali login */
.btn-install-pwa {
    border-radius: 20px;
    background: #dc2626;
    color: #fff !important;
    border: none;
    font-weight: 600;
    font-size: .8rem;
    padding: 6px 14px;
    animation: pulseInstall 2s ease-in-out infinite;
    white-space: nowrap;
}
.btn-install-pwa:hover { background: #b91c1c; color: #fff; }
@keyframes pulseInstall {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
    50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* Subtle Material-style ripple/tap feedback on cards & buttons for a more native feel */
.card-rmc, .stat-card, .btn, .nav-link {
    -webkit-tap-highlight-color: transparent;
}
.btn:active, .app-sidebar .nav-link:active {
    transform: scale(.98);
}
.btn { transition: transform .1s ease; }

/* =========================================================
   APP-STYLE UI (halaman user: login, dashboard karyawan, absen, profil)
   Terinspirasi desain mobile-app referensi, konten tetap milik RMC Extend
   ========================================================= */

/* ---------- Login/Register bergaya app (single screen) ---------- */
.login-screen {
    max-width: 440px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rmc-bg);
}
.login-top {
    background: #fff;
    padding: 40px 28px 28px;
    text-align: center;
}
.login-logo-box {
    width: 76px; height: 76px;
    background: var(--rmc-blue-light);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    overflow: hidden;
}
.login-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.login-logo-box i { font-size: 28px; color: var(--rmc-blue-dark); }
.login-app-title { color: var(--rmc-blue-dark); font-weight: 700; font-size: 1.25rem; margin-bottom: 2px; }
.login-app-sub { color: var(--rmc-blue); font-weight: 600; font-size: .95rem; }

.login-bottom {
    flex: 1;
    background: var(--rmc-bg);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -8px 24px rgba(11,61,145,.06);
    padding: 34px 26px 40px;
}
.login-welcome-title { font-weight: 700; font-size: 1.35rem; color: #1e293b; text-align: center; }
.login-welcome-sub { color: var(--rmc-gray); font-size: .85rem; text-align: center; margin-bottom: 26px; }

.field-label { font-size: .8rem; font-weight: 500; color: #334155; margin-bottom: 6px; display: block; }
.field-box { position: relative; margin-bottom: 18px; }
.field-box i.icon-left {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px;
}
.field-box input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 16px; /* WAJIB >=16px, agar tidak memicu auto-zoom di iOS/Android saat fokus input */
}
.field-box input:focus { outline: none; border-color: var(--rmc-blue-accent); box-shadow: 0 0 0 3px rgba(47,128,237,.12); }
.field-box .toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; }

.btn-masuk {
    width: 100%;
    background: var(--rmc-blue-dark);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    font-size: .88rem;
}
.btn-masuk:active { transform: scale(.98); }

.login-links-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: .82rem; }
.login-links-row a { color: var(--rmc-blue); text-decoration: none; font-weight: 500; }

.login-divider { display: flex; align-items: center; gap: 10px; margin: 26px 0 20px; color: #94a3b8; font-size: 11px; letter-spacing: .5px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

.secondary-tile {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-decoration: none;
    margin: 0 auto;
    width: fit-content;
}
.secondary-tile .tile-icon {
    width: 64px; height: 64px;
    background: var(--rmc-blue-light);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rmc-blue-dark); font-size: 24px;
}
.secondary-tile span { color: #1e293b; font-weight: 600; font-size: .85rem; }

/* ---------- Dashboard Karyawan (app-home style) ---------- */
.hero-welcome-card {
    background: linear-gradient(120deg, #fff 45%, var(--rmc-blue-light) 100%);
    border-radius: 20px;
    padding: 22px 20px;
    border: 1px solid #eef3fb;
    position: relative;
    overflow: hidden;
}
.hero-welcome-card h4 { font-weight: 700; font-size: 1.25rem; color: #0f172a; margin-bottom: 4px; }
.hero-welcome-card .hero-date { color: var(--rmc-gray); font-size: .82rem; margin-bottom: 14px; }
.location-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(21,101,192,.12);
    color: var(--rmc-blue-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

.cta-absen-card {
    background: var(--rmc-blue-light);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 1px solid #dbe8fb;
}
.cta-absen-card:hover { background: #dfeafc; }
.cta-absen-icon {
    width: 52px; height: 52px;
    background: var(--rmc-blue-dark);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    margin-bottom: 14px;
}
.cta-absen-card h5 { color: var(--rmc-blue-dark); font-weight: 700; margin-bottom: 2px; }
.cta-absen-card p { color: var(--rmc-gray); font-size: .82rem; margin-bottom: 0; }
.status-chip {
    position: absolute; top: 18px; right: 18px;
    font-size: .72rem; font-weight: 600;
    padding: 6px 12px; border-radius: 20px;
}
.status-chip.belum { background: #fde2e1; color: #c0392b; }
.status-chip.sudah { background: #d9f2e3; color: #1e7e45; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-tile {
    background: #fff;
    border: 1px solid #eef3fb;
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    display: block;
}
.quick-tile .quick-icon {
    width: 40px; height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rmc-blue-dark); font-size: 17px;
    margin-bottom: 12px;
}
.quick-tile h6 { color: #0f172a; font-weight: 700; margin-bottom: 2px; font-size: .95rem; }
.quick-tile span { color: var(--rmc-gray); font-size: .76rem; }

.month-status-card {
    background: #fff; border: 1px solid #eef3fb; border-radius: 18px; padding: 18px;
}
.month-status-card .label-kecil { font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; color: var(--rmc-gray); font-weight: 600; }
.month-status-numbers { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; }
.month-status-numbers .num-block { text-align: center; }
.month-status-numbers .num-block b { font-size: 1.7rem; display: block; line-height: 1; }
.month-status-numbers .num-block span { font-size: .74rem; color: var(--rmc-gray); }
.month-status-numbers .divider-v { width: 1px; height: 30px; background: #e2e8f0; }

/* ---------- Halaman Absen (scan-style) ---------- */
.absen-app-topbar {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #eef3fb;
}
.absen-app-topbar i.fa-fingerprint, .absen-app-topbar .app-icon { color: var(--rmc-blue-dark); font-size: 20px; }
.absen-app-topbar h6 { margin: 0; font-weight: 700; color: var(--rmc-blue-dark); }

.absen-app-body { max-width: 460px; margin: 0 auto; padding: 16px 16px 100px; }

.scan-card {
    background: #fff; border-radius: 20px; padding: 22px; text-align: center;
    border: 1px solid #eef3fb; margin-bottom: 14px;
}
.scan-card h6 { color: var(--rmc-blue-dark); font-weight: 700; margin-bottom: 16px; }
.scan-frame {
    width: 100%; max-width: 260px; aspect-ratio: 1/1;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: var(--rmc-blue-light);
    border: 2px solid #cfe0fa;
    position: relative;
    overflow: hidden;
}
.scan-frame video, .scan-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame .scan-hint {
    position: absolute; bottom: 8px; left: 8px; right: 8px;
    background: rgba(11,61,145,.85); color: #fff; font-size: 11.5px;
    padding: 6px 8px; border-radius: 8px;
}
.scan-desc { color: var(--rmc-gray); font-size: .82rem; margin-bottom: 16px; }
.btn-tap-absen {
    width: 100%; border: none; border-radius: 14px; padding: 14px;
    background: var(--rmc-blue-dark); color: #fff; font-weight: 700;
    letter-spacing: .3px; font-size: .92rem;
}
.btn-tap-absen:disabled { background: #b6c6e3; }

.info-card { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid #eef3fb; margin-bottom: 14px; }
.info-card h6 { font-weight: 700; font-size: .88rem; color: #0f172a; margin-bottom: 2px; display:flex; align-items:center; gap:8px; }
.location-icon-box {
    width: 42px; height: 42px; background: var(--rmc-blue-light); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: var(--rmc-blue-dark);
    margin: 0 auto 10px;
}
.mini-map { width: 100%; height: 130px; border-radius: 12px; margin-top: 10px; overflow: hidden; }

.shift-row { display: flex; justify-content: space-between; margin-top: 10px; }
.shift-row .shift-block { text-align: left; }
.shift-row .shift-block span.lbl { font-size: .68rem; color: var(--rmc-gray); text-transform: uppercase; letter-spacing: .4px; }
.shift-row .shift-block b { display: block; font-size: 1rem; color: #0f172a; }
.shift-status-box {
    background: #f1f5f9; border-radius: 10px; padding: 8px 12px; margin-top: 12px;
    display: flex; justify-content: space-between; align-items: center; font-size: .82rem;
}

.log-empty { text-align: center; color: var(--rmc-gray); padding: 18px 10px; font-size: .84rem; }
.log-empty i { font-size: 26px; display: block; margin-bottom: 8px; color: #cbd5e1; }
.log-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eef3fb; font-size: .85rem; }
.log-row:last-child { border-bottom: none; }

.app-version-footer { text-align: center; color: #94a3b8; font-size: 11px; padding: 16px 0 4px; }

/* ---------- Modal notifikasi hasil absen (di tengah layar) ---------- */
.rmc-modal-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.rmc-modal-overlay.show { opacity: 1; pointer-events: auto; }
.rmc-modal-box {
    background: #fff; border-radius: 20px; padding: 28px 24px 22px;
    max-width: 340px; width: 100%; text-align: center;
    transform: scale(.9); transition: transform .2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.rmc-modal-overlay.show .rmc-modal-box { transform: scale(1); }
.rmc-modal-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 16px;
}
.rmc-modal-icon.success { background: #d9f2e3; color: #1e7e45; }
.rmc-modal-icon.error { background: #fde2e1; color: #c0392b; }
.rmc-modal-icon.loading { background: var(--rmc-blue-light); color: var(--rmc-blue-dark); }
.rmc-modal-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: #0f172a; }
.rmc-modal-msg { color: var(--rmc-gray); font-size: .85rem; margin-bottom: 18px; line-height: 1.5; }
.rmc-modal-btn {
    width: 100%; border: none; border-radius: 12px; padding: 11px;
    background: var(--rmc-blue-dark); color: #fff; font-weight: 600; font-size: .88rem;
}

/* ---------- Bottom nav flat (mockup style) untuk role karyawan ---------- */
.bottom-nav-flat {
    position: fixed; left: 0; right: 0; bottom: 0;
    background: #fff;
    display: flex; align-items: center; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(11,61,145,.08);
    z-index: 1040;
    border-top: 1px solid #eef3fb;
}
.bnf-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; text-decoration: none; color: #94a3b8; font-size: 10.5px; font-weight: 500;
    padding: 6px 10px; border-radius: 14px; min-width: 56px;
}
.bnf-item i { font-size: 17px; }
.bnf-item.active { background: var(--rmc-blue-dark); color: #fff; }
.bnf-item:active { transform: scale(.95); }

/* ---------- Kartu Bantuan/Pengaduan (footer login/register/absen) ---------- */
.support-card {
    background: #fff; border: 1px solid #eef3fb; border-radius: 12px;
    padding: 10px 14px; margin-top: 16px;
    max-width: 260px; margin-left: auto; margin-right: auto;
    text-align: center;
}
.support-title {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .4px;
    color: var(--rmc-gray); margin-bottom: 8px; font-weight: 600;
    text-align: center;
}
.support-links {
    display: flex; flex-direction: column; align-items: center;
    gap: 7px; width: 100%;
}
.support-link {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    text-decoration: none; color: var(--rmc-blue-dark); font-size: .74rem; font-weight: 600;
    width: 100%;
}
.support-link .support-icon {
    width: 22px; height: 22px; background: var(--rmc-blue-light); border-radius: 7px;
    display: flex; align-items: center; justify-content: center; font-size: 10.5px; flex-shrink: 0;
}
.support-link:hover .support-icon { background: #dfeafc; }
.profil-header { text-align: center; padding: 10px 0 20px; }
.profil-avatar {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    background: var(--rmc-blue-dark); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(11,61,145,.25);
}
.profil-info-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f1f5f9; font-size: .86rem; }
.profil-info-row span.lbl { color: var(--rmc-gray); }
.profil-info-row span.val { font-weight: 600; color: #0f172a; }