@import '_content/RapidDispatch.UI/RapidDispatch.UI.90nkzn7b1s.bundle.scp.css';

/* /Layout/BookingLayout.razor.rz.scp.css */
.booking-shell[b-gdjgxizjvu] {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* Fade in once theme is known; smooth background switch on toggle */
    transition: background-color 0.35s ease, color 0.2s ease;
    /* Dark base + dot-grid overlay */
    background-color: #0b0f16;
    background-image:
        radial-gradient(circle at 80% 0%, rgba(28, 196, 120, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(28, 196, 120, 0.04) 0%, transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    background-position: top right, bottom left, 0 0;
    color: var(--text-primary, #e6edf3);
    font-family: var(--mono, 'JetBrains Mono', monospace);
}

.booking-header[b-gdjgxizjvu] {
    padding: 17px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: rgba(11, 15, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(28, 196, 120, 0.06), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.booking-header-inner[b-gdjgxizjvu] {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-mark[b-gdjgxizjvu] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon[b-gdjgxizjvu] {
    font-size: 17px;
    color: var(--accent, #1cc478);
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(28, 196, 120, 0.6)) drop-shadow(0 0 16px rgba(28, 196, 120, 0.25));
    animation: bk-icon-breathe-b-gdjgxizjvu 3s ease-in-out infinite;
}

@keyframes bk-icon-breathe-b-gdjgxizjvu {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(28, 196, 120, 0.5)) drop-shadow(0 0 14px rgba(28, 196, 120, 0.2)); }
    50%       { filter: drop-shadow(0 0 10px rgba(28, 196, 120, 0.8)) drop-shadow(0 0 24px rgba(28, 196, 120, 0.4)); }
}

.brand-wordmark[b-gdjgxizjvu] {
    font-size: 11px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.brand-accent[b-gdjgxizjvu] {
    color: var(--accent, #1cc478);
    text-shadow: 0 0 16px rgba(28, 196, 120, 0.4);
}

.booking-main[b-gdjgxizjvu] {
    flex: 1;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .booking-main[b-gdjgxizjvu] {
        padding: 24px 14px 60px;
    }
}

.booking-footer[b-gdjgxizjvu] {
    padding: 14px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.035);
    font-size: 9px;
    color: #2d333b;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ── Logo (when set) ─────────────────────────────────────────────────────── */
.brand-logo-wrap[b-gdjgxizjvu] {
    display: flex;
    align-items: center;
}

.brand-logo[b-gdjgxizjvu] {
    max-height: 32px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    /* No forced filter — logos are provided per-mode and shown as-is */
    animation: bk-brand-fade-b-gdjgxizjvu 0.3s ease both;
}

.brand-mark[b-gdjgxizjvu] {
    animation: bk-brand-fade-b-gdjgxizjvu 0.3s ease both;
}

.brand-placeholder[b-gdjgxizjvu] {
    /* Invisible same-size stand-in so the toggle button stays right-aligned */
    width: 130px;
    height: 22px;
    visibility: hidden;
}

@keyframes bk-brand-fade-b-gdjgxizjvu {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Theme toggle button ─────────────────────────────────────────────────── */
.theme-toggle[b-gdjgxizjvu] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover[b-gdjgxizjvu] {
    background: rgba(28, 196, 120, 0.12);
    border-color: rgba(28, 196, 120, 0.4);
    color: var(--accent, #1cc478);
}

/* ── Light mode overrides ────────────────────────────────────────────────── */
.booking-shell.theme-light[b-gdjgxizjvu] {
    background-color: #f4f6f9;
    background-image:
        radial-gradient(circle at 80% 0%, rgba(28, 196, 120, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(28, 196, 120, 0.04) 0%, transparent 40%),
        radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    background-position: top right, bottom left, 0 0;
    color: #111827;
}

.booking-shell.theme-light .booking-header[b-gdjgxizjvu] {
    background: rgba(244, 246, 249, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 0 rgba(28, 196, 120, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.booking-shell.theme-light .brand-wordmark[b-gdjgxizjvu] {
    color: rgba(0, 0, 0, 0.55);
}

.booking-shell.theme-light .booking-footer[b-gdjgxizjvu] {
    color: #adb5bd;
    border-top-color: rgba(0, 0, 0, 0.07);
}

.booking-shell.theme-light .theme-toggle[b-gdjgxizjvu] {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.45);
}

.booking-shell.theme-light .theme-toggle:hover[b-gdjgxizjvu] {
    background: rgba(28, 196, 120, 0.1);
    border-color: rgba(28, 196, 120, 0.35);
    color: var(--accent, #1cc478);
}
/* /Pages/Admin.razor.rz.scp.css */
/* ══ PAGE SHELL ══ */ /* v2 */
.admin-shell[b-r11tf2g38h] {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-body[b-r11tf2g38h] {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

/* ══ TAB BAR ══ */
.admin-tab-bar[b-r11tf2g38h] {
    display: flex;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    padding: 0 16px;
    gap: 2px;
}

.admin-tab[b-r11tf2g38h] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    height: 44px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    position: relative;
    bottom: -1px;
}

    .admin-tab:hover[b-r11tf2g38h] {
        color: var(--text-bright);
    }

    .admin-tab.active[b-r11tf2g38h] {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

.admin-tab-icon[b-r11tf2g38h] {
    font-size: 13px;
    opacity: 0.7;
}

.admin-tab-count[b-r11tf2g38h] {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 20px;
    background: var(--surface2);
    color: var(--text-dim);
    border: 1px solid var(--border2);
    letter-spacing: 0;
}

.admin-tab.active .admin-tab-count[b-r11tf2g38h] {
    background: rgba(59,130,246,.15);
    color: var(--accent);
    border-color: rgba(59,130,246,.3);
}

/* ══ SKELETON LOADING ══ */
.admin-skel-wrap[b-r11tf2g38h] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-skel-section[b-r11tf2g38h] {
    height: 72px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
}

/* ══ INTEGRATIONS ══ */
.int-grid[b-r11tf2g38h] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

    .int-grid .rule-group[b-r11tf2g38h] {
        border-bottom: none;
    }

.int-key-row[b-r11tf2g38h] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.int-key-current[b-r11tf2g38h] {
    font-size: 11px;
    white-space: nowrap;
}

.int-key-input[b-r11tf2g38h] {
    flex: 1;
    min-width: 180px;
}

/* ══ QUOTA STRIP ══ */
.quota-strip[b-r11tf2g38h] {
    display: flex;
    gap: 24px;
    background: var(--surface2);
    border-top: 1px solid var(--border);
    padding: 14px 22px;
    flex-wrap: wrap;
}

.quota-item[b-r11tf2g38h] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quota-label[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.quota-value[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-bright);
}

.quota-warn[b-r11tf2g38h] {
    color: var(--amber);
}

/* ══ CALL LOG ══ */
.section-subhead[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin: 0 0 10px;
}

.log-cols[b-r11tf2g38h] {
    grid-template-columns: 70px 90px 70px 50px 50px 90px 70px 70px;
}

.rt-log-cols[b-r11tf2g38h] {
    grid-template-columns: 130px 120px 80px 70px 80px;
}

.mf-log-cols[b-r11tf2g38h] {
    grid-template-columns: 140px 120px 50px 80px 60px 60px 1fr;
    gap: 0 8px;
}

.mf-log-error[b-r11tf2g38h] {
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-error[b-r11tf2g38h] {
    background: rgba(220, 53, 69, 0.06);
}

.rt-url-group[b-r11tf2g38h] {
    grid-column: 1 / -1;
}

.rt-result-badge[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.rt-result-ok[b-r11tf2g38h] {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.rt-result-fail[b-r11tf2g38h] {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.rt-detail-toggle[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .03em;
    padding: 2px 8px;
}

.rt-log-detail-row[b-r11tf2g38h] {
    grid-column: 1 / -1;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--border);
}

.rt-log-json[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

.rt-log-error[b-r11tf2g38h] {
    cursor: help;
    opacity: 0.8;
}

.strategy-badge[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.strategy-cacheonly[b-r11tf2g38h] {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.strategy-directions[b-r11tf2g38h] {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

.strategy-matrix[b-r11tf2g38h] {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.quota-item-refresh[b-r11tf2g38h] {
    margin-left: auto;
    justify-content: center;
}

.modal-wide[b-r11tf2g38h] {
    max-width: 900px;
    width: 90vw;
}

/* ══ TABLE COLUMN LAYOUTS ══ */

/* Roles: Name | Description | Type | Permissions | Actions */
.rol-cols[b-r11tf2g38h] {
    grid-template-columns: 180px 1fr 90px 100px 150px;
}

/* Applications: Name | Role | Status | Keys | Created | Actions */
.app-cols[b-r11tf2g38h] {
    grid-template-columns: 1fr 140px 90px 50px 100px 220px;
}

/* Name cell with an inline badge (LOCKED, description etc.) */
.name-with-badge[b-r11tf2g38h] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

    .name-with-badge .eng-name-cell[b-r11tf2g38h] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .name-with-badge .dim[b-r11tf2g38h] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }

/* LOCKED badge */
.locked-badge[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #7c3aed44;
    background: #7c3aed22;
    color: #7c3aed;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Small mono dim text used for counts/dates in narrow columns */
.perm-count[b-r11tf2g38h] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}

/* ══ PERMISSION GRID ══ */
.perm-grid[b-r11tf2g38h] {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.perm-app-header[b-r11tf2g38h] {
    display: block;
    padding: 10px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    border-top: 1px solid var(--border);
}
.perm-app-header:first-of-type[b-r11tf2g38h] { border-top: none; padding-top: 0; }

.perm-header[b-r11tf2g38h],
.perm-row[b-r11tf2g38h] {
    display: grid;
    grid-template-columns: 1fr repeat(4, 64px);
    align-items: center;
    gap: 0;
}

.perm-header[b-r11tf2g38h] {
    background: var(--bg2);
    padding: 6px 12px;
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: .06em;
    color: var(--text-dim);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.perm-header span:not(:first-child)[b-r11tf2g38h],
.perm-check[b-r11tf2g38h] {
    text-align: center;
    justify-self: center;
}

.perm-row[b-r11tf2g38h] {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}

.perm-row:last-child[b-r11tf2g38h] { border-bottom: none; }
.perm-row:hover[b-r11tf2g38h] { background: var(--bg2); }

.perm-resource[b-r11tf2g38h] {
    font-size: 12px;
    color: var(--text);
}

.perm-check input[type="checkbox"][b-r11tf2g38h] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
}

.perm-check input[type="checkbox"]:disabled[b-r11tf2g38h] {
    opacity: .35;
    cursor: not-allowed;
}

/* ══ KEY REVEAL ══ */
.key-reveal-banner[b-r11tf2g38h] {
    background: #0ea5e911;
    border: 1px solid #0ea5e944;
    border-radius: 6px;
    padding: 16px;
    margin: 4px 0 8px;
}

.key-reveal-warning[b-r11tf2g38h] {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--mono);
    letter-spacing: .04em;
}

.key-reveal-value[b-r11tf2g38h] {
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--text);
    word-break: break-all;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 10px;
    user-select: all;
}

/* ══ ROLE BADGE CUSTOM ══ */
.role-badge.role-custom[b-r11tf2g38h] {
    background: #6366f122;
    color: #6366f1;
    border: 1px solid #6366f144;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--mono);
}

/* ══ INTEGRATION SUB-TAB BAR ══ */
.int-subtab-bar-section .section-head[b-r11tf2g38h] {
    border-bottom: none;
}

.int-log-filters[b-r11tf2g38h] {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 14px 22px 0;
    margin-bottom: 16px;
}

.rt-log-cols-full[b-r11tf2g38h] {
    grid-template-columns: 140px 160px 90px 60px 130px 70px 80px;
}

/* ══ AUDIT LOG ══ */
.audit-filters[b-r11tf2g38h] {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 14px 22px 0;
    margin-bottom: 16px;
}

.audit-cols[b-r11tf2g38h] {
    grid-template-columns: 100px 120px 80px 110px 1fr;
}

.audit-action-badge[b-r11tf2g38h] {
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.audit-action-created[b-r11tf2g38h] { background: var(--accent-dim); color: var(--green); }
.audit-action-updated[b-r11tf2g38h] { background: #e8b81c18; color: var(--amber); }
.audit-action-deleted[b-r11tf2g38h] { background: var(--red-dim); color: var(--red); }

.audit-details[b-r11tf2g38h] {
    white-space: pre-line;
    font-size: 11px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pager[b-r11tf2g38h] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 8px 0;
}

.pager-info[b-r11tf2g38h] {
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--mono);
}

/* ══ REPORTS TAB ══ */
.report-summary[b-r11tf2g38h] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.report-stat[b-r11tf2g38h] {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 80px;
}
.report-stat-ok[b-r11tf2g38h]   { border-color: #22c55e44; }
.report-stat-warn[b-r11tf2g38h] { border-color: #f59e0b44; }
.report-stat-err[b-r11tf2g38h]  { border-color: #ef444444; }
.report-stat-dim[b-r11tf2g38h]  { border-color: var(--border); }
.report-stat-val[b-r11tf2g38h]  { font-family: var(--mono); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-stat-lbl[b-r11tf2g38h]  { font-size: 11px; color: var(--text-dim); }
.report-stat-ok   .report-stat-val[b-r11tf2g38h] { color: #22c55e; }
.report-stat-warn .report-stat-val[b-r11tf2g38h] { color: #f59e0b; }
.report-stat-err  .report-stat-val[b-r11tf2g38h] { color: #ef4444; }

.report-cols[b-r11tf2g38h] { grid-template-columns: 2fr 1fr 1fr 60px 60px 55px 60px 90px; }
.report-job-title[b-r11tf2g38h] { font-size: 13px; font-weight: 500; }

.report-badge[b-r11tf2g38h] {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: .02em;
}
.report-badge-ok[b-r11tf2g38h]      { background: rgba(34,197,94,.12);  color: #22c55e; }
.report-badge-late[b-r11tf2g38h]    { background: rgba(245,158,11,.12); color: #f59e0b; }
.report-badge-missing[b-r11tf2g38h] { background: rgba(100,116,139,.12); color: #94a3b8; }
.report-badge-issue[b-r11tf2g38h]   { background: rgba(239,68,68,.12);  color: #ef4444; }

.report-delta-ok[b-r11tf2g38h]   { color: #22c55e; }
.report-delta-late[b-r11tf2g38h] { color: #ef4444; }
/* /Pages/CustomerBooking.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════
   LOADING
═══════════════════════════════════════════════════════════ */

.cb-loading[b-kj29oyvq01] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    gap: 32px;
}

.cb-loading-rings[b-kj29oyvq01] {
    position: relative;
    width: 60px;
    height: 60px;
}

.cb-ring[b-kj29oyvq01] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent, #1cc478);
    animation: cb-spin-b-kj29oyvq01 1s linear infinite;
}

.cb-ring--1[b-kj29oyvq01] { animation-duration: 1.1s; opacity: 1.0; }
.cb-ring--2[b-kj29oyvq01] { inset: 10px; animation-duration: 0.75s; opacity: 0.55; animation-direction: reverse; }
.cb-ring--3[b-kj29oyvq01] { inset: 20px; animation-duration: 1.6s; opacity: 0.25; }

.cb-loading-text[b-kj29oyvq01] {
    color: var(--text-dim, #8b949e);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    animation: cb-text-pulse-b-kj29oyvq01 2.2s ease-in-out infinite;
}

@keyframes cb-spin-b-kj29oyvq01 { to { transform: rotate(360deg); } }
@keyframes cb-text-pulse-b-kj29oyvq01 { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════
   ERROR
═══════════════════════════════════════════════════════════ */

.cb-error[b-kj29oyvq01] {
    text-align: center;
    padding: 70px 0;
    animation: cb-fade-up-b-kj29oyvq01 0.45s ease both;
}

.cb-error-icon[b-kj29oyvq01] {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.2);
    color: #f85149;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(248, 81, 73, 0.06);
}

.cb-error h2[b-kj29oyvq01] {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-primary, #e6edf3);
    letter-spacing: -0.3px;
}

.cb-error p[b-kj29oyvq01] { color: var(--text-dim, #8b949e); font-size: 13px; margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════
   SUCCESS
═══════════════════════════════════════════════════════════ */

.cb-success[b-kj29oyvq01] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0 40px;
    text-align: center;
    animation: cb-success-bounce-b-kj29oyvq01 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes cb-success-bounce-b-kj29oyvq01 {
    from { opacity: 0; transform: scale(0.86) translateY(28px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cb-success-icon-wrap[b-kj29oyvq01] {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-success-pulse[b-kj29oyvq01] {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--accent, #1cc478);
    animation: cb-pulse-ring-b-kj29oyvq01 1.6s ease-out infinite 0.5s;
    opacity: 0;
}

.cb-success-pulse--slow[b-kj29oyvq01] {
    animation-delay: 1s;
    animation-duration: 2s;
}

@keyframes cb-pulse-ring-b-kj29oyvq01 {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.cb-success-circle[b-kj29oyvq01] {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(28, 196, 120, 0.07);
    border: 1px solid rgba(28, 196, 120, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(28, 196, 120, 0.1), inset 0 1px 0 rgba(28, 196, 120, 0.15);
}

.cb-checkmark[b-kj29oyvq01] { width: 52px; height: 52px; overflow: visible; }

.cb-checkmark-circle[b-kj29oyvq01] {
    stroke: var(--accent, #1cc478);
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: cb-draw-b-kj29oyvq01 0.5s ease forwards 0.2s;
    transform-origin: 26px 26px;
}

.cb-checkmark-tick[b-kj29oyvq01] {
    stroke: var(--accent, #1cc478);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: cb-draw-b-kj29oyvq01 0.4s ease forwards 0.6s;
}

@keyframes cb-draw-b-kj29oyvq01 { to { stroke-dashoffset: 0; } }

.cb-success-title[b-kj29oyvq01] {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent, #1cc478);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 28px rgba(28, 196, 120, 0.35);
}

.cb-success-sub[b-kj29oyvq01] {
    font-size: 13px;
    color: var(--text-dim, #8b949e);
    margin: 0 0 32px;
    letter-spacing: 0.5px;
}

.cb-success-card[b-kj29oyvq01] {
    width: 100%;
    max-width: 340px;
    background: rgba(28, 196, 120, 0.04);
    border: 1px solid rgba(28, 196, 120, 0.18);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.cb-sc-row[b-kj29oyvq01] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

.cb-sc-label[b-kj29oyvq01] {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim, #8b949e);
}

.cb-sc-value[b-kj29oyvq01] {
    color: var(--text-primary, #e6edf3);
    font-weight: 600;
}

.cb-sc-ref[b-kj29oyvq01] {
    color: var(--accent, #1cc478);
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(28, 196, 120, 0.3);
}

.cb-sc-divider[b-kj29oyvq01] {
    height: 1px;
    background: rgba(28, 196, 120, 0.1);
    margin: 6px 0;
}

.cb-success-company[b-kj29oyvq01] {
    font-size: 12px;
    color: var(--text-dim, #8b949e);
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   STEP INDICATOR
═══════════════════════════════════════════════════════════ */

.cb-steps[b-kj29oyvq01] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    animation: cb-fade-up-b-kj29oyvq01 0.4s ease both;
}

.cb-step[b-kj29oyvq01] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.cb-step-dot[b-kj29oyvq01] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #2d333b;
    color: #3d444d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.35s ease;
    background: #0b0f16;
}

.cb-step--done .cb-step-dot[b-kj29oyvq01] {
    border-color: var(--accent, #1cc478);
    background: var(--accent, #1cc478);
    color: #000;
    box-shadow: 0 0 14px rgba(28, 196, 120, 0.3);
}

.cb-step--active .cb-step-dot[b-kj29oyvq01] {
    border-color: var(--accent, #1cc478);
    color: var(--accent, #1cc478);
    background: rgba(28, 196, 120, 0.08);
    box-shadow: 0 0 0 5px rgba(28, 196, 120, 0.1);
    animation: cb-step-breathe-b-kj29oyvq01 2.2s ease-in-out infinite;
}

@keyframes cb-step-breathe-b-kj29oyvq01 {
    0%, 100% { box-shadow: 0 0 0 5px rgba(28, 196, 120, 0.10); }
    50%       { box-shadow: 0 0 0 8px rgba(28, 196, 120, 0.05); }
}

.cb-step-label[b-kj29oyvq01] {
    font-size: 9px;
    letter-spacing: 1px;
    color: #3d444d;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.35s ease;
}

.cb-step--done .cb-step-label[b-kj29oyvq01],
.cb-step--active .cb-step-label[b-kj29oyvq01] {
    color: var(--text-dim, #8b949e);
}

.cb-step-line[b-kj29oyvq01] {
    flex: 1;
    height: 2px;
    background: #21262d;
    margin: 0 10px 22px;
    max-width: 72px;
    min-width: 28px;
    border-radius: 1px;
    transition: background 0.5s ease;
}

.cb-step-line--done[b-kj29oyvq01] {
    background: linear-gradient(90deg, var(--accent, #1cc478) 0%, rgba(28, 196, 120, 0.35) 100%);
    box-shadow: 0 0 8px rgba(28, 196, 120, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   JOB SUMMARY CARD
═══════════════════════════════════════════════════════════ */

.cb-job-card[b-kj29oyvq01] {
    display: flex;
    align-items: stretch;
    background: rgba(28, 196, 120, 0.03);
    border: 1px solid rgba(28, 196, 120, 0.12);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    animation: cb-fade-up-b-kj29oyvq01 0.4s ease 0.1s both;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(28, 196, 120, 0.06);
}

.cb-job-accent-bar[b-kj29oyvq01] {
    width: 3px;
    background: linear-gradient(180deg, var(--accent, #1cc478) 0%, rgba(28, 196, 120, 0.15) 100%);
    flex-shrink: 0;
}

.cb-job-content[b-kj29oyvq01] { padding: 15px 18px; flex: 1; }

.cb-job-service-name[b-kj29oyvq01] {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #e6edf3);
    letter-spacing: -0.2px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.cb-job-meta[b-kj29oyvq01] { display: flex; flex-wrap: wrap; gap: 6px; }

.cb-meta-chip[b-kj29oyvq01] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2d333b;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-primary, #e6edf3);
}

.cb-meta-chip-label[b-kj29oyvq01] {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--text-dim, #8b949e);
    text-transform: uppercase;
}

.cb-meta-chip--company[b-kj29oyvq01] {
    color: var(--text-primary, #e6edf3);
    border-color: rgba(28, 196, 120, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   DATE SELECTION
═══════════════════════════════════════════════════════════ */

.cb-dates-section[b-kj29oyvq01] { animation: cb-fade-up-b-kj29oyvq01 0.4s ease 0.18s both; }

.cb-dates-header[b-kj29oyvq01] { margin-bottom: 20px; }

.cb-dates-title[b-kj29oyvq01] {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary, #e6edf3);
    margin: 0 0 5px;
    letter-spacing: -0.4px;
}

.cb-dates-sub[b-kj29oyvq01] {
    font-size: 12px;
    color: var(--text-dim, #8b949e);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Date grid — 3 cards ─────────────────────────────────── */

.cb-date-grid[b-kj29oyvq01] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cb-date-card[b-kj29oyvq01] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #21262d;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary, #e6edf3);
    transition: border-color 0.22s ease, background 0.22s ease,
                transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1),
                box-shadow 0.22s ease;
    animation: cb-card-in-b-kj29oyvq01 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both;
    animation-delay: calc(var(--card-i, 0) * 70ms + 0.25s);
    overflow: hidden;
    min-height: 0;
    /* Glass effect */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes cb-card-in-b-kj29oyvq01 {
    from { opacity: 0; transform: translateY(22px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top glow line */
.cb-date-card[b-kj29oyvq01]::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    border-radius: 14px 14px 0 0;
}

.cb-date-card:hover:not(:disabled)[b-kj29oyvq01] {
    border-color: rgba(28, 196, 120, 0.5);
    background: rgba(28, 196, 120, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(28, 196, 120, 0.1);
}

/* First card (earliest) — accent top border */
.cb-date-card.earliest[b-kj29oyvq01] {
    border-top-color: var(--accent, #1cc478);
}

/* EARLIEST label via pseudo-element on the top border */
.cb-date-card.earliest[b-kj29oyvq01]::before {
    content: 'EARLIEST';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent, #1cc478);
    color: #000;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 0 0 6px 6px;
    white-space: nowrap;
    z-index: 1;
}

.cb-date-card:disabled[b-kj29oyvq01] { cursor: not-allowed; opacity: 0.4; }

/* ── Card content ────────────────────────────────────────── */

.cb-card-week-label[b-kj29oyvq01] {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--text-dim, #8b949e);
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 12px; /* clear space for EARLIEST badge on first card */
    display: block;
}

.cb-date-card:not(.earliest) .cb-card-week-label[b-kj29oyvq01] {
    margin-top: 2px;
}

/* Week strip — 7 day dots */
.cb-week-strip[b-kj29oyvq01] {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.cb-wk-cell[b-kj29oyvq01] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    font-weight: 600;
    color: #3d444d;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cb-wk-cell.on[b-kj29oyvq01] {
    background: var(--accent, #1cc478);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 8px rgba(28, 196, 120, 0.4);
}

.cb-date-num[b-kj29oyvq01] {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -2px;
    margin-bottom: 3px;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.cb-date-card:hover:not(:disabled) .cb-date-num[b-kj29oyvq01] {
    text-shadow: 0 0 24px rgba(255,255,255,0.25);
}

.cb-date-dow[b-kj29oyvq01] {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(230, 237, 243, 0.65);
    text-transform: uppercase;
    margin-bottom: 1px;
}

.cb-date-mon[b-kj29oyvq01] {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(230, 237, 243, 0.65);
    text-transform: uppercase;
}

.cb-date-period[b-kj29oyvq01] {
    font-size: 8px;
    color: #3d444d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 5px;
    padding: 2px 6px;
    border: 1px solid #21262d;
    border-radius: 4px;
}

/* No slots */
.cb-no-slots[b-kj29oyvq01] {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-dim, #8b949e);
    font-size: 13px;
}

.cb-no-slots-dash[b-kj29oyvq01] {
    width: 28px;
    height: 2px;
    background: #21262d;
    margin: 0 auto 16px;
    border-radius: 1px;
}

.cb-no-slots p[b-kj29oyvq01] { margin: 4px 0; }
.cb-no-slots strong[b-kj29oyvq01] { color: var(--text-primary, #e6edf3); }

/* ═══════════════════════════════════════════════════════════
   REVIEW SCREEN
═══════════════════════════════════════════════════════════ */

.cb-review[b-kj29oyvq01] {
    animation: cb-review-in-b-kj29oyvq01 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes cb-review-in-b-kj29oyvq01 {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cb-review-header[b-kj29oyvq01] { margin-bottom: 24px; }

.cb-review-title[b-kj29oyvq01] {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary, #e6edf3);
    margin: 0 0 5px;
    letter-spacing: -0.4px;
}

.cb-review-sub[b-kj29oyvq01] {
    font-size: 12px;
    color: var(--text-dim, #8b949e);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Ticket ──────────────────────────────────────────────── */

.cb-ticket[b-kj29oyvq01] {
    background: linear-gradient(145deg, rgba(28,196,120,0.06) 0%, rgba(28,196,120,0.02) 100%);
    border: 1px solid rgba(28, 196, 120, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 196, 120, 0.05) inset;
}

.cb-ticket-top[b-kj29oyvq01],
.cb-ticket-bottom[b-kj29oyvq01] {
    padding: 16px 24px;
}

.cb-ticket-top[b-kj29oyvq01] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cb-ticket-service-label[b-kj29oyvq01] {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent, #1cc478);
    text-transform: uppercase;
    opacity: 0.7;
}

.cb-ticket-service[b-kj29oyvq01] {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #e6edf3);
    letter-spacing: -0.2px;
}

/* Perforation line between sections */
.cb-ticket-perf[b-kj29oyvq01] {
    height: 0;
    border-top: 1px dashed rgba(28, 196, 120, 0.2);
    position: relative;
    margin: 0;
}

/* Notched circles on both ends */
.cb-ticket-perf[b-kj29oyvq01]::before,
.cb-ticket-perf[b-kj29oyvq01]::after {
    content: '';
    position: absolute;
    top: -7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #0b0f16; /* match page bg */
    border: 1px solid rgba(28, 196, 120, 0.15);
}

.cb-ticket-perf[b-kj29oyvq01]::before { left: -7px; }
.cb-ticket-perf[b-kj29oyvq01]::after  { right: -7px; }

.cb-ticket-date[b-kj29oyvq01] {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cb-ticket-dayname[b-kj29oyvq01] {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-dim, #8b949e);
    text-transform: uppercase;
}

.cb-ticket-daynum[b-kj29oyvq01] {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent, #1cc478);
    letter-spacing: -3px;
    text-shadow: 0 0 40px rgba(28, 196, 120, 0.3);
}

.cb-ticket-month[b-kj29oyvq01] {
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--text-dim, #8b949e);
    text-transform: uppercase;
    font-weight: 600;
}

.cb-ticket-period[b-kj29oyvq01] {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(28, 196, 120, 0.7);
    padding: 3px 10px;
    border: 1px solid rgba(28, 196, 120, 0.2);
    border-radius: 10px;
}

.cb-ticket-bottom[b-kj29oyvq01] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cb-ticket-ref[b-kj29oyvq01],
.cb-ticket-area[b-kj29oyvq01] {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-dim, #8b949e);
    text-transform: uppercase;
}

/* ── What happens next checklist ─────────────────────────── */

.cb-checklist[b-kj29oyvq01] {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cb-checklist-item[b-kj29oyvq01] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dim, #8b949e);
    animation: cb-fade-up-b-kj29oyvq01 0.35s ease both;
}

.cb-checklist-item:nth-child(1)[b-kj29oyvq01] { animation-delay: 0.15s; }
.cb-checklist-item:nth-child(2)[b-kj29oyvq01] { animation-delay: 0.22s; }
.cb-checklist-item:nth-child(3)[b-kj29oyvq01] { animation-delay: 0.29s; }

.cb-checklist-item strong[b-kj29oyvq01] { color: var(--text-primary, #e6edf3); }

.cb-check-dot[b-kj29oyvq01] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(28, 196, 120, 0.1);
    border: 1px solid rgba(28, 196, 120, 0.25);
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
}

/* Green tick inside the dot */
.cb-check-dot[b-kj29oyvq01]::after {
    content: '';
    position: absolute;
    inset: 5px 6px;
    border-left: 1.5px solid var(--accent, #1cc478);
    border-bottom: 1.5px solid var(--accent, #1cc478);
    transform: rotate(-45deg) translateY(-2px);
}

/* ── Review action buttons ────────────────────────────────── */

.cb-review-actions[b-kj29oyvq01] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-confirm-btn[b-kj29oyvq01] {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    /* Shimmer gradient */
    background: linear-gradient(90deg, #17a863 0%, #1cc478 35%, #2de98a 50%, #1cc478 65%, #17a863 100%);
    background-size: 200% auto;
    color: #000;
    animation: cb-shimmer-b-kj29oyvq01 2.8s linear infinite;
    box-shadow: 0 4px 24px rgba(28, 196, 120, 0.28), 0 1px 0 rgba(255,255,255,0.1) inset;
}

@keyframes cb-shimmer-b-kj29oyvq01 {
    0%   { background-position: -100% center; }
    100% { background-position:  200% center; }
}

.cb-confirm-btn:hover:not(:disabled)[b-kj29oyvq01] {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(28, 196, 120, 0.4), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.cb-confirm-btn:active:not(:disabled)[b-kj29oyvq01] {
    transform: translateY(0);
    box-shadow: 0 3px 16px rgba(28, 196, 120, 0.25);
}

.cb-confirm-btn:disabled[b-kj29oyvq01] {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    background: #1cc478;
}

.cb-btn-arrow[b-kj29oyvq01] {
    transition: transform 0.2s ease;
}

.cb-confirm-btn:hover:not(:disabled) .cb-btn-arrow[b-kj29oyvq01] {
    transform: translateX(4px);
}

.cb-back-btn[b-kj29oyvq01] {
    width: 100%;
    padding: 11px 24px;
    background: transparent;
    border: 1px solid #2d333b;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim, #8b949e);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cb-back-btn:hover:not(:disabled)[b-kj29oyvq01] {
    border-color: #3d444d;
    color: var(--text-primary, #e6edf3);
    background: rgba(255, 255, 255, 0.02);
}

.cb-back-btn:disabled[b-kj29oyvq01] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Spinner / error ─────────────────────────────────────── */

.cb-spinner-sm[b-kj29oyvq01] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: cb-spin-b-kj29oyvq01 0.7s linear infinite;
    flex-shrink: 0;
}

.cb-confirm-error[b-kj29oyvq01] {
    color: #f85149;
    font-size: 12px;
    margin-bottom: 12px;
    text-align: center;
    padding: 9px 14px;
    background: rgba(248, 81, 73, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(248, 81, 73, 0.18);
}

/* ── Shared ──────────────────────────────────────────────── */

.cb-contact-help[b-kj29oyvq01] {
    font-size: 12px;
    color: var(--text-dim, #8b949e);
    margin-top: 16px;
}

.cb-contact-help strong[b-kj29oyvq01] { color: var(--text-primary, #e6edf3); }

/* ── Load more ───────────────────────────────────────────── */

.cb-load-more[b-kj29oyvq01] {
    width: 100%;
    margin-top: 12px;
    padding: 11px 20px;
    background: transparent;
    border: 1px dashed #2d333b;
    border-radius: 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dim, #8b949e);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cb-load-more:hover[b-kj29oyvq01] {
    border-color: rgba(28, 196, 120, 0.35);
    color: var(--accent, #1cc478);
    background: rgba(28, 196, 120, 0.03);
}

.cb-load-more-count[b-kj29oyvq01] {
    padding: 1px 7px;
    background: rgba(28, 196, 120, 0.1);
    border: 1px solid rgba(28, 196, 120, 0.2);
    border-radius: 10px;
    font-size: 10px;
    color: var(--accent, #1cc478);
}

@keyframes cb-fade-up-b-kj29oyvq01 {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 520px) {
    /* Step labels: shorten so they don't wrap */
    .cb-step-label[b-kj29oyvq01] {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .cb-step-line[b-kj29oyvq01] {
        min-width: 16px;
        max-width: 40px;
        margin: 0 6px 22px;
    }

    /* Job card */
    .cb-job-service-name[b-kj29oyvq01] { font-size: 13px; }

    /* Date grid — keep 3 cols but shrink internals */
    .cb-date-grid[b-kj29oyvq01] { gap: 8px; }

    .cb-date-card[b-kj29oyvq01] {
        padding: 8px 4px 10px;
        border-radius: 10px;
    }

    .cb-date-card.earliest[b-kj29oyvq01]::before {
        font-size: 6.5px;
        padding: 1px 6px;
    }

    .cb-card-week-label[b-kj29oyvq01] {
        font-size: 7px;
        letter-spacing: 1px;
        margin-bottom: 6px;
        margin-top: 10px;
    }

    .cb-date-card:not(.earliest) .cb-card-week-label[b-kj29oyvq01] {
        margin-top: 0;
    }

    .cb-week-strip[b-kj29oyvq01] { gap: 2px; margin-bottom: 7px; }

    .cb-wk-cell[b-kj29oyvq01] {
        width: 12px;
        height: 12px;
        font-size: 6.5px;
    }

    .cb-date-num[b-kj29oyvq01] {
        font-size: 28px;
        letter-spacing: -1.5px;
    }

    .cb-date-dow[b-kj29oyvq01],
    .cb-date-mon[b-kj29oyvq01] {
        font-size: 7.5px;
        letter-spacing: 1.5px;
    }

    /* Ticket */
    .cb-ticket-daynum[b-kj29oyvq01] { font-size: 44px; }
    .cb-ticket-top[b-kj29oyvq01], .cb-ticket-bottom[b-kj29oyvq01] { padding: 12px 16px; }
    .cb-ticket-date[b-kj29oyvq01] { padding: 18px 16px; }
    .cb-ticket-service[b-kj29oyvq01] { font-size: 13px; }

    /* Confirm button */
    .cb-confirm-btn[b-kj29oyvq01] { padding: 14px 20px; font-size: 13px; }
}

/* Very small phones — hide step labels entirely to prevent crowding */
@media (max-width: 360px) {
    .cb-step-label[b-kj29oyvq01] { display: none; }
    .cb-step-line[b-kj29oyvq01] { max-width: 28px; margin-bottom: 0; }
    .cb-steps[b-kj29oyvq01] { margin-bottom: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES  (.booking-shell.theme-light ancestor)
   Note: Blazor CSS isolation places [b-scope] on the last
   selector element, so .theme-light .cb-x works fine here.
═══════════════════════════════════════════════════════════ */

/* ── Text / colours cascaded via CSS variables ─────────────── */
.theme-light .cb-error h2[b-kj29oyvq01],
.theme-light .cb-dates-title[b-kj29oyvq01],
.theme-light .cb-review-title[b-kj29oyvq01] {
    color: #111827;
}

.theme-light .cb-loading-text[b-kj29oyvq01],
.theme-light .cb-error p[b-kj29oyvq01],
.theme-light .cb-dates-sub[b-kj29oyvq01],
.theme-light .cb-review-sub[b-kj29oyvq01],
.theme-light .cb-success-sub[b-kj29oyvq01],
.theme-light .cb-success-company[b-kj29oyvq01],
.theme-light .cb-contact-help[b-kj29oyvq01],
.theme-light .cb-checklist-item[b-kj29oyvq01],
.theme-light .cb-sc-label[b-kj29oyvq01],
.theme-light .cb-ticket-dayname[b-kj29oyvq01],
.theme-light .cb-ticket-month[b-kj29oyvq01],
.theme-light .cb-ticket-ref[b-kj29oyvq01],
.theme-light .cb-ticket-area[b-kj29oyvq01] {
    color: #6b7280;
}

.theme-light .cb-checklist-item strong[b-kj29oyvq01],
.theme-light .cb-no-slots strong[b-kj29oyvq01],
.theme-light .cb-contact-help strong[b-kj29oyvq01],
.theme-light .cb-sc-value[b-kj29oyvq01],
.theme-light .cb-job-service-name[b-kj29oyvq01] {
    color: #111827;
}

/* ── Step indicator ─────────────────────────────────────────── */
.theme-light .cb-step-dot[b-kj29oyvq01] {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #9ca3af;
}

.theme-light .cb-step-label[b-kj29oyvq01] {
    color: #d1d5db;
}

.theme-light .cb-step--done .cb-step-label[b-kj29oyvq01],
.theme-light .cb-step--active .cb-step-label[b-kj29oyvq01] {
    color: #6b7280;
}

.theme-light .cb-step-line[b-kj29oyvq01] {
    background: #e5e7eb;
}

/* ── Job card ───────────────────────────────────────────────── */
.theme-light .cb-job-card[b-kj29oyvq01] {
    background: rgba(28, 196, 120, 0.03);
    border-color: rgba(28, 196, 120, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.theme-light .cb-meta-chip[b-kj29oyvq01] {
    background: rgba(0, 0, 0, 0.03);
    border-color: #e5e7eb;
    color: #374151;
}

.theme-light .cb-meta-chip-label[b-kj29oyvq01] { color: #9ca3af; }

/* ── Date cards ─────────────────────────────────────────────── */
.theme-light .cb-date-card[b-kj29oyvq01] {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    color: #111827;
    backdrop-filter: none;
}

.theme-light .cb-date-card[b-kj29oyvq01]::after {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}

.theme-light .cb-date-card:hover:not(:disabled)[b-kj29oyvq01] {
    border-color: rgba(28, 196, 120, 0.5);
    background: rgba(28, 196, 120, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(28, 196, 120, 0.1);
}

.theme-light .cb-wk-cell[b-kj29oyvq01] { color: #d1d5db; }

.theme-light .cb-date-num[b-kj29oyvq01] {
    color: #111827;
    text-shadow: none;
}

.theme-light .cb-date-card:hover:not(:disabled) .cb-date-num[b-kj29oyvq01] {
    text-shadow: none;
}

.theme-light .cb-date-dow[b-kj29oyvq01],
.theme-light .cb-date-mon[b-kj29oyvq01] {
    color: rgba(17, 24, 39, 0.5);
}

.theme-light .cb-date-period[b-kj29oyvq01] {
    border-color: #e5e7eb;
    color: #9ca3af;
}

.theme-light .cb-no-slots-dash[b-kj29oyvq01] { background: #e5e7eb; }

.theme-light .cb-load-more[b-kj29oyvq01] {
    border-color: #d1d5db;
    color: #6b7280;
    background: transparent;
}

.theme-light .cb-load-more:hover[b-kj29oyvq01] {
    border-color: rgba(28, 196, 120, 0.4);
    color: var(--accent, #1cc478);
    background: rgba(28, 196, 120, 0.03);
}

/* ── Review / ticket ────────────────────────────────────────── */
.theme-light .cb-ticket[b-kj29oyvq01] {
    background: linear-gradient(145deg, rgba(28,196,120,0.05) 0%, #ffffff 100%);
    border-color: rgba(28, 196, 120, 0.22);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* Perforation notch circles — match light bg */
.theme-light .cb-ticket-perf[b-kj29oyvq01]::before,
.theme-light .cb-ticket-perf[b-kj29oyvq01]::after {
    background: #f4f6f9;
}

.theme-light .cb-ticket-daynum[b-kj29oyvq01] {
    text-shadow: 0 0 40px rgba(28, 196, 120, 0.15);
}

.theme-light .cb-check-dot[b-kj29oyvq01] {
    background: rgba(28, 196, 120, 0.07);
    border-color: rgba(28, 196, 120, 0.3);
}

.theme-light .cb-back-btn[b-kj29oyvq01] {
    border-color: #d1d5db;
    color: #6b7280;
}

.theme-light .cb-back-btn:hover:not(:disabled)[b-kj29oyvq01] {
    border-color: #9ca3af;
    color: #374151;
    background: rgba(0, 0, 0, 0.02);
}
/* /Pages/Dispatch.razor.rz.scp.css */
/* ══ PAGE SHELL ══ */
.dispatch[b-2foqsmlhrs] {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-body[b-2foqsmlhrs] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ══ RIGHT / FULL PANEL ══ */
.right-panel[b-2foqsmlhrs] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ══ SUB-BAR ACTION BUTTONS (map toggle + filter) ══ */
.sub-action-btn[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--surface2);
    color: var(--text-dim);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 4px 11px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    margin: 0 2px;
}

    .sub-action-btn:hover[b-2foqsmlhrs] {
        color: var(--text-bright);
        border-color: var(--accent);
        background: var(--surface);
    }

    .sub-action-btn.active[b-2foqsmlhrs] {
        background: var(--accent-dim);
        color: var(--accent);
        border-color: var(--accent);
    }

.sub-filter-chevron[b-2foqsmlhrs] {
    font-size: 7px;
    opacity: 0.55;
    margin-left: 2px;
}

/* ══ FILTER FLYOUT ══ */
.sub-filter-wrap[b-2foqsmlhrs] {
    position: relative;
}

.filter-backdrop[b-2foqsmlhrs] {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.filter-flyout[b-2foqsmlhrs] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    max-width: 320px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,.04);
    z-index: 100;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: flyoutIn-b-2foqsmlhrs .14s cubic-bezier(.16,1,.3,1) both;
}

@keyframes flyoutIn-b-2foqsmlhrs {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ff-section[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ff-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.ff-toggle-row[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 5px;
    background: var(--surface2);
    border: 1px solid var(--border2);
}

.ff-toggle-label[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
}

.ff-toggle-check[b-2foqsmlhrs] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.ff-hint[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.45;
}

/* Saved group chips */
.ff-chips[b-2foqsmlhrs] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ff-chip[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 3px 6px 3px 10px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    transition: all .12s;
    cursor: pointer;
    max-width: 130px;
}

    .ff-chip span[b-2foqsmlhrs] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

    .ff-chip:hover[b-2foqsmlhrs] {
        border-color: var(--accent);
        color: var(--text-bright);
    }

    .ff-chip.ff-chip-on[b-2foqsmlhrs] {
        background: var(--accent-dim);
        border-color: var(--accent);
        color: var(--accent);
    }

.ff-chip-del[b-2foqsmlhrs] {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 9px;
    padding: 0 2px;
    line-height: 1;
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.5;
}

    .ff-chip-del:hover[b-2foqsmlhrs] {
        color: var(--red);
        opacity: 1;
    }

/* Engineer list in flyout */
.ff-eng-list[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

.ff-eng-row[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .1s;
    user-select: none;
}

    .ff-eng-row:hover[b-2foqsmlhrs] {
        background: var(--surface2);
    }

    .ff-eng-row.ff-eng-on[b-2foqsmlhrs] {
        background: var(--accent-dim);
    }

    .ff-eng-row.ff-eng-disabled[b-2foqsmlhrs] {
        opacity: 0.68;
    }

.ff-eng-badge[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-dim);
    margin-left: 4px;
}

.ff-eng-dot[b-2foqsmlhrs] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ff-eng-name[b-2foqsmlhrs] {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-eng-count[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.ff-eng-check[b-2foqsmlhrs] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

/* Flyout footer */
.ff-footer[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.ff-save-btn[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    background: none;
    border: 1px dashed var(--border2);
    border-radius: 10px;
    padding: 3px 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}

    .ff-save-btn:hover[b-2foqsmlhrs] {
        border-color: var(--accent);
        color: var(--accent);
    }

.ff-save-row[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ff-save-input[b-2foqsmlhrs] {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 3px 7px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-bright);
    outline: none;
}

    .ff-save-input[b-2foqsmlhrs]::placeholder { color: var(--text-dim); opacity: .6; }

.ff-save-ok[b-2foqsmlhrs], .ff-save-cancel[b-2foqsmlhrs] {
    background: none;
    border: none;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
    flex-shrink: 0;
}

.ff-save-ok[b-2foqsmlhrs] { color: var(--green); }
.ff-save-ok:hover:not(:disabled)[b-2foqsmlhrs] { background: var(--accent-dim); }
.ff-save-ok:disabled[b-2foqsmlhrs] { opacity: .3; cursor: not-allowed; }
.ff-save-cancel[b-2foqsmlhrs] { color: var(--text-dim); }
.ff-save-cancel:hover[b-2foqsmlhrs] { color: var(--red); }

.ff-clear-btn[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    background: none;
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 3px 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .12s;
}

    .ff-clear-btn:hover[b-2foqsmlhrs] {
        border-color: var(--red);
        color: var(--red);
    }

.ff-close-btn[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 3px 12px;
    color: var(--accent);
    cursor: pointer;
    margin-left: auto;
    transition: all .12s;
}

    .ff-close-btn:hover[b-2foqsmlhrs] {
        background: var(--accent);
        color: #fff;
    }

/* ══ DAY VIEW BODY — side-by-side gantt + map ══ */
.day-body[b-2foqsmlhrs] {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 0;
}

/* ══ ALL-ENGINEERS MAP PANEL (right 1/3) ══ */
.allmap-panel[b-2foqsmlhrs] {
    width: 33.33%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border);
    background: var(--bg);
    overflow: hidden;
    animation: mapPanelSlideIn-b-2foqsmlhrs .2s cubic-bezier(.16,1,.3,1) both;
}

@keyframes mapPanelSlideIn-b-2foqsmlhrs {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

#allmap[b-2foqsmlhrs] {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* ══ HORIZONTAL GANTT VIEW ══ */
.gantt-view[b-2foqsmlhrs] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    position: relative;
}

.gantt-empty[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    padding: 40px 24px;
    text-align: center;
}

/* Single scrollable area that handles both X and Y — sticky headers/labels work within */
.gantt-scroll[b-2foqsmlhrs] {
    flex: 1;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
    position: relative;
}

/* Time header row — sticky at top */
.gantt-header-row[b-2foqsmlhrs] {
    display: flex;
    height: 28px;
    position: sticky;
    top: 0;
    z-index: 12;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

/* Top-left corner cell — sticky both top and left */
.gantt-corner[b-2foqsmlhrs] {
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 13;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

/* Relative container for hour labels */
.gantt-time-axis[b-2foqsmlhrs] {
    flex: 1;
    min-width: 820px;
    position: relative;
    overflow: visible;
}

.gantt-hour-label[b-2foqsmlhrs] {
    position: absolute;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    top: 7px;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Individual engineer row */
.gantt-row[b-2foqsmlhrs] {
    display: flex;
    min-height: 62px;
    border-bottom: 1px solid var(--border);
}

/* Row label — sticky on the left */
.gantt-row-label[b-2foqsmlhrs] {
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 9px 12px;
    cursor: pointer;
    transition: background .12s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    user-select: none;
}

    .gantt-row-label:hover[b-2foqsmlhrs] {
        background: var(--surface2);
    }

    .gantt-row-label:hover .gantt-eng-name[b-2foqsmlhrs]::after {
        content: ' →';
        color: var(--accent);
        font-size: 11px;
    }

.gantt-eng-name[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid transparent;
    padding-left: 5px;
    margin-left: -5px;
    transition: border-color .15s;
}

.gantt-row-label:hover .gantt-eng-name[b-2foqsmlhrs] {
    border-left-color: var(--accent);
}

/* Availability / holiday badges on engineer name */
.eng-avail-badge[b-2foqsmlhrs] {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
}
.eng-avail-hol[b-2foqsmlhrs]  { background: #f59e0b22; color: #f59e0b; border: 1px solid #f59e0b55; }
.eng-avail-sick[b-2foqsmlhrs] { background: #ef444422; color: #ef4444; border: 1px solid #ef444455; }
.eng-avail-bk[b-2foqsmlhrs]   { background: #8b5cf622; color: #8b5cf6; border: 1px solid #8b5cf655; }
.eng-avail-ext[b-2foqsmlhrs]  { background: #0ea5e922; color: #0ea5e9; border: 1px solid #0ea5e955; }

/* Gantt row tinted when engineer unavailable */
.gantt-row-unavail .gantt-row-timeline[b-2foqsmlhrs] {
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 6px,
        rgba(100,100,100,.14) 6px,
        rgba(100,100,100,.14) 12px
    );
}

/* Non-working hours shade (custom start/end times) */
.gantt-hours-shade[b-2foqsmlhrs] {
    position: absolute;
    top: 0;
    height: 100%;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 5px,
        rgba(0,0,0,.4) 5px,
        rgba(0,0,0,.4) 10px
    );
    background-color: rgba(0,0,0,.3);
    border-right: 2px solid rgba(99,102,241,.6);
    pointer-events: none;
    z-index: 1;
}

/* "On Holiday" overlay text centred in the timeline */
.gantt-unavail-overlay[b-2foqsmlhrs] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
    pointer-events: none;
    opacity: .45;
}

.gantt-eng-sub[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    padding-left: 3px;
}

.gantt-eng-bar[b-2foqsmlhrs] {
    height: 2px;
    background: var(--border2);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 3px;
}

.gantt-eng-bar-fill[b-2foqsmlhrs] {
    height: 100%;
    border-radius: 1px;
    transition: width .4s;
}

/* Timeline area — holds blocks */
.gantt-row-timeline[b-2foqsmlhrs] {
    flex: 1;
    min-width: 820px;
    position: relative;
    min-height: 62px;
    cursor: pointer;
    transition: background .1s;
}

    .gantt-row-timeline:hover[b-2foqsmlhrs] {
        background: rgba(28,196,120,.03);
    }

/* Vertical grid lines (one per hour) */
.gantt-grid-line[b-2foqsmlhrs] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    pointer-events: none;
    opacity: 0.6;
}

/* Current time indicator */
.gantt-now-tick[b-2foqsmlhrs] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    pointer-events: none;
    z-index: 4;
}

    .gantt-now-tick[b-2foqsmlhrs]::before {
        content: '';
        position: absolute;
        top: 2px;
        left: -3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--red);
    }

/* ── Job block ── */
.gantt-job[b-2foqsmlhrs] {
    position: absolute;
    top: 7px;
    bottom: 7px;
    border-radius: 3px;
    padding: 2px 6px;
    overflow: hidden;
    cursor: grab;
    pointer-events: all;
    transition: filter .15s, z-index 0s;
    border-left: 3px solid transparent;
    animation: jobFlyIn-b-2foqsmlhrs .22s cubic-bezier(0.16,1,0.3,1) both;
    box-sizing: border-box;
    min-width: 4px;
}

    .gantt-job:hover[b-2foqsmlhrs] {
        filter: brightness(1.3);
        z-index: 10;
    }

    .gantt-job.locked[b-2foqsmlhrs] {
        border-left-width: 3px;
    }

.gantt-jb-title[b-2foqsmlhrs] {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gantt-jb-time[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    white-space: nowrap;
}

.gantt-jb-lock[b-2foqsmlhrs] {
    font-size: 9px;
    margin-right: 1px;
}

/* Edit button on job blocks — appears on hover */
.gantt-jb-edit[b-2foqsmlhrs] {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    padding: 2px;
    border: none;
    border-radius: 3px;
    background: rgba(0,0,0,.45);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

    .gantt-jb-edit svg[b-2foqsmlhrs] {
        width: 11px;
        height: 11px;
    }

    .gantt-job:hover .gantt-jb-edit[b-2foqsmlhrs] {
        opacity: 1;
    }

    .gantt-jb-edit:hover[b-2foqsmlhrs] {
        background: var(--accent);
    }

/* ── Travel block ── */
.gantt-travel[b-2foqsmlhrs] {
    position: absolute;
    top: 12px;
    bottom: 12px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 4px;
    overflow: hidden;
    pointer-events: all;
    background: rgba(255,255,255,.04);
    border: 1px dashed rgba(255,255,255,.14);
    box-sizing: border-box;
    animation: jobFlyIn-b-2foqsmlhrs .22s cubic-bezier(0.16,1,0.3,1) both;
    min-width: 2px;
}

.gantt-travel-warn[b-2foqsmlhrs] {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.35);
}

.gantt-tb-icon[b-2foqsmlhrs] {
    font-size: 10px;
    flex-shrink: 0;
    line-height: 1;
}

.gantt-tb-mins[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
}

.gantt-travel-warn .gantt-tb-mins[b-2foqsmlhrs] {
    color: var(--red);
}

/* ══ DETAIL VIEW (engineer focus) ══ */
.detail-view[b-2foqsmlhrs] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-topbar[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.detail-who[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-name[b-2foqsmlhrs] {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}

.detail-post[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}

.detail-contact[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.fleet-live-banner[b-2foqsmlhrs] {
    flex: 1 1 100%;
    order: 10;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #e0f2fe;
    padding: 8px 12px;
    background: rgba(14,165,233,0.12);
    border: 1px solid rgba(56,189,248,0.3);
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    margin-top: 2px;
}

/* ── Fleet journey timeline ────────────────────────────────────────── */

.fleet-drawer-timeline[b-2foqsmlhrs] {
    flex: 1 1 100%;
    order: 11;
    margin-top: 6px;
    padding: 10px 14px 8px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    font-size: 11px;
}

.fleet-tl-heading[b-2foqsmlhrs] {
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text, #f1f5f9);
    line-height: 1.2;
}

/* Header */

.fleet-tl-header[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fleet-mode-row[b-2foqsmlhrs] { display: flex; gap: 4px; }

.fleet-mode-btn[b-2foqsmlhrs] {
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex; align-items: center; gap: 5px;
}

.fleet-mode-btn:hover[b-2foqsmlhrs] { background: rgba(255,255,255,0.04); }

.fleet-mode-btn.active[b-2foqsmlhrs] {
    background: rgba(45,108,223,0.18);
    border-color: #2d6cdf;
    color: #e2e8f0;
    font-weight: 600;
}

.fleet-mode-icon[b-2foqsmlhrs] {
    font-size: 8px;
    opacity: 0.6;
}

.fleet-mode-btn.active .fleet-mode-icon[b-2foqsmlhrs] { opacity: 1; color: #60a5fa; }

.fleet-tl-clock[b-2foqsmlhrs] {
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.03em;
}

/* Timeline body — contains ticks + track */

.fleet-tl-body[b-2foqsmlhrs] {
    position: relative;
    padding-top: 20px;  /* space for tick labels */
}

/* Hour ticks */

.fleet-tl-tick[b-2foqsmlhrs] {
    position: absolute;
    top: 0;
    width: 0;
    z-index: 1;
    pointer-events: none;
}

.fleet-tl-tick[b-2foqsmlhrs]::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.09);
}

.fleet-tl-tick-half[b-2foqsmlhrs]::after {
    background: rgba(255,255,255,0.04);
}

.fleet-tl-tick-label[b-2foqsmlhrs] {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    white-space: nowrap;
    line-height: 1;
    font-weight: 500;
}

.fleet-tl-tick-label-half[b-2foqsmlhrs] {
    font-size: 8px;
    color: #475569;
    font-weight: 400;
}

/* Track */

.fleet-tl-track[b-2foqsmlhrs] {
    position: relative;
    height: 46px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.09);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Schedule blocks: top row */

.fleet-tl-block[b-2foqsmlhrs] {
    position: absolute;
    top: 4px;
    height: 18px;
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fleet-tl-block-job[b-2foqsmlhrs] {
    background: rgba(45,108,223,0.55);
    border-left: 2px solid #3b82f6;
}

.fleet-tl-block-travel[b-2foqsmlhrs] {
    background: repeating-linear-gradient(
        -45deg,
        rgba(71,85,105,0.25),
        rgba(71,85,105,0.25) 3px,
        rgba(71,85,105,0.1) 3px,
        rgba(71,85,105,0.1) 6px
    );
    border-left: 2px solid #64748b;
}

.fleet-tl-block-text[b-2foqsmlhrs] {
    display: block;
    padding: 0 4px;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Drive / stop segments: shared base */

.fleet-tl-seg[b-2foqsmlhrs] {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Driving segment — thin bar along the bottom */

.fleet-tl-seg-drive[b-2foqsmlhrs] {
    bottom: 4px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    opacity: 0.7;
}

/* Stop segment — taller, amber block, same bottom anchor so they share a baseline */

.fleet-tl-seg-stop[b-2foqsmlhrs] {
    bottom: 4px;
    height: 16px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.25);
    border-left:  2px solid #f59e0b;
    border-right: 2px solid #f59e0b;
    box-shadow: inset 0 0 0 1px rgba(245,158,11,0.15);
}

/* Shared: overlay indicators (now + playback head) sit outside the track,
   positioned against .fleet-tl-body so they span tick labels + track */

.fleet-tl-overlay[b-2foqsmlhrs] {
    position: absolute;
    top: -12px;
    bottom: -12px;
    pointer-events: none;
    z-index: 6;
}

/* Now indicator — strong vertical “clock” line spanning full body height */

.fleet-tl-now[b-2foqsmlhrs] {
    width: 3px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 40%, #c2410c 100%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.25),
        0 0 10px rgba(234,88,12,0.55),
        0 0 20px rgba(234,88,12,0.25);
}

.fleet-tl-now-label[b-2foqsmlhrs] {
    position: absolute;
    top: -1px;   /* above the overlay top edge — floats clearly above the timeline */
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 9px;
    font-weight: 800;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

/* Playback head (Replay scrubber) — dashed line spanning full body height */

.fleet-tl-head[b-2foqsmlhrs] {
    width: 3px;
    margin-left: -1.5px;
    background: repeating-linear-gradient(
        180deg,
        #a855f7 0px,
        #a855f7 5px,
        transparent 5px,
        transparent 9px
    );
    filter: drop-shadow(0 0 5px rgba(168,85,247,0.75));
}

.fleet-tl-head[b-2foqsmlhrs]::before {
    content: "";
    position: absolute;
    top: 32px;   /* 12px overlay overhang + 20px tick area = top of track */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #a855f7;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Time popover that floats below the caret, on the track face */

.fleet-tl-head-time[b-2foqsmlhrs] {
    position: absolute;
    top: 44px;   /* 12px overhang + 20px tick area + 6px caret + 6px gap */
    left: 50%;
    transform: translateX(-50%);
    background: #7c3aed;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(168,85,247,0.3);
    user-select: none;
}

/* Slider — transparent overlay for drag interaction */

.fleet-tl-slider[b-2foqsmlhrs] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0; padding: 0;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.fleet-tl-slider[b-2foqsmlhrs]::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}

.fleet-tl-slider[b-2foqsmlhrs]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 44px;
    background: transparent;
    cursor: ew-resize;
}

.fleet-tl-slider[b-2foqsmlhrs]::-moz-range-track {
    height: 100%;
    background: transparent;
    border: none;
}

.fleet-tl-slider[b-2foqsmlhrs]::-moz-range-thumb {
    width: 16px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: ew-resize;
}

.fleet-tl-slider:disabled[b-2foqsmlhrs] {
    cursor: default;
    pointer-events: none;
}

/* Legend */

.fleet-tl-legend[b-2foqsmlhrs] {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.fleet-tl-leg[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 10px;
}

.fleet-tl-sw[b-2foqsmlhrs] {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-radius: 2px;
}

.fleet-tl-sw-job[b-2foqsmlhrs]    { background: rgba(45,108,223,0.7); border-left: 2px solid #3b82f6; }
.fleet-tl-sw-drive[b-2foqsmlhrs]  { background: linear-gradient(90deg, #06b6d4, #22d3ee); height: 4px; margin-top: 4px; border-radius: 2px; opacity: 0.8; }
.fleet-tl-sw-stop[b-2foqsmlhrs]   { background: rgba(245,158,11,0.25); border-left: 2px solid #f59e0b; border-right: 2px solid #f59e0b; }
.fleet-tl-sw-travel[b-2foqsmlhrs] {
    background: repeating-linear-gradient(-45deg, rgba(71,85,105,0.4), rgba(71,85,105,0.4) 2px, rgba(71,85,105,0.15) 2px, rgba(71,85,105,0.15) 4px);
    border-left: 2px solid #64748b;
}
.fleet-tl-sw-now[b-2foqsmlhrs] {
    width: 3px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fb923c, #ea580c);
    box-shadow: 0 0 4px rgba(234,88,12,0.45);
}

/* Light theme: timeline readable (job blocks + mode buttons were washed out) */

[data-theme="light"] .fleet-tl-heading[b-2foqsmlhrs] {
    color: #0f172a;
}

[data-theme="light"] .fleet-mode-btn[b-2foqsmlhrs] {
    color: #334155;
    background: rgba(15,23,42,0.05);
    border-color: rgba(15,23,42,0.14);
}

[data-theme="light"] .fleet-mode-btn:hover[b-2foqsmlhrs] {
    background: rgba(15,23,42,0.08);
}

[data-theme="light"] .fleet-mode-btn.active[b-2foqsmlhrs] {
    background: rgba(37,99,235,0.16);
    border-color: #2563eb;
    color: #1e3a8a;
}

[data-theme="light"] .fleet-mode-btn.active .fleet-mode-icon[b-2foqsmlhrs] {
    color: #1d4ed8;
}

[data-theme="light"] .fleet-tl-clock[b-2foqsmlhrs] {
    color: #0f172a;
}

[data-theme="light"] .fleet-tl-tick[b-2foqsmlhrs]::after {
    background: rgba(15,23,42,0.1);
}

[data-theme="light"] .fleet-tl-tick-label[b-2foqsmlhrs] {
    color: #64748b;
}

[data-theme="light"] .fleet-tl-track[b-2foqsmlhrs] {
    background: rgba(15,23,42,0.04);
    border-color: rgba(15,23,42,0.12);
}

[data-theme="light"] .fleet-tl-block-job[b-2foqsmlhrs] {
    background: #2563eb;
    border-left-color: #1d4ed8;
}

[data-theme="light"] .fleet-tl-block-text[b-2foqsmlhrs] {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

[data-theme="light"] .fleet-tl-leg[b-2foqsmlhrs] {
    color: #475569;
}

[data-theme="light"] .fleet-tl-legend[b-2foqsmlhrs] {
    border-top-color: rgba(15,23,42,0.08);
}

[data-theme="light"] .fleet-live-banner[b-2foqsmlhrs] {
    color: #0c4a6e;
    background: rgba(14,165,233,0.14);
    border-color: rgba(2,132,199,0.35);
}

.map-badge-inline[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 10px;
    padding: 4px 10px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    align-items: center;
}

    .map-badge-inline b[b-2foqsmlhrs] {
        color: var(--text-bright);
    }

.snapshot-label[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--green);
}

.live-label[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--amber);
}

.reopt-error[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--red);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reopt-info[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-back[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--surface2);
    color: var(--text-dim);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    transition: color .15s, background .15s;
}

    .btn-back:hover[b-2foqsmlhrs] {
        color: var(--text-bright);
        background: var(--border2);
    }

.btn-preview-return[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    background: #1e1430;
    color: #a855f7;
    border: 1px solid #a855f7;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
}

.preview-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: #a855f7;
    letter-spacing: 1.5px;
    animation: blink 2s infinite;
}

.detail-body[b-2foqsmlhrs] {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* ── Engineer timeline panel (left) ── */
.eng-timeline[b-2foqsmlhrs] {
    width: 42%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.et-loading[b-2foqsmlhrs],
.et-empty[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Summary card */
.et-summary[b-2foqsmlhrs] {
    flex-shrink: 0;
    padding: 10px 14px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}

.et-summary-row[b-2foqsmlhrs] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.et-stat[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.et-stat-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.et-stat-value[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
}

/* Scrollable items */
.et-items[b-2foqsmlhrs] {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: thin;
}

/* Travel row */
.et-travel[b-2foqsmlhrs] {
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: default;
    padding: 4px 0;
}

.et-travel-spine[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
}

.et-travel-dot[b-2foqsmlhrs] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border2);
    border: 1px solid var(--text-dim);
    margin-top: 4px;
    flex-shrink: 0;
}

.et-travel-line[b-2foqsmlhrs] {
    width: 1px;
    flex: 1;
    min-height: 20px;
    background: var(--border2);
    margin-top: 2px;
}

.et-travel-body[b-2foqsmlhrs] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 3px 0 3px 8px;
}

.et-travel-icon[b-2foqsmlhrs] {
    font-size: 12px;
}

.et-travel-times[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
}

.et-travel-dur[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.et-travel-route[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    width: 100%;
}

.et-travel-flag[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--red);
    width: 100%;
}

.et-travel-warn .et-travel-times[b-2foqsmlhrs],
.et-travel-warn .et-travel-dur[b-2foqsmlhrs] { color: var(--red); }
.et-travel-warn .et-travel-dot[b-2foqsmlhrs] { background: var(--red); border-color: var(--red); }

.et-travel-late .et-travel-times[b-2foqsmlhrs] { color: var(--amber); }
.et-travel-late .et-travel-dot[b-2foqsmlhrs]   { background: var(--amber); border-color: var(--amber); }

/* Gap row */
.et-gap[b-2foqsmlhrs] {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 2px 0;
    opacity: .55;
}

.et-gap-line[b-2foqsmlhrs] {
    width: 1px;
    height: 18px;
    background: repeating-linear-gradient(to bottom, var(--border2) 0, var(--border2) 3px, transparent 3px, transparent 6px);
    margin: 0 auto;
}

.et-gap-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    padding: 3px 0 3px 28px;
}

/* Job row */
.et-job[b-2foqsmlhrs] {
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    padding: 4px 0;
}

    .et-job:hover .et-job-card[b-2foqsmlhrs] {
        border-color: var(--accent);
        background: #0c1525;
    }

    .et-job:hover .et-job-hint[b-2foqsmlhrs] {
        opacity: 1;
    }

.et-job-time[b-2foqsmlhrs] {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding-right: 6px;
    padding-top: 8px;
}

.et-job-start[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
}

.et-job-end[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    line-height: 1;
}

.et-job-spine[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
}

.et-job-dot[b-2foqsmlhrs] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    outline: 1px solid var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
    transition: transform .15s;
}

.et-job:hover .et-job-dot[b-2foqsmlhrs] {
    transform: scale(1.2);
}

.et-job-bar[b-2foqsmlhrs] {
    width: 2px;
    flex: 1;
    min-height: 16px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin-top: 2px;
    opacity: .4;
}

.et-job-card[b-2foqsmlhrs] {
    flex: 1;
    margin-left: 8px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    padding: 8px 10px;
    transition: border-color .15s, background .15s;
}

.et-job-locked .et-job-card[b-2foqsmlhrs] {
    border-left-color: var(--amber);
}

.et-job-locked .et-job-dot[b-2foqsmlhrs] {
    background: var(--amber);
    outline-color: var(--amber);
}

.et-job-header[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.et-lock-badge[b-2foqsmlhrs] {
    font-size: 11px;
}

.et-job-title[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
}

.et-job-meta[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.et-job-post[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.et-job-dur[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.et-job-hint[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    margin-top: 4px;
    opacity: 0;
    transition: opacity .15s;
}

/* Map (right side) */
.map-wrap[b-2foqsmlhrs] {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map[b-2foqsmlhrs] {
    width: 100%;
    height: 100%;
}

/* ══ ITINERARY STRIP ══ */
.drawer-strip[b-2foqsmlhrs] {
    height: 130px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 6px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    scrollbar-width: thin;
}

.drawer-empty[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strip-job[b-2foqsmlhrs] {
    flex-shrink: 0;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 7px 10px;
    min-width: 130px;
    max-width: 180px;
    border-left: 3px solid var(--accent);
    cursor: pointer;
    transition: border-color .15s;
}

    .strip-job.is-preview[b-2foqsmlhrs] {
        border-left-color: #a855f7;
        background: #140e24;
        cursor: default;
    }

    .strip-job.is-locked[b-2foqsmlhrs] {
        border-left-color: #f59e0b;
    }

    .strip-job.is-shifted[b-2foqsmlhrs] {
        border-left-color: #f59e0b;
        background: #1a1400;
    }

.strip-job-title[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.strip-job-time[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.strip-job-old-time[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    text-decoration: line-through;
    opacity: .5;
}

.strip-job-post[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
}

.strip-job-edit[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    margin-top: 3px;
    opacity: 0;
    transition: opacity .15s;
}

.strip-job:hover .strip-job-edit[b-2foqsmlhrs] {
    opacity: 1;
}

.change-badge[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 3px;
}

.new-badge[b-2foqsmlhrs] {
    background: #a855f722;
    color: #a855f7;
    border: 1px solid #a855f744;
}

.shift-badge[b-2foqsmlhrs] {
    background: #f59e0b22;
    color: #f59e0b;
    border: 1px solid #f59e0b44;
}

.strip-travel[b-2foqsmlhrs] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 10px;
    min-width: 80px;
    background: var(--bg);
    border: 1px dashed var(--border2);
    border-radius: 6px;
    cursor: default;
    transition: border-color .15s;
}

    .strip-travel:hover[b-2foqsmlhrs] {
        border-color: var(--accent);
    }

    .strip-travel.tw[b-2foqsmlhrs] {
        border-color: var(--red);
        background: var(--red-dim);
    }

    .strip-travel.late[b-2foqsmlhrs] {
        border-color: var(--amber);
    }

.strip-travel-icon[b-2foqsmlhrs] {
    font-size: 13px;
}

.strip-travel-mins[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
}

.strip-travel-route[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    white-space: nowrap;
}

.strip-travel-warn[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--red);
}

.strip-gap[b-2foqsmlhrs] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 8px;
    min-width: 64px;
    background: transparent;
    border: 1px dashed rgba(255,255,255,.07);
    border-radius: 6px;
    opacity: .6;
}

.strip-gap-icon[b-2foqsmlhrs] {
    font-size: 11px;
    color: var(--text-dim);
}

.strip-gap-mins[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ══ BOOKING MODAL ══ */
.modal[b-2foqsmlhrs] {
    border-right: 1px solid var(--border2);
    animation: slideInL-b-2foqsmlhrs .2s cubic-bezier(.4,0,.2,1);
}

@keyframes slideInL-b-2foqsmlhrs {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.sec-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 8px;
    margin: 16px 0 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.sug-card[b-2foqsmlhrs] {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 7px;
    transition: border-color .15s, background .15s;
}

    .sug-card:hover:not(.violates)[b-2foqsmlhrs] {
        border-color: var(--accent);
        background: #0c1525;
    }

    .sug-card.previewing[b-2foqsmlhrs] {
        border-color: #a855f7;
        background: #0e0a1a;
    }

    .sug-card.violates[b-2foqsmlhrs] {
        opacity: .55;
    }

.sug-row1[b-2foqsmlhrs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sug-eng[b-2foqsmlhrs] {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sug-dot[b-2foqsmlhrs] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sug-when[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.sug-stats[b-2foqsmlhrs] {
    display: flex;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .sug-stats .ok[b-2foqsmlhrs] {
        color: var(--green);
    }

    .sug-stats .meh[b-2foqsmlhrs] {
        color: var(--amber);
    }

    .sug-stats .bad[b-2foqsmlhrs] {
        color: var(--red);
    }

.violates-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--red);
}

.sug-actions[b-2foqsmlhrs] {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ══ TIME EDITOR ══ */
.time-editor[b-2foqsmlhrs] {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .2s;
}

    .time-editor.te-edited[b-2foqsmlhrs] {
        border-color: var(--amber);
    }

.te-lock-bar[b-2foqsmlhrs] {
    display: flex;
}

.te-lock-toggle[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border2);
    background: var(--surface2);
    transition: all .15s;
    user-select: none;
    flex: 1;
}

    .te-lock-toggle.tl-on[b-2foqsmlhrs] {
        border-color: rgba(245,158,11,.4);
        background: rgba(245,158,11,.07);
        cursor: default;
    }

    .te-lock-toggle.tl-off:hover[b-2foqsmlhrs] {
        border-color: var(--accent);
        background: var(--accent-dim);
    }

.tl-icon[b-2foqsmlhrs] {
    font-size: 16px;
    flex-shrink: 0;
}

.tl-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-bright);
}

.tl-amber[b-2foqsmlhrs] {
    color: var(--amber);
    animation: pulse-amber-b-2foqsmlhrs .8s ease-in-out infinite alternate;
}

.tl-sub[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

@keyframes pulse-amber-b-2foqsmlhrs {
    from {
        opacity: .7;
    }

    to {
        opacity: 1;
    }
}

.te-controls[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.te-field-group[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.te-nudge-row[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.te-nudge[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text-dim);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all .12s;
    flex-shrink: 0;
}

    .te-nudge:hover:not(:disabled)[b-2foqsmlhrs] {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-dim);
    }

    .te-nudge:disabled[b-2foqsmlhrs] {
        opacity: .35;
        cursor: not-allowed;
    }

.te-input[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 5px 0;
    text-align: center;
    width: 78px;
    flex-shrink: 0;
    outline: none;
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
}

    .te-input[b-2foqsmlhrs]::-webkit-inner-spin-button, .te-input[b-2foqsmlhrs]::-webkit-outer-spin-button, .te-input[b-2foqsmlhrs]::-webkit-calendar-picker-indicator {
        display: none;
        opacity: 0;
    }

    .te-input:focus[b-2foqsmlhrs] {
        border-color: var(--accent);
    }

    .te-input:disabled[b-2foqsmlhrs] {
        opacity: .5;
        cursor: not-allowed;
    }

.te-val-changed[b-2foqsmlhrs] {
    border-color: var(--amber) !important;
    color: var(--amber) !important;
}

.te-dur-hint[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 400;
}

.te-summary[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 12px;
    transition: all .2s;
}

.te-summary-changed[b-2foqsmlhrs] {
    border-color: rgba(245,158,11,.35);
    background: rgba(245,158,11,.05);
}

.te-summary-start[b-2foqsmlhrs], .te-summary-end[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    min-width: 44px;
}

.te-summary-end[b-2foqsmlhrs] {
    text-align: right;
}

.te-summary-changed .te-summary-start[b-2foqsmlhrs],
.te-summary-changed .te-summary-end[b-2foqsmlhrs] {
    color: var(--amber);
}

.te-summary-arrow[b-2foqsmlhrs] {
    flex: 1;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--border2);
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -1px;
}

.te-summary-dur[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 1px 7px;
}

.te-hours-warning[b-2foqsmlhrs] {
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 5px;
    padding: 6px 10px;
}

.te-error[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid var(--red);
    border-radius: 5px;
    padding: 7px 10px;
}

.te-preview-loading[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    padding: 4px 0;
}

.te-preview-strip[b-2foqsmlhrs] {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.te-preview-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.te-preview-jobs[b-2foqsmlhrs] {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.te-pj[b-2foqsmlhrs] {
    flex-shrink: 0;
    min-width: 100px;
    max-width: 150px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 3px solid var(--border2);
}

.te-pj-editing[b-2foqsmlhrs] {
    border-left-color: var(--amber);
    background: rgba(245,158,11,.06);
    border-color: rgba(245,158,11,.25);
}

.te-pj-shifted[b-2foqsmlhrs] {
    border-left-color: var(--accent);
}

.te-pj-badge[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 2px;
}

.te-pj-badge-lock[b-2foqsmlhrs] {
    background: rgba(245,158,11,.15);
    color: var(--amber);
    border: 1px solid rgba(245,158,11,.3);
}

.te-pj-badge-moved[b-2foqsmlhrs] {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(28,196,120,.3);
}

.te-pj-title[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.te-pj-old-time[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--accent);
    opacity: .7;
}

.te-pj-time[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.te-pj-editing .te-pj-time[b-2foqsmlhrs] {
    color: var(--amber);
    font-weight: 600;
}

.te-pj-gap[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    align-self: center;
}

.te-pj-gap-line[b-2foqsmlhrs] {
    width: 10px;
    height: 1px;
    background: var(--border2);
}

.te-pj-gap-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    white-space: nowrap;
    padding: 2px 5px;
    border: 1px dashed var(--border2);
    border-radius: 3px;
}


/* ══ RANGE VIEWS ══ */
.range-view[b-2foqsmlhrs] {
    flex: 1;
    overflow: auto;
    background: var(--bg);
}

.rv-grid[b-2foqsmlhrs] {
    display: grid;
    grid-template-columns: 150px repeat(7, 1fr);
    min-width: 860px;
}

.rv-eng-col[b-2foqsmlhrs] {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.rv-day-head[b-2foqsmlhrs] {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: background .15s;
}

    .rv-day-head:hover[b-2foqsmlhrs] {
        background: var(--surface2);
    }

.rv-day-hint[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    opacity: 0;
    transition: opacity .15s;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.rv-day-head:hover .rv-day-hint[b-2foqsmlhrs] {
    opacity: 0.9;
}

.rv-today[b-2foqsmlhrs] {
    background: var(--accent-dim) !important;
}

.rv-dow[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.rv-dnum[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1;
}

.rv-dnum-today[b-2foqsmlhrs] {
    color: var(--accent);
}

.rv-eng-cell[b-2foqsmlhrs] {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.rv-eng-name[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
}

.rv-eng-count[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.rv-cell[b-2foqsmlhrs] {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 5px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: background .12s;
}

    .rv-cell:hover[b-2foqsmlhrs] {
        background: var(--surface2);
    }

.rv-cell-today[b-2foqsmlhrs] {
    background: rgba(28,196,120,.04);
}

.rv-cell-empty[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--border2);
    text-align: center;
    margin-top: 18px;
}

.rv-chip[b-2foqsmlhrs] {
    background: var(--surface2);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    padding: 3px 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
    transition: filter .12s;
}

    .rv-chip:hover[b-2foqsmlhrs] {
        filter: brightness(1.25);
    }

.rv-chip-flash[b-2foqsmlhrs] {
    animation: rvChipFlash-b-2foqsmlhrs 1.6s ease-out;
}

@keyframes rvChipFlash-b-2foqsmlhrs {
    0%   { background: rgba(28, 196, 120, 0.35); box-shadow: 0 0 0 2px rgba(28, 196, 120, 0.5); }
    40%  { background: rgba(28, 196, 120, 0.18); box-shadow: 0 0 0 1px rgba(28, 196, 120, 0.25); }
    100% { background: var(--surface2); box-shadow: none; }
}

.rv-chip-time[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
}

.rv-chip-title[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-view[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mv-header[b-2foqsmlhrs] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mv-dow[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-align: center;
    padding: 7px 0;
    border-right: 1px solid var(--border);
}

.mv-grid[b-2foqsmlhrs] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    flex: 1;
    overflow: auto;
}

.mv-cell[b-2foqsmlhrs] {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 90px;
    transition: background .12s;
}

    .mv-cell:hover[b-2foqsmlhrs] {
        background: var(--surface2);
    }

.mv-out[b-2foqsmlhrs] {
    opacity: .15;
    pointer-events: none;
    cursor: default;
}

.mv-today[b-2foqsmlhrs] {
    background: rgba(28,196,120,.04);
}

.mv-cell-head[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.mv-dnum[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
}

.mv-dnum-today[b-2foqsmlhrs] {
    color: var(--accent);
    font-weight: 700;
}

.mv-count[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 9px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: 0 5px;
}

.mv-chip[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-bright);
    border-radius: 3px;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-chip-more[b-2foqsmlhrs] {
    color: var(--text-dim);
    font-style: italic;
    background: none !important;
    border: none !important;
}

/* ══ MONTH CAPACITY VIEW ══ */
/* half  = some jobs but avg < 1 per engineer */
.mv-cap-half[b-2foqsmlhrs]  { background: rgba(245, 158, 11,  0.10) !important; }
/* full  = avg 1–2 jobs per engineer */
.mv-cap-full[b-2foqsmlhrs]  { background: rgba(16,  185, 129, 0.12) !important; }
/* great = avg 2+ jobs per engineer (good utilisation) */
.mv-cap-great[b-2foqsmlhrs] { background: rgba(5,   150, 105, 0.22) !important; }

.mv-util-pct[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
}

.mv-util-bar[b-2foqsmlhrs] {
    height: 5px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
    margin-top: auto;
}

.mv-util-fill[b-2foqsmlhrs] {
    height: 100%;
    border-radius: 3px;
    transition: width .3s;
}

.mv-util-label[b-2foqsmlhrs] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 3px;
}

/* ══ BOARD LOADING VEIL ══ */
.board-loading-veil[b-2foqsmlhrs] {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: var(--surface);
    animation: boardVeilPulse-b-2foqsmlhrs 1.1s ease-in-out infinite;
}

@keyframes boardVeilPulse-b-2foqsmlhrs {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ══ GANTT SKELETON BARS ══ */
.gantt-skel-bar[b-2foqsmlhrs] {
    position: absolute;
    top: 7px;
    height: calc(100% - 14px);
    border-radius: 5px;
    background: var(--border2);
    overflow: hidden;
}

    .gantt-skel-bar[b-2foqsmlhrs]::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.07) 50%, transparent 100%);
        animation: skelShimmer-b-2foqsmlhrs 1.4s ease-in-out infinite;
    }

/* ══ ENGINEER ROW REVEAL SWEEP after refresh ══ */

/* Timeline clips in from left to right */
.gantt-row-reveal .gantt-row-timeline[b-2foqsmlhrs] {
    animation: revealClip-b-2foqsmlhrs .9s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes revealClip-b-2foqsmlhrs {
    0%   { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* Sweep bar — a thin leading edge that "paints" the row */
.gantt-row-reveal .gantt-row-timeline[b-2foqsmlhrs]::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 2px;
    z-index: 15;
    pointer-events: none;
    animation: barSweep-b-2foqsmlhrs .9s cubic-bezier(.25,.46,.45,.94) forwards;
    box-shadow: 0 0 12px 3px var(--reveal-color);
    background: var(--reveal-color);
}

@keyframes barSweep-b-2foqsmlhrs {
    0%   { left: 0; opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Subtle row tint that fades out after the sweep */
.gantt-row-reveal[b-2foqsmlhrs] {
    animation: revealRowTint-b-2foqsmlhrs 1.6s ease-out;
}

@keyframes revealRowTint-b-2foqsmlhrs {
    0%   { background: color-mix(in srgb, var(--reveal-color) 12%, transparent); }
    50%  { background: color-mix(in srgb, var(--reveal-color) 6%, transparent); }
    100% { background: transparent; }
}

/* Engineer name highlights in the sweep colour */
.gantt-row-reveal .gantt-row-label .gantt-eng-name[b-2foqsmlhrs] {
    font-weight: 700;
    color: var(--reveal-color);
    transition: color .8s ease-out .9s, font-weight .8s ease-out .9s;
}

/* ── Schedule = green ── */
.gantt-row-reveal-schedule[b-2foqsmlhrs] {
    --reveal-color: #1cc478;
}

/* ── Unschedule = amber/orange ── */
.gantt-row-reveal-unschedule[b-2foqsmlhrs] {
    --reveal-color: #f59e0b;
}

/* ══ JOB BLOCK FLY-IN (used by both old vertical view and new Gantt) ══ */
@keyframes jobFlyIn-b-2foqsmlhrs {
    from {
        opacity: 0;
        transform: translateX(-12px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ══ LOADING SKELETONS ══ */
.skel-line[b-2foqsmlhrs] {
    border-radius: 4px;
    background: var(--border2);
    position: relative;
    overflow: hidden;
}

    .skel-line[b-2foqsmlhrs]::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
        animation: skelShimmer-b-2foqsmlhrs 1.4s ease-in-out infinite;
    }

@keyframes skelShimmer-b-2foqsmlhrs {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.skel-status[b-2foqsmlhrs] {
    width: 80px;
    height: 10px;
}

.skel-eng-name[b-2foqsmlhrs] {
    height: 10px;
    width: 88px;
    margin-left: 3px;
    margin-bottom: 3px;
}

.skel-eng-sub[b-2foqsmlhrs] {
    height: 7px;
    width: 36px;
    margin-left: 3px;
}

/* ══ DETAIL DRAWER — holiday / unavailability banner ══ */
.drawer-unavail-banner[b-2foqsmlhrs] {
    padding: 9px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
}
.drawer-banner-hol[b-2foqsmlhrs]  { background: #f59e0b18; color: #f59e0b; }
.drawer-banner-sick[b-2foqsmlhrs] { background: #ef444418; color: #ef4444; }
.drawer-banner-bk[b-2foqsmlhrs]   { background: #8b5cf618; color: #8b5cf6; }
.drawer-banner-ext[b-2foqsmlhrs]  { background: #0ea5e918; color: #0ea5e9; }

/* ══ WEEK VIEW — unavailable cell ══ */
.rv-cell-unavail[b-2foqsmlhrs] {
    background: repeating-linear-gradient(
        135deg,
        transparent, transparent 5px,
        rgba(100,100,100,.08) 5px, rgba(100,100,100,.08) 10px
    ) !important;
}
.rv-unavail-chip[b-2foqsmlhrs] {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 3px;
    display: inline-block;
}
.rv-chip-bk[b-2foqsmlhrs]   { background: #8b5cf622; color: #8b5cf6; border: 1px solid #8b5cf655; }
.rv-chip-hol[b-2foqsmlhrs]  { background: #f59e0b22; color: #f59e0b; border: 1px solid #f59e0b55; }
.rv-chip-sick[b-2foqsmlhrs] { background: #ef444422; color: #ef4444; border: 1px solid #ef444455; }
.rv-chip-ext[b-2foqsmlhrs]  { background: #0ea5e922; color: #0ea5e9; border: 1px solid #0ea5e955; }

/* ══ MONTH VIEW — bank holiday cell ══ */
.mv-bankholiday[b-2foqsmlhrs] {
    background: #8b5cf60a !important;
}
.mv-bk-label[b-2foqsmlhrs] {
    font-size: 8px;
    font-weight: 700;
    color: #8b5cf6;
    letter-spacing: .04em;
    background: #8b5cf622;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 3px;
}
.mv-chip-bk[b-2foqsmlhrs] {
    background: #8b5cf618;
    color: #8b5cf6;
    border-left: 2px solid #8b5cf6;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 0 2px 2px 0;
    margin-bottom: 1px;
}

/* ══ BOOKING MODAL — availability notices ══ */
.sug-notices[b-2foqsmlhrs] {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}
.sug-notice-row[b-2foqsmlhrs] {
    padding: 7px 11px;
    font-size: 11px;
    line-height: 1.5;
}
.sug-notice-row + .sug-notice-row[b-2foqsmlhrs] { border-top: 1px solid var(--border); }
.sug-notice-bk[b-2foqsmlhrs]    { background: #8b5cf612; color: #a78bfa; }
.sug-notice-leave[b-2foqsmlhrs] { background: #f59e0b12; color: #fbbf24; }

/* ══ BOOKING MODAL — blocked suggestion card ══ */
.sug-card.sug-blocked[b-2foqsmlhrs] {
    opacity: .55;
    filter: grayscale(55%);
    cursor: default;
    border: 1px dashed var(--border2) !important;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   All hardcoded dark colours replaced with readable light equivalents
   ═══════════════════════════════════════════════════════════════════════════ */

/* Filter flyout shadow */
[data-theme="light"] .filter-flyout[b-2foqsmlhrs] {
    box-shadow: 0 8px 32px rgba(0,0,40,.12), 0 0 0 1px rgba(0,0,0,.06);
}

/* ── Engineer timeline: job card hover ── */
/* The #0c1525 hover bg is near-black and makes text invisible on light bg */
[data-theme="light"] .et-job:hover .et-job-card[b-2foqsmlhrs] {
    background: var(--surface2);
}

/* ── Strip jobs (day view) ── */
[data-theme="light"] .strip-job.is-preview[b-2foqsmlhrs] {
    background: rgba(168,85,247,.08);   /* light purple tint */
}
[data-theme="light"] .strip-job.is-shifted[b-2foqsmlhrs] {
    background: rgba(245,158,11,.08);   /* light amber tint */
}

/* ── Suggestion cards (booking modal) ── */
[data-theme="light"] .sug-card:hover:not(.violates)[b-2foqsmlhrs] {
    background: var(--surface2);
}
[data-theme="light"] .sug-card.previewing[b-2foqsmlhrs] {
    background: rgba(168,85,247,.07);
}

/* ── Preview-return button ── */
[data-theme="light"] .btn-preview-return[b-2foqsmlhrs] {
    background: rgba(168,85,247,.1);
}

/* ── Availability notices in booking modal ── */
[data-theme="light"] .sug-notice-bk[b-2foqsmlhrs] {
    background: rgba(109,40,217,.08);
    color: #5b21b6;   /* violet-800 — readable on light bg */
}
[data-theme="light"] .sug-notice-leave[b-2foqsmlhrs] {
    background: rgba(245,158,11,.1);
    color: #92400e;   /* amber-800 — readable on light bg */
}

/* ── Week/month view unavailability chips ── */
[data-theme="light"] .rv-chip-bk[b-2foqsmlhrs]   { background: rgba(139,92,246,.12); color: #5b21b6; border-color: rgba(139,92,246,.35); }
[data-theme="light"] .rv-chip-hol[b-2foqsmlhrs]  { background: rgba(245,158,11,.12); color: #92400e; border-color: rgba(245,158,11,.35); }
[data-theme="light"] .rv-chip-sick[b-2foqsmlhrs] { background: rgba(239,68,68,.12);  color: #991b1b; border-color: rgba(239,68,68,.35);  }
[data-theme="light"] .rv-chip-ext[b-2foqsmlhrs]  { background: rgba(14,165,233,.12); color: #0369a1; border-color: rgba(14,165,233,.35); }

/* Drawer banners */
[data-theme="light"] .drawer-banner-bk[b-2foqsmlhrs]   { background: rgba(139,92,246,.1);  color: #5b21b6; }
[data-theme="light"] .drawer-banner-hol[b-2foqsmlhrs]  { background: rgba(245,158,11,.1);  color: #92400e; }
[data-theme="light"] .drawer-banner-sick[b-2foqsmlhrs] { background: rgba(239,68,68,.1);   color: #991b1b; }
[data-theme="light"] .drawer-banner-ext[b-2foqsmlhrs]  { background: rgba(14,165,233,.1);  color: #0369a1; }

/* Month bank holiday cells */
[data-theme="light"] .mv-bankholiday[b-2foqsmlhrs]  { background: rgba(139,92,246,.05) !important; }
[data-theme="light"] .mv-bk-label[b-2foqsmlhrs]     { color: #5b21b6; background: rgba(139,92,246,.1); }
[data-theme="light"] .mv-chip-bk[b-2foqsmlhrs]      { background: rgba(139,92,246,.1); color: #5b21b6; border-left-color: #7c3aed; }

/* ══ CLICK-TO-ADD POPOVER ══ */
.gantt-add-popover[b-2foqsmlhrs] {
    position: absolute;
    top: calc(100% + 4px);
    z-index: 30;
    width: 280px;
    max-height: 360px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-20px);
    animation: popoverIn-b-2foqsmlhrs .15s ease-out both;
}
.gantt-add-popover-left[b-2foqsmlhrs] {
    transform: translateX(calc(-100% + 20px));
}

@keyframes popoverIn-b-2foqsmlhrs {
    from { opacity: 0; transform: translateX(-20px) translateY(-4px); }
    to   { opacity: 1; }
}
.gantt-add-popover-left[b-2foqsmlhrs] { animation-name: popoverInLeft-b-2foqsmlhrs; }
@keyframes popoverInLeft-b-2foqsmlhrs {
    from { opacity: 0; transform: translateX(calc(-100% + 20px)) translateY(-4px); }
    to   { opacity: 1; transform: translateX(calc(-100% + 20px)); }
}

.gap-header[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.gap-title[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text-bright);
}
.gap-close[b-2foqsmlhrs] {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}
.gap-close:hover[b-2foqsmlhrs] { color: var(--text-bright); }

.gap-search[b-2foqsmlhrs] {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    font-family: var(--mono);
    outline: none;
    box-sizing: border-box;
}
.gap-search:focus[b-2foqsmlhrs] { background: var(--surface2); }

.gap-queue-list[b-2foqsmlhrs] {
    overflow-y: auto;
    flex: 1;
    max-height: 240px;
}
.gap-queue-item[b-2foqsmlhrs] {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
}
.gap-queue-item:hover[b-2foqsmlhrs] { background: var(--surface2); }
.gap-queue-item:last-child[b-2foqsmlhrs] { border-bottom: none; }

.gap-qi-top[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gap-qi-title[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-bright);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gap-qi-type[b-2foqsmlhrs] {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.gap-qi-bottom[b-2foqsmlhrs] {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.gap-qi-ref[b-2foqsmlhrs], .gap-qi-pc[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--text-dim);
    font-family: var(--mono);
}

.gap-qi-pc-warn[b-2foqsmlhrs] {
    color: var(--amber);
    cursor: help;
}

.gap-loading[b-2foqsmlhrs], .gap-empty[b-2foqsmlhrs] {
    padding: 16px 10px;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
}

.gap-selected[b-2foqsmlhrs] {
    padding: 10px;
}
.gap-sel-job[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.gap-sel-title[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
}
.gap-sel-ref[b-2foqsmlhrs] {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--text-dim);
}

.gap-error[b-2foqsmlhrs] {
    font-size: 11px;
    color: var(--red);
    padding: 6px 0;
}

.gap-warnings[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.gap-warn[b-2foqsmlhrs] {
    font-size: 10px;
    color: #f59e0b;
    padding: 4px 6px;
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 3px;
}

.gap-confirm-msg[b-2foqsmlhrs] {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.gap-actions[b-2foqsmlhrs] {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

/* Mode choice buttons (at-time vs optimise) */
.gap-mode-buttons[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 4px;
}

.gap-mode-btn[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s;
}

    .gap-mode-btn:hover[b-2foqsmlhrs] {
        border-color: var(--accent);
        background: rgba(28,196,120,.06);
    }

.gap-mode-icon[b-2foqsmlhrs] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.gap-mode-label[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.gap-mode-desc[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--text-dim);
    display: block;
    margin-top: 1px;
}

.gap-back-link[b-2foqsmlhrs] {
    margin-top: 2px;
    font-size: 11px;
}

/* ══ DRAG-TO-RESCHEDULE ══ */

/* Ghost block during drag (created by JS) */
[b-2foqsmlhrs] .gantt-job-ghost {
    opacity: 0.45;
    pointer-events: none;
    z-index: 20;
    border: 2px dashed var(--accent) !important;
    animation: none !important;
}

/* Floating time indicator above cursor */
.gantt-drag-indicator[b-2foqsmlhrs] {
    position: absolute;
    top: -18px;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--mono);
    z-index: 25;
    pointer-events: none;
    white-space: nowrap;
}

/* Drag confirmation modal extras */
.drag-confirm-header[b-2foqsmlhrs] {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 10px;
}
.drag-confirm-header b[b-2foqsmlhrs] {
    color: var(--text-bright);
}

.drag-warnings[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.drag-warn[b-2foqsmlhrs] {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
}
.dw-icon[b-2foqsmlhrs] {
    flex-shrink: 0;
    font-size: 12px;
}
.drag-warn-warn[b-2foqsmlhrs] {
    background: rgba(245,158,11,.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,.25);
}
.drag-warn-info[b-2foqsmlhrs] {
    background: rgba(59,130,246,.08);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.25);
}

.drag-actions[b-2foqsmlhrs] {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ══ LIGHT THEME OVERRIDES ══ */
[data-theme="light"] .gantt-add-popover[b-2foqsmlhrs]  { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
[data-theme="light"] .gap-warn[b-2foqsmlhrs]           { background: rgba(245,158,11,.06); color: #92400e; }
[data-theme="light"] .drag-warn-warn[b-2foqsmlhrs]     { background: rgba(245,158,11,.06); color: #92400e; }
[data-theme="light"] .drag-warn-info[b-2foqsmlhrs]     { background: rgba(59,130,246,.06);  color: #1d4ed8; }

/* ── Job Tracking Chips ───────────────────────────────────────────────── */
.gantt-jb-tracking[b-2foqsmlhrs] {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.gantt-track-chip[b-2foqsmlhrs] {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
.gantt-track-depart[b-2foqsmlhrs] { background: rgba(245,158,11,.13); color: #f59e0b; }
.gantt-track-arrive[b-2foqsmlhrs] { background: rgba(34,197,94,.13);  color: #22c55e; }
.gantt-track-left[b-2foqsmlhrs]   { background: rgba(100,116,139,.13); color: #94a3b8; }

/* ══ FLEET TIMELINE TRACKING PINS ══ */
.fleet-tl-trk-pin[b-2foqsmlhrs] {
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: 2px;
    transform: translateX(-50%);
    pointer-events: auto;
    cursor: default;
    z-index: 12;
}
.fleet-tl-trk-pin[b-2foqsmlhrs]::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    opacity: 0.7;
}
.fleet-tl-trk-depart[b-2foqsmlhrs]::before { background: #f59e0b; }
.fleet-tl-trk-arrive[b-2foqsmlhrs]::before { background: #22c55e; }
.fleet-tl-trk-left[b-2foqsmlhrs]::before   { background: #94a3b8; }
.fleet-tl-trk-label[b-2foqsmlhrs] {
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-family: var(--mono);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 3px;
    line-height: 1.4;
    pointer-events: none;
}
.fleet-tl-trk-depart .fleet-tl-trk-label[b-2foqsmlhrs] { color: #f59e0b; border-color: #f59e0b44; }
.fleet-tl-trk-arrive .fleet-tl-trk-label[b-2foqsmlhrs] { color: #22c55e; border-color: #22c55e44; }
.fleet-tl-trk-left   .fleet-tl-trk-label[b-2foqsmlhrs] { color: #94a3b8; border-color: #94a3b844; }

/* Legend swatches for tracking pins */
.fleet-tl-trk-sw[b-2foqsmlhrs] { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.fleet-tl-trk-depart-sw[b-2foqsmlhrs] { background: #f59e0b; }
.fleet-tl-trk-arrive-sw[b-2foqsmlhrs] { background: #22c55e; }
.fleet-tl-trk-left-sw[b-2foqsmlhrs]   { background: #94a3b8; }

/* ══ EDIT MODAL GPS STRIP (non-RT jobs) ══ */
.modal-gps-strip[b-2foqsmlhrs] {
    display: flex;
    gap: 10px;
    padding: 10px 0 8px;
    flex-wrap: wrap;
}
.modal-gps-cell[b-2foqsmlhrs] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 90px;
}
.modal-gps-cell-lbl[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--text-dim);
}
.erp-gps-ok[b-2foqsmlhrs]   { color: #22c55e; }
.erp-gps-late[b-2foqsmlhrs] { color: #ef4444; }

/* ══ ERP GPS TAB PANEL ══ */
.erp-gps-wrap[b-2foqsmlhrs] {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.erp-gps-row[b-2foqsmlhrs] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.erp-gps-icon[b-2foqsmlhrs] {
    font-size: 18px;
    line-height: 1;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.erp-gps-depart[b-2foqsmlhrs] { color: #f59e0b; }
.erp-gps-arrive[b-2foqsmlhrs] { color: #22c55e; }
.erp-gps-left[b-2foqsmlhrs]   { color: #94a3b8; }
.erp-gps-label[b-2foqsmlhrs]  { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
.erp-gps-time[b-2foqsmlhrs]   { font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.erp-gps-delta[b-2foqsmlhrs]  { font-size: 11px; margin-left: 6px; font-family: var(--mono); }
.erp-gps-note[b-2foqsmlhrs]   { font-size: 11px; color: var(--text-dim); background: var(--bg-input); border-radius: 4px; padding: 6px 8px; }
.erp-gps-analysed[b-2foqsmlhrs] { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.erp-gps-ok[b-2foqsmlhrs]     { color: #22c55e; }
.erp-gps-late[b-2foqsmlhrs]   { color: #f06060; }
.erp-gps-eta[b-2foqsmlhrs]    { color: #4a9eff; }
.erp-gps-eta-late[b-2foqsmlhrs] { color: #f06060; }

/* ══ ETA section in GPS drawer tab ══ */
.erp-gps-eta-section[b-2foqsmlhrs] {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.erp-eta-btn[b-2foqsmlhrs] {
    align-self: flex-start;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background .15s;
}
.erp-eta-btn:hover[b-2foqsmlhrs]  { background: rgba(74,158,255,.1); }
.erp-eta-btn.loading[b-2foqsmlhrs] { opacity: .55; cursor: default; }

/* ══ ETA chips on Gantt board ══ */
.gantt-track-eta[b-2foqsmlhrs]           { display: inline-flex; align-items: center; gap: 3px; background: rgba(74,158,255,.13); color: #4a9eff; }
.gantt-track-eta.is-late[b-2foqsmlhrs]   { background: rgba(240, 96, 96,.13); color: #f06060; }
.gantt-track-eta-late[b-2foqsmlhrs]      { background: rgba(240, 96, 96,.13); color: #f06060; } /* kept for back-compat */
.gantt-eta-mins[b-2foqsmlhrs]     { font-size: 10px; opacity: .8; }
.gantt-eta-delta[b-2foqsmlhrs]    { font-size: 10px; font-weight: 700; background: rgba(240,96,96,.2); border-radius: 3px; padding: 0 3px; }
.gantt-eta-src[b-2foqsmlhrs]      { font-size: 9px; font-weight: 700; opacity: .7; margin-left: 1px; }

/* ══ Day-view job card: late badge + arrival indicators ══ */
.et-job-header[b-2foqsmlhrs]       { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.et-job-late-badge[b-2foqsmlhrs]   { font-size: 10px; font-weight: 700; color: #f06060; background: rgba(240,96,96,.15); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.et-job-arrived[b-2foqsmlhrs]      { font-size: 11px; color: var(--green, #4ade80); font-weight: 600; }
.et-job-est-arr[b-2foqsmlhrs]      { font-size: 11px; color: var(--text-dim); }
.et-job-est-arr.is-late[b-2foqsmlhrs] { color: #f06060; }
.et-job-onsite  .et-job-dot[b-2foqsmlhrs]  { background: var(--green, #4ade80) !important; outline-color: var(--green, #4ade80) !important; }
.et-job-done    .et-job-card[b-2foqsmlhrs] { opacity: .65; }

/* ══ Day-view en-route travel: ETA detail panel ══ */
.et-travel-enroute .et-travel-body[b-2foqsmlhrs] { margin-bottom: 6px; }
.et-eta-detail[b-2foqsmlhrs] {
    margin: 0 0 0 28px;
    padding: 8px 10px;
    background: rgba(74,158,255,.07);
    border-left: 2px solid rgba(74,158,255,.4);
    border-radius: 0 6px 6px 0;
}
.et-eta-row[b-2foqsmlhrs]         { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.et-eta-time[b-2foqsmlhrs]        { font-size: 14px; font-weight: 700; color: #4a9eff; }
.et-eta-time.is-late[b-2foqsmlhrs] { color: #f06060; }
.et-eta-mins[b-2foqsmlhrs]        { font-size: 12px; color: var(--text-dim); }
.et-eta-late-badge[b-2foqsmlhrs]  { font-size: 11px; font-weight: 700; color: #f06060; background: rgba(240,96,96,.15); border-radius: 4px; padding: 1px 5px; }
.et-eta-src-badge[b-2foqsmlhrs]   { font-size: 10px; color: var(--text-dim); background: var(--surface3, rgba(255,255,255,.07)); border-radius: 4px; padding: 1px 5px; border: 1px solid var(--border2); }
.et-eta-src-badge.is-google[b-2foqsmlhrs] { color: #4a9eff; border-color: rgba(74,158,255,.3); }
.et-eta-meta[b-2foqsmlhrs]        { display: flex; align-items: center; gap: 8px; }
.et-eta-age[b-2foqsmlhrs]         { font-size: 11px; color: var(--text-dim); }
.et-eta-recheck[b-2foqsmlhrs]     { font-size: 11px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border2); background: var(--surface3, rgba(255,255,255,.07)); color: var(--text-dim); cursor: pointer; transition: background .15s, color .15s; }
.et-eta-recheck:hover:not(:disabled)[b-2foqsmlhrs] { background: rgba(74,158,255,.15); color: #4a9eff; border-color: rgba(74,158,255,.3); }
.et-eta-recheck.loading[b-2foqsmlhrs], .et-eta-recheck:disabled[b-2foqsmlhrs] { opacity: .5; cursor: default; }
.et-google-error[b-2foqsmlhrs] { font-size: 11px; color: #f0a060; background: rgba(240,160,96,.1); border: 1px solid rgba(240,160,96,.3); border-radius: 4px; padding: 4px 8px; word-break: break-word; }

/* ══ Alerts button state ══ */
.sub-action-btn.has-alerts[b-2foqsmlhrs] { color: #f59e0b; border-color: rgba(245,158,11,.4); }

/* ══ Alerts panel ══ */
.alerts-backdrop[b-2foqsmlhrs] {
    position: fixed;
    inset: 0;
    z-index: 499;
}
.alerts-panel[b-2foqsmlhrs] {
    position: fixed;
    top: 54px;
    right: 0;
    width: 420px;
    max-width: 100vw;
    bottom: 0;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 500;
    overflow: hidden;
}
.alerts-panel-header[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.alerts-panel-title[b-2foqsmlhrs] { font-size: 14px; font-weight: 600; flex: 1; }
.alerts-scope-label[b-2foqsmlhrs] {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text-dim);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.alerts-badge[b-2foqsmlhrs] {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(245,158,11,.18);
    color: #f59e0b;
}
.alerts-close[b-2foqsmlhrs] {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 3px;
}
.alerts-close:hover[b-2foqsmlhrs] { background: var(--bg-hover); }

.alerts-loading[b-2foqsmlhrs],
.alerts-empty[b-2foqsmlhrs] {
    padding: 24px 16px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

.alerts-list[b-2foqsmlhrs] {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alert-item[b-2foqsmlhrs] {
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 10px 12px;
    background: var(--bg-card);
}
.alert-item-header[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}
.alert-type-badge[b-2foqsmlhrs] {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.alert-type-latedeparture .alert-type-badge[b-2foqsmlhrs] { background: rgba(245,158,11,.18); color: #f59e0b; }
.alert-type-latearrival   .alert-type-badge[b-2foqsmlhrs] { background: rgba(240,96,96,.18);  color: #f06060; }
.alert-type-overrunning   .alert-type-badge[b-2foqsmlhrs] { background: rgba(168,85,247,.18); color: #a855f7; }
.alert-type-nogpsdata     .alert-type-badge[b-2foqsmlhrs] { background: rgba(100,116,139,.18); color: #94a3b8; }

.alert-engineer[b-2foqsmlhrs] { font-size: 12px; font-weight: 500; }
.alert-ref[b-2foqsmlhrs]      { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.alert-time[b-2foqsmlhrs]     { font-size: 10px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.alert-message[b-2foqsmlhrs]  { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.45; }
.alert-actions[b-2foqsmlhrs]  { display: flex; gap: 6px; }
.alert-btn[b-2foqsmlhrs] {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: background .12s;
}
.alert-btn:hover[b-2foqsmlhrs]     { background: var(--bg-hover); }
.alert-dismiss[b-2foqsmlhrs]       { color: var(--text-dim); }
.alert-action[b-2foqsmlhrs]        { color: #22c55e; border-color: rgba(34,197,94,.3); }
.alert-action:hover[b-2foqsmlhrs]  { background: rgba(34,197,94,.08); }

/* ── Schedule Chain ──────────────────────────────────────────────────── */
.et-chain[b-2foqsmlhrs] {
    margin-top: 14px;
    padding: 0 2px;
}

.et-chain-head[b-2foqsmlhrs] {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-dim);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
}

.et-chain-loading[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 14px;
    padding: 8px 0;
}

/* Each row is a horizontal strip with a status dot + content body */
.et-chain-row[b-2foqsmlhrs] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    margin-bottom: 3px;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: border-color .12s;
    position: relative;
}

.et-chain-row:last-child[b-2foqsmlhrs] { margin-bottom: 0; }

/* Status dot */
.et-chain-dot[b-2foqsmlhrs] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    background: var(--border2);
}

.et-chain-completed .et-chain-dot[b-2foqsmlhrs] { background: #22c55e; }
.et-chain-onsite    .et-chain-dot[b-2foqsmlhrs] { background: #4a9eff; box-shadow: 0 0 0 3px rgba(74,158,255,.2); }
.et-chain-enroute   .et-chain-dot[b-2foqsmlhrs] { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }

/* Late rows get a subtle red tint on the border */
.et-chain-late[b-2foqsmlhrs] { border-color: rgba(240,96,96,.35); }

/* Body: ref + times + meta stacked */
.et-chain-body[b-2foqsmlhrs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.et-chain-ref[b-2foqsmlhrs] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    font-family: var(--mono);
    letter-spacing: .02em;
}

.et-chain-times[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.et-chain-planned[b-2foqsmlhrs] {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
}

.et-chain-est[b-2foqsmlhrs] {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}

.et-chain-est.late[b-2foqsmlhrs] { color: #f06060; }

.et-chain-confirmed[b-2foqsmlhrs] {
    font-size: 9px;
    color: #22c55e;
    vertical-align: middle;
    margin-left: 2px;
}

.et-chain-meta[b-2foqsmlhrs] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.et-chain-delta[b-2foqsmlhrs] {
    font-size: 10px;
    font-weight: 600;
    color: #f06060;
    background: rgba(240,96,96,.12);
    padding: 1px 5px;
    border-radius: 3px;
}

.et-chain-travel[b-2foqsmlhrs] {
    font-size: 10px;
    color: var(--text-dim);
}
/* /Pages/FleetMap.razor.rz.scp.css */
.fleet-page[b-pcpz4q5eo0] {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fleet-toolbar[b-pcpz4q5eo0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
    flex-shrink: 0;
}

.fleet-toolbar-group[b-pcpz4q5eo0] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fleet-filter-label[b-pcpz4q5eo0] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}

.fleet-select[b-pcpz4q5eo0] {
    min-width: 200px;
    max-width: min(360px, 100%);
}

.fleet-count[b-pcpz4q5eo0] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}

.fleet-track-hint[b-pcpz4q5eo0] {
    opacity: 0.85;
}

.fleet-error[b-pcpz4q5eo0] {
    font-size: 12px;
    color: var(--amber);
}

.fleet-map-wrap[b-pcpz4q5eo0] {
    flex: 1;
    min-height: 0;
    position: relative;
}

.fleet-map[b-pcpz4q5eo0] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* /Pages/Jobs.razor.rz.scp.css */
/* ══ PAGE SHELL ══ */
.jobs-page[b-l4c1j1n77l] { font-family: var(--sans); background: var(--bg); color: var(--text); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.jobs-body[b-l4c1j1n77l] { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ══ SEARCH (in sub-bar) ══ */
.topbar-search[b-l4c1j1n77l] { position: relative; display: flex; align-items: center; }
.search-input[b-l4c1j1n77l]  { font-family: var(--sans); font-size: 13px; background: var(--surface); border: 1px solid var(--border2); color: var(--text-bright); border-radius: 6px; padding: 6px 30px 6px 12px; width: 260px; outline: none; transition: border-color .15s, width .2s; }
.search-input[b-l4c1j1n77l]::placeholder { color: var(--text-dim); }
.search-input:focus[b-l4c1j1n77l] { border-color: var(--accent); width: 320px; }
.search-clear[b-l4c1j1n77l]  { position: absolute; right: 6px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.search-clear:hover[b-l4c1j1n77l] { color: var(--text-bright); }

.search-results-panel[b-l4c1j1n77l]  { position: absolute; top: calc(100% + 6px); left: 0; width: 560px; background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,.5); max-height: 400px; overflow-y: auto; scrollbar-width: thin; }
.search-results-header[b-l4c1j1n77l] { padding: 8px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.search-empty[b-l4c1j1n77l]          { padding: 18px 14px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.search-result-row[b-l4c1j1n77l]     { display: grid; grid-template-columns: 90px 80px 1fr 100px 80px 90px 1fr; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 12px; transition: background .12s; }
.search-result-row:hover[b-l4c1j1n77l] { background: var(--surface2); }
.search-result-row:last-child[b-l4c1j1n77l] { border-bottom: none; }
.sr-ref[b-l4c1j1n77l]  { font-family: var(--mono); font-size: 10px; color: var(--accent); font-weight: 600; }
.sr-reg[b-l4c1j1n77l]  { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.sr-title[b-l4c1j1n77l] { font-weight: 600; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-type[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-postcode[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.sr-due[b-l4c1j1n77l]      { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.sr-status[b-l4c1j1n77l]   { font-family: var(--mono); font-size: 10px; }
.sr-status.scheduled[b-l4c1j1n77l]   { color: var(--green); }
.sr-status.unscheduled[b-l4c1j1n77l] { color: var(--text-dim); }

/* ══ QUEUE HEADER ══ */
.queue-header[b-l4c1j1n77l]  { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; gap: 12px; }
.queue-title[b-l4c1j1n77l]   { display: flex; align-items: baseline; gap: 10px; }
.queue-title span:first-child[b-l4c1j1n77l] { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-bright); }
.queue-count[b-l4c1j1n77l]   { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.queue-filters[b-l4c1j1n77l] { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.queue-filter-divider[b-l4c1j1n77l] {
    width: 1px;
    height: 18px;
    background: var(--border2);
    margin: 0 4px;
    flex-shrink: 0;
}


.sync-rt-wrap[b-l4c1j1n77l]  { display: flex; align-items: center; gap: 6px; }
.sync-rt-ts[b-l4c1j1n77l]    { font-family: var(--mono); font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.sync-rt-btn[b-l4c1j1n77l]   { padding: 4px 8px; }
.sync-rt-icon[b-l4c1j1n77l]  { font-size: 14px; line-height: 1; }

.queue-filter-chip[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 4px 10px 4px 12px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}
.queue-filter-chip button[b-l4c1j1n77l] {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    padding: 0 2px;
    opacity: 0.7;
    line-height: 1;
}
.queue-filter-chip button:hover[b-l4c1j1n77l] { opacity: 1; }
.filter-btn[b-l4c1j1n77l]    { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .6px; background: var(--bg); border: 1px solid var(--border2); color: var(--text-dim); border-radius: 4px; padding: 5px 10px; cursor: pointer; transition: all .12s; }
.filter-btn:hover[b-l4c1j1n77l]  { color: var(--text-bright); border-color: var(--text-dim); }
.filter-btn.active[b-l4c1j1n77l] { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

/* ══ QUEUE + SLOT SPLIT ══ */
.queue-split[b-l4c1j1n77l] { flex: 1; display: flex; overflow: hidden; }
.queue-list[b-l4c1j1n77l]  { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }
.queue-empty[b-l4c1j1n77l] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 220px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.queue-empty-icon[b-l4c1j1n77l] { font-size: 28px; color: var(--green); }
.queue-empty-sub[b-l4c1j1n77l]  { font-size: 10px; }

/* ══ JOB CARDS ══ */
.job-card[b-l4c1j1n77l] {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-left: 3px solid var(--border2);
    border-radius: 8px;
    padding: 10px 12px 10px 11px;
    cursor: pointer;
    transition: border-color .15s, background .12s;
}
.job-card:hover[b-l4c1j1n77l]     { background: var(--surface2); }
.job-card.is-active[b-l4c1j1n77l] { border-color: var(--accent); background: var(--accent-dim); }
.job-card.is-overdue[b-l4c1j1n77l] { border-left-color: var(--red) !important; }

/* Head: title + action icons */
.jc-head[b-l4c1j1n77l] { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.jc-title[b-l4c1j1n77l] { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Action icon buttons */
.jc-actions[b-l4c1j1n77l] { display: flex; gap: 2px; flex-shrink: 0; }
.jc-icon-btn[b-l4c1j1n77l] {
    background: none; border: 1px solid transparent; border-radius: 4px;
    color: var(--text-dim); cursor: pointer; font-size: 12px; line-height: 1;
    padding: 3px 6px; transition: background .1s, color .1s, border-color .1s;
    display: flex; align-items: center; gap: 3px;
}
.jc-icon-btn:hover[b-l4c1j1n77l] { background: var(--surface2); color: var(--text-bright); border-color: var(--border2); }
.jc-icon-btn-accent[b-l4c1j1n77l] { color: var(--accent); }
.jc-icon-btn-accent:hover[b-l4c1j1n77l] { background: var(--accent-dim); border-color: var(--accent); }
.jc-icon-btn-danger:hover[b-l4c1j1n77l] { background: #e0525218; border-color: #e0525244; color: #e05252; }
.jc-icon-btn-link-active[b-l4c1j1n77l] { color: #f0883e; }
.jc-icon-btn-link-active:hover[b-l4c1j1n77l] { background: #f0883e18; border-color: #f0883e44; }

/* Tags row: ref + type + badges */
.jc-tags[b-l4c1j1n77l] { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.jc-ref[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; color: var(--accent); font-weight: 600; }
.jc-type-label[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; font-weight: 600; }
.jc-badge[b-l4c1j1n77l] { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; letter-spacing: 0.3px; }
.jc-badge-sent[b-l4c1j1n77l]   { background: #f0883e18; color: #f0883e; border: 1px solid #f0883e33; }
.jc-badge-booked[b-l4c1j1n77l] { background: #1cc47818; color: #1cc478; border: 1px solid #1cc47833; }
.jc-badge-calib[b-l4c1j1n77l]  { background: #e5534b18; color: #e5534b; border: 1px solid #e5534b33; }
.jc-badge-parts[b-l4c1j1n77l]  { background: #a371f718; color: #a371f7; border: 1px solid #a371f733; }

/* Structured footer with labeled fields */
.jc-footer[b-l4c1j1n77l] { display: flex; align-items: flex-start; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.jc-field[b-l4c1j1n77l] { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jc-val[b-l4c1j1n77l] { font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.jc-val-accent[b-l4c1j1n77l] { color: var(--accent); font-weight: 500; }
.jc-val-danger[b-l4c1j1n77l] { color: var(--red); font-weight: 600; }
.jc-lbl[b-l4c1j1n77l] { font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-dim); opacity: .55; }

/* Inline pills for LOCKED / INACTIVE inside field values */
.jc-pill[b-l4c1j1n77l] { font-family: var(--mono); font-size: 8px; font-weight: 700; padding: 1px 4px; border-radius: 3px; letter-spacing: .5px; background: #ff000018; color: #e05252; border: 1px solid #e0525233; flex-shrink: 0; }
.jc-pill-warn[b-l4c1j1n77l] { background: #f0883e18; color: #f0883e; border: 1px solid #f0883e33; }

/* Dates pushed to the right */
.jc-dates[b-l4c1j1n77l] { margin-left: auto; display: flex; gap: 12px; flex-shrink: 0; text-align: right; }
.jc-dates .jc-lbl[b-l4c1j1n77l] { text-align: right; }

/* Notes */
.jc-notes[b-l4c1j1n77l] { font-size: 11px; color: var(--text-dim); margin-top: 6px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══ QUEUE ENGINEER FILTER FLYOUT ══ */
.qf-eng-wrap[b-l4c1j1n77l]  { position: relative; }
.qf-chevron[b-l4c1j1n77l]   { font-size: 8px; margin-left: 4px; }
.qf-flyout[b-l4c1j1n77l]    { position: absolute; top: calc(100% + 8px); right: 0; min-width: 260px; max-width: 320px; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04); z-index: 100; padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: qfFlyoutIn-b-l4c1j1n77l .14s cubic-bezier(.16,1,.3,1) both; }
@keyframes qfFlyoutIn-b-l4c1j1n77l { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.qf-section[b-l4c1j1n77l]   { display: flex; flex-direction: column; gap: 6px; }
.qf-label[b-l4c1j1n77l]     { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; }
.qf-chips[b-l4c1j1n77l]     { display: flex; flex-wrap: wrap; gap: 5px; }
.qf-chip[b-l4c1j1n77l]      { display: flex; align-items: center; gap: 3px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; padding: 3px 6px 3px 10px; font-family: var(--mono); font-size: 10px; color: var(--text-dim); transition: all .12s; cursor: pointer; max-width: 130px; }
.qf-chip span[b-l4c1j1n77l] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.qf-chip:hover[b-l4c1j1n77l] { border-color: var(--accent); color: var(--text-bright); }
.qf-chip-on[b-l4c1j1n77l]   { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.qf-chip-del[b-l4c1j1n77l]  { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 9px; padding: 0 2px; line-height: 1; flex-shrink: 0; opacity: .5; }
.qf-chip-del:hover[b-l4c1j1n77l] { color: var(--red); opacity: 1; }
.qf-eng-list[b-l4c1j1n77l]  { display: flex; flex-direction: column; gap: 1px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }
.qf-eng-row[b-l4c1j1n77l]   { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; cursor: pointer; transition: background .1s; user-select: none; }
.qf-eng-row:hover[b-l4c1j1n77l] { background: var(--surface2); }
.qf-eng-row.qf-eng-on[b-l4c1j1n77l] { background: var(--accent-dim); }
.qf-eng-dot[b-l4c1j1n77l]   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.qf-eng-name[b-l4c1j1n77l]  { flex: 1; font-size: 12px; font-weight: 600; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qf-eng-check[b-l4c1j1n77l] { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.qf-footer[b-l4c1j1n77l]    { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.qf-save-input[b-l4c1j1n77l] { width: 120px; font-size: 11px; padding: 4px 8px; }

/* ══ SLOT DATE HINT ══ */
.slot-date-hint[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-top: 2px; width: 100%; padding-left: 2px; }

/* ══ SLOT PANEL ══ */
.slot-panel[b-l4c1j1n77l] {
    width: 380px;
    flex-shrink: 0;
    border-left: 1px solid var(--border2);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: slideIn-b-l4c1j1n77l .2s cubic-bezier(.4,0,.2,1);
    scrollbar-width: none;
}

@keyframes slideIn-b-l4c1j1n77l { from { width: 0; opacity: 0; } to { width: 380px; opacity: 1; } }
.slot-panel-header[b-l4c1j1n77l] { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.slot-panel-title[b-l4c1j1n77l]  { display: flex; flex-direction: column; gap: 2px; }
.slot-panel-title span:first-child[b-l4c1j1n77l] { font-family: var(--mono); font-size: 9px; font-weight: 600; color: var(--text-dim); letter-spacing: 1.2px; text-transform: uppercase; }
.slot-panel-title strong[b-l4c1j1n77l] { font-size: 13px; font-weight: 600; color: var(--text-bright); }
.slot-ref[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; color: var(--accent); }

.slot-form[b-l4c1j1n77l] { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.slot-form-row[b-l4c1j1n77l] { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-form-row label[b-l4c1j1n77l] { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--text-dim); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.slot-form-row .f-select[b-l4c1j1n77l], .slot-form-row .f-input[b-l4c1j1n77l] { flex: 1; }
.slot-error[b-l4c1j1n77l] { margin: 12px 16px; font-family: var(--mono); font-size: 11px; color: var(--red); background: var(--red-dim); border: 1px solid var(--red); border-radius: 5px; padding: 8px 10px; }
.slot-stale-notice[b-l4c1j1n77l] { display: flex; align-items: center; gap: 10px; padding: 16px; font-size: 12px; color: var(--orange, #f59e0b); line-height: 1.5; }
.slot-stale-icon[b-l4c1j1n77l] { font-size: 18px; flex-shrink: 0; }
.slot-stale-notice .btn[b-l4c1j1n77l] { margin-left: auto; flex-shrink: 0; }
.slot-none[b-l4c1j1n77l]  { padding: 20px 16px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); line-height: 1.6; }
.slot-list[b-l4c1j1n77l] {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}
.slot-card[b-l4c1j1n77l] {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .15s;
    animation: scReveal-b-l4c1j1n77l .35s ease both;
}

@keyframes scReveal-b-l4c1j1n77l {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sc-top[b-l4c1j1n77l]  { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.sc-eng[b-l4c1j1n77l]  { font-size: 13px; font-weight: 600; color: var(--text-bright); }
.sc-day[b-l4c1j1n77l]  { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.sc-time[b-l4c1j1n77l] { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.sc-meta[b-l4c1j1n77l] {
    display: flex;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    flex-wrap: wrap;

}

.sc-warn[b-l4c1j1n77l] {
    color: var(--red);
}

.sc-note[b-l4c1j1n77l] {
    color: var(--amber);
}

.sc-jobs strong[b-l4c1j1n77l] {
    color: var(--text-bright);
}

/* Preview mode */
.slot-preview-header[b-l4c1j1n77l] {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.previewing-label[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a855f7;
}

.preview-eng[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}

.slot-booking-options[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 14px;
    border-top: 1px solid var(--border);
}

.slot-first-offered[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slot-fo-label[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-dim);
    white-space: nowrap;
}

.slot-first-offered .f-input-sm[b-l4c1j1n77l] {
    max-width: 160px;
}

.slot-timelock-toggle[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 11px;
    user-select: none;
    transition: background .15s, border-color .15s;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.slot-timelock-toggle:hover[b-l4c1j1n77l] { background: var(--bg-hover); }

.stt-icon[b-l4c1j1n77l] { font-size: 14px; }

.stt-label[b-l4c1j1n77l] { color: var(--text-dim); font-weight: 500; }

.stt-on[b-l4c1j1n77l] { color: var(--accent); }

.slot-preview-actions[b-l4c1j1n77l] {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .35s, transform .35s;
}

    .slot-preview-actions.pv-ready[b-l4c1j1n77l] {
        opacity: 1;
        transform: translateY(0);
    }

/* ── Vertical timeline (replaces horizontal strip) ── */
.slot-preview-timeline[b-l4c1j1n77l] {
    padding: 12px 14px 6px;
    position: relative;
}


/* Spine — the vertical line that draws downward */
.pv-spine[b-l4c1j1n77l] {
    position: absolute;
    left: calc(14px + 44px);
    top: 12px;
    width: 1px;
    background: var(--border2);
    height: 0;
}

    .pv-spine.drawing[b-l4c1j1n77l] {
        transition: height 0.85s cubic-bezier(0.4,0,0.2,1);
    }

/* Each row */
.pv-row[b-l4c1j1n77l] {
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s ease, transform .3s ease;
}

    .pv-row.pv-show[b-l4c1j1n77l] {
        opacity: 1;
        transform: translateX(0);
    }

    .pv-row.pv-instant[b-l4c1j1n77l] {
        opacity: 1;
        transform: translateX(0);
    }

/* Time gutter */
.pv-gutter[b-l4c1j1n77l] {
    width: 44px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 10px;
    padding-top: 9px;
    gap: 2px;
}

.pv-time[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    line-height: 1;
    transition: color .3s;
}

    .pv-time.pv-updated[b-l4c1j1n77l] {
        color: var(--amber);
    }

.pv-old-time[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    line-height: 1;
    position: relative;
    white-space: nowrap;
}

    .pv-old-time[b-l4c1j1n77l]::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        height: 1.5px;
        width: 0%;
        background: var(--red);
        transition: width .4s .1s ease-out;
    }

    .pv-old-time.pv-strike[b-l4c1j1n77l] {
        color: var(--red);
        opacity: .65;
    }

        .pv-old-time.pv-strike[b-l4c1j1n77l]::after {
            width: 100%;
        }

/* Node on spine */
.pv-node-col[b-l4c1j1n77l] {
    width: 1px;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    align-self: stretch;
}

.pv-node[b-l4c1j1n77l] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10px);
    border: 1.5px solid var(--border2);
    background: var(--bg);
    opacity: 0;
    transition: opacity .2s, border-color .4s, background .4s, box-shadow .4s;
}

.pv-row.pv-show .pv-node[b-l4c1j1n77l] {
    opacity: 1;
}

.pv-row.pv-new .pv-node[b-l4c1j1n77l] {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 10px rgba(28,196,120,.4);
}

/* Job block */
.pv-block[b-l4c1j1n77l] {
    flex: 1;
    border-radius: 6px;
    padding: 8px 11px;
    margin-bottom: 7px;
}

    .pv-block.pv-existing[b-l4c1j1n77l] {
        background: var(--surface2);
        border: 1px solid var(--border2);
    }

    .pv-block.pv-shifted[b-l4c1j1n77l] {
        background: var(--surface2);
        border: 1px solid var(--border2);
        border-left: 3px solid var(--amber);
    }

    .pv-block.pv-new-job[b-l4c1j1n77l] {
        background: rgba(28,196,120,.07);
        border: 1.5px solid var(--accent);
        border-left: 3px solid var(--accent);
        animation: pvPulse-b-l4c1j1n77l 2.6s ease-in-out 1.5s infinite !important;
    }


@keyframes pvPulse-b-l4c1j1n77l {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(28,196,120,0);
    }

    45% {
        box-shadow: 0 0 0 4px rgba(28,196,120,.13);
    }
}

/* Travel row */
.pv-block.pv-travel[b-l4c1j1n77l] {
    background: transparent;
    border: none;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.pv-travel-dash[b-l4c1j1n77l] {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--border2) 0, var(--border2) 4px, transparent 4px, transparent 8px);
}

.pv-travel-label[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    white-space: nowrap;
    padding: 1px 7px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.pv-travel-dur[b-l4c1j1n77l] {
    font-size: 8px;
    color: var(--text-dim);
    opacity: .7;
}

.pv-title[b-l4c1j1n77l] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 3px;
}

.pv-block.pv-new-job .pv-title[b-l4c1j1n77l] {
    color: var(--accent);
}

.pv-meta[b-l4c1j1n77l] {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pv-type[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
}

/* Tags — keep existing ps-tag names so C# code still works */
.ps-tag[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 5px;
    border-radius: 2px;
    display: inline-block;
}

.ps-tag-new[b-l4c1j1n77l] {
    background: rgba(168,85,247,.15);
    color: #a855f7;
    border: 1px solid rgba(168,85,247,.3);
}

.ps-tag-moved[b-l4c1j1n77l] {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(28,196,120,.3);
}

.ps-tag-locked[b-l4c1j1n77l] {
    background: var(--blue-dim);
    color: var(--blue);
    border: 1px solid rgba(59,130,246,.3);
}

/* Grow wrapper — new job grows from zero height */
.pv-grow[b-l4c1j1n77l] {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.75s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
}

    .pv-grow.pv-open[b-l4c1j1n77l] {
        max-height: 150px;
        opacity: 1;
    }

    .pv-grow.pv-instant[b-l4c1j1n77l] {
        max-height: 150px;
        opacity: 1;
    }


/* ── Slot-preview mini-map ────────────────────────────────────────────── */
.pv-mini-map[b-l4c1j1n77l] {
    height: 175px;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
    animation: pvMapReveal-b-l4c1j1n77l .45s cubic-bezier(0.16,1,0.3,1) .15s both;
}

@keyframes pvMapReveal-b-l4c1j1n77l {
    from { opacity: 0; clip-path: inset(0 0 100% 0); }
    to   { opacity: 1; clip-path: inset(0 0 0% 0); }
}

/* ══ FIND SLOTS BUTTON ══ */
.btn-find-slots[b-l4c1j1n77l] {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 9px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: var(--text-bright);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 0 0 0 rgba(28,196,120,0);
}

    .btn-find-slots:hover:not(:disabled)[b-l4c1j1n77l] {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(28,196,120,.35);
    }

    .btn-find-slots:active:not(:disabled)[b-l4c1j1n77l] {
        transform: translateY(0);
    }

    .btn-find-slots:disabled[b-l4c1j1n77l] {
        opacity: .7;
        cursor: default;
    }

/* Shimmer sweep on idle */
.bfs-bg[b-l4c1j1n77l] {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: bfsShimmer-b-l4c1j1n77l 2.4s ease-in-out infinite;
}

@keyframes bfsShimmer-b-l4c1j1n77l {
    0% {
        background-position: 200% 0;
    }

    60% {
        background-position: -200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Searching state — pulse the whole button */
.btn-find-slots--searching[b-l4c1j1n77l] {
    background: var(--accent);
    animation: bfsPulse-b-l4c1j1n77l 1.1s ease-in-out infinite;
}

@keyframes bfsPulse-b-l4c1j1n77l {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(28,196,120,.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(28,196,120,0);
    }
}

.bfs-label[b-l4c1j1n77l] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
}

.bfs-icon[b-l4c1j1n77l] {
    font-size: 14px;
}

/* Bouncing dots */
.bfs-dots[b-l4c1j1n77l] {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .bfs-dots span[b-l4c1j1n77l] {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--text-bright);
        animation: bfsBounce-b-l4c1j1n77l .8s ease-in-out infinite;
    }

        .bfs-dots span:nth-child(2)[b-l4c1j1n77l] {
            animation-delay: .15s;
        }

        .bfs-dots span:nth-child(3)[b-l4c1j1n77l] {
            animation-delay: .3s;
        }

@keyframes bfsBounce-b-l4c1j1n77l {
    0%,80%,100% {
        transform: translateY(0);
        opacity: .6;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ══ SLOT CARD STAGGER ANIMATION ══ */
.slot-card[b-l4c1j1n77l] {
    animation: scDrop-b-l4c1j1n77l .4s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes scDrop-b-l4c1j1n77l {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slot-card:hover:not(.violates)[b-l4c1j1n77l] {
    border-color: var(--accent);
}

.slot-card.hovered[b-l4c1j1n77l] {
    border-color: #a855f7;
    background: #0e0a1a;
}

.slot-card.violates[b-l4c1j1n77l] {
    opacity: .4;
    cursor: not-allowed;
    border-style: dashed;
    filter: grayscale(40%);
}

.slot-card.sc-blocked[b-l4c1j1n77l] {
    opacity: .5;
    cursor: default;
    border-style: dashed;
    filter: grayscale(60%);
}

.slot-card:not(.violates)[b-l4c1j1n77l] {
    animation: scDrop-b-l4c1j1n77l .4s cubic-bezier(0.16,1,0.3,1) both;
}

.slot-card.violates[b-l4c1j1n77l] {
    animation: scDropDim-b-l4c1j1n77l .4s cubic-bezier(0.16,1,0.3,1) both;
}

.sc-override-btn[b-l4c1j1n77l] {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(239,68,68,.4);
    background: rgba(239,68,68,.08);
    color: var(--red);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

    .sc-override-btn:hover[b-l4c1j1n77l] {
        background: rgba(239,68,68,.18);
        border-color: var(--red);
    }

@keyframes scDrop-b-l4c1j1n77l {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scDropDim-b-l4c1j1n77l {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.97);
    }

    to {
        opacity: .4;
        transform: translateY(0) scale(1);
    }
}

/* ══ SLOT SKELETONS ══ */
.slot-skeletons[b-l4c1j1n77l] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
}

.slot-skeleton[b-l4c1j1n77l] {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 10px 12px;
    animation: skelFade-b-l4c1j1n77l .6s ease both;
}

@keyframes skelFade-b-l4c1j1n77l {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slot-skeleton:nth-child(2)[b-l4c1j1n77l] {
    animation-delay: .08s;
}

.slot-skeleton:nth-child(3)[b-l4c1j1n77l] {
    animation-delay: .16s;
}

.slot-skeleton:nth-child(4)[b-l4c1j1n77l] {
    animation-delay: .24s;
}

.skel-line[b-l4c1j1n77l] {
    height: 9px;
    border-radius: 4px;
    background: var(--border2);
    position: relative;
    overflow: hidden;
}

    .skel-line[b-l4c1j1n77l]::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
        background-size: 200% 100%;
        animation: skelShimmer-b-l4c1j1n77l 1.4s ease-in-out infinite;
    }

@keyframes skelShimmer-b-l4c1j1n77l {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skel-top[b-l4c1j1n77l] {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skel-eng[b-l4c1j1n77l] {
    width: 38%;
}

.skel-day[b-l4c1j1n77l] {
    width: 22%;
}

.skel-time[b-l4c1j1n77l] {
    width: 28%;
    height: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skel-meta[b-l4c1j1n77l] {
    width: 18%;
}

/* ══ JOB CARD SKELETONS ══ */
.job-card-skeleton[b-l4c1j1n77l] {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    animation: jskFade-b-l4c1j1n77l .5s ease both;
    flex-shrink: 0;
}

@keyframes jskFade-b-l4c1j1n77l {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jsk-header[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 7px;
}

.jsk-footer[b-l4c1j1n77l] {
    display: flex;
    justify-content: space-between;
}

.jsk-line[b-l4c1j1n77l] {
    height: 9px;
    border-radius: 4px;
    background: var(--border2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .jsk-line[b-l4c1j1n77l]::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.05) 50%, transparent 100%);
        background-size: 200% 100%;
        animation: skelShimmer-b-l4c1j1n77l 1.6s ease-in-out infinite;
    }

.jsk-ref[b-l4c1j1n77l] {
    width: 80px;
}

.jsk-reg[b-l4c1j1n77l] {
    width: 65px;
}

.jsk-type[b-l4c1j1n77l] {
    width: 70px;
}

.jsk-title[b-l4c1j1n77l] {
    width: 65%;
    height: 12px;
    border-radius: 4px;
}

.jsk-notes[b-l4c1j1n77l] {
    width: 45%;
}

.jsk-postcode[b-l4c1j1n77l] {
    width: 22%;
}

.jsk-due[b-l4c1j1n77l] {
    width: 28%;
}


.sc-dur[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-left: 8px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 1px 6px;
}

.sc-pill[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

.sc-pill-ok[b-l4c1j1n77l] {
    color: var(--green);
    border-color: rgba(28,196,120,.3);
    background: rgba(28,196,120,.08);
}

.sc-pill-warn[b-l4c1j1n77l] {
    color: var(--amber);
    border-color: rgba(245,158,11,.3);
    background: rgba(245,158,11,.08);
}

.sc-pill-bad[b-l4c1j1n77l] {
    color: var(--red);
    border-color: rgba(239,68,68,.3);
    background: rgba(239,68,68,.08);
}

.sc-pill-warn[b-l4c1j1n77l] {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ══ PREVIEW ROUTE LOADING SKELETON ══ */
.pv-loading[b-l4c1j1n77l] {
    padding: 16px 14px;
    position: relative;
    flex: 1;
    overflow: hidden;
}

.pv-loading-label[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a855f7;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    animation: pvLabelPulse-b-l4c1j1n77l 1.4s ease-in-out infinite;
}

@keyframes pvLabelPulse-b-l4c1j1n77l {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.pv-loading-spinner[b-l4c1j1n77l] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #a855f7;
    border-top-color: transparent;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}

.pv-skel-spine[b-l4c1j1n77l] {
    position: absolute;
    left: calc(14px + 44px);
    top: 52px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, var(--border2) 60%, transparent);
}

.pv-skel-row[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pv-skel-time[b-l4c1j1n77l] {
    width: 34px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pv-skel-dot[b-l4c1j1n77l] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--border2);
    background: var(--bg);
    flex-shrink: 0;
}

.pv-skel-dot-travel[b-l4c1j1n77l] {
    border-style: dashed;
    width: 6px;
    height: 6px;
    opacity: 0.5;
}

.pv-skel-block[b-l4c1j1n77l] {
    height: 40px;
    border-radius: 6px;
    flex: 1;
    max-width: 220px;
}

.pv-skel-block-sm[b-l4c1j1n77l] {
    height: 18px;
    max-width: 130px;
    border-radius: 20px;
}

.shimmer[b-l4c1j1n77l] {
    background: linear-gradient( 90deg, var(--surface2) 25%, var(--border2) 50%, var(--surface2) 75% );
    background-size: 200% 100%;
    animation: shimmerSlide-b-l4c1j1n77l 1.6s ease-in-out infinite;
}

@keyframes shimmerSlide-b-l4c1j1n77l {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.slot-date-range[b-l4c1j1n77l] {
    flex-wrap: wrap;
    align-items: center;
}

.date-range-inputs[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

    .date-range-inputs .f-input[b-l4c1j1n77l] {
        flex: 1;
        min-width: 0;
    }

.date-range-arrow[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ══ SLOT FINDER — availability notices ══ */
.slot-notices[b-l4c1j1n77l] {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
.slot-notice-row[b-l4c1j1n77l] {
    padding: 8px 13px;
    font-size: 11px;
    line-height: 1.5;
}
.slot-notice-row + .slot-notice-row[b-l4c1j1n77l] { border-top: 1px solid var(--border); }
.slot-notice-bk[b-l4c1j1n77l]    { background: #8b5cf612; color: #a78bfa; }
.slot-notice-leave[b-l4c1j1n77l] { background: #f59e0b12; color: #fbbf24; }
.slot-notice-calib[b-l4c1j1n77l] { background: #e5534b18; color: #e5534b; }

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Search results panel: lighter shadow */
[data-theme="light"] .search-results-panel[b-l4c1j1n77l] {
    box-shadow: 0 8px 28px rgba(0,0,40,.12);
}

/* Slot card: hovered state (#0e0a1a is near-black, unreadable in light mode) */
[data-theme="light"] .slot-card.hovered[b-l4c1j1n77l] {
    background: rgba(168,85,247,.08);
    border-color: #a855f7;
}

/* Availability notices */
[data-theme="light"] .slot-notice-bk[b-l4c1j1n77l] {
    background: rgba(109,40,217,.08);
    color: #5b21b6;
}
[data-theme="light"] .slot-notice-leave[b-l4c1j1n77l] {
    background: rgba(245,158,11,.1);
    color: #92400e;
}
[data-theme="light"] .slot-notice-calib[b-l4c1j1n77l] {
    background: rgba(229,83,75,.1);
    color: #b91c1c;
}

/* Preview header: purple label readable on light bg */
[data-theme="light"] .previewing-label[b-l4c1j1n77l] {
    color: #7c3aed;
}

/* Slot preview: loading label + spinner */
[data-theme="light"] .pv-loading-label[b-l4c1j1n77l] {
    color: #7c3aed;
}
[data-theme="light"] .pv-loading-spinner[b-l4c1j1n77l] {
    border-color: #7c3aed;
    border-top-color: transparent;
}

/* Purple "NEW" tag — darken for light background */
[data-theme="light"] .ps-tag-new[b-l4c1j1n77l] {
    background: rgba(124,58,237,.1);
    color: #5b21b6;
    border-color: rgba(124,58,237,.25);
}

/* Skeleton shimmer: white gradient is invisible on light surfaces */
[data-theme="light"] .skel-line[b-l4c1j1n77l]::after,
[data-theme="light"] .jsk-line[b-l4c1j1n77l]::after {
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.06) 50%, transparent 100%);
}

/* Override button text in find-slots button */
[data-theme="light"] .btn-find-slots[b-l4c1j1n77l] {
    color: #000;
}

/* ══ JOB CARD DISPATCH EXIT ANIMATION ══ */
.job-card.is-dispatching[b-l4c1j1n77l] {
    pointer-events: none;
    animation: dispatchLaunch-b-l4c1j1n77l 0.7s cubic-bezier(0.34,1.1,0.64,1) forwards;
}

@keyframes dispatchLaunch-b-l4c1j1n77l {
    0%   { transform: scale(1);    background: var(--accent-dim); border-color: var(--accent); box-shadow: 0 0 0 0 rgba(28,196,120,.5); opacity: 1; }
    25%  { transform: scale(1.02); box-shadow: 0 0 24px rgba(28,196,120,.35); }
    55%  { transform: translateY(-14px) scale(.97); opacity: .7; }
    100% { transform: translateY(-44px) scale(.9);  opacity: 0; box-shadow: 0 0 0 0 rgba(28,196,120,0); }
}

/* ══ CONFIRM BUTTON DISPATCH BURST ══ */
.btn-dispatch-burst[b-l4c1j1n77l] {
    animation: dispatchBtnBurst-b-l4c1j1n77l 0.45s cubic-bezier(0.34,1.4,0.64,1) !important;
}

@keyframes dispatchBtnBurst-b-l4c1j1n77l {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0    rgba(28,196,120,.9); }
    35%  { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(28,196,120,.4); }
    65%  { transform: scale(.97);  box-shadow: 0 0 0 22px rgba(28,196,120,.1); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0    rgba(28,196,120,0);  }
}

/* ══ PREVIEW ACTIONS AREA — DISPATCH GLOW ══ */
.slot-preview-actions[b-l4c1j1n77l] {
    position: relative;
}

.slot-preview-actions.is-dispatching[b-l4c1j1n77l]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(28,196,120,.08);
    animation: dispatchAreaFlash-b-l4c1j1n77l .5s ease-out forwards;
    pointer-events: none;
}

@keyframes dispatchAreaFlash-b-l4c1j1n77l {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* ══ DISPATCH SUCCESS PANEL ══ */
.dispatch-success[b-l4c1j1n77l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 24px;
    text-align: center;
    animation: dsReveal-b-l4c1j1n77l .5s cubic-bezier(.16,1,.3,1);
}

@keyframes dsReveal-b-l4c1j1n77l {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1);   }
}

.ds-icon-wrap[b-l4c1j1n77l] {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ds-ring[b-l4c1j1n77l] {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    transform: translate(-50%, -50%);
    animation: dsRingExpand-b-l4c1j1n77l 1.4s ease-out forwards;
}

.ds-ring-1[b-l4c1j1n77l] { animation-delay: .15s; }
.ds-ring-2[b-l4c1j1n77l] { animation-delay: .40s; }
.ds-ring-3[b-l4c1j1n77l] { animation-delay: .65s; }

@keyframes dsRingExpand-b-l4c1j1n77l {
    0%   { width: 68px;  height: 68px;  opacity: .9; }
    100% { width: 220px; height: 220px; opacity: 0;  }
}

.ds-check[b-l4c1j1n77l] {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--accent);
    position: relative;
    z-index: 1;
    animation: dsCheckPop-b-l4c1j1n77l .45s cubic-bezier(.34,1.56,.64,1) .1s both;
}

@keyframes dsCheckPop-b-l4c1j1n77l {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.ds-label[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 8px;
    animation: dsFadeUp-b-l4c1j1n77l .4s ease .3s both;
}

.ds-job-ref[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
    animation: dsFadeUp-b-l4c1j1n77l .4s ease .4s both;
}

.ds-details[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 32px;
    animation: dsFadeUp-b-l4c1j1n77l .4s ease .5s both;
}

.ds-actions[b-l4c1j1n77l] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    animation: dsFadeUp-b-l4c1j1n77l .4s ease .6s both;
}

@keyframes dsFadeUp-b-l4c1j1n77l {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

[data-theme="light"] .ds-check[b-l4c1j1n77l] {
    background: rgba(28,196,120,.15);
}

/* ══ BOOKING LINK MODAL ══ */
.link-active-btn[b-l4c1j1n77l] { display: inline-flex; align-items: center; gap: 6px; }

.link-active-dot[b-l4c1j1n77l] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rrn-green, #1cc478);
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(28,196,120,.5);
}

.link-url-row[b-l4c1j1n77l] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.link-url-box[b-l4c1j1n77l] {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 7px 10px;
    word-break: break-all;
    line-height: 1.5;
}

.link-expiry-note[b-l4c1j1n77l] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin: 0 0 14px;
}

.link-modal-actions[b-l4c1j1n77l] {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-modal-actions > .btn[b-l4c1j1n77l] { align-self: flex-start; }

.link-disable-btn[b-l4c1j1n77l] { color: var(--danger, #e04b4b) !important; }
.link-disable-btn:hover:not(:disabled)[b-l4c1j1n77l] { background: rgba(224,75,75,.08) !important; }

.link-action-warn[b-l4c1j1n77l] {
    font-size: 12px;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

.link-action-confirm-row[b-l4c1j1n77l] {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* CRM notes panel styles moved to app.css (shared with Dispatch page) */
/* /Pages/Reports.razor.rz.scp.css */
.reports-shell[b-besjor7sqk] {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
}

.reports-access-denied[b-besjor7sqk] {
    padding: 60px;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12px;
}

/* ── Top bar ── */
.reports-topbar[b-besjor7sqk] {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.reports-title-row[b-besjor7sqk] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px 0;
}

.reports-title-icon[b-besjor7sqk] { font-size: 16px; color: var(--accent); }

.reports-title-row h1[b-besjor7sqk] {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0;
    font-family: var(--mono);
}

/* ── Tab bar ── */
.reports-tab-bar[b-besjor7sqk] {
    display: flex;
    gap: 0;
    padding: 10px 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.reports-tab[b-besjor7sqk] {
    padding: 6px 16px 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.reports-tab:hover[b-besjor7sqk] { color: var(--text); }

.reports-tab.active[b-besjor7sqk] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Period bar ── */
.reports-period-bar[b-besjor7sqk] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    flex-wrap: wrap;
}

.period-presets[b-besjor7sqk] { display: flex; gap: 4px; }

.period-preset[b-besjor7sqk] {
    padding: 3px 10px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text-dim);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
    letter-spacing: 0.3px;
}

.period-preset:hover[b-besjor7sqk]  { border-color: var(--accent); color: var(--text); }
.period-preset.active[b-besjor7sqk] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.period-range[b-besjor7sqk] { display: flex; align-items: center; gap: 6px; }

.period-input[b-besjor7sqk] {
    padding: 3px 8px;
    font-family: var(--mono);
    font-size: 11px;
    background: var(--surface2, var(--bg));
    border: 1px solid var(--border2);
    color: var(--text);
    border-radius: 3px;
    transition: border-color 0.12s;
}
.period-input:focus[b-besjor7sqk] { outline: none; border-color: var(--accent); }

.period-sep[b-besjor7sqk] { color: var(--text-dim); font-size: 11px; font-family: var(--mono); }

.btn-run[b-besjor7sqk] {
    padding: 4px 16px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--accent);
    border: none;
    color: var(--bg);
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.12s;
}
.btn-run:disabled[b-besjor7sqk], .btn-run.loading[b-besjor7sqk] { opacity: 0.55; cursor: default; }

/* ── Body / scroll ── */
.reports-body[b-besjor7sqk] {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

/* ── Loading ── */
.reports-loading[b-besjor7sqk] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 50px;
    justify-content: center;
    color: var(--text-dim);
    font-size: 12px;
    font-family: var(--mono);
}

/* ── KPI / Summary cards ── */
.summary-row[b-besjor7sqk] {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kpi-card[b-besjor7sqk] {
    flex: 1 1 120px;
    min-width: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kpi-card.accent-green[b-besjor7sqk]  { border-top-color: #3ec878; }
.kpi-card.accent-blue[b-besjor7sqk]   { border-top-color: #4a9eff; }
.kpi-card.accent-amber[b-besjor7sqk]  { border-top-color: #f0a843; }
.kpi-card.accent-red[b-besjor7sqk]    { border-top-color: #f06060; }
.kpi-card.accent-cyan[b-besjor7sqk]   { border-top-color: #38c7c7; }
.kpi-card.accent-purple[b-besjor7sqk] { border-top-color: #9d7fe8; }

.kpi-value[b-besjor7sqk] {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--mono);
    line-height: 1;
}

.kpi-label[b-besjor7sqk] {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--mono);
}

/* ── Report rows and cards ── */
.report-row[b-besjor7sqk] {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.report-row-inner[b-besjor7sqk] {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.report-card[b-besjor7sqk] {
    flex: 1 1 340px;
    min-width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.report-card--wide[b-besjor7sqk] { flex: 2 1 480px; }

.card-header[b-besjor7sqk] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.card-header h2[b-besjor7sqk] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0;
    font-family: var(--mono);
    white-space: nowrap;
}

.card-hint[b-besjor7sqk] {
    font-size: 10px;
    color: var(--text-dim);
    font-family: var(--mono);
    opacity: 0.7;
}

.btn-export[b-besjor7sqk] {
    margin-left: auto;
    padding: 2px 10px;
    font-family: var(--mono);
    font-size: 10px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text-dim);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
}
.btn-export:hover[b-besjor7sqk] { border-color: var(--accent); color: var(--accent); }

.chart-area[b-besjor7sqk] {
    height: 220px;
    padding: 14px 16px 8px;
    position: relative;
    flex-shrink: 0;
}
.chart-area--sm[b-besjor7sqk]   { height: 180px; flex: 1 1 200px; min-width: 180px; padding: 10px 12px 6px; }
.chart-area--tall[b-besjor7sqk] { height: 280px; }

.empty-state[b-besjor7sqk] {
    padding: 30px 18px;
    color: var(--text-dim);
    font-size: 11px;
    text-align: center;
    font-family: var(--mono);
}

/* ── Tables ── */
.table-scroll[b-besjor7sqk] {
    overflow-x: auto;
    padding: 0 4px 12px;
    flex: 1;
}
.table-scroll--tall[b-besjor7sqk] { max-height: 400px; overflow-y: auto; }

.data-table[b-besjor7sqk] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    font-family: var(--mono);
}

.data-table th[b-besjor7sqk] {
    padding: 7px 10px;
    text-align: left;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border2);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}

.data-table td[b-besjor7sqk] {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.data-table tr:last-child td[b-besjor7sqk] { border-bottom: none; }
.data-table tr:hover td[b-besjor7sqk]      { background: rgba(255,255,255,0.03); }

.data-table td.mono[b-besjor7sqk]   { font-family: var(--mono); font-size: 10px; }
.data-table td.num[b-besjor7sqk]    { text-align: right; font-feature-settings: 'tnum'; }
.data-table td.dim[b-besjor7sqk]    { color: var(--text-dim); }
.data-table td.bold[b-besjor7sqk]   { font-weight: 700; color: var(--text-bright); }
.data-table td.green[b-besjor7sqk]  { color: #3ec878; }
.data-table td.amber[b-besjor7sqk]  { color: #f0a843; }
.data-table td.red[b-besjor7sqk]    { color: #f06060; }
.data-table td.blue[b-besjor7sqk]   { color: #4a9eff; }

.drill-header[b-besjor7sqk] {
    padding: 8px 10px 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: var(--mono);
}

/* ── Metrics row ── */
.metric-row[b-besjor7sqk] {
    display: flex;
    gap: 24px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

.metric[b-besjor7sqk] { display: flex; flex-direction: column; gap: 3px; }

.metric-value[b-besjor7sqk] {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--mono);
    line-height: 1;
}

.metric-label[b-besjor7sqk] {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: var(--mono);
}

/* ── Pressure pills ── */
.pressure-pills[b-besjor7sqk] { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

.pill[b-besjor7sqk] {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
}

.pill-red[b-besjor7sqk]    { background: rgba(240,96,96,0.18);  color: #f06060; }
.pill-amber[b-besjor7sqk]  { background: rgba(240,168,67,0.18); color: #f0a843; }
.pill-blue[b-besjor7sqk]   { background: rgba(74,158,255,0.18); color: #4a9eff; }

/* ── Type badge / dot ── */
.type-badge[b-besjor7sqk] {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    border: 1px solid;
    font-size: 10px;
}

.type-dot[b-besjor7sqk] {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Drill button ── */
.btn-drill[b-besjor7sqk] {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 8px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--accent);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
}
.btn-drill:hover[b-besjor7sqk] { background: var(--accent); color: var(--bg); }

/* ── Drill-through modal ── */
.drill-backdrop[b-besjor7sqk] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.drill-modal[b-besjor7sqk] {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 10px;
    width: min(1180px, 96vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

/* Clickable number cell that opens a drill modal */
.drill-link[b-besjor7sqk] {
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: underline;
    text-decoration-color: var(--border2);
    text-underline-offset: 2px;
    transition: background-color 0.12s, text-decoration-color 0.12s;
}
.drill-link:hover[b-besjor7sqk] {
    background: rgba(255,255,255,0.06);
    text-decoration-color: currentColor;
}

/* Event-type pill used in scheduler drill rows */
.event-badge[b-besjor7sqk] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}
.event-badge.event-scheduled[b-besjor7sqk]   { color: #3ec878; border-color: rgba(62,200,120,0.4);  background: rgba(62,200,120,0.1); }
.event-badge.event-rebooked[b-besjor7sqk]    { color: #f0a843; border-color: rgba(240,168,67,0.4);  background: rgba(240,168,67,0.1); }
.event-badge.event-unscheduled[b-besjor7sqk] { color: #f06060; border-color: rgba(240,96,96,0.4);   background: rgba(240,96,96,0.1); }

.drill-modal-header[b-besjor7sqk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    flex-shrink: 0;
}

.drill-close[b-besjor7sqk] {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.12s;
}
.drill-close:hover[b-besjor7sqk] { color: var(--text-bright); }

.drill-modal-body[b-besjor7sqk] {
    overflow-y: auto;
    flex: 1;
    padding: 0 4px 8px;
    scrollbar-width: thin;
}

/* ── Spinner ── */
.spinner[b-besjor7sqk] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-b-besjor7sqk 0.7s linear infinite;
}

@keyframes spin-b-besjor7sqk { to { transform: rotate(360deg); } }

/* ── GPS Tracking table ── */
.gps-job-primary[b-besjor7sqk] {
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--mono);
    font-size: 11px;
}

.gps-job-title[b-besjor7sqk] {
    font-size: 10px;
    color: var(--text);
    margin-top: 1px;
}

.gps-job-ref[b-besjor7sqk] {
    font-size: 10px;
    color: var(--text-dim);
    font-family: var(--mono);
    margin-top: 1px;
}

.gps-delta[b-besjor7sqk] {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
}

.gps-badge[b-besjor7sqk] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
    white-space: nowrap;
}

.gps-ok[b-besjor7sqk]      { background: rgba(62,200,120,0.15);  color: #3ec878; }
.gps-late[b-besjor7sqk]    { background: rgba(240,168,67,0.15);  color: #f0a843; }
.gps-overrun[b-besjor7sqk] { background: rgba(240,96,96,0.15);   color: #f06060; }
.gps-enroute[b-besjor7sqk] { background: rgba(74,158,255,0.15);  color: #4a9eff; }
.gps-nogps[b-besjor7sqk]   { background: rgba(148,163,184,0.12); color: #94a3b8; }

.gps-table .red[b-besjor7sqk]   { color: #f06060; }
.gps-table .amber[b-besjor7sqk] { color: #f0a843; }
.gps-table .green[b-besjor7sqk] { color: #3ec878; }
.gps-table .bold[b-besjor7sqk]  { font-weight: 700; color: var(--text-bright); }

/* ── KPI card as clickable filter pill ── */
button.kpi-card[b-besjor7sqk] {
    cursor: pointer;
    text-align: left;
    transition: border-top-color 0.12s, transform 0.08s;
}
button.kpi-card:hover[b-besjor7sqk] { transform: translateY(-1px); }
button.kpi-card.kpi-active[b-besjor7sqk] {
    border-top-color: var(--accent) !important;
    box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ── Filter badge in table title ── */
.filter-badge[b-besjor7sqk] {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
    background: rgba(74,158,255,0.15);
    color: #4a9eff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── report-card--full: stretches full width ── */
.report-card--full[b-besjor7sqk] {
    width: 100%;
    flex: 1 1 100%;
}

/* ── Colour helpers used directly on .kpi-value spans ── */
.kpi-value.green[b-besjor7sqk] { color: #3ec878; }
.kpi-value.amber[b-besjor7sqk] { color: #f0a843; }
.kpi-value.red[b-besjor7sqk]   { color: #f06060; }

/* ── Schedule badges ── */
.sched-badge[b-besjor7sqk] {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
}
.sched-live[b-besjor7sqk] { background: rgba(62,200,120,0.2);  color: #3ec878; }
.sched-hist[b-besjor7sqk] { background: rgba(148,163,184,0.15); color: #94a3b8; }
.sched-plan[b-besjor7sqk] { background: rgba(74,158,255,0.15);  color: #4a9eff; }

/* ── Status chip (schedule table) ── */
.status-chip[b-besjor7sqk] {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 600;
}
.status-chip.green[b-besjor7sqk] { background: rgba(62,200,120,0.15);  color: #3ec878; }
.status-chip.cyan[b-besjor7sqk]  { background: rgba(56,199,199,0.15);  color: #38c7c7; }
.status-chip.amber[b-besjor7sqk] { background: rgba(240,168,67,0.15);  color: #f0a843; }
.status-chip.dim[b-besjor7sqk]   { background: rgba(148,163,184,0.10); color: #94a3b8; }
/* /Shared/JobEditForm.razor.rz.scp.css */
/* Google Places suggestion list (appended to body) above modals */
:global(.pac-container)[b-487bbk4gq9] {
    z-index: 20000 !important;
}

/* PlaceAutocompleteElement — match .f-input (app.css): 13px, 8px 10px, 6px radius, theme tokens */
.repair-loc-pac-host[b-487bbk4gq9] {
    width: 100%;
    display: block;
}

.repair-loc-pac-host gmp-place-autocomplete[b-487bbk4gq9] {
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.35;
    background: var(--bg);
    border: 1px solid var(--border2);
    color: var(--text-bright);
    border-radius: 6px;
    color-scheme: dark;
}

[data-theme="light"] .repair-loc-pac-host gmp-place-autocomplete[b-487bbk4gq9] {
    color-scheme: light;
}

.repair-loc-pac-host:focus-within gmp-place-autocomplete[b-487bbk4gq9] {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* When exposed, shrink inner field to match other inputs (icons unchanged) */
.repair-loc-pac-host gmp-place-autocomplete[b-487bbk4gq9]::part(input) {
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.35;
    min-height: 0;
}

/* Full-width street in a 2-col row — matches stacked .modal-2col rhythm with Job Details */
.modal-2col .repair-loc-span-2[b-487bbk4gq9] {
    grid-column: 1 / -1;
}

/* ── Job Identity Header ─────────────────────────────────────────────────── */

.job-identity[b-487bbk4gq9] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--surface2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.job-identity-info[b-487bbk4gq9] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.job-title[b-487bbk4gq9] {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.job-title--editable[b-487bbk4gq9] {
    cursor: pointer;
    border-radius: 4px;
    padding: 1px 4px;
    margin: -1px -4px;
    transition: background .15s;
}

.job-title--editable:hover[b-487bbk4gq9] {
    background: var(--bg);
}

.job-title-input[b-487bbk4gq9] {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 4px 8px;
    width: 100%;
    outline: none;
    transition: border-color .15s;
}

.job-title-input:focus[b-487bbk4gq9] {
    border-color: var(--accent);
}

.job-title-input[b-487bbk4gq9]::placeholder {
    color: var(--text-dim);
    font-weight: 500;
}

.job-identity-meta[b-487bbk4gq9] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ref-badge[b-487bbk4gq9] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--bg);
    border: 1px solid var(--border2);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
}

.job-type-chip[b-487bbk4gq9] {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    color: var(--chip-color, var(--accent));
    background: color-mix(in srgb, var(--chip-color, var(--accent)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--chip-color, var(--accent)) 25%, transparent);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── UK Reg Plate ───────────────────────────────────────────────────────── */

.uk-plate[b-487bbk4gq9] {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #1a1a1a;
    cursor: default;
    height: 36px;
    min-width: 90px;
    background: #f7d117;
}

.uk-plate--typing[b-487bbk4gq9] {
    background: #f7d117;
    border-style: dashed;
    cursor: text;
}

.uk-plate--typing:hover[b-487bbk4gq9] {
    border-color: #1a1a1a;
}

.uk-plate-strip[b-487bbk4gq9] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    background: #003399;
    color: #fff;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
}

.uk-plate-text[b-487bbk4gq9] {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-family: 'UKNumberPlate', 'Segoe UI', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.uk-plate-text--placeholder[b-487bbk4gq9] {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0;
}

.uk-plate-input[b-487bbk4gq9] {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'UKNumberPlate', 'Segoe UI', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    padding: 0 8px;
    width: 110px;
}

.uk-plate-input[b-487bbk4gq9]::placeholder {
    color: #999;
    font-weight: 600;
}

/* ── Form Cards ─────────────────────────────────────────────────────────── */

.form-card[b-487bbk4gq9] {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px 6px;
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

.form-card:hover[b-487bbk4gq9] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.form-card-label[b-487bbk4gq9] {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: .3px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-card-label-sub[b-487bbk4gq9] {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0;
}

.form-card-label-sub[b-487bbk4gq9]::before {
    content: "·";
    margin-right: 4px;
}

/* ── Display Fields (RT read-only) ──────────────────────────────────────── */

.field-display[b-487bbk4gq9] {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-bright);
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.field-display--info[b-487bbk4gq9] {
    background: transparent;
    padding: 4px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
}

.field-display--multiline[b-487bbk4gq9] {
    display: block;
    white-space: normal;
    line-height: 1.45;
    padding: 10px 12px;
    min-height: 2.75rem;
    word-break: break-word;
}

/* NEEDS PARTS + ORIGINATING FLEET: one grid — row gap only (12px, same as .modal-2col gap), no stacked f-group margins */
.modal-2col--job-details-fleet .rt-originating-fleet[b-487bbk4gq9] {
    grid-column: 1 / -1;
    margin: 0;
}

/* Only grid gap separates NEEDS PARTS row from ORIGINATING FLEET row */
.modal-2col--job-details-fleet .f-group[b-487bbk4gq9] {
    margin-bottom: 0;
}

.modal-2col-spacer[b-487bbk4gq9] {
    min-height: 0;
}

.crm-tag[b-487bbk4gq9] {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: .8px;
    margin-left: auto;
}

/* ── Toggle Switches ────────────────────────────────────────────────────── */

.toggle-row[b-487bbk4gq9] {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 10px;
}

.toggle-item[b-487bbk4gq9] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-item--disabled[b-487bbk4gq9] {
    opacity: .5;
}

.toggle-label[b-487bbk4gq9] {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text);
    user-select: none;
}

.toggle-switch[b-487bbk4gq9] {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.toggle-switch input[b-487bbk4gq9] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track[b-487bbk4gq9] {
    width: 34px;
    height: 18px;
    background: var(--border2);
    border-radius: 9px;
    position: relative;
    transition: background .2s;
}

.toggle-thumb[b-487bbk4gq9] {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.toggle-switch input:checked + .toggle-track[b-487bbk4gq9] {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb[b-487bbk4gq9] {
    transform: translateX(16px);
}

.toggle-switch input:disabled + .toggle-track[b-487bbk4gq9] {
    cursor: not-allowed;
}
/* /Shared/JobTimeline.razor.rz.scp.css */
/* ── Container ── */
.timeline-container[b-g2ff26n4z9] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

/* ── Empty / loading state ── */
.timeline-empty[b-g2ff26n4z9] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 11px;
    padding: 20px 0;
    opacity: 0.7;
}

.timeline-empty-icon[b-g2ff26n4z9] {
    font-size: 13px;
}

/* ── Timeline list ── */
.timeline[b-g2ff26n4z9] {
    display: flex;
    flex-direction: column;
}

/* ── Single event row ── */
.tl-item[b-g2ff26n4z9] {
    display: flex;
    gap: 0;
    min-height: 0;
}

/* ── Left rail with dot + connecting line ── */
.tl-rail[b-g2ff26n4z9] {
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

/* Connecting line between dots */
.tl-rail[b-g2ff26n4z9]::after {
    content: '';
    position: absolute;
    top: 15px;          /* starts below the dot */
    bottom: 0;
    width: 1px;
    background: var(--border2);
}

/* Hide the line on the last item */
.tl-item:last-child .tl-rail[b-g2ff26n4z9]::after {
    display: none;
}

/* ── Dot ── */
.tl-dot[b-g2ff26n4z9] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--bg);  /* gap ring to separate from line */
}

.dot-default[b-g2ff26n4z9] { background: var(--text-dim); }
.dot-green[b-g2ff26n4z9]   { background: #10b981; }
.dot-amber[b-g2ff26n4z9]   { background: #f59e0b; }
.dot-red[b-g2ff26n4z9]     { background: #ef4444; }
.dot-cyan[b-g2ff26n4z9]    { background: #0ea5e9; }

/* ── Event body ── */
.tl-body[b-g2ff26n4z9] {
    flex: 1;
    min-width: 0;
    padding: 0 0 12px 0;
}

/* ── Header row: badge + timestamp ── */
.tl-head[b-g2ff26n4z9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ── Event type badge ── */
.tl-badge[b-g2ff26n4z9] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-default[b-g2ff26n4z9] {
    background: var(--surface2);
    color: var(--text-dim);
}

.badge-green[b-g2ff26n4z9] {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.badge-amber[b-g2ff26n4z9] {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.badge-red[b-g2ff26n4z9] {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.badge-cyan[b-g2ff26n4z9] {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
}

/* ── Timestamp ── */
.tl-time[b-g2ff26n4z9] {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.7;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Actor line ── */
.tl-actor[b-g2ff26n4z9] {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ── Details block ── */
.tl-details[b-g2ff26n4z9] {
    font-size: 11px;
    color: var(--text);
    margin-top: 4px;
    white-space: pre-line;
    line-height: 1.45;
    background: var(--surface2);
    border-left: 2px solid var(--border2);
    border-radius: 0 3px 3px 0;
    padding: 4px 8px;
    opacity: 0.85;
}
/* /Shared/SchedulingNav.razor.rz.scp.css */
.scheduling-nav[b-ye32iskdp3] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: 36px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.scheduling-nav-item[b-ye32iskdp3] {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.scheduling-nav-item:hover[b-ye32iskdp3] {
    color: var(--text-bright);
    background: var(--surface2);
}

.scheduling-nav-item.active[b-ye32iskdp3] {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-dim);
}
