/* ═══════════════════════════════════════════════════════════
   Siriprakan Job Order — Responsive Global Styles
   Mobile-first: phone ≤ 768px | Desktop: > 768px
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

/* ─── App Shell ──────────────────────────────────────────── */
/* Mobile-first: full viewport */
.app-shell {
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

/* On desktop, driver-facing pages stay centered & narrow */
@media (min-width: 768px) {
    body.page-driver .app-shell {
        max-width: 560px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
    }
}

/* Admin pages: stretch to full available width */
@media (min-width: 768px) {
    body.page-admin .app-shell {
        max-width: 100%;
        box-shadow: none;
    }
}

/* ─── App Header ─────────────────────────────────────────── */
.app-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1565c0 100%);
    color: white;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(13,71,161,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .app-header {
        padding: 16px 32px;
    }
}

/* ─── Brand ──────────────────────────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    color: #1a73e8;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-subtitle {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400;
}

/* ─── Main Content Area ──────────────────────────────────── */
.app-main {
    padding: 16px;
}

@media (min-width: 768px) {
    .app-main {
        padding: 24px 32px;
    }
}

/* ─── Form Card ──────────────────────────────────────────── */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .form-card {
        padding: 28px 32px;
        border-radius: 20px;
    }
}

.form-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a73e8;
    font-weight: 700;
    letter-spacing: -0.4px;
}

@media (min-width: 768px) {
    .form-card h2 {
        font-size: 22px;
    }
}

/* ─── Form Inputs ────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
    background: #fff;
}

.form-input::placeholder {
    color: #aaa;
}

/* ─── Form Layout Rows ───────────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 500px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.half-width {
    flex: 1;
    min-width: 0;
}

.date-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-row .form-input {
    flex: 1;
}

.date-buttons {
    display: flex;
    gap: 4px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    font-size: 16px;
    padding: 15px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1557b0, #0d47a1);
    box-shadow: 0 6px 16px rgba(26,115,232,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e8f0fe;
    color: #1a73e8;
}

.btn-secondary:hover {
    background: #d2e3fc;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* ─── Section Dividers ───────────────────────────────────── */
.section-divider {
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: 0.3px;
}

/* ─── Utilities ──────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.warning-text {
    color: #f57c00;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ─── Money / Expenses Section ───────────────────────────── */
.money-display {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border-radius: 12px;
    padding: 18px 16px 12px;
    margin-bottom: 16px;
    border: 1px solid #e0e8f5;
}

.money-display .form-group {
    margin-bottom: 12px;
}

.money-display .form-group label {
    font-size: 12px;
    color: #666;
}

.money-display .form-input {
    background: #fff;
    border-color: #d0d8e8;
    padding: 10px 12px;
    font-size: 15px;
}

.money-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.money-row span {
    color: #666;
    font-weight: 500;
}

.money-row strong {
    font-size: 18px;
    color: #333;
}

.total-row {
    border-top: 2px solid #d0d8e8;
    margin-top: 8px;
    padding-top: 14px;
}

.total-row span {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.total-row strong {
    color: #1a73e8;
    font-size: 24px;
    font-weight: 700;
}

/* ─── Full Name / Mileage Displays ───────────────────────── */
.full-name-display {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    color: #2e7d32;
    font-weight: 500;
    border: 1px solid #c8e6c9;
}

.mileage-display {
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.mileage-display strong {
    color: #e65100;
    font-weight: 700;
}

/* ─── Slip Preview ───────────────────────────────────────── */
.slip-preview {
    margin-top: 12px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.slip-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    background: #f5f5f5;
}

.btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

/* ─── Select Input ───────────────────────────────────────── */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ─── Admin Shared: Back Button ──────────────────────────── */
.back-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ─── Admin: Data Table (Responsive) ────────────────────── */
.admin-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Desktop: normal table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead th {
    background: #f8faff;
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8f0fe;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f0f4ff;
    transition: background 0.15s;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #f8faff;
}

.admin-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 14px;
}

/* Mobile: transform table rows into cards */
@media (max-width: 767px) {
    .admin-table thead {
        display: none;
    }

    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tbody tr {
        border: 1px solid #e8f0fe;
        border-radius: 12px;
        margin: 12px 16px;
        width: calc(100% - 32px);
        padding: 4px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        gap: 8px;
    }

    .admin-table tbody td:last-child {
        border-bottom: none;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .admin-table tbody td[data-label=""] {
        justify-content: flex-end;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .admin-table tbody td[data-label=""]::before {
        display: none;
    }
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-sts  { background: #e8f0fe; color: #1a73e8; }
.badge-cp   { background: #fce8e6; color: #ea4335; }
.badge-stts { background: #e6f4ea; color: #34a853; }
.badge-jv   { background: #fef3e2; color: #fa7b17; }
.badge-other { background: #fff3e0; color: #e65100; }

/* ─── Admin: Summary Stats Bar ───────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #1a73e8;
}

.stat-card.green { border-left-color: #34a853; }
.stat-card.orange { border-left-color: #fa7b17; }
.stat-card.red { border-left-color: #ea4335; }

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a73e8;
}

.stat-card.green .stat-value { color: #34a853; }
.stat-card.orange .stat-value { color: #fa7b17; }
.stat-card.red .stat-value { color: #ea4335; }

/* ─── Admin: Toolbar (search + create) ──────────────────── */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-toolbar h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.btn-create {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(26,115,232,0.25);
}

.btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26,115,232,0.35);
}

/* ─── Amount / Status in tables ──────────────────────────── */
.amount {
    font-weight: 700;
    color: #2e7d32;
    text-align: right;
}

.status-complete {
    color: #2e7d32;
    font-weight: 600;
}

.status-pending {
    color: #f57c00;
    font-weight: 600;
}

/* ─── Alert / Flash Messages ─────────────────────────────── */
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #34a853;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ea4335;
}

/* ─── Dashboard Menu Grid ────────────────────────────────── */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    display: block;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #e8f0fe;
}

.menu-icon {
    font-size: 44px;
    margin-bottom: 14px;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.menu-desc {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* ─── Autocomplete ───────────────────────────────────────── */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-box {
    border: 1px solid #e0e0e0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    z-index: 90;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.autocomplete-box:empty {
    display: none;
}

.autocomplete-item {
    padding: 13px 16px;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f3f7ff;
}

/* ─── Mobile-only adjustments ────────────────────────────── */
@media (max-width: 400px) {
    .date-row {
        flex-direction: column;
    }

    .date-buttons {
        width: 100%;
    }

    .date-buttons .btn {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/DASHBOARD ────────────────────────────── */
body.page-admin {
            background: #f0f2f5;
        }

        /* ── Page Content ── */
        .page-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 24px 24px 60px;
        }
        @media (max-width: 767px) {
            .page-content { padding: 16px 16px 48px; }
        }

        /* ── Welcome bar ── */
        .welcome-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 8px;
        }
        .welcome-name {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a2e;
        }
        .refresh-badge {
            font-size: 11px;
            color: #aaa;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .refresh-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #34a853;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50%       { opacity: 0.3; }
        }

        /* ── Stats Grid ── */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-bottom: 24px;
        }
        @media (max-width: 900px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 480px) {
            .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
        }

        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 18px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border-left: 4px solid #1a73e8;
            transition: transform 0.15s;
        }
        .stat-card:hover { transform: translateY(-2px); }
        .stat-card.green  { border-left-color: #34a853; }
        .stat-card.orange { border-left-color: #fa7b17; }
        .stat-card.red    { border-left-color: #ea4335; }

        .stat-label {
            font-size: 10px;
            font-weight: 700;
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 6px;
        }
        .stat-value {
            font-size: 28px;
            font-weight: 800;
            color: #1a73e8;
            line-height: 1;
            transition: color 0.3s;
        }
        .stat-card.green  .stat-value { color: #34a853; }
        .stat-card.orange .stat-value { color: #fa7b17; }
        .stat-card.red    .stat-value { color: #ea4335; }
        .stat-sub {
            font-size: 11px;
            color: #bbb;
            margin-top: 4px;
        }

        /* ── Quick Actions ── */
        .quick-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .qa-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 18px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.18s;
            white-space: nowrap;
        }
        .qa-btn.primary {
            background: linear-gradient(135deg, #1a73e8, #1557b0);
            color: white;
            box-shadow: 0 3px 10px rgba(26,115,232,0.28);
        }
        .qa-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,115,232,0.36); }
        .qa-btn.secondary {
            background: white;
            color: #1a73e8;
            border: 1.5px solid #d0e1fc;
        }
        .qa-btn.secondary:hover { background: #f0f7ff; border-color: #1a73e8; }
        .qa-btn.green {
            background: #34a853;
            color: white;
            box-shadow: 0 3px 10px rgba(52,168,83,0.25);
        }
        .qa-btn.green:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(52,168,83,0.35); }

        /* ── Section heading ── */
        .section-heading {
            font-size: 15px;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .section-heading .count-tag {
            background: #e8f0fe;
            color: #1a73e8;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 20px;
        }

        /* ── Today Jobs Table ── */
        .table-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .today-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13.5px;
        }
        .today-table thead th {
            background: #f8faff;
            padding: 11px 14px;
            text-align: left;
            font-size: 10px;
            font-weight: 700;
            color: #1a73e8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e8f0fe;
            white-space: nowrap;
        }
        .today-table tbody tr {
            border-bottom: 1px solid #f4f6f9;
            transition: background 0.12s;
        }
        .today-table tbody tr:last-child { border-bottom: none; }
        .today-table tbody tr:hover { background: #f8faff; }
        .today-table tbody td {
            padding: 11px 14px;
            vertical-align: middle;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }
        .pill-done    { background: #e6f4ea; color: #2e7d32; }
        .pill-pending { background: #fef3e2; color: #e65100; }

        .job-id-link {
            font-weight: 700;
            color: #1a73e8;
            text-decoration: none;
            font-family: monospace;
            font-size: 13px;
        }
        .job-id-link:hover { text-decoration: underline; }

        .empty-today {
            text-align: center;
            padding: 52px 20px;
            color: #aaa;
        }
        .empty-today p { font-size: 14px; margin-top: 8px; }

        /* ── Logout ── */
        .logout-btn {
            background: transparent;
            color: white;
            border: 1px solid rgba(255,255,255,0.45);
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            font-family: inherit;
            font-weight: 500;
            transition: background 0.2s;
        }
        .logout-btn:hover { background: rgba(255,255,255,0.15); }

        /* ── Responsive table → cards on mobile ── */
        @media (max-width: 767px) {
            .today-table thead { display: none; }
            .today-table, .today-table tbody, .today-table tr, .today-table td { display: block; width: 100%; }
            .today-table tbody tr {
                border: 1px solid #e8f0fe;
                border-radius: 12px;
                margin: 10px 14px;
                width: calc(100% - 28px);
                padding: 4px 0;
            }
            .today-table tbody td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 8px 14px;
                border-bottom: 1px solid #f4f6f9;
                font-size: 13px;
            }
            .today-table tbody td:last-child { border-bottom: none; }
            .today-table tbody td::before {
                content: attr(data-label);
                font-size: 10px;
                font-weight: 700;
                color: #bbb;
                text-transform: uppercase;
                letter-spacing: 0.4px;
                flex-shrink: 0;
                margin-right: 12px;
            }
        }

        /* ── Analytics Chart ── */
        .chart-container {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 24px;
            height: 300px;
            position: relative;
        }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/HELPERS/EDIT ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
        body.page-admin { background: #f0f2f7; font-family: 'Inter', sans-serif; }

        .page-content { max-width: 800px; margin: 0 auto; padding: 40px 24px; }

        .form-card {
            background: #fff;
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.06);
            border: 1px solid #e2e8f0;
        }

        .form-header {
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid #f1f5f9;
        }
        .form-title { font-size: 20px; font-weight: 800; color: #1e293b; }
        .form-subtitle { font-size: 14px; color: #64748b; margin-top: 4px; }

        .form-group { margin-bottom: 20px; }
        .form-group label {
            display: block; font-size: 13.5px; font-weight: 700; color: #475569; margin-bottom: 8px;
        }
        .form-input {
            width: 100%; padding: 12px 16px; border: 1.5px solid #cbd5e1; border-radius: 12px; font-size: 15px; font-family: 'Inter', sans-serif; background: #f8fafc; transition: all 0.2s; outline: none;
        }
        .form-input:focus { border-color: #1a73e8; background: #fff; box-shadow: 0 0 0 4px rgba(26,115,232,0.1); }

        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        @media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

        .btn-submit {
            background: linear-gradient(135deg, #1a73e8, #1557b0);
            color: white; border: none; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.2s; width: 100%; box-shadow: 0 4px 14px rgba(26,115,232,0.3); display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px;
        }
        .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,115,232,0.4); }

        .btn-cancel {
            display: block; text-align: center; color: #64748b; font-weight: 600; font-size: 14px; margin-top: 16px; text-decoration: none; transition: color 0.2s;
        }
        .btn-cancel:hover { color: #0f172a; text-decoration: underline; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/HELPERS/INDEX ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
        body.page-admin { background: #f0f2f7; font-family: 'Inter', sans-serif; }

        .page-content { max-width: 1480px; margin: 0 auto; padding: 28px 24px 80px; }

        /* ── Hero ── */
        .page-hero {
            background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d47a1 100%);
            border-radius: 20px; padding: 28px 32px; margin-bottom: 22px;
            position: relative; overflow: hidden;
            display: flex; align-items: center; justify-content: space-between;
        }
        .page-hero::before {
            content: ''; position: absolute; top: -50px; right: -30px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
        .hero-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #34a853, #2e7d32); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(52,168,83,0.4); flex-shrink: 0; }
        .hero-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
        .hero-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

        .btn-export {
            background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; backdrop-filter: blur(8px);
        }
        .btn-export:hover { background: rgba(255,255,255,0.2); }

        /* ── Filters ── */
        .filter-bar {
            background: white; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
        }
        .filter-bar input {
            border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: 'Inter', sans-serif; background: #f8fafc; outline: none; transition: border-color 0.2s; flex: 1; min-width: 160px;
        }
        .filter-bar input:focus { border-color: #1a73e8; background: #fff; }
        .filter-count { margin-left: auto; font-size: 13px; font-weight: 600; color: #64748b; white-space: nowrap; }

        /* ── Table ── */
        .table-wrapper { background: white; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #e2e8f0; }
        .table-scroll { overflow-x: auto; }
        table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
        thead th { background: #f8faff; padding: 14px 16px; text-align: left; font-size: 11px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
        tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
        tbody tr:last-child { border-bottom: none; }
        tbody tr:hover { background: #f8fafc; }
        tbody td { padding: 14px 16px; vertical-align: middle; white-space: nowrap; color: #1e293b; font-weight: 500; }
        
        .time-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
        .time-in  { background: #dcfce7; color: #166534; }
        .time-out { background: #fee2e2; color: #991b1b; }

        .btn-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s; background: transparent; }
        .btn-edit { color: #3b82f6; }
        .btn-edit:hover { background: #eff6ff; }
        .btn-delete { color: #ef4444; }
        .btn-delete:hover { background: #fef2f2; }

        /* ── Alerts ── */
        .alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
        .alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

        /* ── Empty state ── */
        .empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
        .empty-state svg { width: 48px; height: 48px; stroke: #cbd5e1; margin-bottom: 16px; }
        .empty-state p { font-size: 15px; font-weight: 600; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/JOBS/BULK ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
        body.page-admin { background: #f0f2f7; font-family: 'Inter', sans-serif; }

        .page-content { max-width: 1480px; margin: 0 auto; padding: 28px 24px 80px; }

        /* ── Hero ── */
        .page-hero {
            background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d47a1 100%);
            border-radius: 20px; padding: 28px 32px; margin-bottom: 22px;
            position: relative; overflow: hidden;
        }
        .page-hero::before {
            content: ''; position: absolute; top: -50px; right: -30px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
        .hero-title-group { display: flex; align-items: center; gap: 14px; }
        .hero-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.2); flex-shrink: 0; }
        .hero-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
        .hero-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

        /* ── Preview Bar (Glassmorphism) ── */
        .preview-bar {
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
            border-radius: 14px; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 24px; position: relative; z-index: 1;
            backdrop-filter: blur(8px);
        }
        .preview-chip { display: flex; flex-direction: column; gap: 4px; }
        .chip-label { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
        .chip-value { font-size: 18px; font-weight: 800; color: #fff; }
        .chip-input {
            background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: #fff; font-family: 'Inter', sans-serif; outline: none; cursor: pointer; transition: all 0.2s;
        }
        .chip-input:focus { border-color: #1a73e8; background: rgba(0,0,0,0.4); }
        .chip-input option { background: #1a1a2e; color: #fff; }
        .preview-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

        /* ── Table ── */
        .bulk-table-container { overflow-x: auto; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        .bulk-table { width: 100%; border-collapse: collapse; min-width: 1400px; }
        .bulk-table th { background: #f8faff; padding: 12px 10px; text-align: left; font-size: 11px; font-weight: 800; color: #7986cb; border-bottom: 2px solid #eef0fb; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
        .bulk-table td { padding: 0; border-bottom: 1px solid #f4f6f9; vertical-align: middle; }
        
        .bulk-input { width: 100%; height: 46px; padding: 6px 10px; border: none; outline: none; font-size: 13.5px; background: transparent; font-family: 'Inter', sans-serif; transition: background 0.1s; }
        .bulk-input:focus { background: #eef2ff; }
        .bulk-select { width: 100%; height: 46px; padding: 4px 10px; border: none; outline: none; font-size: 13px; background: transparent; font-family: 'Inter', sans-serif; cursor: pointer; }
        .bulk-select:focus { background: #eef2ff; }
        
        .job-id-cell { padding: 0 10px; font-size: 12.5px; font-weight: 800; color: #1a73e8; white-space: nowrap; display: flex; align-items: center; gap: 6px; height: 46px; font-variant-numeric: tabular-nums; }
        .btn-copy { background: none; border: 1px solid #c5d8fa; border-radius: 6px; padding: 2px 6px; font-size: 10.5px; font-weight: 700; color: #1a73e8; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
        .btn-copy:hover { background: #e8f0fe; }
        .btn-copy.copied { background: #e6f4ea; color: #2e7d32; border-color: #a5d6a7; }
        
        .row-active { background: #f9faff !important; }
        .btn-remove-row { background: transparent; color: #ef4444; border: none; cursor: pointer; padding: 8px; font-size: 18px; opacity: 0.5; transition: all 0.2s; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
        .btn-remove-row:hover { opacity: 1; background: #fee2e2; }
        
        .amount-input { color: #1a73e8; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

        /* per-row autocomplete */
        .row-ac-wrap { position: relative; }
        .row-ac-box {
            display: none; position: fixed; min-width: 240px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.12); z-index: 99999; max-height: 240px; overflow-y: auto; padding: 4px;
        }
        .row-ac-box.open { display: block; animation: popIn 0.15s ease-out; }
        @keyframes popIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
        .row-ac-item { padding: 10px 14px; font-size: 13px; cursor: pointer; border-radius: 8px; font-weight: 500; color: #1e293b; }
        .row-ac-item:hover { background: #f1f5f9; color: #0f172a; }

        /* Actions */
        .action-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
        .btn-add-row { background: white; color: #1a73e8; border: 1.5px solid #1a73e8; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
        .btn-add-row:hover { background: #f0f7ff; }
        .shortcut-hint { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 6px; font-weight: 500; }
        .key { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-family: monospace; color: #475569; }

        /* Sticky footer */
        .footer-actions { position: sticky; bottom: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); padding: 16px 24px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 24px rgba(0,0,0,0.06); margin-top: 24px; z-index: 100; border-radius: 16px 16px 0 0; }
        .footer-totals { font-size: 14px; font-weight: 600; color: #64748b; }
        .footer-totals strong { color: #1e293b; font-size: 18px; margin: 0 4px; }
        .footer-totals .sum { color: #10b981; font-weight: 800; font-size: 22px; margin-left: 8px; }
        .btn-save { background: linear-gradient(135deg, #1a73e8, #1557b0); color: white; border: none; padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(26,115,232,0.3); display: inline-flex; align-items: center; gap: 8px; }
        .btn-save:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,115,232,0.4); }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/JOBS/EDIT ────────────────────────────── */
.edit-card { background:#fff; border-radius:14px; padding:28px 28px 20px; box-shadow:0 2px 12px rgba(0,0,0,0.07); max-width:700px; margin:0 auto; }
        .edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
        @media(max-width:600px){ .edit-grid{ grid-template-columns:1fr; } }
        .field-label { font-size:12px; font-weight:700; color:#666; text-transform:uppercase; letter-spacing:0.4px; margin-bottom:5px; }
        .field-input { width:100%; padding:10px 12px; border:1.5px solid #e0e0e0; border-radius:8px; font-size:15px; font-family:inherit; outline:none; transition:border-color 0.2s; }
        .field-input:focus { border-color:#1a73e8; background:#f8fbff; }
        .field-input[readonly] { background:#f5f5f5; color:#888; }
        .section-title { font-size:13px; font-weight:700; color:#1a73e8; text-transform:uppercase; letter-spacing:0.5px; margin:20px 0 12px; border-bottom:1px solid #e8f0fe; padding-bottom:6px; }
        .btn-row { display:flex; gap:10px; justify-content:flex-end; margin-top:24px; flex-wrap:wrap; }
        .btn-save { background:#1a73e8; color:#fff; border:none; border-radius:8px; padding:11px 28px; font-size:15px; font-weight:600; cursor:pointer; font-family:inherit; transition:background 0.2s; }
        .btn-save:hover { background:#1558b0; }
        .btn-cancel { background:#f0f0f0; color:#555; border:none; border-radius:8px; padding:11px 20px; font-size:15px; cursor:pointer; font-family:inherit; text-decoration:none; display:inline-flex; align-items:center; }
        .badge-jobid { display:inline-block; background:#e8f0fe; color:#1a73e8; border-radius:6px; padding:3px 10px; font-weight:700; font-size:15px; margin-bottom:18px; }
        .status-toggle { display:flex; gap:8px; }
        .status-toggle label { flex:1; cursor:pointer; }
        .status-toggle input[type=radio] { display:none; }
        .status-toggle .s-btn { display:block; text-align:center; padding:9px; border-radius:8px; border:1.5px solid #e0e0e0; font-size:14px; font-weight:600; transition:all 0.2s; }
        .status-toggle input[type=radio]:checked + .s-btn.pending { background:#fff3e0; border-color:#fb8c00; color:#e65100; }
        .status-toggle input[type=radio]:checked + .s-btn.completed { background:#e8f5e9; border-color:#34a853; color:#1b5e20; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/JOBS ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
        body.page-admin { background: #f0f2f7; font-family: 'Inter', sans-serif; }

        .page-content { max-width: 1480px; margin: 0 auto; padding: 28px 24px 80px; }

        /* ── Hero ── */
        .page-hero {
            background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d47a1 100%);
            border-radius: 20px; padding: 28px 32px; margin-bottom: 22px;
            position: relative; overflow: hidden;
        }
        .page-hero::before {
            content: ''; position: absolute; top: -50px; right: -30px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
            border-radius: 50%;
        }
        .page-hero::after {
            content: ''; position: absolute; bottom: -60px; left: 35%;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
        .hero-title-group { display: flex; align-items: center; gap: 14px; }
        .hero-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.2); flex-shrink: 0; }
        .hero-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
        .hero-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
        .back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; transition: all 0.2s; }
        .back-link:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }
        .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
        .btn-hero { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; text-decoration: none; border: none; transition: all 0.18s; white-space: nowrap; }
        .btn-hero-primary { background: linear-gradient(135deg, #1a73e8, #1557b0); color: #fff; box-shadow: 0 4px 14px rgba(26,115,232,0.35); }
        .btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,115,232,0.45); }
        .btn-hero-secondary { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
        .btn-hero-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }

        /* ── Stats ── */
        .stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
        @media (max-width: 900px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 500px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
        .stat-card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 14px 18px; backdrop-filter: blur(4px); }
        .stat-label { font-size: 10.5px; color: rgba(255,255,255,0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
        .stat-value { font-size: 26px; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
        .stat-value.green { color: #a5f3c8; }
        .stat-value.orange { color: #fde68a; }
        .stat-value.blue { color: #bae6fd; font-size: 20px; }
        .stat-value.red { color: #fca5a5; }

        /* ── Flash ── */
        .flash-area { margin-bottom: 16px; }
        .alert { border-radius: 12px; padding: 12px 18px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
        .alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

        /* ── Filter Bar ── */
        .filter-bar {
            background: #fff; border-radius: 14px; padding: 14px 18px;
            box-shadow: 0 1px 6px rgba(0,0,0,0.06);
            display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
            margin-bottom: 16px;
        }
        .filter-input {
            border: 1.5px solid #ebebeb; border-radius: 9px;
            padding: 8px 12px 8px 34px; font-size: 13px;
            font-family: 'Inter', sans-serif; outline: none;
            background: #fafafa; transition: border-color 0.18s;
            flex: 1; min-width: 200px;
        }
        .filter-input:focus { border-color: #1a73e8; background: #fff; }
        .filter-wrap { position: relative; flex: 1; min-width: 200px; }
        .filter-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #bbb; pointer-events: none; }
        .filter-select {
            border: 1.5px solid #ebebeb; border-radius: 9px;
            padding: 8px 32px 8px 12px; font-size: 13px;
            font-family: 'Inter', sans-serif; outline: none;
            background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
            appearance: none; cursor: pointer; transition: border-color 0.18s;
        }
        .filter-select:focus { border-color: #1a73e8; background-color: #fff; }
        .filter-count { margin-left: auto; font-size: 12px; color: #bbb; font-weight: 600; white-space: nowrap; padding: 6px 12px; background: #f5f5f5; border-radius: 20px; }

        /* ── Table Card ── */
        .table-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); overflow: hidden; }

        /* ── Table ── */
        .jobs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
        .jobs-table thead th {
            background: #f5f7ff; padding: 11px 14px;
            text-align: left; font-size: 10px; font-weight: 800;
            color: #7986cb; text-transform: uppercase; letter-spacing: 0.5px;
            border-bottom: 2px solid #eef0fb; white-space: nowrap;
            position: sticky; top: 0; z-index: 2;
        }
        .jobs-table tbody tr { border-bottom: 1px solid #f4f6ff; transition: background 0.1s; }
        .jobs-table tbody tr:hover { background: #f9faff; }
        .jobs-table tbody td { padding: 11px 14px; vertical-align: middle; }

        /* Status pill */
        .pill {
            display: inline-flex; align-items: center; gap: 5px;
            padding: 3px 10px; border-radius: 20px;
            font-size: 11px; font-weight: 700; white-space: nowrap;
        }
        .pill-completed { background: #e8f5e9; color: #2e7d32; }
        .pill-pending   { background: #fff8e1; color: #f57c00; }
        .pill::before { content: '●'; font-size: 7px; }

        /* Company badge */
        .co-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; }
        .co-sts   { background: #e8f0fe; color: #1557b0; }
        .co-cp    { background: #fce8e6; color: #c62828; }
        .co-sttc  { background: #e6f4ea; color: #2e7d32; }
        .co-jv    { background: #fff3e0; color: #e65100; }
        .co-other { background: #f3e5f5; color: #6a1b9a; }

        /* Job ID link */
        .job-id-link { color: #1a73e8; font-weight: 800; text-decoration: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
        .job-id-link:hover { text-decoration: underline; }

        /* Amount */
        .amount-cell { font-weight: 800; color: #1a73e8; text-align: right; font-variant-numeric: tabular-nums; }
        .amount-cell.zero { color: #ccc; }

        /* Slip icon */
        .slip-thumb {
            width: 36px; height: 36px; border-radius: 8px;
            object-fit: cover; cursor: pointer;
            border: 2px solid #e0e0e0; transition: all 0.15s;
        }
        .slip-thumb:hover { border-color: #1a73e8; transform: scale(1.1); box-shadow: 0 4px 12px rgba(26,115,232,0.25); }
        .slip-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #e8f0fe; border-radius: 8px; cursor: pointer; color: #1a73e8; transition: all 0.15s; border: none; }
        .slip-icon:hover { background: #1a73e8; color: #fff; transform: scale(1.08); }
        .no-slip { color: #ddd; font-size: 11px; }

        /* Action btns */
        .act-btns { display: flex; gap: 6px; align-items: center; justify-content: center; }
        .btn-edit { display: inline-flex; align-items: center; gap: 4px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; border-radius: 7px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; text-decoration: none; transition: all 0.15s; }
        .btn-edit:hover { background: #e0e7ff; }
        .btn-del { display: inline-flex; align-items: center; gap: 4px; background: #fff0f0; color: #c62828; border: 1px solid #fecaca; border-radius: 7px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
        .btn-del:hover { background: #fee2e2; }

        /* Driver/helper cell */
        .driver-cell { font-weight: 600; color: #1a1a2e; }
        .driver-role { font-size: 10.5px; color: #aaa; font-weight: 500; }
        .customer-cell { font-weight: 700; color: #1a1a2e; }
        .pickup-cell { font-size: 11.5px; color: #888; }
        .notes-cell { font-size: 11.5px; color: #d32f2f; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* Empty */
        .empty-state { text-align: center; padding: 80px 20px; }
        .empty-state p { color: #bbb; font-size: 14px; margin-top: 14px; }

        /* ── Lightbox ── */
        .lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; backdrop-filter: blur(4px); }
        .lightbox.open { display: flex; animation: fadeIn 0.18s ease; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); cursor: default; }
        .lightbox-close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; }
        .lightbox-close:hover { background: rgba(255,255,255,0.3); }

        /* ── Del Confirm ── */
        .del-overlay { display: none; position: fixed; inset: 0; background: rgba(15,20,40,0.55); z-index: 2000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
        .del-overlay.open { display: flex; }
        .del-box { background: #fff; border-radius: 18px; padding: 28px 26px; width: 100%; max-width: 380px; box-shadow: 0 24px 64px rgba(0,0,0,0.22); animation: modalIn 0.2s ease; }
        @keyframes modalIn { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
        .del-icon { width: 50px; height: 50px; background: #ffebee; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
        .del-title { font-size: 17px; font-weight: 800; color: #1a1a2e; text-align: center; margin-bottom: 6px; }
        .del-body { font-size: 13px; color: #888; text-align: center; margin-bottom: 20px; }
        .del-id { color: #c62828; font-weight: 800; }
        .del-btns { display: flex; gap: 10px; }
        .del-btn { flex: 1; padding: 11px 0; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.15s; }
        .del-cancel { background: #f0f0f0; color: #555; }
        .del-cancel:hover { background: #e0e0e0; }
        .del-confirm { background: #c62828; color: #fff; }
        .del-confirm:hover { background: #b71c1c; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/REPORTS ────────────────────────────── */
body.page-job-details { background: #f0f2f5; }

        /* ── Page Header ── */
        .page-header {
            background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
            color: white;
            padding: 16px 20px;
            position: sticky;
            top: 0;
            z-index: 200;
            box-shadow: 0 2px 12px rgba(13,71,161,0.35);
        }
        .page-header-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .page-header .brand { display: flex; align-items: center; gap: 12px; }
        .page-header .brand-mark {
            width: 40px; height: 40px;
            background: rgba(255,255,255,0.95);
            color: #1a73e8; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800; font-size: 18px;
        }
        .page-header .brand-name { font-size: 17px; font-weight: 700; }
        .page-header .brand-subtitle { font-size: 11px; opacity: 0.8; }

        .btn-back {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.4);
            border-radius: 10px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: background 0.2s;
            white-space: nowrap;
        }
        .btn-back:hover { background: rgba(255,255,255,0.3); }

        .page-body {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px 24px 40px;
        }

        @media (max-width: 767px) {
            .page-body { padding: 16px 16px 40px; }
        }

        /* ── Summary Cards ── */
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 24px;
        }
        .summary-card {
            background: white;
            border-radius: 14px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border-left: 4px solid #1a73e8;
        }
        .summary-card.green { border-left-color: #34a853; }
        .summary-card.orange { border-left-color: #fa7b17; }
        .summary-card.red { border-left-color: #ea4335; }
        .summary-card .label {
            font-size: 11px; font-weight: 600; color: #888;
            text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
        }
        .summary-card .value {
            font-size: 22px; font-weight: 800; color: #1a73e8;
        }
        .summary-card.green .value { color: #34a853; }
        .summary-card.orange .value { color: #fa7b17; }
        .summary-card.red .value { color: #ea4335; }

        /* ── Filters ── */
        .filter-bar {
            background: white;
            border-radius: 14px;
            padding: 14px 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-bottom: 16px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }
        .filter-bar input, .filter-bar select {
            border: 1.5px solid #e0e0e0;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 14px;
            font-family: inherit;
            background: #fafbfc;
            outline: none;
            transition: border-color 0.2s;
        }
        .filter-bar input:focus, .filter-bar select:focus { border-color: #1a73e8; }
        .filter-bar input { flex: 1; min-width: 160px; }
        .filter-count {
            margin-left: auto;
            font-size: 13px;
            color: #888;
            white-space: nowrap;
        }

        /* ── Table ── */
        .table-wrapper {
            background: white;
            border-radius: 14px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            overflow: hidden;
        }
        .table-scroll { overflow-x: auto; }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        thead th {
            background: #f8faff;
            padding: 12px 14px;
            text-align: left;
            font-size: 11px;
            font-weight: 700;
            color: #1a73e8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e8f0fe;
            white-space: nowrap;
        }
        tbody tr {
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.15s;
        }
        tbody tr:last-child { border-bottom: none; }
        tbody tr:hover { background: #f8faff; }
        tbody td { padding: 12px 14px; vertical-align: middle; white-space: nowrap; }
        .td-wrap { white-space: normal; max-width: 160px; }

        /* ── Badges ── */
        .badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
        }
        .badge-sts  { background: #e8f0fe; color: #1a73e8; }
        .badge-cp   { background: #fce8e6; color: #ea4335; }
        .badge-stts { background: #e6f4ea; color: #34a853; }
        .badge-jv   { background: #fef3e2; color: #fa7b17; }

        /* ── Amount cols ── */
        .amount { text-align: right; font-variant-numeric: tabular-nums; }
        .total-amount { font-weight: 700; color: #1a73e8; }

        /* ── Slip Button ── */
        .btn-slip {
            display: inline-flex; align-items: center; gap: 5px;
            background: linear-gradient(135deg, #34a853, #2e7d32);
            color: white; border: none; border-radius: 8px;
            padding: 7px 12px; font-size: 12px; font-weight: 600;
            cursor: pointer; transition: all 0.2s; white-space: nowrap;
        }
        .btn-slip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(52,168,83,0.4); }
        .btn-no-slip {
            display: inline-block;
            font-size: 11px; color: #bbb;
        }

        /* ── Empty state ── */
        .empty-state {
            text-align: center; padding: 60px 20px; color: #aaa;
        }
        .empty-state .icon { font-size: 48px; margin-bottom: 16px; }
        .empty-state p { font-size: 15px; }

        /* ── Modal ── */
        .modal-overlay {
            display: none;
            position: fixed; inset: 0; z-index: 1000;
            background: rgba(0,0,0,0.75);
            align-items: center; justify-content: center;
            padding: 16px;
        }
        .modal-overlay.active { display: flex; }
        .modal-box {
            background: white;
            border-radius: 20px;
            max-width: 480px;
            width: 100%;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            animation: modalPop 0.25s ease;
        }
        @keyframes modalPop {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to   { opacity: 1; transform: scale(1)  translateY(0); }
        }
        .modal-header {
            background: linear-gradient(135deg, #1a73e8, #0d47a1);
            color: white; padding: 16px 20px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .modal-header h3 { font-size: 16px; font-weight: 700; }
        .modal-close {
            background: rgba(255,255,255,0.2); border: none; color: white;
            width: 32px; height: 32px; border-radius: 50%; font-size: 18px;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: background 0.2s;
        }
        .modal-close:hover { background: rgba(255,255,255,0.35); }
        .modal-meta {
            padding: 16px 20px 0;
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .meta-item .meta-label {
            font-size: 10px; font-weight: 700; color: #999;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .meta-item .meta-value { font-size: 14px; font-weight: 600; color: #333; }
        .modal-img-wrap {
            padding: 16px 20px 20px;
        }
        .modal-img-wrap img {
            width: 100%; border-radius: 12px;
            border: 1px solid #eee; max-height: 380px; object-fit: contain;
            background: #f8f8f8;
            cursor: zoom-in;
        }
        .modal-img-wrap .no-slip-placeholder {
            text-align: center; padding: 40px 20px; color: #aaa;
            border: 2px dashed #ddd; border-radius: 12px;
        }
        .modal-img-wrap .no-slip-placeholder .icon { font-size: 40px; display: block; margin-bottom: 8px; }

        /* ── Expense breakdown in modal ── */
        .modal-expenses {
            padding: 0 20px 20px;
        }
        .expense-row {
            display: flex; justify-content: space-between;
            padding: 6px 0; border-bottom: 1px solid #f5f5f5;
            font-size: 13px;
        }
        .expense-row:last-child { border-bottom: none; }
        .expense-row .label-exp { color: #666; }
        .expense-row .val-exp { font-weight: 600; color: #333; }
        .expense-total-row {
            display: flex; justify-content: space-between;
            padding: 10px 0 0; border-top: 2px solid #e8f0fe; margin-top: 4px;
        }
        .expense-total-row .label-exp { font-weight: 700; color: #333; font-size: 14px; }
        .expense-total-row .val-exp { font-weight: 800; color: #1a73e8; font-size: 18px; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/ADMIN/ROUTES/INDEX ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body.page-admin {
            background: #f0f2f7;
            font-family: 'Inter', sans-serif;
        }

        /* ── Page Layout ── */
        .page-content {
            max-width: 1340px;
            margin: 0 auto;
            padding: 28px 24px 80px;
        }

        /* ── Hero ── */
        .page-hero {
            background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d47a1 100%);
            border-radius: 20px;
            padding: 28px 32px;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
        }
        .page-hero::before {
            content: '';
            position: absolute; top: -40px; right: -40px;
            width: 200px; height: 200px;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .page-hero::after {
            content: '';
            position: absolute; bottom: -60px; left: 30%;
            width: 280px; height: 280px;
            background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-top {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
            position: relative; z-index: 1;
        }
        .hero-title-group { display: flex; align-items: center; gap: 14px; }
        .hero-icon {
            width: 48px; height: 48px;
            background: rgba(255,255,255,0.2);
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            flex-shrink: 0;
        }
        .hero-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
        .hero-subtitle { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }
        .back-link {
            display: inline-flex; align-items: center; gap: 6px;
            color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
            text-decoration: none; padding: 8px 16px;
            border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
            transition: all 0.2s;
        }
        .back-link:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }

        /* ── Stats Row ── */
        .stats-row {
            display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
            position: relative; z-index: 1;
        }
        @media (max-width: 768px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 480px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
        .stat-card {
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.22);
            border-radius: 14px; padding: 14px 18px;
            backdrop-filter: blur(4px);
        }
        .stat-label {
            font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 600;
            text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
        }
        .stat-value { font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
        .stat-value.green { color: #a5f3c8; }
        .stat-value.orange { color: #fde68a; }
        .stat-value.blue { color: #bae6fd; font-size: 18px; }

        /* ── Flash ── */
        .flash-area { margin-bottom: 18px; }
        .alert {
            border-radius: 12px; padding: 13px 18px; font-size: 14px; font-weight: 600;
            display: flex; align-items: center; gap: 10px;
        }
        .alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
        .alert-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

        /* ── Add Form Card ── */
        .add-card {
            background: #fff; border-radius: 16px; padding: 20px 24px;
            box-shadow: 0 1px 8px rgba(0,0,0,0.07);
            margin-bottom: 24px; border-left: 4px solid #1a73e8;
        }
        .card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
        .card-head-title { font-size: 13px; font-weight: 700; color: #1a73e8; text-transform: uppercase; letter-spacing: 0.5px; }
        .add-grid {
            display: grid;
            grid-template-columns: 1.1fr 1.2fr 1.8fr 1.2fr 0.9fr auto;
            gap: 10px; align-items: end;
        }
        @media (max-width: 1000px) { .add-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 600px) { .add-grid { grid-template-columns: 1fr 1fr; } }
        .field-label {
            font-size: 10.5px; font-weight: 700; color: #aaa;
            text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px;
        }
        .field-label .col-badge {
            display: inline-block; padding: 1px 6px; border-radius: 4px;
            font-size: 9px; font-weight: 800; margin-left: 4px;
            letter-spacing: 0.3px;
        }
        .badge-b { background: #e3f2fd; color: #1565c0; }
        .badge-c { background: #f3e5f5; color: #6a1b9a; }
        .badge-d { background: #e8f5e9; color: #2e7d32; }
        .badge-e { background: #fff3e0; color: #e65100; }
        .field-input {
            width: 100%; padding: 9px 12px;
            border: 1.5px solid #e8e8e8; border-radius: 9px;
            font-size: 13.5px; font-family: 'Inter', sans-serif;
            outline: none; transition: border-color 0.18s, box-shadow 0.18s;
            background: #fafafa; color: #1a1a2e;
        }
        .field-input:focus {
            border-color: #1a73e8;
            box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
            background: #fff;
        }
        .field-input::placeholder { color: #ccc; }
        .btn-add-route {
            background: linear-gradient(135deg, #1a73e8, #1557b0);
            color: #fff; border: none; border-radius: 9px;
            padding: 9px 20px; font-size: 13.5px; font-weight: 700;
            font-family: 'Inter', sans-serif; cursor: pointer;
            white-space: nowrap; transition: all 0.18s; height: 40px;
            display: flex; align-items: center; gap: 6px;
        }
        .btn-add-route:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,115,232,0.35); }

        /* ── Table Toolbar ── */
        .table-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 8px rgba(0,0,0,0.07); overflow: hidden; }
        .table-toolbar {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 20px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; gap: 10px;
        }
        .toolbar-left { display: flex; align-items: center; gap: 12px; }
        .toolbar-title { font-size: 14px; font-weight: 700; color: #1a1a2e; }
        .count-badge { background: #e8f0fe; color: #1a73e8; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 20px; }
        .view-toggle { display: flex; gap: 4px; }
        .view-btn {
            padding: 6px 12px; border-radius: 8px; border: 1.5px solid #e0e0e0;
            background: transparent; font-size: 12px; font-weight: 600;
            color: #888; cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif;
        }
        .view-btn.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
        .search-wrap { position: relative; }
        .search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #bbb; }
        .search-input {
            border: 1.5px solid #e8e8e8; border-radius: 9px;
            padding: 8px 12px 8px 34px; font-size: 13px;
            font-family: 'Inter', sans-serif; outline: none;
            width: 220px; transition: border-color 0.18s; background: #fafafa;
        }
        .search-input:focus { border-color: #1a73e8; background: #fff; }

        /* ── Excel-like Grouped Table ── */
        .table-wrap { overflow-x: auto; }

        /* Customer Group Header */
        .group-header-row td {
            background: linear-gradient(90deg, #1557b0, #1a73e8);
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            padding: 9px 14px;
            border-bottom: none !important;
        }
        .group-header-row td .group-name { font-size: 14px; letter-spacing: 0; }
        .group-header-row td .group-count {
            display: inline-flex; align-items: center;
            background: rgba(255,255,255,0.2); border-radius: 12px;
            padding: 1px 10px; font-size: 11px; margin-left: 10px;
        }
        .group-header-row td .group-total {
            float: right; font-size: 12px;
            color: rgba(255,255,255,0.8);
        }
        .group-header-row.group-color-0 td { background: linear-gradient(90deg, #0d47a1, #1a73e8); }
        .group-header-row.group-color-1 td { background: linear-gradient(90deg, #1557b0, #1976d2); }
        .group-header-row.group-color-2 td { background: linear-gradient(90deg, #1565c0, #2196f3); }
        .group-header-row.group-color-3 td { background: linear-gradient(90deg, #0d47a1, #1565c0); }
        .group-header-row.group-color-4 td { background: linear-gradient(90deg, #283593, #3f51b5); }
        .group-header-row.group-color-5 td { background: linear-gradient(90deg, #1a73e8, #42a5f5); }
        .group-header-row.group-color-6 td { background: linear-gradient(90deg, #1976d2, #64b5f6); }
        .group-header-row.group-color-7 td { background: linear-gradient(90deg, #0d47a1, #1a73e8); }

        table.excel-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13.5px;
        }

        thead.excel-head th {
            background: #f5f7ff;
            padding: 10px 14px;
            text-align: left;
            font-size: 10px;
            font-weight: 800;
            color: #5c6bc0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e4e9f6;
            white-space: nowrap;
            position: sticky;
            top: 0; z-index: 2;
        }
        thead.excel-head th.col-a { color: #bbb; text-align: center; width: 42px; }
        thead.excel-head th.col-b { color: #1565c0; border-top: 3px solid #1565c0; }
        thead.excel-head th.col-c { color: #6a1b9a; border-top: 3px solid #6a1b9a; }
        thead.excel-head th.col-d { color: #2e7d32; border-top: 3px solid #2e7d32; }
        thead.excel-head th.col-e { color: #e65100; border-top: 3px solid #e65100; }
        thead.excel-head th.col-f { color: #1a73e8; text-align: right; border-top: 3px solid #1a73e8; }
        thead.excel-head th.col-g { text-align: center; }
        thead.excel-head th.col-h { text-align: center; }

        /* Column letter badge in header */
        .col-letter {
            display: inline-block;
            width: 16px; height: 16px;
            border-radius: 4px;
            font-size: 9px; font-weight: 900;
            text-align: center; line-height: 16px;
            margin-right: 5px;
        }
        .letter-b { background: #1565c0; color: #fff; }
        .letter-c { background: #6a1b9a; color: #fff; }
        .letter-d { background: #2e7d32; color: #fff; }
        .letter-e { background: #e65100; color: #fff; }
        .letter-f { background: #1a73e8; color: #fff; }

        /* Rows */
        tbody tr { border-bottom: 1px solid #f2f4f9; transition: background 0.1s; }
        tbody tr:hover:not(.group-header-row) { background: #f7f9ff; }
        tbody tr.row-dirty { background: #fffde7 !important; }
        tbody tr.row-saving { opacity: 0.6; }
        tbody tr.row-saved { animation: flashGreen 1.2s ease forwards; }
        tbody tr.row-error { background: #fff5f5 !important; }

        @keyframes flashGreen {
            0%   { background: #e8f5e9; }
            80%  { background: #e8f5e9; }
            100% { background: transparent; }
        }

        /* Cells */
        td.excel-cell { padding: 0; vertical-align: middle; position: relative; }
        td.num-cell { text-align: center; color: #ccc; font-size: 11px; padding: 0 6px; width: 42px; position: relative; }

        .cell-view {
            display: block; padding: 10px 14px; min-height: 40px;
            cursor: cell; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            color: #333; border: 1.5px solid transparent;
            transition: background 0.12s; line-height: 1.4;
        }
        .cell-view:hover { background: #eef2ff; border-color: #c5d4fb; }
        .cell-view.empty { color: #ccc; font-style: italic; }

        /* Column-specific styles */
        td.col-b .cell-view { font-weight: 700; color: #1565c0; }
        td.col-c .cell-view { color: #6a1b9a; font-weight: 600; }
        td.col-d .cell-view { color: #1a1a2e; font-weight: 700; }
        td.col-e .cell-view { color: #e65100; }
        td.col-f .cell-view {
            text-align: right; font-weight: 800;
            font-size: 14px; color: #1a73e8;
            font-variant-numeric: tabular-nums;
        }
        td.col-f .cell-view.zero { color: #ccc; }

        .cell-input {
            display: none;
            width: 100%; height: 100%; padding: 9px 12px;
            font-size: 13.5px; font-family: 'Inter', sans-serif;
            color: #1a1a2e; border: 2px solid #1a73e8;
            outline: none; background: #fff;
            box-shadow: 0 0 0 3px rgba(26,115,232,0.18);
            box-sizing: border-box; position: relative; z-index: 10;
        }
        .cell-input[type="number"] { text-align: right; }
        td.excel-cell.editing .cell-view { display: none; }
        td.excel-cell.editing .cell-input { display: block; }

        /* Dirty dot */
        tr.row-dirty td.num-cell::after {
            content: '●'; font-size: 7px; color: #ff9800;
            position: absolute; top: 5px; right: 3px;
        }

        /* Status Toggle */
        .toggle-wrap { display: flex; justify-content: center; align-items: center; padding: 8px 4px; }
        .mini-toggle { position: relative; width: 38px; height: 20px; cursor: pointer; }
        .mini-toggle input { display: none; }
        .mini-track { position: absolute; inset: 0; background: #ddd; border-radius: 20px; transition: background 0.2s; }
        .mini-thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.2s; }
        .mini-toggle input:checked ~ .mini-track { background: #34a853; }
        .mini-toggle input:checked ~ .mini-thumb { transform: translateX(18px); }

        /* Row Actions */
        .row-actions { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; }
        .btn-row { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; border-radius: 7px; cursor: pointer; font-size: 13px; transition: all 0.15s; background: transparent; color: #bbb; }
        .btn-row:hover { transform: scale(1.15); }
        .btn-row-delete:hover { background: #ffebee; color: #c62828; }

        /* Empty state */
        .empty-state { text-align: center; padding: 80px 20px; color: #ccc; }
        .empty-state p { font-size: 14px; color: #aaa; margin-top: 16px; }

        /* ── Toast ── */
        .save-indicator {
            position: fixed; bottom: 28px; right: 28px;
            background: #1a1a2e; color: #fff;
            font-size: 13px; font-weight: 600;
            padding: 10px 18px; border-radius: 10px;
            display: none; align-items: center; gap: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 999;
            animation: slideUp 0.2s ease;
        }
        .save-indicator.show { display: flex; }
        .save-indicator.error { background: #c62828; }
        @keyframes slideUp {
            from { transform: translateY(8px); opacity: 0; }
            to   { transform: translateY(0);   opacity: 1; }
        }

        /* ── Delete Modal ── */
        .modal-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(15,20,40,0.55); z-index: 2000;
            align-items: center; justify-content: center; padding: 20px;
            backdrop-filter: blur(2px);
        }
        .modal-overlay.open { display: flex; }
        .modal-box {
            background: #fff; border-radius: 18px; padding: 30px 28px;
            width: 100%; max-width: 400px;
            box-shadow: 0 24px 64px rgba(0,0,0,0.22);
            animation: modalIn 0.22s ease;
        }
        @keyframes modalIn {
            from { transform: scale(0.95) translateY(10px); opacity: 0; }
            to   { transform: scale(1) translateY(0); opacity: 1; }
        }
        .modal-icon { width: 52px; height: 52px; background: #ffebee; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
        .modal-title { font-size: 18px; font-weight: 800; color: #1a1a2e; text-align: center; margin-bottom: 8px; }
        .modal-body { font-size: 13.5px; color: #777; text-align: center; margin-bottom: 6px; }
        .modal-route-name { font-size: 14.5px; font-weight: 800; color: #c62828; text-align: center; margin-bottom: 22px; word-break: break-word; }
        .modal-btns { display: flex; gap: 10px; }
        .btn-modal { flex: 1; padding: 11px 0; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.16s; }
        .btn-modal-cancel { background: #f0f0f0; color: #555; }
        .btn-modal-cancel:hover { background: #e0e0e0; }
        .btn-modal-delete { background: #c62828; color: #fff; }
        .btn-modal-delete:hover { background: #b71c1c; }

        /* Flat view toggle */
        #flatView { display: none; }
        #flatView.active { display: block; }
        #groupedView { display: block; }
        #groupedView.hidden { display: none; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/AUTH/LOGIN ────────────────────────────── */
body.page-login {
            background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-card {
            background: white;
            border-radius: 24px;
            padding: 40px 36px;
            width: 100%;
            max-width: 440px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 28px 20px;
                border-radius: 18px;
            }
        }

        .login-logo {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, #1a73e8, #0d47a1);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            font-weight: 800;
            color: white;
            margin: 0 auto 20px;
            box-shadow: 0 8px 20px rgba(26,115,232,0.35);
        }

        .login-title {
            text-align: center;
            font-size: 24px;
            font-weight: 800;
            color: #1a1a2e;
            margin-bottom: 6px;
        }

        .login-subtitle {
            text-align: center;
            font-size: 14px;
            color: #888;
            margin-bottom: 28px;
        }

        .btn-login {
            width: 100%;
            background: linear-gradient(135deg, #1a73e8, #1557b0);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 12px;
            font-size: 17px;
            font-weight: 700;
            margin-top: 8px;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(26,115,232,0.3);
        }

        .btn-login:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(26,115,232,0.4);
        }

        .back-link {
            display: block;
            text-align: center;
            margin-top: 20px;
            color: #888;
            font-size: 14px;
            text-decoration: none;
            transition: color 0.2s;
        }

        .back-link:hover { color: #1a73e8; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/HELPER ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
        body.page-helper { 
            background: #f0f2f7; 
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .helper-container {
            width: 100%;
            max-width: 600px;
            padding: 24px 20px;
            flex: 1;
        }

        /* ── Hero ── */
        .hero-card {
            background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d47a1 100%);
            border-radius: 20px;
            padding: 32px 24px 72px; /* Increased bottom padding to prevent text overlap */
            margin-bottom: -40px;
            position: relative;
            z-index: 1;
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(13,71,161,0.35);
            text-align: center;
        }
        .hero-card::before {
            content: ''; position: absolute; top: -60px; right: -40px;
            width: 200px; height: 200px;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-card::after {
            content: ''; position: absolute; bottom: -40px; left: -40px;
            width: 150px; height: 150px;
            background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
            border-radius: 50%;
        }
        .brand-logo { height: 60px; margin-bottom: 16px; position: relative; z-index: 2; }
        .hero-title { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.5px; position: relative; z-index: 2; }
        .hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 6px; font-weight: 500; position: relative; z-index: 2; }

        /* ── Main Card ── */
        .main-card {
            background: #fff;
            border-radius: 24px;
            padding: 40px 24px 32px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.08);
            position: relative;
            z-index: 2;
        }

        /* ── Step Indicators ── */
        .step-indicator {
            display: flex; justify-content: center; gap: 8px; margin-bottom: 24px;
        }
        .step-dot {
            width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; transition: all 0.3s;
        }
        .step-dot.active {
            width: 24px; background: #1a73e8; border-radius: 100px;
        }

        .step-title {
            text-align: center; font-size: 18px; font-weight: 800; color: #1e293b; margin-bottom: 24px;
        }

        /* ── Form Elements ── */
        .form-group { margin-bottom: 20px; text-align: left; }
        .form-label { display: block; font-size: 13.5px; font-weight: 700; color: #475569; margin-bottom: 8px; }
        .form-input {
            width: 100%; padding: 16px; border: 2px solid #e2e8f0; border-radius: 16px;
            font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif;
            background: #f8fafc; transition: all 0.2s; outline: none;
            text-align: center; letter-spacing: 1px; color: #0f172a;
        }
        .form-input:focus { border-color: #1a73e8; background: #fff; box-shadow: 0 0 0 4px rgba(26,115,232,0.1); }
        .form-input::placeholder { color: #94a3b8; font-weight: 500; letter-spacing: 0; }

        .btn-primary {
            background: linear-gradient(135deg, #1a73e8, #1557b0);
            color: white; border: none; width: 100%; padding: 18px; border-radius: 16px;
            font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.2s;
            box-shadow: 0 8px 20px rgba(26,115,232,0.3); margin-top: 10px;
        }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,115,232,0.4); }
        .btn-primary:active { transform: translateY(0); }

        .btn-secondary {
            background: #f1f5f9; color: #475569; border: none; width: 100%; padding: 16px; border-radius: 16px;
            font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 12px;
        }
        .btn-secondary:hover { background: #e2e8f0; color: #1e293b; }

        /* ── Job Details (Glassmorphism look inside card) ── */
        .job-details {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; margin-bottom: 24px;
        }
        .job-details-title { font-size: 12px; font-weight: 800; color: #1a73e8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
        .detail-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
        .detail-row:last-child { margin-bottom: 0; }
        .detail-label { color: #64748b; font-weight: 600; }
        .detail-value { color: #0f172a; font-weight: 800; text-align: right; }

        /* ── Time Inputs Grid ── */
        .time-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
        }
        .time-input-wrap { position: relative; }
        .time-input {
            width: 100%; padding: 16px 12px; border: 2px solid #e2e8f0; border-radius: 16px;
            font-size: 18px; font-weight: 800; font-family: 'Inter', sans-serif;
            background: #f8fafc; text-align: center; outline: none; transition: all 0.2s; color: #1e293b;
        }
        .time-input:focus { border-color: #1a73e8; background: #fff; box-shadow: 0 0 0 4px rgba(26,115,232,0.1); }
        .time-label-badge {
            position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
            background: #fff; padding: 0 8px; font-size: 12px; font-weight: 800; color: #1a73e8; border-radius: 4px;
        }

        .hidden { display: none !important; }

        /* ── Premium Popup ── */
        .popup-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15,23,42,0.8); backdrop-filter: blur(8px);
            z-index: 1000; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s;
        }
        .popup-overlay.show { display: flex; opacity: 1; }
        .popup-content {
            background: #fff; padding: 40px 32px; border-radius: 24px; text-align: center;
            width: 90%; max-width: 360px; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .popup-overlay.show .popup-content { transform: scale(1); }
        .popup-icon-wrap {
            width: 80px; height: 80px; background: #dbeafe; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
        }
        .popup-title { font-size: 24px; font-weight: 900; color: #1e293b; margin-bottom: 12px; }
        .popup-desc { font-size: 15px; color: #64748b; margin-bottom: 32px; font-weight: 500; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/JOB ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body.page-driver {
            background: #f0f2f7;
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
        }

        @media (min-width: 768px) {
            body.page-driver .app-shell {
                max-width: 560px;
                margin: 0 auto;
                box-shadow: 0 0 60px rgba(0,0,0,0.1);
                background: #fff;
            }
        }

        /* ── Header ── */
        .driver-header {
            background: linear-gradient(135deg, #1a73e8, #0d47a1);
            padding: 20px 20px 24px;
            position: relative; overflow: hidden;
        }
        .driver-header::after {
            content: ''; position: absolute; bottom: -30px; right: -30px;
            width: 120px; height: 120px;
            background: radial-gradient(circle, rgba(26,115,232,0.4) 0%, transparent 70%);
            border-radius: 50%;
        }
        .header-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
        .header-logo { height: 40px; width: auto; object-fit: contain; }
        .brand-text-name { font-size: 15px; font-weight: 800; color: #fff; }
        .brand-text-sub { font-size: 11px; color: rgba(255,255,255,0.5); }

        /* Step pills */
        .steps { display: flex; align-items: center; gap: 0; position: relative; z-index: 1; }
        .step {
            display: flex; align-items: center; gap: 7px;
            padding: 7px 14px; border-radius: 20px;
            font-size: 12px; font-weight: 700;
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.4);
            transition: all 0.3s;
        }
        .step.active { background: #1a73e8; color: #fff; box-shadow: 0 4px 12px rgba(26,115,232,0.4); }
        .step.done { background: rgba(52,168,83,0.25); color: #34a853; }
        .step-num { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
        .step.active .step-num { background: rgba(255,255,255,0.3); }
        .step.done .step-num { background: rgba(52,168,83,0.4); }
        .step-divider { width: 20px; height: 1px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

        /* ── Main content ── */
        .driver-main { padding: 20px 16px 40px; background: #f0f2f7; }

        /* ── Search card ── */
        .search-card {
            background: #fff; border-radius: 18px;
            padding: 24px 20px; margin-bottom: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }
        .card-title {
            font-size: 17px; font-weight: 800; color: #1a1a2e;
            margin-bottom: 4px; letter-spacing: -0.3px;
        }
        .card-subtitle { font-size: 12.5px; color: #aaa; margin-bottom: 20px; }

        .search-field {
            width: 100%; padding: 14px 16px;
            border: 2px solid #e8e8e8; border-radius: 13px;
            font-size: 16px; font-family: 'Inter', sans-serif;
            outline: none; color: #1a1a2e; background: #fafafa;
            transition: all 0.2s; letter-spacing: 0.5px;
        }
        .search-field:focus { border-color: #1a73e8; background: #fff; box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
        .search-field::placeholder { color: #ccc; letter-spacing: 0; }

        .btn-search {
            width: 100%; padding: 15px;
            background: linear-gradient(135deg, #1a73e8, #1557b0);
            color: #fff; border: none; border-radius: 13px;
            font-size: 16px; font-weight: 700; font-family: 'Inter', sans-serif;
            cursor: pointer; margin-top: 12px;
            box-shadow: 0 6px 18px rgba(26,115,232,0.3);
            transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-search:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(26,115,232,0.4); }
        .btn-search:active { transform: scale(0.98); }
        .btn-search:disabled { opacity: 0.7; transform: none; }

        /* ── Job Info Card ── */
        .job-info-card {
            background: linear-gradient(135deg, #1557b0, #0d47a1);
            border-radius: 18px; padding: 18px 20px;
            margin-bottom: 14px;
        }
        .job-id-display {
            font-size: 22px; font-weight: 900; color: #fff;
            letter-spacing: -0.5px; margin-bottom: 14px;
            display: flex; align-items: center; gap: 10px;
        }
        .job-id-badge { background: #1a73e8; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; }
        .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .info-item { background: rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 12px; }
        .info-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
        .info-value { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.3; }
        .info-item.full { grid-column: 1 / -1; }

        /* ── Form card ── */
        .form-section {
            background: #fff; border-radius: 18px;
            padding: 20px; margin-bottom: 14px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        }
        .section-head {
            display: flex; align-items: center; gap: 8px;
            margin-bottom: 16px; padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        .section-icon {
            width: 32px; height: 32px; border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .section-icon.blue { background: #e8f0fe; }
        .section-icon.green { background: #e8f5e9; }
        .section-icon.orange { background: #fff3e0; }
        .section-icon.purple { background: #f3e5f5; }
        .section-icon.teal { background: #e0f2f1; }
        .section-name { font-size: 13.5px; font-weight: 800; color: #1a1a2e; }
        .section-name span { font-size: 11px; color: #aaa; font-weight: 500; margin-left: 6px; }

        /* Form field */
        .field-group { margin-bottom: 14px; }
        .field-group:last-child { margin-bottom: 0; }
        .field-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
        .field-input {
            width: 100%; padding: 12px 14px;
            border: 1.5px solid #e8e8e8; border-radius: 11px;
            font-size: 15px; font-family: 'Inter', sans-serif;
            color: #1a1a2e; background: #fafafa; outline: none;
            transition: all 0.18s;
        }
        .field-input:focus { border-color: #1a73e8; background: #fff; box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
        .field-input::placeholder { color: #ccc; }
        .field-input[type="number"] { text-align: right; }
        textarea.field-input { resize: vertical; min-height: 80px; }

        .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

        /* Admin notes display */
        .admin-notes-box {
            background: #f8f9ff; border: 1.5px solid #e4e9fb;
            border-radius: 11px; padding: 12px 14px;
            font-size: 14px; color: #555; min-height: 44px; line-height: 1.5;
        }

        /* Money inputs */
        .money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

        /* ── Upload Zone ── */
        .upload-zone {
            border: 2px dashed #e0e0e0; border-radius: 14px;
            padding: 24px 16px; text-align: center;
            transition: all 0.2s; cursor: pointer; background: #fafafa;
        }
        .upload-zone:hover { border-color: #1a73e8; background: #f0f7ff; }
        .upload-zone.has-files { border-color: #34a853; background: #f0faf4; }
        .upload-icon { font-size: 32px; margin-bottom: 8px; }
        .upload-text { font-size: 13px; color: #888; font-weight: 500; }
        .upload-text strong { color: #1a73e8; }
        .upload-btns { display: flex; gap: 10px; margin-top: 14px; }
        .btn-upload {
            flex: 1; padding: 12px;
            border: none; border-radius: 11px;
            font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif;
            cursor: pointer; transition: all 0.18s;
            display: flex; align-items: center; justify-content: center; gap: 7px;
        }
        .btn-gallery { background: #e8f0fe; color: #1a73e8; }
        .btn-gallery:hover { background: #d2e3fc; }
        .btn-camera { background: #e8f5e9; color: #2e7d32; }
        .btn-camera:hover { background: #c8e6c9; }
        .preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
        .preview-item { position: relative; }
        .preview-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 2px solid #e0e0e0; }
        .preview-remove {
            position: absolute; top: -6px; right: -6px;
            width: 20px; height: 20px; background: #c62828; color: #fff;
            border: none; border-radius: 50%; font-size: 11px; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-weight: 700;
        }

        /* ── Submit Button ── */
        .btn-submit {
            width: 100%; padding: 17px;
            border: none; border-radius: 14px;
            font-size: 17px; font-weight: 800; font-family: 'Inter', sans-serif;
            cursor: pointer; transition: all 0.2s;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            margin-top: 6px;
        }
        .btn-submit-final { background: linear-gradient(135deg, #34a853, #1e7e34); color: #fff; box-shadow: 0 8px 24px rgba(52,168,83,0.35); }
        .btn-submit-final:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(52,168,83,0.45); }
        .btn-submit-temp { background: linear-gradient(135deg, #fb8c00, #e65100); color: #fff; box-shadow: 0 8px 24px rgba(251,140,0,0.35); }
        .btn-submit-temp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(251,140,0,0.45); }
        .btn-submit:active { transform: scale(0.98) !important; }
        .btn-submit:disabled { opacity: 0.7; transform: none !important; }

        .btn-cancel-back {
            width: 100%; padding: 14px;
            background: transparent; border: 1.5px solid #e0e0e0;
            color: #888; border-radius: 12px;
            font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
            cursor: pointer; margin-top: 10px; transition: all 0.18s;
        }
        .btn-cancel-back:hover { border-color: #bbb; color: #555; background: #f5f5f5; }

        /* ── Popup ── */
        .popup-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.6); z-index: 9999;
            align-items: center; justify-content: center; padding: 20px;
            backdrop-filter: blur(3px);
        }
        .popup-overlay.show { display: flex; }
        .popup-box {
            background: #fff; border-radius: 24px;
            padding: 36px 30px; max-width: 340px; width: 100%;
            text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.25);
            animation: popIn 0.25s cubic-bezier(0.22,1,0.36,1);
        }
        @keyframes popIn { from { transform: scale(0.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
        .popup-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
        .popup-icon.success { background: #e8f5e9; }
        .popup-icon.temp { background: #fff8e1; }
        .popup-h { font-size: 21px; font-weight: 900; color: #1a1a2e; margin-bottom: 8px; }
        .popup-p { font-size: 14px; color: #777; line-height: 1.6; }
        .popup-note { font-size: 13px; font-weight: 700; margin-top: 8px; }
        .popup-note.orange { color: #fb8c00; }
        .popup-btn {
            margin-top: 22px; width: 100%; padding: 13px;
            border: none; border-radius: 12px;
            font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif;
            cursor: pointer;
        }
        .popup-btn.temp-btn { background: #fb8c00; color: #fff; }
        .popup-btn.success-btn { background: #34a853; color: #fff; }

        .hidden { display: none !important; }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/JOB_DETAILS ────────────────────────────── */
.details-card {
            background: white;
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            max-width: 800px;
            margin: 20px auto;
        }
        .header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 16px;
        }
        .job-id-badge {
            background: #e8f0fe;
            color: #1a73e8;
            padding: 8px 16px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 18px;
        }
        .status-badge {
            padding: 6px 14px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
        }
        .status-completed { background: #e8f5e9; color: #1b5e20; }
        .status-pending { background: #fff3e0; color: #e65100; }

        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 32px;
        }
        @media (max-width: 600px) {
            .info-grid { grid-template-columns: 1fr; }
        }
        .info-item label {
            display: block;
            color: #888;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .info-item p {
            font-size: 17px;
            font-weight: 500;
            margin: 0;
            color: #333;
        }

        .expense-section {
            background: #f8fbff;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 32px;
            border: 1px solid #e1efff;
        }
        .expense-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
        }
        .expense-item {
            text-align: center;
        }
        .expense-item span {
            display: block;
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
        }
        .expense-item strong {
            font-size: 18px;
            color: #1a73e8;
        }

        .total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 2px dashed #ddd;
            margin-top: 10px;
        }
        .total-label { font-size: 18px; font-weight: 700; color: #333; }
        .total-value { font-size: 24px; font-weight: 800; color: #1a73e8; }

        .slip-preview {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
            border-radius: 12px;
            margin-top: 20px;
            border: 1px solid #eee;
        }
        .back-btn-container {
            text-align: center;
            margin-top: 30px;
        }
        .btn-outline {
            display: inline-block;
            padding: 12px 24px;
            border: 2px solid #1a73e8;
            color: #1a73e8;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s;
        }
        .btn-outline:hover {
            background: #1a73e8;
            color: white;
        }

/* ─── D:/SIRIPAKAN/SIRIPRAKAN-APP/RESOURCES/VIEWS/WELCOME ────────────────────────────── */

        body.page-welcome {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d47a1 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            overflow: hidden;
            position: relative;
        }

        /* ── Animated Background ── */
        .bg-orbs {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
        }
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.1;
            border-radius: 50%;
            animation: float 20s infinite ease-in-out alternate;
        }

        /* ─── Oil Prices Widget ─── */
        .oil-prices-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 12px;
            margin-bottom: 24px;
        }
        .oil-card {
            background: linear-gradient(135deg, #ffffff, #f8faff);
            border: 1px solid #e8f0fe;
            border-radius: 12px;
            padding: 12px 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .oil-name {
            font-size: 11px;
            font-weight: 700;
            color: #555;
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .oil-price {
            font-size: 20px;
            font-weight: 800;
            color: #d32f2f;
        }
        .oil-unit {
            font-size: 10px;
            color: #aaa;
        }
        .orb-1 { width: 500px; height: 500px; background: #1a73e8; top: -20%; left: -15%; animation-delay: 0s; }
        .orb-2 { width: 400px; height: 400px; background: #34a853; bottom: -15%; right: -10%; animation-delay: 4s; }
        .orb-3 { width: 300px; height: 300px; background: #8b5cf6; top: 40%; left: 60%; animation-delay: 8s; }

        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33%       { transform: translate(30px, -20px) scale(1.05); }
            66%       { transform: translate(-20px, 30px) scale(0.95); }
        }

        /* ── Card ── */
        .card {
            position: relative;
            z-index: 1;
            background: #ffffff;
            border: none;
            border-radius: 28px;
            padding: 48px 36px 44px;
            width: 100%;
            max-width: 440px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.05);
            animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes cardIn {
            from { opacity: 0; transform: translateY(24px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)  scale(1); }
        }

        /* ── Logo ── */
        .logo-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 22px;
            animation: cardIn 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        .logo-img {
            width: 180px;
            height: auto;
            object-fit: contain;
            filter: none;
        }

        /* ── Title ── */
        .card-title {
            font-size: 22px;
            font-weight: 900;
            color: #1a1a2e;
            text-align: center;
            letter-spacing: -0.5px;
            margin-bottom: 4px;
            animation: cardIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        .card-subtitle {
            font-size: 13px;
            color: #64748b;
            text-align: center;
            margin-bottom: 28px;
            font-weight: 400;
            animation: cardIn 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        /* ── Buttons ── */
        .welcome-btn-group { display: flex; flex-direction: column; gap: 12px; }

        .welcome-btn {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 16px 20px;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            color: #0f172a;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: left;
            gap: 16px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .welcome-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.08);
            border-color: #cbd5e1;
        }
        .welcome-btn:active { transform: scale(0.98); }

        /* Driver */
        .welcome-btn-job:hover { background: #f0f7ff; }
        .welcome-btn-job .welcome-icon { background: linear-gradient(135deg, #1a73e8, #1557b0); box-shadow: 0 4px 12px rgba(26,115,232,0.3); }

        /* Helper */
        .welcome-btn-helper:hover { background: #f0fdf8; }
        .welcome-btn-helper .welcome-icon { background: linear-gradient(135deg, #0d9488, #0f766e); box-shadow: 0 4px 12px rgba(13,148,136,0.3); }

        /* Admin */
        .welcome-btn-admin:hover { background: #faf5ff; }
        .welcome-btn-admin .welcome-icon { background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }

        .welcome-icon {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .welcome-btn:hover .welcome-icon { transform: scale(1.08); }

        .welcome-text { flex: 1; }
        .welcome-title { font-size: 15px; font-weight: 700; color: #0f172a; display: block; }
        .welcome-desc  { font-size: 12px; color: #64748b; font-weight: 400; display: block; margin-top: 3px; }

        .welcome-arrow {
            color: #94a3b8;
            font-size: 22px;
            flex-shrink: 0;
            transition: transform 0.25s, color 0.25s;
        }
        .welcome-btn:hover .welcome-arrow { transform: translateX(6px); color: #0f172a; }

        /* ── Divider ── */
        .divider {
            height: 1px;
            background: #e2e8f0;
            margin: 6px 0;
        }

        /* ── Animate rows ── */
        .welcome-btn:nth-child(1) { animation: cardIn 0.6s 0.25s cubic-bezier(0.22,1,0.36,1) both; }
        .welcome-btn:nth-child(2) { animation: cardIn 0.6s 0.32s cubic-bezier(0.22,1,0.36,1) both; }
        .welcome-btn:nth-child(4) { animation: cardIn 0.6s 0.4s cubic-bezier(0.22,1,0.36,1) both; }

        /* ── Version tag ── */
        .version-tag {
            font-size: 10px;
            color: #94a3b8;
            text-align: center;
            display: block;
            margin-top: 24px;
            letter-spacing: 0.5px;
        }

/* ─── Fuel Type Pill Buttons ─────────────────────────────── */
.fuel-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.fuel-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    background: #fafbfc;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s;
}

.fuel-pill:hover {
    border-color: #fb8c00;
    background: #fff8f0;
    color: #fb8c00;
    transform: translateY(-1px);
}

.fuel-pill.active {
    background: linear-gradient(135deg, #fb8c00, #f57c00);
    color: white;
    border-color: #f57c00;
    box-shadow: 0 3px 10px rgba(251,140,0,0.35);
    transform: translateY(-1px);
}

.pill-icon {
    font-size: 15px;
    line-height: 1;
}

/* ─── Fuel Liter Hint (realtime calc) ───────────────────── */
.fuel-liter-hint {
    margin-top: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #e65100;
}

/* ─── Fuel Anomaly Badges (for Report table) ─────────────── */
.fuel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.fuel-badge.normal        { background: #e8f5e9; color: #2e7d32; }
.fuel-badge.slightly-low  { background: #fff8e1; color: #f57c00; }
.fuel-badge.low-efficiency { background: #ffebee; color: #c62828; }
.fuel-badge.high-efficiency { background: #e3f2fd; color: #1565c0; }
.fuel-badge.no-data       { background: #f5f5f5; color: #aaa; }

/* Highlight anomaly row */
tr.fuel-anomaly-row td { background: #fff8f8 !important; }