/* ═══════════════════════════════════════════════════════════════
   CHERRYAPS — Responsive Overrides
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small), 375px (xs)
   Covers: Tables, Modals, Stat Cards, Filter Bars, Settings, Payroll,
           Page Headers, Dark Mode CHERRYAPS-* classes
   ═══════════════════════════════════════════════════════════════ */

/* ── Dashboard Layout Classes (replaces inline styles in pages.js) ─ */
.dash-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

/* Dashboard responsive */
@media (max-width: 1024px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dash-main-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .dash-page-header {
        margin-bottom: 20px;
    }
    .dash-quick-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .dash-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
}

@media (max-width: 375px) {
    .dash-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .dash-quick-actions {
        flex-direction: column;
        gap: 6px;
    }
    .dash-quick-actions .dash-quick-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ── CHERRYAPS Legacy Classes → CSS Variables (Dark Mode Fix) ── */
/* Replace hardcoded teal/slate with semantic vars */
.CHERRYAPS-breadcrumb {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.CHERRYAPS-breadcrumb span {
    color: var(--text-tertiary);
}

.CHERRYAPS-form-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.CHERRYAPS-btn-back,
.CHERRYAPS-btn-submit,
.CHERRYAPS-btn-badge {
    background-color: var(--primary);
    color: var(--text-inverse);
    border: none;
    cursor: pointer;
}

.CHERRYAPS-btn-back:hover,
.CHERRYAPS-btn-submit:hover {
    background-color: var(--primary-hover);
}

.CHERRYAPS-card {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: var(--space-6);
}

.CHERRYAPS-card-title {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.CHERRYAPS-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.CHERRYAPS-input-group label span {
    color: var(--danger);
}

.CHERRYAPS-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

.CHERRYAPS-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: var(--shadow-focus);
}

.CHERRYAPS-file-upload {
    display: flex;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-surface);
}

.CHERRYAPS-file-btn {
    background: var(--bg-surface-secondary);
    padding: 10px 16px;
    border-right: 1px solid var(--border-primary);
    font-size: 14px;
    color: var(--text-secondary);
}

.CHERRYAPS-file-text {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.CHERRYAPS-wysiwyg {
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-surface);
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.CHERRYAPS-wysiwyg-toolbar {
    border-bottom: 1px solid var(--border-primary);
    padding: 8px;
    display: flex;
    gap: 12px;
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
}

/* ── Employee Detail Page Classes ────────────────────────── */
.emp-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.emp-detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.emp-detail-card-header {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-surface);
}

.emp-detail-card-body {
    padding: 20px 22px;
    background: var(--bg-surface);
}

.emp-info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.emp-info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

/* Employee detail responsive */
@media (max-width: 1024px) {
    .emp-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .emp-detail-card-body {
        padding: 16px;
    }
    .emp-detail-card-header {
        padding: 14px 16px;
    }
}

/* ── Data Tables — Mobile Horizontal Scroll ───────────────── */
/* Ensure all table containers are scrollable */
.table-container {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

/* Minimum cell widths so tables don't collapse unusably */
.data-table th,
.data-table td {
    min-width: 80px;
}

.data-table th:first-child,
.data-table td:first-child {
    min-width: 40px;
}

/* Action columns stay compact */
.data-table th:last-child,
.data-table td:last-child {
    min-width: 60px;
}

/* ── Modal — Mobile Bottom Sheet ─────────────────────────── */
@media (max-width: 768px) {
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        transition: transform var(--transition-slow);
    }

    .modal-backdrop.active .modal {
        transform: translateY(0);
    }

    /* Bottom drag handle indicator */
    .modal-header::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-primary);
        border-radius: 2px;
        margin: 0 auto 16px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-header {
        position: relative;
        padding-top: 28px;
    }

    .modal-footer {
        padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    }

    /* Drawer: full width on mobile */
    .drawer {
        width: 100%;
        max-width: 100%;
        top: auto;
        height: 90vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
    }

    .drawer-backdrop.active .drawer {
        transform: translateY(0);
    }
}

/* ── Filter Bar — Mobile Wrapping ────────────────────────── */
@media (max-width: 768px) {
    .filter-bar {
        gap: var(--space-2);
        padding: var(--space-3) var(--space-4);
    }

    .filter-bar .input,
    .filter-bar .select {
        font-size: 13px;
        min-width: 0;
        flex: 1 1 140px;
    }

    .filter-bar .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ── Pagination — Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
        padding: var(--space-3) var(--space-4);
    }

    .pagination .pagination-info {
        font-size: var(--text-xs);
    }
}

/* ── Settings Layout — Mobile Stack ──────────────────────── */
@media (max-width: 1024px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    .settings-nav-item {
        width: auto;
        flex: 0 1 auto;
        padding: 6px 12px;
        font-size: var(--text-xs);
    }
}

/* ── Payroll Summary — Mobile ────────────────────────────── */
@media (max-width: 768px) {
    .payroll-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .payroll-summary {
        grid-template-columns: 1fr;
    }
}

/* ── Approval Cards — Mobile ─────────────────────────────── */
@media (max-width: 600px) {
    .approval-card {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .approval-card .approval-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ── Profile Grid — Mobile ───────────────────────────────── */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-header-card {
        grid-column: 1 / -1;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .CHERRYAPS-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Attendance Clock — Mobile ───────────────────────────── */
@media (max-width: 768px) {
    .attendance-clock {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .clock-time {
        font-size: var(--text-3xl);
    }

    .clock-actions {
        margin-left: 0;
        width: 100%;
    }

    .clock-btn {
        flex: 1;
        text-align: center;
    }
}

/* ── Org Structure — Mobile Tabs ─────────────────────────── */
@media (max-width: 900px) {
    .os3-body {
        flex-direction: column;
    }

    .os3-col1,
    .os3-col2 {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-secondary);
    }

    .os3-col3 {
        min-height: 300px;
    }
}

/* ── Stat Cards — 375px XS ───────────────────────────────── */
@media (max-width: 375px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .stat-card .stat-value {
        font-size: var(--text-2xl);
    }

    .page {
        padding: var(--space-3) var(--space-2);
    }

    .page-title {
        font-size: var(--text-xl);
    }

    .card-body {
        padding: var(--space-3);
    }

    .modal-body {
        padding: var(--space-4) var(--space-3);
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .input,
    .filter-bar .select,
    .filter-bar .btn {
        width: 100%;
    }

    .page-header-right .btn {
        font-size: var(--text-xs);
        padding: 6px 10px;
    }

    .data-table {
        font-size: 11px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
}

/* ── Topbar Search — Tablet ──────────────────────────────── */
@media (max-width: 900px) and (min-width: 769px) {
    .topbar-search {
        width: 200px;
    }
}

/* ── Charts Grid — Better Tablet ─────────────────────────── */
@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Tabs — Horizontal Scroll ────────────────────────────── */
.tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

/* ── Touch Targets — Minimum 44px ───────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Ensure all interactive elements meet 44px minimum on touch */
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
    }

    .tab {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-item {
        min-height: 44px;
    }

    .dropdown-item {
        min-height: 44px;
    }

    .settings-nav-item {
        min-height: 40px;
    }

    /* Remove hover states on touch devices */
    .card-hover:hover {
        box-shadow: var(--shadow-xs);
    }
}

/* ── Print Styles ────────────────────────────────────────── */
@media print {
    .sidebar,
    .topbar,
    .sidebar-overlay,
    .modal-backdrop,
    .filter-bar .btn,
    .page-header-right {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .page {
        padding: 0 !important;
    }

    .table-container {
        overflow: visible !important;
        border: none !important;
    }

    .data-table {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ── MOBILE UNIFIED LAYOUT (≤768px) ──────────────────────────── 
   Opsi B: Same pages on all devices, attendance page has mobile view
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Core Layout ── */
    .sidebar, .sidebar-overlay {
        display: none !important;
    }

    .layout-container {
        display: block !important;
    }

    /* Topbar: slim compact mobile header */
    .topbar {
        left: 0 !important;
        padding: 0 14px !important;
        height: 52px !important;
        min-height: 52px !important;
        border-bottom: 1px solid var(--border-primary);
    }

    .topbar-left .sidebar-toggle {
        display: flex !important;  /* keep hamburger visible */
    }

    .topbar-search {
        display: none !important; /* hide search bar on mobile */
    }

    .topbar-right .btn-icon:not(.notif-wrapper *) {
        display: none !important; /* hide extra icons, keep notif */
    }

    .main-content {
        margin-left: 0 !important;
        margin-top: 52px !important; /* match slim topbar height */
        padding: 0 !important;
        width: 100% !important;
        padding-bottom: 74px !important; /* space for bottom nav */
        overflow-x: hidden;
    }

    /* Real pages get proper padding */
    .page {
        padding: 14px !important;
        animation: none;
    }

    /* Page headers smaller on mobile */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .page-header-right {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 6px !important;
        width: 100%;
    }

    .page-title {
        font-size: 18px !important;
    }

    .page-subtitle {
        display: none; /* hide subtitle to save space */
    }

    /* Cards get reduced padding */
    .card, .card-body {
        padding: 14px !important;
    }

    .card-header {
        padding: 12px 14px !important;
    }

    /* Stat cards: 2 columns on mobile */
    .stats-grid, .summary-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* Tables scroll horizontally */
    .card:has(.data-table),
    #attendance_table_wrapper,
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 560px;
        font-size: 12px;
    }

    .data-table th, .data-table td {
        padding: 10px 10px !important;
        white-space: nowrap;
    }

    /* Breadcrumb compact */
    .breadcrumb {
        font-size: 12px;
    }

    /* Buttons adapt */
    .btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Filter bars: wrap items */
    .card > div[style*="display:flex"],
    .card > div[style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* ── Bottom Navigation Bar ── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 62px;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-primary);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }

    .mobile-nav-item {
        color: var(--text-tertiary);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        border: none;
        background: transparent;
        cursor: pointer;
        transition: color 0.2s;
        padding: 6px 12px;
        min-height: 44px;
        justify-content: center;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-badge {
        position: relative;
    }

    .mobile-nav-badge::after {
        content: '';
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--danger);
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    /* ── Attendance Mobile Screen (keeps its own BG) ── */
    .mobile-att-card {
        background: white;
        border-radius: 20px;
        padding: 22px;
        color: var(--text-primary);
        box-shadow: var(--shadow-lg);
        position: relative;
        z-index: 1;
        margin-top: 16px;
    }

    .mobile-att-header {
        text-align: center;
        margin-bottom: 20px;
    }
    .mobile-att-time {
        font-size: 34px;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1;
        margin-bottom: 4px;
    }
    .mobile-att-subtitle {
        font-size: 12px;
        color: var(--text-secondary);
    }

    .att-timeline-item {
        position: relative;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .timeline-val { font-size: 18px; font-weight: 700; }
    .timeline-lbl { font-size: 12px; color: var(--text-secondary); }

    .att-shift-box {
        background: var(--bg-surface-secondary);
        border-radius: 12px;
        padding: 12px;
        text-align: center;
        margin-bottom: 12px;
    }

    .att-shift-box.active {
        border-left: 4px solid var(--success);
    }

    .att-btn-row {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .mobile-btn {
        flex: 1;
        padding: 14px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        border: none;
        cursor: pointer;
    }
    .mobile-btn-outline {
        background: transparent;
        border: 1px solid var(--primary);
        color: var(--primary);
    }
    .mobile-btn-primary {
        background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
        color: white;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    /* The gradient BG is used by ESS Home & Attendance mobile page */
    .mobile-dashboard-bg {
        background: linear-gradient(135deg, var(--primary-400), var(--primary-800));
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 62px;
        overflow-y: auto;
        color: white;
        padding: 16px;
        z-index: 1000;
    }

    /* Background Silhouette overlay */
    .mobile-dashboard-bg::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: url('data:image/svg+xml;utf8,<svg opacity="0.15" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000" fill-opacity="1" d="M0,288L48,272C96,256,192,224,288,224C384,224,480,256,576,277.3C672,299,768,309,864,288C960,267,1056,213,1152,192C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        pointer-events: none;
        z-index: 0;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        position: relative;
        z-index: 1;
        padding-top: env(safe-area-inset-top, 10px);
    }
    
    .mobile-header-title {
        font-size: 15px;
        letter-spacing: 0.1em;
        font-weight: 600;
        text-transform: uppercase;
    }

    .mobile-logo-area {
        text-align: center;
        margin-bottom: 24px;
        position: relative;
        z-index: 1;
    }

    .mobile-logo-area h1 {
        font-size: 32px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        letter-spacing: -0.02em;
    }
    
    .mobile-logo-area p {
        font-size: 13px;
        opacity: 0.9;
        margin-top: 8px;
    }

    .glass-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
        position: relative;
        z-index: 1;
        padding-bottom: 40px;
    }

    .glass-card {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 16px;
        padding: 16px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: white;
        text-align: center;
        cursor: pointer;
        transition: transform 0.1s;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .glass-card:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.25);
    }

    .glass-card i {
        font-size: 26px;
    }

    .glass-card span {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav, .mobile-only {
        display: none !important;
    }
    /* mobile-dashboard-bg only visible on mobile */
    .mobile-dashboard-bg {
        background: none;
        color: inherit;
        padding: 0;
        min-height: auto;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE CLOCK VERIFICATION — GPS + FACE MODALS
   ═══════════════════════════════════════════════════════════ */

/* Spinner used inside modals */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinAnim 0.7s linear infinite;
}
@keyframes spinAnim {
    to { transform: rotate(360deg); }
}

/* Loader-2 spin inside buttons */
.lucide-loader-2.spin,
.spin {
    animation: spinAnim 0.8s linear infinite;
    display: inline-block;
}

/* Shift Info Box */
.att-shift-box {
    background: var(--bg-surface-secondary, #f8fafc);
    border: 1.5px solid var(--border-secondary, #e2e8f0);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
    transition: border-color 0.2s, background 0.2s;
}
.att-shift-box.active {
    background: var(--primary-50, #eff6ff);
    border-color: var(--primary-200, #bfdbfe);
}

/* Timeline items (Regular hours / Overtime) */
.mobile-att-timeline {
    display: flex;
    gap: 12px;
    margin: 4px 0;
}
.att-timeline-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--color, #94a3b8);
}
.timeline-lbl {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.timeline-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    font-family: var(--font-mono, monospace);
}

/* GPS Modal bottom sheet */
#mobModal {
    font-family: var(--font-family, 'Inter', sans-serif);
}

/* Face camera oval overlay */
@keyframes scanPulse {
    0%, 100% { box-shadow: 0 0 0 2000px rgba(0,0,0,0.55), 0 0 0 3px rgba(255,255,255,0.4); }
    50%       { box-shadow: 0 0 0 2000px rgba(0,0,0,0.55), 0 0 0 6px rgba(99,179,237,0.8); }
}

/* Slide-up animation for bottom sheets */
@keyframes slideUpMob {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* GPS / Face status pills */
#faceStatusPill {
    transition: background 0.3s;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clock success confetti pulse on green circle */
@keyframes successPop {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}
#clockSuccessModal .success-circle {
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

