/* /Pages/Job.razor.rz.scp.css */
.jb[b-oa0ardghgc] { display: flex; flex-direction: column; gap: 12px; }

/* Gradient hero. */
.jb-hero[b-oa0ardghgc] {
    background: linear-gradient(135deg, var(--brand-ink), var(--splash-cobalt));
    border-radius: var(--r-2xl);
    padding: 16px;
    color: #fff;
}

/* Task 8 -- >= 44px touch target: this is the most-used control in the mobile flow, operated
   with gloves. box-sizing: border-box (matching the convention used for sized controls in the
   sibling Today.razor.css/MyAssets.razor.css files) keeps the padding INSIDE the min-height/
   min-width box rather than adding to it, so the declared 44px is the actual rendered floor, not
   just a lower bound that padding could still undermine. display:inline-flex + align-items:center
   centers the "‹ Today" label vertically in that taller box instead of leaving it pinned to the
   top like the old single-line padding did. */
.jb-back[b-oa0ardghgc] {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-pill);
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.jb-no[b-oa0ardghgc] {
    font-family: var(--f-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 12px;
}

.jb-title[b-oa0ardghgc] { font-size: 20px; font-weight: 700; margin-top: 2px; }
.jb-pills[b-oa0ardghgc] { display: flex; gap: 8px; margin-top: 10px; }

/* Generic section card. */
.jb-card[b-oa0ardghgc] {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
}

.jb-card-head[b-oa0ardghgc] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.jb-card-title[b-oa0ardghgc] { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.jb-card-sub[b-oa0ardghgc] { font-size: 12px; color: var(--ink-4); font-family: var(--f-mono); }

.jb-asset-name[b-oa0ardghgc] { font-size: 15px; font-weight: 600; color: var(--ink); }
.jb-asset-meta[b-oa0ardghgc] { font-size: 12px; color: var(--ink-4); font-family: var(--f-mono); margin-top: 2px; }

/* Big green primary action. */
.jb-complete[b-oa0ardghgc] {
    width: 100%;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.jb-complete:disabled[b-oa0ardghgc] { opacity: 0.6; cursor: default; }

/* Row of controls (stepper + action). */
.jb-row[b-oa0ardghgc] { display: flex; align-items: center; gap: 8px; }

.jb-step[b-oa0ardghgc] {
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    border-radius: var(--r-sm);
    font-size: 20px; line-height: 1;
    cursor: pointer;
}

.jb-step-val[b-oa0ardghgc] { min-width: 64px; text-align: center; font-weight: 700; font-size: 16px; }
.jb-step-val small[b-oa0ardghgc] { font-weight: 500; color: var(--ink-4); font-size: 11px; }

.jb-go[b-oa0ardghgc], .jb-add[b-oa0ardghgc] {
    margin-left: auto;
    background: var(--brand-ink);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: 0 18px;
    height: 40px;
    font-weight: 600;
    cursor: pointer;
}
.jb-go:disabled[b-oa0ardghgc] { opacity: 0.5; cursor: default; }

/* Add-part / add-note full-width secondary action. */
.jb-add[b-oa0ardghgc] {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--line);
}

.jb-hint[b-oa0ardghgc] { font-size: 12px; color: var(--warning); margin-top: 8px; }

/* Expired session. Unlike the offline and pending-sync banners (which ride on .jb-card alone),
   this one needs to stand out: the queue has STOPPED draining until the technician acts. */
.jb-auth-banner[b-oa0ardghgc] {
    border-color: var(--warning);
    color: var(--ink);
    font-size: 13px;
}
.jb-auth-banner a[b-oa0ardghgc] { color: var(--warning); font-weight: 700; }

.jb-note[b-oa0ardghgc] {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 0;
}
.jb-note-text[b-oa0ardghgc] { font-size: 14px; color: var(--ink); }
.jb-note-meta[b-oa0ardghgc] { font-size: 11px; color: var(--ink-4); font-family: var(--f-mono); margin-top: 2px; }

.jb-card textarea.r360-input[b-oa0ardghgc] { margin-top: 4px; }

/* Task 26 — recovered-draft banner (localStorage recovery after a dropped connection). Warm
   ("something to review") tone rather than danger red — nothing was lost, it's just pending
   a decision — so it borrows the pill --warning tokens already used for .jb-hint. */
.jb-draft-banner[b-oa0ardghgc] {
    background: var(--warning-bg);
    border-color: var(--warning);
}
.jb-draft-text[b-oa0ardghgc] { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.jb-draft-actions[b-oa0ardghgc] { display: flex; gap: 8px; margin-top: 10px; }
.jb-draft-actions .jb-add[b-oa0ardghgc] { margin-top: 0; flex: 1; width: auto; }
.jb-draft-restore[b-oa0ardghgc] { color: var(--brand-ink); border-color: var(--brand-ink); font-weight: 600; }
.jb-draft-discard[b-oa0ardghgc] { color: var(--ink-3); }

/* Task 28 — clock in/out timer. "Running since HH:MM" takes the stepper-value slot when a timer
   is active; Stop borrows .jb-go's sizing but in the danger tone so it reads as "this ends something"
   rather than the neutral "Log"/"Start" action color. */
.jb-timer-running[b-oa0ardghgc] { color: var(--success); flex: 1; text-align: left; font-size: 14px; }
.jb-timer-stop[b-oa0ardghgc] { background: var(--danger); }

/* Task 4 — failure-code picker Tier 1 chips ("common on this asset"). */
.jb-fc-chips[b-oa0ardghgc] { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
/* >= 44px tall: gloved thumbs. */
.jb-fc-chip[b-oa0ardghgc] {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 13px;
}
.jb-fc-chip.is-active[b-oa0ardghgc] { border-color: var(--brand); font-weight: 700; }

/* Task 5 -- completion confirm sheet. A bottom sheet (not a centered modal) so it reads as a
   natural continuation of the page on a phone, matching how the rest of this page's controls
   (jb-complete, jb-card) already sit full-width. Backdrop dismisses on tap, same affordance as
   the sheet's own Cancel button. */
.jb-confirm-backdrop[b-oa0ardghgc] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
}

.jb-confirm[b-oa0ardghgc] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    border-top-left-radius: var(--r-2xl);
    border-top-right-radius: var(--r-2xl);
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(20, 30, 50, 0.18);
    z-index: 41;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jb-confirm-title[b-oa0ardghgc] { font-size: 16px; font-weight: 700; color: var(--ink); }
.jb-confirm-body[b-oa0ardghgc] { font-size: 13px; color: var(--ink-4); font-family: var(--f-mono); margin-bottom: 4px; }

/* Cancel borrows .jb-add's full-width secondary look (transparent, outlined) so the sheet's two
   actions read as primary (green, filled -- reuses .jb-complete) / secondary, same visual
   hierarchy the rest of the page already uses for go/cancel pairs. */
.jb-cancel[b-oa0ardghgc] {
    width: 100%;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
/* /Pages/Me.razor.rz.scp.css */
.me[b-q1acf15b6y] { display: flex; flex-direction: column; gap: 14px; }

/* Gradient profile header, center-aligned. */
.me-hero[b-q1acf15b6y] {
    background: linear-gradient(135deg, var(--brand-ink), var(--splash-cobalt));
    border-radius: var(--r-2xl);
    padding: 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.me-avatar[b-q1acf15b6y] {
    width: 64px; height: 64px;
    border-radius: var(--r-pill);
    background: var(--brand);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
}

.me-name[b-q1acf15b6y] { font-size: 20px; font-weight: 700; }
.me-meta[b-q1acf15b6y] { font-size: 13px; color: rgba(255, 255, 255, 0.7); font-family: var(--f-mono); }

/* Stat cards row. */
.me-stats[b-q1acf15b6y] { display: flex; gap: 10px; }
.me-stats .statcard[b-q1acf15b6y] { flex: 1; }

.me-section[b-q1acf15b6y] {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ink-4);
}

.me-entries[b-q1acf15b6y] { display: flex; flex-direction: column; gap: 8px; }

.me-entry[b-q1acf15b6y] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 12px;
}

.me-entry-no[b-q1acf15b6y] { font-family: var(--f-mono); font-size: 12px; color: var(--brand); }
.me-entry-title[b-q1acf15b6y] { flex: 1; font-size: 14px; color: var(--ink); min-width: 0; }
.me-entry-hrs[b-q1acf15b6y] { font-weight: 700; font-size: 14px; color: var(--ink); }

.me-empty[b-q1acf15b6y] { color: var(--ink-4); font-size: 14px; }

.me-signout-form[b-q1acf15b6y] { margin: 8px 0 0; }
.me-signout[b-q1acf15b6y] {
    width: 100%;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}
/* /Pages/MyAssets.razor.rz.scp.css */
.as[b-yus98bqquj] { display: flex; flex-direction: column; gap: 10px; }

.as-h1[b-yus98bqquj] { font-size: 24px; font-weight: 700; color: var(--ink); }
.as-sub[b-yus98bqquj] { font-size: 13px; color: var(--ink-4); margin-bottom: 6px; }

/* Scan button (dark, full width). */
.as-scan[b-yus98bqquj] {
    background: var(--brand-ink);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.as-scan:disabled[b-yus98bqquj] { opacity: 0.7; }

.as-video[b-yus98bqquj] { width: 100%; border-radius: var(--r-md); margin-top: 6px; }
.as-video.hidden[b-yus98bqquj] { display: none; }

.as-hint[b-yus98bqquj] { font-size: 12px; color: var(--warning); margin-top: 8px; }

/* Task 6: search box + All-plants toggle row, same visual language as Today's quick-search
   (.td-search-input) and the report sheet's segmented urgency control (.as-seg-btn). */
.as-search-row[b-yus98bqquj] { display: flex; gap: 8px; align-items: center; }

.as-search-input[b-yus98bqquj] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--ink-6, #dce2ed);
    border-radius: var(--r-md);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink-1, #1f2733);
}

.as-plant-toggle[b-yus98bqquj] {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
}

/* "On" = All plants is active (scoping relaxed) -- same active-state colour as .as-seg-btn.is-on. */
.as-plant-toggle.is-on[b-yus98bqquj] {
    background: var(--brand-ink);
    color: #fff;
    border-color: var(--brand-ink);
}

.as-list-empty[b-yus98bqquj] { color: var(--ink-4); font-size: 14px; padding: 8px 2px; }

.as-list[b-yus98bqquj] { display: flex; flex-direction: column; gap: 8px; }

.as-card[b-yus98bqquj] {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    cursor: pointer;
}

.as-ico[b-yus98bqquj] {
    width: 34px; height: 34px;
    border-radius: var(--r-sm);
    background: var(--icon-tile);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.as-info[b-yus98bqquj] { flex: 1; min-width: 0; }
.as-name[b-yus98bqquj] { font-size: 15px; font-weight: 600; color: var(--ink); }
.as-meta[b-yus98bqquj] { font-size: 12px; color: var(--ink-4); font-family: var(--f-mono); margin-top: 2px; }

/* Bottom sheet + scrim. */
.as-scrim[b-yus98bqquj] {
    position: fixed; inset: 0;
    background: rgba(10, 37, 64, 0.45);
    z-index: 40;
}

.as-sheet[b-yus98bqquj] {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 41;
    background: var(--paper);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-cover);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.as-sheet-grab[b-yus98bqquj] {
    width: 40px; height: 4px;
    border-radius: var(--r-pill);
    background: var(--line-strong);
    align-self: center;
    margin-bottom: 4px;
}

.as-sheet-kicker[b-yus98bqquj] {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--brand);
}

.as-sheet-title[b-yus98bqquj] { font-size: 18px; font-weight: 700; color: var(--ink); }

.as-field-label[b-yus98bqquj] { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Segmented urgency control. */
.as-seg[b-yus98bqquj] { display: flex; gap: 8px; }

.as-seg-btn[b-yus98bqquj] {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
}

.as-seg-btn.is-on[b-yus98bqquj] {
    background: var(--brand-ink);
    color: #fff;
    border-color: var(--brand-ink);
}

.as-submit[b-yus98bqquj] {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}
.as-submit:disabled[b-yus98bqquj] { opacity: 0.6; }
/* /Pages/Today.razor.rz.scp.css */
.td[b-dyrbote7k3] { display: flex; flex-direction: column; gap: 14px; }

/* Gradient hero block (navy → cobalt), rounded as a hero card. */
.td-hero[b-dyrbote7k3] {
    background: linear-gradient(135deg, var(--brand-ink), var(--splash-cobalt));
    border-radius: var(--r-2xl);
    padding: 18px;
    color: #fff;
}

.td-kicker[b-dyrbote7k3] {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.6);
}

.td-greeting[b-dyrbote7k3] {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 14px;
}

.td-chips[b-dyrbote7k3] { display: flex; gap: 10px; }

.td-chip[b-dyrbote7k3] {
    flex: 1;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-chip-n[b-dyrbote7k3] { font-size: 20px; font-weight: 700; }
.td-chip-l[b-dyrbote7k3] { font-size: 11px; color: rgba(255, 255, 255, 0.7); }

.td-search[b-dyrbote7k3] { position: relative; }

.td-search-input[b-dyrbote7k3] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ink-6, #dce2ed);
    border-radius: var(--r-md);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink-1, #1f2733);
}

.td-search-results[b-dyrbote7k3] {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.12);
    z-index: 20;
    overflow: hidden;
}

.td-search-result[b-dyrbote7k3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f6;
}

.td-search-result:last-child[b-dyrbote7k3] { border-bottom: none; }
.td-search-result:hover[b-dyrbote7k3] { background: #f7f9fb; }

.td-search-result-name[b-dyrbote7k3] { font-size: 13px; color: var(--ink-1, #1f2733); }
.td-search-result-id[b-dyrbote7k3] { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); }

.td-search-empty[b-dyrbote7k3] {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    font-size: 12px;
    color: var(--ink-4);
    padding: 4px 2px;
}

.td-section[b-dyrbote7k3] {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.14em;
    color: var(--ink-4);
    margin: 0;
}

/* Task 5 -- post-completion toast + Undo. Success-tinted (a completion IS good news), matching
   the warm/success tone vocabulary already used elsewhere (jb-timer-running uses --success on the
   Job page). Sits inline in the page flow rather than floating, since Today's layout has no fixed
   toast host and a page that already scrolls doesn't need one for a message this important to read. */
.td-toast[b-dyrbote7k3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--success-bg, #e6f7ec);
    border: 1px solid var(--success);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ink);
}

.td-undo[b-dyrbote7k3] {
    background: transparent;
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: var(--r-sm);
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    /* >= 44px tall isn't achievable at this padding without dominating the toast row, but the
       horizontal hit target is still generous for a single short word -- matches the toast's own
       compact intent rather than the card-level tap targets elsewhere on this page. */
}
.td-undo:disabled[b-dyrbote7k3] { opacity: 0.6; cursor: default; }

/* Rejected undo: same shape as the success toast, warning tone instead -- no action control, since
   a rejected undo has nothing left to retry (see OnUndoAsync's remarks). */
.td-toast-error[b-dyrbote7k3] {
    background: var(--warning-bg, #fff4e5);
    border-color: var(--warning);
    color: var(--ink);
}

.td-list[b-dyrbote7k3] { display: flex; flex-direction: column; gap: 10px; }

.td-empty[b-dyrbote7k3] { color: var(--ink-4); font-size: 14px; }

/* Job cards: this page renders the mjc-* markup directly (no MobileJobCard component --
   that component is Server-only, WASM can't reference Reliability360.Web), so the card's
   chrome styles are folded in here rather than left scoped away in MobileJobCard.razor.css. */
.mjc[b-dyrbote7k3] {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pri-medium);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    cursor: pointer;
}

.mjc-top[b-dyrbote7k3] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mjc-no[b-dyrbote7k3] {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--brand);
}

.mjc-spacer[b-dyrbote7k3] { flex: 1; }

.mjc-title[b-dyrbote7k3] {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 6px;
}

.mjc-asset[b-dyrbote7k3] {
    font-size: 12px;
    color: var(--ink-4);
    margin-top: 2px;
    font-family: var(--f-mono);
}

/* Task 8 -- WASM cold-start skeleton (see the markup comment in Today.razor for why). Pure CSS
   pulse, no JS: this is perceived-performance polish only, not a bundle-size or load-order
   optimization. .td-skeleton-hero mimics .td-hero's rough footprint; .td-skeleton-card reuses
   .mjc's own card chrome (border/radius/padding) and layers three bars inside it that mimic the
   WO number / title / asset line rows of a real .mjc card once data loads. */
.td-skeleton-hero[b-dyrbote7k3] {
    height: 104px;
    border-radius: var(--r-2xl);
    background: var(--paper-2);
    animation: td-skeleton-pulse-b-dyrbote7k3 1.4s ease-in-out infinite;
}

.td-skeleton-card[b-dyrbote7k3] {
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-skeleton-bar[b-dyrbote7k3] {
    height: 12px;
    border-radius: 6px;
    background: var(--paper-2);
    animation: td-skeleton-pulse-b-dyrbote7k3 1.4s ease-in-out infinite;
}

.td-skeleton-bar--top[b-dyrbote7k3] { width: 35%; }
.td-skeleton-bar--title[b-dyrbote7k3] { width: 80%; height: 14px; }
.td-skeleton-bar--asset[b-dyrbote7k3] { width: 55%; }

@keyframes td-skeleton-pulse-b-dyrbote7k3 {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
