:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-surface: #172033;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: #3b82f6;

    --primary: #3b82f6;
    --primary-hover: #2563eb;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    
    --gold: #eab308;
    --gold-bg: rgba(234, 179, 8, 0.15);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    direction: rtl;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    background-image: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

/* Mobile-Centric Container */
.mobile-app-container {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.85);
    overflow-x: hidden;
    margin: 0 auto;
}

/* Sticky Top Wrap (يثبت الترويسة بالكامل دون أي حركة أو فراغ) */
.sticky-top-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    background: #1e293b;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header with Company Branding */
.app-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1rem 1.25rem 0.75rem;
    background: transparent;
}

.header-company-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
}

.company-titles {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
}

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

.header-user-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}

.user-avatar.staff {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

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

.user-meta strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.user-role-tag {
    font-size: 0.68rem;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--gold-bg);
    color: #facc15;
    width: fit-content;
    font-weight: 700;
    margin-top: 1px;
}

.user-role-tag.staff {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.btn-header-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-header-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Cloud Sync Bar */
.cloud-sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 1.25rem;
    background: #0b1329;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    z-index: 40;
}

.sync-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.sync-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
    transition: all 0.3s ease;
}

.sync-pulse-dot.online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
    animation: syncPulse 2s infinite;
}

.sync-pulse-dot.syncing {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    animation: syncPulse 0.8s infinite;
}

.sync-pulse-dot.offline {
    background: #f59e0b;
    box-shadow: none;
    animation: none;
}

@keyframes syncPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.sync-label-text {
    font-weight: 600;
}

.btn-force-refresh {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-force-refresh:hover {
    color: #38bdf8;
    transform: rotate(180deg);
}

/* Offline Mode PWA Banner & Sync Badges */
.offline-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 1.25rem;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.22), rgba(180, 83, 9, 0.35));
    border-bottom: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 39;
    transition: all 0.3s ease;
}

.offline-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.offline-banner-content i {
    font-size: 1rem;
    color: #f59e0b;
}

.offline-queue-badge {
    background: #d97706;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 9999px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}

.badge-offline-sync {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-synced {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.driver-clean-mode .offline-mode-banner {
    background: #fffbeb;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
}


/* App Content Area */
.app-content {
    flex: 1;
    padding: 1.25rem;
}

.view-panel {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Notice Card */
.notice-card {
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.25rem;
    color: #fef3c7;
}

.notice-card i {
    font-size: 1.4rem;
    color: var(--warning);
}

/* ========================================= */
/* 3 BIG ACTION CARDS (ENTRY VIEW) */
/* ========================================= */
.entry-hero-title {
    margin-bottom: 0.75rem;
}
.entry-hero-title h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Cairo', sans-serif;
}
.entry-hero-title p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-cam-icon {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .action-card:hover .card-cam-icon {
        color: #fff;
        transform: scale(1.1);
    }
}

.staff-footer-note {
    margin-top: 1.25rem;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.staff-footer-note i {
    color: var(--primary);
    font-size: 1rem;
}

.entry-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    width: 100%;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s, border-color 0.2s, filter 0.2s;
    box-shadow: var(--shadow-card);
}

.action-card:active {
    filter: brightness(1.08);
}

@media (hover: hover) and (pointer: fine) {
    .action-card:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
    }
}

.action-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.action-card .card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.action-card .card-text h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Cairo', sans-serif;
}

.action-card .card-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Card Specific Themes */
.card-income {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, #1e293b 100%);
}
.card-income .card-icon {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.card-maintenance {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, #1e293b 100%);
}
.card-maintenance .card-icon {
    background: var(--warning);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.card-expense {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, #1e293b 100%);
}
.card-expense .card-icon {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ========================================= */
/* SECTION BOXES & TRANSACTIONS FEED */
/* ========================================= */
.section-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.section-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.title-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-with-badge h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.badge-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Simplified Transactions Cards */
.transactions-simple-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-trx-card {
    background: #172033;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.trx-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.trx-type-dot {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.trx-type-dot.income { background: var(--success-bg); color: var(--success); }
.trx-type-dot.maintenance { background: var(--warning-bg); color: var(--warning); }
.trx-type-dot.expense { background: var(--danger-bg); color: var(--danger); }
.trx-type-dot.settlement { background: var(--gold-bg); color: #facc15; }

.trx-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trx-meta strong {
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trx-meta .trx-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.trx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.trx-amount {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
}

.badge-payer-tag {
    font-size: 0.68rem;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.badge-payer-tag.cash { background: var(--success-bg); color: var(--success); }
.badge-payer-tag.abu { background: var(--gold-bg); color: #facc15; }
.badge-payer-tag.transfer { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.trx-photo-link {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
}

/* ========================================= */
/* ADMIN DASHBOARD STYLES */
/* ========================================= */
.admin-top-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.admin-top-banner h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Cairo', sans-serif;
}

.admin-top-banner p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-box.cash-box { border-right: 4px solid var(--success); }
.stat-box.abu-box { border-right: 4px solid var(--gold); }
.stat-box.profit-box { border-right: 4px solid var(--primary); }

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-amount {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    color: #fff;
    margin: 4px 0;
}

.stat-amount small {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.btn-settle-mini {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #0b1120;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.summary-breakdown-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s;
}

.admin-action-btn:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.admin-action-btn i {
    font-size: 1.5rem;
}

.admin-action-btn span {
    font-size: 0.82rem;
    font-weight: 700;
}

/* ========================================= */
/* BOTTOM NAVIGATION BAR */
/* ========================================= */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 62px;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #1e293b;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-left: 4px;
    padding-right: 4px;
    margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

@media (max-width: 600px) {
    .bottom-nav-bar {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.bottom-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: color 0.15s ease;
    flex: 1;
    min-width: 0;
    padding: 6px 1px;
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-item span {
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 800;
}

.bottom-nav-item.admin-only.hidden {
    display: none !important;
}

/* ========================================= */
/* MODAL & FORMS (CLEAN & SIMPLE) */
/* ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: #172033;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* Auto-Time Pill (Shows users time is automatic) */
.auto-time-pill {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

/* Form Fields */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.form-input {
    background: #0f172a;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.form-input:focus {
    border-color: var(--border-focus);
}

.form-input-lg {
    font-size: 1.1rem;
    padding: 14px;
}

.form-input-huge {
    font-size: 1.7rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    padding: 12px 16px;
    color: #34d399;
}

/* Choice Buttons (كاش / تحويل) or (كاش / أبو مشعل) */
.choice-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice-btn {
    cursor: pointer;
}

.choice-btn input {
    display: none;
}

.choice-box {
    background: #0f172a;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.choice-box i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.choice-box strong {
    font-size: 0.95rem;
    color: #fff;
}

.choice-btn input:checked + .choice-box {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
}

.choice-btn input:checked + .choice-box i {
    color: var(--primary);
}

.choice-btn.choice-abu input:checked + .choice-box {
    border-color: var(--gold);
    background: var(--gold-bg);
}
.choice-btn.choice-abu input:checked + .choice-box i {
    color: var(--gold);
}

.choice-btn.choice-cash input:checked + .choice-box {
    border-color: var(--success);
    background: var(--success-bg);
}
.choice-btn.choice-cash input:checked + .choice-box i {
    color: var(--success);
}

/* Dedicated Photo Capture Section */
.photo-capture-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-camera-trigger, .btn-gallery-trigger {
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-camera-trigger {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-camera-trigger i {
    font-size: 1.6rem;
}

.btn-gallery-trigger {
    background: #0f172a;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.btn-gallery-trigger i {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.btn-camera-trigger:active {
    filter: brightness(1.15);
}

@media (hover: hover) and (pointer: fine) {
    .btn-camera-trigger:hover {
        filter: brightness(1.15);
        transform: translateY(-2px);
    }
}

.btn-gallery-trigger:hover, .btn-gallery-trigger:active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.photo-preview-wrapper {
    background: #0f172a;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-preview-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--success);
    font-weight: 700;
}

.photo-preview-wrapper img {
    max-height: 180px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-remove-photo {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: #f87171;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Submit Huge Button */
.btn-submit-huge {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-submit-huge:hover, .btn-submit-huge:active {
    filter: brightness(1.1);
}

/* Common Buttons */
.btn-sm-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

.btn-gold {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #0b1120;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

.btn-excel {
    background: #107c41;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Equipment Report Single Card */
.single-eq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.single-eq-card h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
}

.eq-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.eq-stat {
    background: #0f172a;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.eq-stat span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.eq-stat strong {
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Equipments Simple Grid */
.equipments-simple-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eq-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-wrapper {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.btn-close-lightbox {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease;
    text-align: center;
}

.toast.success { border-right: 4px solid var(--success); }
.toast.error { border-right: 4px solid var(--danger); }

/* Switch User Modal */
.users-switch-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-switch-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.user-switch-card:hover {
    border-color: var(--primary);
}

.user-switch-card.active {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* Utilities */
.view-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.view-header-row h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-success { color: #34d399 !important; }
.text-danger { color: #f87171 !important; }
.text-warning { color: #fbbf24 !important; }
.text-primary { color: #60a5fa !important; }
.gold-text { color: #facc15 !important; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.hidden { display: none !important; }

/* ========================================= */
/* PDF BUTTONS & ACTION CONTROLS */
/* ========================================= */
.btn-group-reports {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pdf {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
    transition: all 0.2s;
}

.btn-pdf:hover {
    filter: brightness(1.15);
}

.btn-pdf-header {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-pdf-header:hover {
    background: #dc2626;
    color: #fff;
}

/* Transaction Action Row (Edit, Delete, Voucher) */
.trx-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.btn-trx-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-trx-action.btn-edit:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: #3b82f6;
}

.btn-trx-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: #ef4444;
}

.btn-trx-action.btn-voucher:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: #10b981;
}

/* ========================================= */
/* OFFICIAL PRINT / PDF EXPORT ZONE */
/* ========================================= */
.pdf-export-zone {
    display: none;
    background: #fff;
    color: #0f172a;
    padding: 30px;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

.official-pdf-doc {
    background: #fff;
    color: #1e293b;
    padding: 24px;
    width: 100%;
}

.pdf-official-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px double #1e3a8a;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.pdf-brand-right h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e3a8a;
    margin-bottom: 3px;
    font-family: 'Cairo', sans-serif;
}

.pdf-brand-right p {
    font-size: 0.85rem;
    color: #475569;
}

.pdf-stamp-box {
    text-align: center;
    border: 2px solid #1e3a8a;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.pdf-stamp-box strong {
    font-size: 0.82rem;
    color: #1e3a8a;
    display: block;
}

.pdf-stamp-box span {
    font-size: 0.72rem;
    color: #64748b;
}

.pdf-meta-bar {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pdf-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pdf-kpi-item {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.pdf-kpi-item span {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.pdf-kpi-item strong {
    font-size: 1.15rem;
    color: #0f172a;
    font-family: 'Cairo', sans-serif;
    margin-top: 4px;
    display: block;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.82rem;
}

.pdf-table th {
    background: #1e3a8a;
    color: #fff;
    padding: 9px 10px;
    border: 1px solid #1e3a8a;
    text-align: right;
    font-weight: 700;
}

.pdf-table td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    vertical-align: middle;
}

.pdf-table tr:nth-child(even) td {
    background: #f8fafc;
}

.pdf-signatures {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #cbd5e1;
}

.pdf-sig-box {
    text-align: center;
    min-width: 180px;
}

.pdf-sig-box span {
    font-size: 0.82rem;
    color: #64748b;
    display: block;
    margin-bottom: 30px;
}

.pdf-sig-box strong {
    font-size: 0.95rem;
    color: #0f172a;
    border-top: 1px dashed #94a3b8;
    padding-top: 6px;
    display: block;
}

/* Print Overrides */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .mobile-app-container, .bottom-nav-bar, .app-header {
        display: none !important;
    }
    .pdf-export-zone {
        display: block !important;
        padding: 0 !important;
    }
}

/* Live Sync Alert Toast for Manager */
.live-sync-alert-toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a8a, #0284c7);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    text-align: center;
}

.live-sync-alert-toast.visible {
    top: 20px;
}

/* ========================================= */
/* SECURE LOGIN SCREEN OVERLAY */
/* ========================================= */
.login-screen-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, #060913 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    direction: rtl;
}

.login-screen-overlay.hidden {
    display: none !important;
}

.login-box-card {
    background: rgba(23, 32, 51, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 2.2rem 1.75rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
    animation: zoomIn 0.3s ease;
}

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

.login-brand-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-logo-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

.login-brand-header h2 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 4px;
}

.login-brand-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.login-badge-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.login-screen-form .form-group {
    margin-bottom: 1.25rem;
}

.login-screen-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 7px;
}

.login-input-lg {
    height: 48px;
    font-size: 0.95rem;
    background: #0f172a;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    padding: 0 14px;
    width: 100%;
    transition: all 0.2s;
}

.login-input-lg:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    outline: none;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-toggle-pwd {
    position: absolute;
    left: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
}

.btn-toggle-pwd:hover {
    color: #fff;
}

.login-options-row {
    margin-bottom: 1.25rem;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #0284c7;
    cursor: pointer;
}

.login-error-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    animation: shakeErr 0.4s ease;
}

@keyframes shakeErr {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.btn-login-action {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}

.btn-login-action:active {
    filter: brightness(0.95);
}

@media (hover: hover) and (pointer: fine) {
    .btn-login-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(2, 132, 199, 0.55);
    }
}

.login-roles-hint {
    margin-top: 1.25rem;
    text-align: center;
    color: #64748b;
    line-height: 1.4;
}

/* ========================================= */
/* GPS LOCATION VERIFICATION CARD */
/* ========================================= */
.gps-location-card {
    background: rgba(14, 165, 233, 0.08);
    border: 1.5px dashed rgba(14, 165, 233, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.gps-location-card.locked {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.5);
}

.gps-location-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gps-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.gps-location-card.locked .gps-icon-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.gps-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gps-info-text strong {
    font-size: 0.86rem;
    color: #f8fafc;
}

.gps-info-text span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.btn-gps-refresh {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.btn-gps-refresh:hover {
    transform: rotate(180deg);
}

.gps-details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.gps-coords-pill {
    font-size: 0.72rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    color: #94a3b8;
    direction: ltr;
}

.gps-map-link-btn {
    font-size: 0.74rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.gps-map-link-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
}

/* ========================================= */
/* EXPENSE CATEGORIES & DIESEL AUDIT */
/* ========================================= */
.expense-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.cat-pill {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-pill input[type="radio"] {
    display: none;
}

.cat-pill span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cat-pill span i {
    font-size: 1rem;
}

.cat-pill.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.cat-pill.active span {
    color: #fbbf24;
}

.diesel-audit-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 1rem;
    animation: fadeIn 0.25s ease;
}

.audit-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fbbf24;
}

.audit-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meter-box-frame {
    border: 1.5px dashed rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-md);
    padding: 10px;
    background: rgba(245, 158, 11, 0.04);
}

.btn-camera-trigger.meter-cam {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-gallery-trigger.meter-gal {
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

/* Transaction Card Badges for Location & Meter */
.trx-audit-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.audit-pill-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.audit-pill-badge.diesel-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.audit-pill-badge.gps-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-decoration: none;
    cursor: pointer;
}

.audit-pill-badge.gps-badge:hover {
    background: rgba(56, 189, 248, 0.3);
}

.trx-photos-dual-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.trx-dual-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: border-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .trx-dual-thumb:hover {
        transform: scale(1.05);
    }
}

/* Supabase Cloud Button in Admin Top Banner */
.btn-cloud-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .btn-cloud-header:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    }
}

.supabase-info-banner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.supabase-status-pill {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.status-dot-off {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.status-dot-on {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

/* ======================================================== */
/* 🌟 DRIVER CLEAN WHITE THEME (الواجهة البيضاء الواضحة للسائقين) */
/* ======================================================== */

body.driver-clean-mode {
    background-color: #f1f5f9 !important;
    background-image: none !important;
    color: #0f172a !important;
}

body.driver-clean-mode .mobile-app-container {
    background: #ffffff !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

body.driver-clean-mode .cloud-sync-bar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

/* Header */
body.driver-clean-mode .app-header {
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

body.driver-clean-mode .brand-icon-box {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
}

body.driver-clean-mode .company-titles h1 {
    color: #0f172a !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
}

body.driver-clean-mode .company-titles span {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.driver-clean-mode .header-user-bar {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
}

body.driver-clean-mode .user-info-text strong {
    color: #0f172a !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .user-role-tag.staff {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .btn-header-logout {
    background: #fee2e2 !important;
    border: 1.5px solid #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
}

/* Hero Section */
body.driver-clean-mode .entry-hero-title {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

body.driver-clean-mode .entry-hero-title h2 {
    color: #0f172a !important;
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    margin-bottom: 6px !important;
}

body.driver-clean-mode .entry-hero-title p {
    color: #475569 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* 3 Big Action Cards in Driver Clean White Mode */
body.driver-clean-mode .entry-actions-grid {
    gap: 16px !important;
}

body.driver-clean-mode .action-card {
    border-radius: 20px !important;
    padding: 1.4rem 1.3rem !important;
    border-width: 2.5px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

body.driver-clean-mode .action-card:active {
    background: #f1f5f9 !important;
}

body.driver-clean-mode .action-card .card-icon {
    width: 62px !important;
    height: 62px !important;
    border-radius: 18px !important;
    font-size: 2.2rem !important;
}

body.driver-clean-mode .action-card .card-text h3 {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px !important;
}

body.driver-clean-mode .action-card .card-text span {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-top: 4px !important;
}

body.driver-clean-mode .card-cam-icon {
    font-size: 1.8rem !important;
}

/* Card Income */
body.driver-clean-mode .card-income {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
}
body.driver-clean-mode .card-income .card-icon {
    background: #16a34a !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35) !important;
}
body.driver-clean-mode .card-income .card-text h3 {
    color: #15803d !important;
}
body.driver-clean-mode .card-income .card-text span {
    color: #166534 !important;
}
body.driver-clean-mode .card-income .card-cam-icon {
    color: #16a34a !important;
}

/* Card Expense / Diesel */
body.driver-clean-mode .card-expense {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}
body.driver-clean-mode .card-expense .card-icon {
    background: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35) !important;
}
body.driver-clean-mode .card-expense .card-text h3 {
    color: #b91c1c !important;
}
body.driver-clean-mode .card-expense .card-text span {
    color: #991b1b !important;
}
body.driver-clean-mode .card-expense .card-cam-icon {
    color: #dc2626 !important;
}

/* Card Maintenance */
body.driver-clean-mode .card-maintenance {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
}
body.driver-clean-mode .card-maintenance .card-icon {
    background: #d97706 !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35) !important;
}
body.driver-clean-mode .card-maintenance .card-text h3 {
    color: #b45309 !important;
}
body.driver-clean-mode .card-maintenance .card-text span {
    color: #92400e !important;
}
body.driver-clean-mode .card-maintenance .card-cam-icon {
    color: #d97706 !important;
}

/* Staff Footer Note */
body.driver-clean-mode .staff-footer-note {
    background: #f1f5f9 !important;
    border: 2px dashed #94a3b8 !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
}

/* Driver Recent Box */
body.driver-clean-mode .driver-recent-box {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

body.driver-clean-mode .driver-trx-card {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: transform 0.15s ease !important;
}

body.driver-clean-mode .driver-trx-card .driver-trx-right strong {
    font-size: 1.15rem !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .driver-trx-badge {
    padding: 5px 12px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .driver-trx-amount {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Modals in Driver Clean White Mode */
body.driver-clean-mode .modal-card {
    background: #ffffff !important;
    border: 2.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    border-radius: 24px !important;
    padding: 1.5rem !important;
}

body.driver-clean-mode .modal-header {
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
}

body.driver-clean-mode .modal-header h3 {
    color: #0f172a !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
}

body.driver-clean-mode .btn-close-modal {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 1.4rem !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
}

body.driver-clean-mode .form-field label {
    color: #0f172a !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

body.driver-clean-mode .form-input {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
}

body.driver-clean-mode .form-input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
}

body.driver-clean-mode select.form-input {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .form-input-huge {
    font-size: 2.3rem !important;
    font-weight: 900 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    border: 3px solid #10b981 !important;
    text-align: center !important;
    border-radius: 18px !important;
    padding: 14px !important;
}

body.driver-clean-mode .auto-time-pill {
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

body.driver-clean-mode .gps-location-card {
    background: #f0fdf4 !important;
    border: 2px solid #86efac !important;
    border-radius: 16px !important;
}

body.driver-clean-mode .gps-info-text strong {
    color: #166534 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .gps-info-text span {
    color: #15803d !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}

body.driver-clean-mode .gps-coords-pill {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .gps-map-link-btn {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1.5px solid #bfdbfe !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .diesel-audit-box {
    background: #fff7ed !important;
    border: 2px solid #fdba74 !important;
    border-radius: 16px !important;
}

body.driver-clean-mode .audit-box-title {
    color: #9a3412 !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
}

body.driver-clean-mode .diesel-audit-box .form-field label {
    color: #7c2d12 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .diesel-audit-box .form-input {
    background: #ffffff !important;
    border: 2px solid #fed7aa !important;
    color: #7c2d12 !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .cat-pill {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
}

body.driver-clean-mode .cat-pill.active {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

body.driver-clean-mode .choice-box {
    background: #ffffff !important;
    border: 2.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

body.driver-clean-mode .choice-btn input:checked + .choice-box {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}

body.driver-clean-mode .photo-upload-frame {
    background: #f8fafc !important;
    border: 2.5px dashed #94a3b8 !important;
    border-radius: 18px !important;
    padding: 18px !important;
}

body.driver-clean-mode .photo-hint-text {
    color: #1e293b !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

body.driver-clean-mode .btn-camera-snap {
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    padding: 15px 22px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
}

body.driver-clean-mode .btn-gallery-pick {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
}

body.driver-clean-mode .btn-primary-action {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    padding: 18px !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35) !important;
}

/* ======================================================== */
/* 🌟 DRIVER ACTIVE EQUIPMENT BAR (واجهة السائق لتحديد المعدة) */
/* ======================================================== */
.driver-active-equipment-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.driver-eq-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.driver-eq-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.driver-eq-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.driver-gps-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.driver-eq-select-box {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding: 10px 14px !important;
    cursor: pointer;
}

/* ======================================================== */
/* 🌟 MANAGER LIVE GPS TRACKING VIEW (نافذة تتبع السائقين للمدير) */
/* ======================================================== */
.tracking-hero-btn {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.18)) !important;
    border: 2px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
    transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tracking-hero-btn:hover {
        transform: translateY(-2px);
        border-color: #10b981 !important;
    }
}

.tracking-hero-btn i {
    font-size: 2rem !important;
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.15);
    padding: 12px;
    border-radius: 14px;
}

.tracking-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 4px;
}

.tracking-btn-content strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: #f8fafc;
}

.tracking-btn-content span {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Tracking Top Banner */
.tracking-top-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tracking-corp-tag {
    display: inline-block;
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tracking-banner-titles h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-banner-titles p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.tracking-top-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tracking-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #34d399;
}

.pulse-beacon-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulseDot 1.5s infinite;
}

.tracking-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tracking-refresh,
.btn-tracking-simulate {
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-tracking-refresh {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-tracking-refresh:hover {
    background: #1d4ed8;
}

.btn-tracking-simulate {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.btn-tracking-simulate:hover {
    background: rgba(245, 158, 11, 0.25);
}

/* Map Frame Card */
.map-frame-card {
    position: relative;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.map-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #172033;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.map-mode-pills {
    display: flex;
    gap: 6px;
}

.map-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.map-pill-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.map-extra-btns {
    display: flex;
    gap: 6px;
}

.map-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.map-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Leaflet Container */
.driver-tracking-map {
    width: 100%;
    height: 420px;
    background: #0f172a;
    z-index: 1;
}

.map-frame-card.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    border-radius: 0;
}

.map-frame-card.fullscreen-mode .driver-tracking-map {
    height: calc(100vh - 54px);
}

/* Route Overlay Bar */
.route-overlay-bar {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #10b981;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: slideUpFade 0.3s ease;
}

.route-overlay-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-overlay-details i {
    font-size: 1.4rem;
}

.route-overlay-details strong {
    display: block;
    font-size: 0.98rem;
    color: #f8fafc;
}

.route-overlay-details span {
    font-size: 0.82rem;
    color: #94a3b8;
}

.btn-close-route-pill {
    background: #ef4444;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Custom Leaflet Driver Marker */
.driver-custom-marker {
    position: relative;
    cursor: pointer;
}

.marker-pin-outer {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pulse-radar {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.25);
    animation: radarPulse 2s infinite ease-out;
}

.marker-pulse-radar.offline {
    background: rgba(148, 163, 184, 0.2);
    animation: none;
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.marker-avatar-disc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    z-index: 2;
    transition: transform 0.2s ease;
}

.marker-avatar-disc.offline {
    background: linear-gradient(135deg, #64748b, #475569);
    border-color: #cbd5e1;
}

.marker-vehicle-mini-tag {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 20px;
    height: 20px;
    background: #2563eb;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.65rem;
    z-index: 3;
}

.marker-driver-name-chip {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif !important;
}

.leaflet-popup-tip {
    background: #1e293b !important;
}

.map-driver-popup {
    padding: 16px;
    min-width: 240px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.popup-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.popup-title-box strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.popup-title-box span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.popup-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
}

.popup-info-row span {
    color: #94a3b8;
}

.popup-info-row strong {
    color: #f8fafc;
}

.popup-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-popup-gmaps,
.btn-popup-route {
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-popup-gmaps {
    background: #2563eb;
    color: #ffffff !important;
}

.btn-popup-route {
    background: #10b981;
    color: #ffffff;
}

/* Drivers Fleet Grid */
.drivers-fleet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.driver-fleet-card {
    background: #1e293b;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .driver-fleet-card:hover {
        border-color: rgba(59, 130, 246, 0.4);
        transform: translateY(-2px);
    }
}

.driver-fleet-card.is-online {
    border-color: rgba(16, 185, 129, 0.4);
}

.fleet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fleet-driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fleet-driver-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fleet-driver-avatar.online {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.fleet-driver-names strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
}

.fleet-driver-names span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.fleet-status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fleet-status-pill.online {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.fleet-status-pill.offline {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.fleet-equipment-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fleet-eq-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}

.fleet-eq-meta i {
    color: #eab308;
}

.fleet-meta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.fleet-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fleet-meta-item i {
    width: 16px;
    color: #3b82f6;
}

.fleet-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-fleet-action {
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-fleet-focus {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.btn-fleet-focus:hover {
    background: #3b82f6;
    color: #ffffff;
}

.btn-fleet-route {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.btn-fleet-route:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-fleet-maps {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.btn-fleet-maps:hover {
    background: #f59e0b;
    color: #ffffff;
}

/* Driver Stops Timeline */
.driver-timeline-list {
    position: relative;
    padding-right: 24px;
    margin-top: 12px;
}

.driver-timeline-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 7px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.timeline-stop-item {
    position: relative;
    margin-bottom: 14px;
}

.timeline-dot {
    position: absolute;
    right: -24px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #1e293b;
    box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-dot.fuel {
    background: #ef4444;
    box-shadow: 0 0 0 2px #ef4444;
}

.timeline-dot.income {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

.timeline-dot.maint {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b;
}

.timeline-stop-card {
    background: #172033;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

.timeline-stop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.timeline-stop-time {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 700;
}

.timeline-stop-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}

.timeline-stop-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ==========================================================================
   WATER TANKERS (وايتات الماء وحساب الردود والأطنان)
   ========================================================================== */

.tracking-nav-tabs {
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tracking-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tracking-tab-btn.active {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-tab-btn i {
    font-size: 1.1rem;
}

/* Date Controls Bar */
.tankers-date-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #1e293b;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.date-controls-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-controls-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #94a3b8;
}

.tanker-date-input {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
}

.tanker-date-input:focus {
    border-color: var(--primary);
}

.btn-date-quick {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-date-quick.active, .btn-date-quick:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tanker-sync-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Hero Metrics */
.tankers-hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.tanker-metric-card {
    background: linear-gradient(135deg, #1e293b 0%, #172033 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tanker-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
}

.tanker-metric-card.metric-trips::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tanker-metric-card.metric-tons::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.tanker-metric-card.metric-fleet::before { background: linear-gradient(90deg, #10b981, #34d399); }

.metric-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.metric-trips .metric-icon-wrap { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.metric-tons .metric-icon-wrap { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.metric-fleet .metric-icon-wrap { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 700;
}

.metric-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.metric-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

.metric-unit {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 700;
}

.metric-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

/* Tankers Cards Grid */
.tankers-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.tanker-card {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tanker-card:hover {
        transform: translateY(-2px);
        border-color: rgba(59, 130, 246, 0.4);
    }
}

.tanker-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tanker-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tanker-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.tanker-plate-name {
    display: flex;
    flex-direction: column;
}

.tanker-plate-name strong {
    font-size: 1.05rem;
    color: #f8fafc;
    font-weight: 800;
}

.tanker-plate-name span {
    font-size: 0.78rem;
    color: #94a3b8;
}

.tanker-badge-cap {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Tank Level Progress */
.tanker-level-box {
    background: #0f172a;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tanker-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.tanker-level-pct {
    font-weight: 900;
    color: #38bdf8;
    font-size: 0.95rem;
}

.tanker-level-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.tanker-level-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.tanker-level-sub {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.76rem;
    color: #64748b;
}

/* Stats Row */
.tanker-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tanker-stat-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tanker-stat-pill .pill-val {
    font-size: 1.15rem;
    font-weight: 900;
    color: #f8fafc;
}

.tanker-stat-pill .pill-lbl {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Action Buttons */
.tanker-actions-row {
    display: flex;
    gap: 8px;
}

.btn-tanker-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.btn-tanker-action:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-tanker-action.active-focus {
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Unloads List */
.tanker-unloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tanker-unload-item {
    background: #172033;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.tanker-unload-item:hover {
    background: #1e293b;
    border-color: rgba(59, 130, 246, 0.3);
}

.unload-left-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unload-badge-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    border: 2px solid rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.unload-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.unload-details strong {
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 800;
}

.unload-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.unload-meta i {
    font-size: 0.75rem;
}

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

.unload-tons-pill {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 900;
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.btn-unload-zoom {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-unload-zoom:hover {
    background: var(--primary);
    color: #fff;
}

/* Custom Marker Styles */
.tanker-map-marker {
    background: #1e293b;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.tanker-drop-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284c7;
    border: 3px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

/* ======================================================== */
/* 📱 ULTRA-STABLE MOBILE LAYOUT ENGINE (تثبيت كامل لواجهة الجوال) */
/* ======================================================== */

/* 1. Map touch behavior: Allow vertical page scrolling directly over maps */
#tankers-tracking-map,
#driver-tracking-map,
.leaflet-container {
    touch-action: pan-y !important;
}

/* 2. Prevent cards or buttons from jumping under finger on any touch device */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent !important;
    }
    .action-card,
    .btn-camera-trigger,
    .btn-gallery-trigger,
    .btn-login-action,
    .btn-cloud-header,
    .tracking-hero-btn,
    .driver-fleet-card,
    .tanker-card,
    .tanker-unload-item,
    .btn-submit-huge,
    .bottom-nav-item {
        transform: none !important;
        -webkit-transform: none !important;
    }
    .action-card:hover,
    .action-card:active,
    .btn-camera-trigger:hover,
    .btn-camera-trigger:active,
    .tanker-card:hover,
    .tanker-card:active,
    .driver-fleet-card:hover,
    .driver-fleet-card:active,
    .tracking-hero-btn:hover,
    .tracking-hero-btn:active {
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* 3. Mobile screen width protection: Prevent horizontal overflow */
@media (max-width: 540px) {
    .tankers-hero-metrics {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .tanker-metric-card {
        padding: 10px !important;
        gap: 8px !important;
    }
    .metric-icon-wrap {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }
    .metric-number {
        font-size: 1.25rem !important;
    }
    .metric-label {
        font-size: 0.72rem !important;
    }

    .tanker-date-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .date-controls-group {
        justify-content: space-between !important;
        width: 100% !important;
    }
    .tanker-sync-badge {
        justify-content: center !important;
        width: 100% !important;
    }

    .tanker-unload-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .unload-left-info {
        gap: 8px !important;
    }
    .unload-right-actions {
        justify-content: space-between !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding-top: 6px !important;
        width: 100% !important;
    }
}





