/* AYYAN WORKFORCE - ENTERPRISE LIGHT THEME DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-subtle: #eef2ff;
    --primary-light: #c7d2fe;
    
    --success: #10b981;
    --success-hover: #059669;
    --success-subtle: #ecfdf5;
    
    --warning: #f59e0b;
    --warning-subtle: #fffbeb;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-subtle: #fef2f2;
    
    --bg-body: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --border-subtle: #edf2f7;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --shadow-dropdown: 0 12px 28px rgba(15, 23, 42, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 74px;
    --header-height: 68px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* APP SHELL LAYOUT */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    overflow: hidden;
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    flex-shrink: 0;
}

.brand-text h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar.collapsed .brand-text {
    display: none;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    background: var(--surface-alt);
    color: var(--text-main);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    padding: 12px 10px 4px;
    transition: var(--transition);
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 600;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

/* MAIN WRAPPER */
.main-wrapper {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-wrapper {
    margin-left: 0;
}

/* TOP NAVBAR */
.topbar {
    height: var(--header-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.tenant-badge {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--success-subtle);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live-timer-chip {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
}

.live-timer-chip.working {
    background: var(--success-subtle);
    border-color: #a7f3d0;
    color: #065f46;
}

.live-timer-chip.break {
    background: var(--warning-subtle);
    border-color: #fde68a;
    color: #92400e;
}

/* USER DROPDOWN (SECTION 17 SPEC) */
.user-dropdown-container {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid transparent;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--surface-alt);
    border-color: var(--border);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.user-info-text {
    text-align: left;
    line-height: 1.2;
}

.user-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
    animation: slideDown 0.15s ease-out;
}

.dropdown-menu.show {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.dropdown-header .dropdown-user-email {
    font-size: 0.76rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: var(--danger-subtle);
    color: var(--danger-hover);
}

/* CONTENT CONTAINER */
.content-area {
    padding: 28px;
    flex: 1;
}

/* PAGE HEADER */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.page-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--surface-alt);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* STATS / KPI CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-subtle); color: var(--primary); }
.stat-icon.green { background: var(--success-subtle); color: var(--success); }
.stat-icon.amber { background: var(--warning-subtle); color: var(--warning); }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ADVANCED DATATABLES COMPONENT (SECTION 15 SPEC) */
.datatable-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.datatable-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.86rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-box svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-subtle);
}

.filter-select {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.84rem;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary);
}

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

table.datatable {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.datatable th {
    background: #fcfdfe;
    padding: 12px 18px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

table.datatable th.sortable {
    cursor: pointer;
}

table.datatable th.sortable:hover {
    color: var(--primary);
}

table.datatable td {
    padding: 14px 18px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

table.datatable tr:hover td {
    background: #fbfcfe;
}

/* ACTIONS DROPDOWN (SECTION 15 MANDATE: FINAL COLUMN MUST BE "Actions ▼") */
.action-dropdown-container {
    position: relative;
    display: inline-block;
}

.btn-action-trigger {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-action-trigger:hover {
    background: var(--surface-alt);
    border-color: #cbd5e1;
}

.action-menu {
    position: fixed;
    width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 99999;
}

.action-menu.show {
    display: flex;
}

.action-menu-item {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition);
}

.action-menu-item:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.action-menu-item.danger {
    color: var(--danger);
}

.action-menu-item.danger:hover {
    background: var(--danger-subtle);
    color: var(--danger);
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: var(--success-subtle); color: #065f46; }
.badge-warning { background: var(--warning-subtle); color: #92400e; }
.badge-danger { background: var(--danger-subtle); color: #991b1b; }
.badge-primary { background: var(--primary-subtle); color: var(--primary); }
.badge-neutral { background: var(--surface-alt); color: var(--text-muted); }

/* DATATABLE FOOTER & PAGINATION */
.datatable-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: var(--surface-alt);
    border-color: #cbd5e1;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* FORM CONTROLS */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.88rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

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

/* RESPONSIVE DESIGN (SECTION 14 SPEC) */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    .sidebar .brand-text, .sidebar .nav-item span, .sidebar .nav-section-title {
        display: none;
    }
    .main-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar.mobile-open .brand-text, .sidebar.mobile-open .nav-item span, .sidebar.mobile-open .nav-section-title {
        display: block;
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .topbar {
        padding: 0 16px;
    }
    .content-area {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ATTACHED UI VIEW EXTENSIONS - AYYAN WORKFORCE EXECUTIVE DASHBOARD & MOBILE
   ========================================================================== */

/* TOP BRAND BANNER */
.brand-top-banner {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 110;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.brand-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-title-group h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.brand-title-group p {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.02em;
}

.brand-top-right .slogan-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: -0.01em;
}

/* TOPBAR SEARCH & WIDGETS */
.header-search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    width: 320px;
    transition: var(--transition);
}

.header-search-box:focus-within {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.header-search-box svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

.header-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.82rem;
    width: 100%;
    margin-left: 8px;
    color: #0f172a;
}

.notif-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.notif-btn:hover {
    background: #f8fafc;
}

.notif-badge-pill {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-widget:hover {
    background: #f1f5f9;
}

.user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

.user-widget-text {
    line-height: 1.2;
}

.user-widget-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
}

.user-widget-role {
    font-size: 0.72rem;
    color: #64748b;
}

.tenant-select-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.help-pill-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
}

/* DASHBOARD TOP ROW */
.dash-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-title-group h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.dash-title-group p {
    font-size: 0.86rem;
    color: #64748b;
    margin-top: 2px;
}

.dash-date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* 4 STAT KPI CARDS - 1 ROW RESPONSIVE */
.stat-kpi-grid,
.kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

@media (max-width: 1100px) {
    .stat-kpi-grid,
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 600px) {
    .stat-kpi-grid,
    .kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    min-width: 0;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.kpi-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-box svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    flex-shrink: 0;
}

.kpi-icon-box.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon-box.green { background: #ecfdf5; color: #059669; }
.kpi-icon-box.amber { background: #fffbeb; color: #d97706; }
.kpi-icon-box.red { background: #fef2f2; color: #dc2626; }
.kpi-icon-box.purple { background: #f5f3ff; color: #7c3aed; }

.kpi-content,
.kpi-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-val-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-pill-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.kpi-pill-badge.green {
    background: #d1fae5;
    color: #065f46;
}

.kpi-subtext,
.kpi-trend {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-trend.positive {
    color: #059669;
    font-weight: 600;
}

.kpi-trend.negative {
    color: #dc2626;
    font-weight: 600;
}

/* EXECUTIVE MIDDLE 4-PANEL GRID */
.exec-dashboard-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.6fr 1.5fr;
    gap: 16px;
    margin-bottom: 28px;
    align-items: start;
}

@media (max-width: 1400px) {
    .exec-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .exec-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
}

.panel-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.panel-header h3 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
}

.panel-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
}

.panel-link:hover {
    text-decoration: underline;
}

/* LIVE ATTENDANCE TABLE */
.live-att-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.live-att-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-att-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.live-att-table tr:hover {
    background: #f8fafc;
    cursor: pointer;
}

.live-att-table tr.selected-row {
    background: #eff6ff;
}

.emp-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emp-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.emp-cell-info {
    line-height: 1.25;
}

.emp-name-text {
    font-weight: 700;
    color: #0f172a;
}

.emp-title-text {
    font-size: 0.72rem;
    color: #64748b;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-pill.working { background: #d1fae5; color: #065f46; }
.status-pill.break { background: #fef3c7; color: #92400e; }
.status-pill.not-clocked { background: #fee2e2; color: #991b1b; }

.method-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #475569;
}

.action-dots-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.action-dots-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

/* TODAY'S ATTENDANCE DONUT & RECENT ACTIVITY */
.stack-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.donut-card-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.donut-svg-wrapper {
    position: relative;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
}

.donut-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.donut-percent {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.donut-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.76rem;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.legend-dot.green { background: #10b981; }
.legend-dot.amber { background: #f59e0b; }
.legend-dot.red { background: #ef4444; }
.legend-dot.total { background: #0f172a; }

.legend-count {
    font-weight: 700;
    color: #0f172a;
}

/* RECENT ACTIVITY */
.activity-feed-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
}

.activity-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    line-height: 1.25;
}

.activity-text {
    color: #1e293b;
    font-weight: 500;
}

.activity-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* LIVE WORKFORCE MAP */
.map-panel-body {
    position: relative;
    height: 380px;
    background: #e2e8f0;
    overflow: hidden;
}

.map-svg-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.map-zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.zoom-btn {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zoom-btn:hover {
    background: #f8fafc;
}

.map-worker-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}

.map-worker-pin:hover {
    transform: translate(-50%, -105%) scale(1.05);
    z-index: 20;
}

.pin-bubble {
    background: #ffffff;
    border-radius: 20px;
    padding: 3px 8px 3px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid;
    white-space: nowrap;
}

.pin-bubble.working { border-color: #10b981; }
.pin-bubble.break { border-color: #f59e0b; }
.pin-bubble.alert { border-color: #ef4444; }

.pin-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.pin-info {
    line-height: 1.1;
}

.pin-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
}

.pin-meta {
    font-size: 0.65rem;
    font-weight: 600;
}

.pin-meta.working { color: #059669; }
.pin-meta.break { color: #d97706; }
.pin-meta.alert { color: #dc2626; }

.pin-pointer {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    margin: 0 auto;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* LEAFLET GOOGLE-STYLE MAP & PINS */
#liveGpsMapLeaflet {
    width: 100%;
    height: 520px;
    background: #e8edf2;
    position: relative;
    z-index: 5;
}

.custom-map-marker {
    background: transparent !important;
    border: none !important;
}

.map-marker-pin-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -100%);
    transition: transform 0.15s ease;
}

.map-marker-pin-wrap:hover {
    transform: translate(-50%, -108%) scale(1.05);
    z-index: 9999;
}

.map-marker-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px 3px 4px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #2563eb;
    white-space: nowrap;
}

.map-marker-pill.working { border-color: #10b981; }
.map-marker-pill.break { border-color: #f59e0b; }
.map-marker-pill.alert {
    border-color: #ef4444;
    animation: pulseAlert 1.5s infinite;
}

@keyframes pulseAlert {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.map-marker-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.map-marker-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.map-marker-sub {
    font-size: 0.58rem;
    font-weight: 500;
    color: #64748b;
}

.map-marker-sub.working { color: #059669; }
.map-marker-sub.break { color: #d97706; }
.map-marker-sub.alert { color: #dc2626; font-weight: 700; }

.map-marker-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #2563eb;
    margin-top: -1px;
}

.map-marker-arrow.working { border-top-color: #10b981; }
.map-marker-arrow.break { border-top-color: #f59e0b; }
.map-marker-arrow.alert { border-top-color: #ef4444; }

/* EMPLOYEE DETAIL PANEL */
.detail-profile-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.detail-title-block {
    flex: 1;
}

.detail-emp-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.detail-emp-role {
    font-size: 0.74rem;
    color: #64748b;
}

.detail-nav-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 16px;
    background: #f8fafc;
}

.detail-tab-btn {
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.detail-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #ffffff;
}

.route-map-thumbnail {
    position: relative;
    height: 140px;
    background: #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.live-indicator-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-marker-tooltip {
    position: absolute;
    top: 36px;
    right: 18px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.detail-meta-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meta-row-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-row-val {
    font-weight: 600;
    color: #0f172a;
}

.battery-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.battery-bar {
    width: 24px;
    height: 10px;
    border: 1.5px solid #10b981;
    border-radius: 3px;
    padding: 1px;
    position: relative;
}

.battery-fill {
    height: 100%;
    width: 78%;
    background: #10b981;
    border-radius: 1px;
}

.detail-actions-row {
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
}

.btn-route-outline {
    flex: 1;
    padding: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
}

.btn-send-msg {
    flex: 1;
    padding: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
}

/* ==========================================================================
   MOBILE SHOWCASE (8 FLUTTER SCREENS)
   ========================================================================== */
.mobile-showcase-section {
    margin-top: 24px;
    margin-bottom: 40px;
}

.mobile-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mobile-showcase-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.mobile-showcase-subtitle {
    font-size: 0.8rem;
    color: #64748b;
}

.mobile-screens-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.mobile-screens-container::-webkit-scrollbar {
    height: 6px;
}
.mobile-screens-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.mobile-screen-col {
    flex: 0 0 215px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.screen-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

/* IPHONE 15 HARDWARE CHASSIS */
.iphone-frame {
    width: 215px;
    height: 440px;
    background: #09090b;
    border: 4px solid #1e293b;
    border-radius: 34px;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.35), inset 0 0 0 1.5px #475569;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 14px;
    background: #000000;
    border-radius: 12px;
    z-index: 50;
}

.iphone-screen {
    flex: 1;
    background: #ffffff;
    border-radius: 30px;
    overflow-y: auto;
    position: relative;
    padding: 26px 12px 14px;
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    color: #0f172a;
}

.iphone-screen::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   MOBILE SHOWCASE (8 SCREENS SPECIFICATION)
   ========================================================================== */

/* SCREEN 1: LOGIN */
.mob-login-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.mob-brand-header {
    margin-top: 4px;
}

.mob-brand-icon {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 auto 6px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.mob-login-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.mob-login-sub {
    font-size: 0.62rem;
    color: #64748b;
    margin-bottom: 8px;
}

.mob-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.mob-input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
    background: #ffffff;
}

.mob-input-text {
    font-size: 0.64rem;
    color: #1e293b;
    font-weight: 500;
}

.mob-input-badge {
    background: #e11d48;
    color: white;
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mob-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.58rem;
    color: #64748b;
    margin: 2px 0 6px;
}

.mob-btn-primary {
    width: 100%;
    padding: 8px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.mob-social-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
}

.mob-social-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
}

/* SCREEN 2: EMPLOYEE HOME (NOT CLOCKED IN) */
.mob-top-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mob-top-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.mob-status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.mob-clock-icon-wrap {
    width: 34px;
    height: 34px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-status-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #334155;
    margin-bottom: 8px;
}

.mob-quick-punch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.mob-quick-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.65rem;
    color: #0f172a;
}

.mob-summary-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: auto;
}

.mob-summary-header {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.65rem;
    color: #0f172a;
}

.mob-summary-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
}

.mob-bottom-nav {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    font-size: 0.58rem;
    color: #64748b;
}

.mob-nav-item.active {
    color: #2563eb;
    font-weight: 700;
}

/* SCREEN 3: QR SCANNER */
.mob-qr-screen {
    background: #070d18;
    color: #ffffff;
    height: 100%;
    margin: -26px -12px -14px;
    padding: 26px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mob-scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
}

.scanner-viewfinder {
    position: relative;
    width: 140px;
    height: 140px;
    border: 2.5px solid #38bdf8;
    border-radius: 20px;
    margin: 20px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.6);
}

.scanner-laser {
    position: absolute;
    bottom: 30px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444, 0 0 4px #ef4444;
}

.mob-scanner-footer {
    display: flex;
    justify-content: space-around;
    font-size: 0.62rem;
}

/* SCREEN 4: PUNCH CONFIRMATION */
.site-photo-card {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.site-photo-banner {
    background: #2563eb;
    color: white;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 12px 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.site-photo-info {
    padding: 8px;
    line-height: 1.25;
}

.mob-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    font-size: 0.65rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
}

/* SCREEN 5: SUCCESS SCREEN */
.success-screen-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.success-circle {
    width: 52px;
    height: 52px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    margin: 14px auto 8px;
}

.success-time-big {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2px 0;
}

.success-meta-box {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 10px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.62rem;
}

/* SCREEN 6: WORKING VIEW */
.working-screen-clocked {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    margin-bottom: 8px;
}

.working-live-timer {
    font-size: 1.3rem;
    font-weight: 800;
    color: #065f46;
    margin: 3px 0;
}

.mob-working-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-mob-break {
    flex: 1;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-weight: 700;
    font-size: 0.65rem;
    cursor: pointer;
}

.btn-mob-out {
    flex: 1;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-weight: 700;
    font-size: 0.65rem;
    cursor: pointer;
}

/* SCREEN 7: MOBILE MENU */
.mob-menu-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.mob-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.mob-menu-close-btn {
    cursor: pointer;
    color: #64748b;
    font-size: 0.82rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.mob-menu-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mob-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    padding-right: 0;
    font-size: 0.63rem;
    font-weight: 600;
    color: #334155;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mob-menu-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.mob-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #334155;
}

.mob-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mob-menu-item.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}

.mob-menu-item.mob-menu-logout {
    color: #ef4444 !important;
}

.mob-menu-item.mob-menu-logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.mob-menu-icon {
    font-size: 0.78rem;
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mob-red-badge {
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 0.52rem;
    font-weight: 700;
    padding: 1px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* SCREEN 8: PAYSLIP VIEW */
.mob-payslip-header {
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.mob-payslip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mob-payslip-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.payslip-month {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f172a;
}

.payslip-amount {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1px 0;
}

.payslip-date {
    font-size: 0.55rem;
    color: #64748b;
}

.pdf-icon-badge {
    background: #fee2e2;
    color: #ef4444;
    font-weight: 800;
    font-size: 0.62rem;
    padding: 3px 7px;
    border-radius: 5px;
}

/* BRAND FOOTER */
.brand-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-mark {
    width: 28px;
    height: 28px;
    background: #2563eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
}

.footer-text h4 {
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
}

.footer-text p {
    font-size: 0.72rem;
    color: #64748b;
}

.footer-feature-pills {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
}

.feature-pill svg {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.footer-right .script-slogan {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2563eb;
    font-style: italic;
    letter-spacing: -0.01em;
}

