/* ==========================================================================
   Jobflyte design system — extracted from the 2026-08 redesign drop.
   ==========================================================================

   WHY THIS FILE EXISTS RATHER THAN INLINE STYLES

   The designer's export carries every rule as a `style=""` attribute. Shipping
   it that way would have two costs:

   1. 196 views of inline style is unmaintainable, and a token change means
      editing every page instead of one line here.

   2. It would permanently foreclose tightening the Content Security Policy.
      `Config\ContentSecurityPolicy::$styleSrc` currently includes
      'unsafe-inline'; a nonce cannot cover a style ATTRIBUTE, so a design built
      entirely from them can never move off it. Classes can.

   The design's own visual language is preserved exactly. Only the delivery
   mechanism changed.

   TOKENS

   ink        #07211c  page background, deepest green
   forest     #0e3b32  primary text on light, primary button
   moss       #1c6a58  links, secondary accents
   lime       #d2e06e  the accent. Used for emphasis and the offset card edge
   paper      #eaf3ee  text on dark
   slate      #35564d  muted text on light
   ========================================================================== */

:root {
    --jf-ink: #07211c;
    --jf-forest: #0e3b32;
    --jf-moss: #1c6a58;
    --jf-lime: #d2e06e;
    --jf-paper: #eaf3ee;
    --jf-slate: #35564d;
    --jf-line: #dde1d6;

    /* The lime tick the design draws inside every checked box. Five checkbox
       families need it (auth, tags, row select, crew filter, job tasks) and it
       was pasted literally into each; one token means a change to the mark
       cannot land in four places and miss the fifth. */
    --jf-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.2 3.2L11 1.4' stroke='%23d2e06e' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    /* THE BRAND TYPEFACES, not the design file's.
     *
     * The export shipped with 'Open Sans' in its own <helmet>. That is the
     * design tool's default, not this product's type. assets/css/style.css has
     * always been explicit:
     *
     *     body      { font-family: Inter, serif; }
     *     h1 .. h6  { font-family: Onest, serif; }
     *
     * and @imports both at its very top. Dropping style.css from this page took
     * that @import with it, which is what made the page fall back. Both are now
     * loaded directly by the view.
     *
     * (`"Work Sans"` also appears in style.css five times but is never loaded
     * anywhere, so it has always silently rendered as plain sans-serif.) */
    --jf-font: Inter, Helvetica, Arial, sans-serif;
    --jf-display: Onest, Inter, Helvetica, Arial, sans-serif;
    --jf-radius: 14px;
    --jf-radius-lg: 26px;
}

/* ── animations ─────────────────────────────────────────────────────────── */

@keyframes jf-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

@keyframes jf-blob {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(40px, -40px, 0) scale(1.12); }
}

@keyframes jf-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Respect the user's motion preference. The design has three infinite
   animations running at once; for anyone who has asked for less motion that is
   not a stylistic choice, it is a barrier. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── page reset ─────────────────────────────────────────────────────────── */

/* The auth pages load NO bootstrap and NO legacy style.css. That is deliberate:
   `.dark-green-btn` in style.css sets `color: #d8e28c !important` and
   `text-transform: capitalize`, which repainted the design's ghost button lime
   and title-cased its label. Fighting that with specificity is a losing game
   when the other side uses !important, so those sheets are simply not loaded
   here and everything this page needs lives in this file. */

html:has(body.jf-auth-page),
body.jf-auth-page {
    margin: 0;
    padding: 0;
    background: var(--jf-ink);
    overflow-x: hidden;
    font-family: var(--jf-font);
}

/* Form controls do NOT inherit font-family from an ancestor. Browsers give
   input, button, select and textarea their own platform font, so without this
   the card's fields render in Arial while everything around them is Open Sans,
   which reads as "the webfont did not load". */
body.jf-auth-page input,
body.jf-auth-page button,
body.jf-auth-page select,
body.jf-auth-page textarea {
    font-family: var(--jf-font);
}

/* There is deliberately NO blanket `font-family: inherit` for headings here.
 *
 * An earlier version had one, and it silently broke the display face:
 * `body.jf-auth-page h2` scores 0-1-2 against `.jf-card__title`'s 0-1-0, so it
 * won, and every card title rendered in Inter instead of Onest. Confirmed by
 * measuring the computed style in a browser, not by reading the file.
 *
 * It was never needed either. `font-family` inherits by default, so the only
 * elements that require an explicit rule are the form controls above, which do
 * not. */

/* Chrome paints autofilled inputs with its own lavender background, which is
   what made the filled fields look wrong against the white card. There is no
   way to set the background directly, so the standard trick is an inset shadow
   large enough to cover the field, plus a long transition so the browser's own
   fade never shows. */
.jf-auth input:-webkit-autofill,
.jf-auth input:-webkit-autofill:hover,
.jf-auth input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--jf-forest);
    transition: background-color 100000s ease-in-out 0s;
}

.jf-auth input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(210, 224, 110, 0.5);
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(210, 224, 110, 0.5);
}

/* The class the login script toggles. It used to live in an inline <style> in
   the view; it moved here so the view carries no styling of its own. */
.hidden { display: none !important; }

/* ── the dark auth shell ────────────────────────────────────────────────── */

.jf-auth {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    font-family: var(--jf-font);
    color: var(--jf-paper);
    background: var(--jf-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.jf-auth * { box-sizing: border-box; }

.jf-auth__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.jf-auth__blob--lime {
    width: 900px; height: 900px; left: -280px; top: -340px;
    background: radial-gradient(circle at 40% 40%, rgba(210, 224, 110, 0.20), rgba(210, 224, 110, 0) 62%);
    animation: jf-blob 20s ease-in-out infinite;
}

.jf-auth__blob--moss {
    width: 820px; height: 820px; right: -260px; bottom: -320px;
    background: radial-gradient(circle at 50% 50%, rgba(28, 106, 88, 0.55), rgba(28, 106, 88, 0) 65%);
    animation: jf-blob 26s ease-in-out infinite reverse;
}

.jf-auth__grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse at 40% 45%, black, transparent 80%);
    mask-image: radial-gradient(ellipse at 40% 45%, black, transparent 80%);
}

.jf-auth__inner {
    position: relative;
    min-height: 100vh;
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 56px 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
}

.jf-auth__brand { display: flex; align-items: center; justify-content: space-between; }
.jf-auth__brand img { height: 38px; width: auto; display: block; }

.jf-auth__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 24px 0 48px;
}

/* ── the pitch column ───────────────────────────────────────────────────── */

.jf-pitch { animation: jf-rise 0.55s ease both; }

.jf-pitch__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(210, 224, 110, 0.35);
    color: var(--jf-lime);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.jf-pitch__title {
    font-family: var(--jf-display);
    font-size: 42px; line-height: 1.1; font-weight: 800;
    letter-spacing: -0.03em; margin: 26px 0 0; text-wrap: balance;
}

.jf-pitch__title em { color: var(--jf-lime); font-style: normal; }

.jf-pitch__lede {
    margin: 26px 0 0; font-size: 18px; line-height: 1.6;
    color: rgba(234, 243, 238, 0.88); max-width: 480px;
}

.jf-stats { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.jf-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px; padding: 18px 22px; min-width: 168px;
}

.jf-stat__figure { font-family: var(--jf-display); font-size: 30px; color: var(--jf-lime); }
.jf-stat__label { font-size: 13px; color: rgba(234, 243, 238, 0.8); margin-top: 4px; }

/* ── the card ───────────────────────────────────────────────────────────── */

.jf-card-wrap { position: relative; animation: jf-rise 0.55s 0.08s ease both; }

/* The lime slab behind the card. Decorative only, so it is hidden from
   assistive technology by being an empty element with no text. */
.jf-card-wrap::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--jf-radius-lg);
    background: var(--jf-lime);
    transform: translate(14px, 14px);
}

.jf-card {
    position: relative;
    background: #fff;
    color: var(--jf-forest);
    border-radius: var(--jf-radius-lg);
    padding: 38px 36px 34px;
}

.jf-card__title { font-family: var(--jf-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }

/* "Back to sign in" above the card title, per the recovery screens. */
.jf-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }

/* ── sign-up: password strength, and the phone field ────────────────────── */

/* The strength meter used bootstrap's `.progress`/`.progress-bar` plus an
   inline <style> in the view. Both are gone; the class names stay because the
   validation script writes to them.

   The design shows FOUR SEGMENTS, not one continuous bar. The script only sets
   a width (25/50/75/100%), so the segmentation is done in CSS: the track and
   the fill share the same repeating gradient, and the transparent gaps let the
   track show through wherever the fill covers them. Four widths land exactly on
   four segment boundaries. */
/* SCOPED to the meter, deliberately.
 *
 * `.progress` and `.progress-bar` are bootstrap's class names. This stylesheet
 * is about to be loaded on the shared admin layout, which 88 views include and
 * where bootstrap is still needed for the inner content. An unscoped `.progress`
 * here would silently repaint every bootstrap progress bar in the application as
 * a four-segment password meter. */
.strength-meter-wrapper { margin-top: 2px; }

.strength-meter-wrapper .progress {
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    /* 4 segments: 25% each, with a 6px gap carved out of the end of each. */
    background:
        repeating-linear-gradient(to right,
            #e4e8e0 0, #e4e8e0 calc(25% - 6px),
            transparent calc(25% - 6px), transparent 25%);
}

.strength-meter-wrapper .progress-bar {
    height: 100%;
    width: 0;
    transition: width 0.25s ease;
    background:
        repeating-linear-gradient(to right,
            currentColor 0, currentColor calc(25% - 6px),
            transparent calc(25% - 6px), transparent 25%);
    /* The gradient repeats over the FILL's own width, so it is pinned to the
       track's width instead — otherwise a 25% fill would show four tiny
       segments rather than one full one. */
    background-size: 400% 100%;
    background-repeat: no-repeat;
    color: #b3261e;
}

.jf-strength__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.jf-strength__label { font-size: 12.5px; color: var(--jf-slate); }

/* The four classes the script ACTUALLY swaps: weak, fair, good, strong. An
   earlier guess of "medium" left the bar rendering default red at 75% strength.
   `color` drives the fill, because the segment gradient uses currentColor. */
.strength-meter-wrapper .progress-bar.strength-weak   { color: #b3261e; }
.strength-meter-wrapper .progress-bar.strength-fair   { color: #c98a1b; }
.strength-meter-wrapper .progress-bar.strength-good   { color: #7a9a3b; }
.strength-meter-wrapper .progress-bar.strength-strong { color: var(--jf-moss); }

.strength-text { font-size: 12.5px; font-weight: 600; color: var(--jf-slate); }
.strength-text.text-weak   { color: #b3261e; }
.strength-text.text-fair   { color: #a8730f; }
.strength-text.text-good   { color: #5f7a2c; }
.strength-text.text-strong { color: var(--jf-moss); }

/* Two columns, as the design shows. Five items wrap 3 + 2. */
.password-requirements {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 12.5px;
    color: var(--jf-slate);
}

.password-requirements li { padding-left: 18px; position: relative; }

/* A quiet dot, not a red cross. An unmet requirement on a form the user has
   not filled in yet is not an error, and marking it as one makes a new signup
   look like a wall of failures before they have typed anything. */
.password-requirements li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #c2ccc4;
    transition: background 0.2s ease;
}

/* `.valid` is what the validation script adds as each rule is met. */
.password-requirements li.valid { color: var(--jf-moss); }
.password-requirements li.valid::before { background: var(--jf-moss); }

@media (max-width: 400px) {
    .password-requirements { grid-template-columns: 1fr; }
}

/* Carried over from the view's inline block, restyled. */
.invalid-feedback-custom { display: none; font-size: 12px; color: #b3261e; margin-top: 5px; }
.invalid-feedback-custom.show { display: block; }

.jf-field__input.is-invalid-custom { border-color: #b3261e; }
.jf-field__input.is-valid-custom { border-color: var(--jf-moss); }

/* The phone field: ONE control, with the country selector inside it.
   intl-tel-input wraps the input in an `.iti` container at runtime, so the
   BORDER moves onto that container and the input inside becomes borderless.
   The result reads as a single rounded field, which is what the design shows,
   and it survives the library rewriting the DOM underneath it. */
.jf-field--phone { position: relative; display: block; }

.jf-field--phone .iti { width: 100%; display: block; }

.jf-field--phone .iti,
.jf-field--phone .jf-field__input {
    border-radius: var(--jf-radius);
}

/* The container carries the border once the library has wrapped the input. */
.jf-field--phone .iti {
    border: 1.5px solid var(--jf-line);
    background: #fff;
    transition: 0.18s ease;
}

.jf-field--phone .iti:focus-within {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.5);
}

.jf-field--phone .iti .jf-field__input {
    border: 0;
    box-shadow: none;
    height: 52px;
    padding: 0 16px 0 52px;
    background: transparent;
    width: 100%;
}

.jf-field--phone .iti .jf-field__input:focus {
    box-shadow: none;
    border: 0;
}

/* The library's own flag button, aligned to the field's height. */
.jf-field--phone .iti__flag-container { border-radius: var(--jf-radius) 0 0 var(--jf-radius); }
.jf-field--phone .iti__selected-flag { padding: 0 8px 0 12px; border-radius: inherit; }
.jf-field--phone .iti__selected-flag:hover,
.jf-field--phone .iti__selected-flag:focus { background: #f4f6f1; }

/* Before the library initialises, the bare input still needs to look right. */
.jf-field--phone > .jf-field__input { height: 54px; }

/* ── the six-box code field ─────────────────────────────────────────────── */

.jf-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.jf-code__box {
    width: 100%;
    height: 56px;
    padding: 0;
    text-align: center;
    font-family: var(--jf-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--jf-forest);
    border: 1.5px solid var(--jf-line);
    border-radius: var(--jf-radius);
    background: #fff;
    outline: none;
    transition: 0.18s ease;
    /* A numeric keypad on mobile, and no spin buttons. */
    -moz-appearance: textfield;
}

.jf-code__box:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.5);
}

/* A filled box reads as done without needing a tick. */
.jf-code__box:not(:placeholder-shown),
.jf-code__box[value]:not([value=""]) { border-color: var(--jf-moss); }

.jf-resend-icon {
    width: 14px; height: 14px; margin-left: 8px;
    border: 2px solid currentColor; border-top-color: transparent;
    border-radius: 50%; display: inline-block;
    opacity: 0;
}

.jf-resend-icon.is-spinning { opacity: 1; animation: jf-spin 0.8s linear infinite; }

@keyframes jf-spin { to { transform: rotate(360deg); } }

/* The resend control is an <a>, so it needs the button box like the other one. */
#resendOtpBtn { margin-top: 12px; }
#resendOtpBtn.disabled { opacity: 0.55; cursor: default; }

@media (max-width: 400px) {
    .jf-code { gap: 6px; }
    .jf-code__box { height: 48px; font-size: 19px; }
}
.jf-card__sub { margin: 8px 0 0; color: var(--jf-slate); font-size: 14.5px; }

/* ── fields, with the floating label ────────────────────────────────────── */

.jf-form { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

.jf-field { position: relative; display: block; }

.jf-field__input {
    width: 100%; height: 54px;
    padding: 19px 52px 5px 16px;
    border-radius: var(--jf-radius);
    border: 1.5px solid var(--jf-line);
    background: #fff;
    font-family: var(--jf-font); font-size: 15px; color: var(--jf-forest);
    outline: none; transition: 0.18s ease;
}

.jf-field__input::placeholder { color: transparent; }

.jf-field__input:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.5);
}

.jf-field__label {
    position: absolute; left: 16px; pointer-events: none;
    transition: 0.16s ease;
    color: #4d6b62; font-size: 15px;
    top: 50%; transform: translateY(-50%);
}

/* The label rises when the field is focused OR already has a value.
   :placeholder-shown is what makes "has a value" work in CSS alone — the
   design drove it from component state, which a server-rendered page has no
   equivalent for. This is why every input keeps a placeholder even though it
   renders transparent. */
.jf-field__input:focus + .jf-field__label,
.jf-field__input:not(:placeholder-shown) + .jf-field__label,
.jf-field__input:-webkit-autofill + .jf-field__label {
    top: 9px; transform: none;
    font-size: 11.5px; letter-spacing: 0.04em;
    color: var(--jf-slate);
}

/* The :-webkit-autofill selector above is not decoration.
 *
 * While Chrome is PREVIEWING a saved credential the input's DOM value is still
 * "", so :placeholder-shown remains true and the label stays centred, while the
 * browser paints the suggested text over it. The two then overlap and the field
 * looks broken. :-webkit-autofill is the only signal available for that state.
 *
 * It has to be its own rule: an unknown pseudo-class invalidates the entire
 * selector list in some engines, which would take the two working selectors
 * down with it. */

.jf-field__reveal {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    height: 36px; padding: 0 12px;
    border: 0; background: transparent; border-radius: 10px;
    cursor: pointer; color: var(--jf-slate);
    font-size: 13px; font-family: var(--jf-font);
    display: flex; align-items: center;
}

.jf-field__reveal:hover { background: #eef0e8; color: var(--jf-forest); }

/* 13.5px, not the export's 14px. Inter runs wider than the Open Sans the design
   file used, so at 14px this note wrapped onto a second line and made the card
   taller than the mock.

   `margin-bottom: 0` matters: this is a <p>, and the browser's default bottom
   margin was stacking on top of the form's flex gap. */
.jf-note {
    font-size: 13.5px;
    color: var(--jf-slate);
    background: #f2f4ea;
    border-radius: var(--jf-radius);
    padding: 15px 16px;
    line-height: 1.45;
    margin-bottom: 0;
}

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

/* The form is a flex column with `gap: 12px`, so any margin on a direct child
   ADDS to that gap. The export had no gap and used margins; keeping both made
   every row sit further apart than the design. The gap wins, margins go. */
.jf-form > .jf-row,
.jf-form > .jf-btn,
.jf-form > .jf-note { margin-top: 0; }

.jf-check {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-size: 14px; color: #224037; position: relative;
}

.jf-check input {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; border-radius: 6px;
    border: 1.5px solid #c3ccc0; background: #fff; cursor: pointer; margin: 0;
}

.jf-check input:checked {
    background: var(--jf-forest) no-repeat center / 10px 8px;
    border-color: var(--jf-forest);
    background-image: var(--jf-tick);
}

.jf-check input:focus-visible { box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.5); }

.jf-link { font-size: 14px; color: var(--jf-moss); font-weight: 500; text-decoration: none; }
.jf-link:hover { color: var(--jf-forest); }

/* ── buttons ────────────────────────────────────────────────────────────── */

.jf-btn {
    height: 52px; border: 0; border-radius: var(--jf-radius);
    background: var(--jf-forest); color: var(--jf-paper);
    font-family: var(--jf-font); font-size: 16px; font-weight: 700;
    cursor: pointer; transition: 0.18s ease;
    box-shadow: 0 8px 20px rgba(14, 59, 50, 0.18);
    margin-top: 6px; width: 100%;
}

.jf-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(14, 59, 50, 0.24);
}

.jf-btn:disabled { background: #c3ccc0; cursor: default; box-shadow: none; }

.jf-btn--ghost {
    height: 48px; border: 1.5px solid var(--jf-line);
    background: #fff; color: var(--jf-forest);
    font-size: 14.5px; font-weight: 500; box-shadow: none;
}

.jf-btn--ghost:hover:not(:disabled) {
    border-color: var(--jf-forest); background: #fbfcf9;
    transform: none; box-shadow: none;
}

/* `#backToPasswordLogin` is an <a>, not a <button>, because that is what the
   login script binds to. An anchor is not centred or sized like a button, so
   it needs these to match its counterpart on the password side. */
a.jf-btn {
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-sizing: border-box;
}

.jf-foot { margin: 22px 0 0; font-size: 14.5px; color: var(--jf-slate); text-align: center; }
.jf-foot a { color: var(--jf-forest); font-weight: 700; text-decoration: none; }

/* An empty element the login script toggles by id. The design has no divider
   between the two buttons, so this only reproduces the gap the form's own
   flex layout would have given. */
.jf-spacer { height: 12px; }

/* The ghost button sits outside the <form> in the markup (the script toggles
   its wrapper), so it does not inherit the form's flex gap. */
#otpTriggerSection .jf-btn { margin-top: 0; }

/* ── the trades marquee ─────────────────────────────────────────────────── */

.jf-marquee {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.jf-marquee__track {
    display: flex; gap: 44px; width: max-content;
    animation: jf-marquee 34s linear infinite;
    font-size: 15px; letter-spacing: 0.14em;
    color: rgba(234, 243, 238, 0.62); text-transform: uppercase;
}

/* ── messages ───────────────────────────────────────────────────────────── */

.jf-msg { margin: 16px 0 0; font-size: 14px; text-align: center; min-height: 20px; }
.jf-msg--error { color: #b3261e; }
.jf-msg--ok { color: var(--jf-moss); }

/* #formMessage is empty until the OTP flow reports something, but it still
   reserved a 20px line plus a 16px margin, which pushed "New to Jobflyte?"
   about 36px further down than the design. Collapse it while it has no text;
   it takes its space back the moment the script writes into it, so nothing
   jumps for the wrong reason. */
.jf-msg:empty { margin: 0; min-height: 0; }

/* The client-side password hint. These two rules used to live in an inline
   <style> in the login view; deleting that block left the element with no
   `display` rule at all, so "Password must be at least 8 characters" showed
   permanently, including on a filled field. The script toggles `.show`. */
.invalid-feedback-custom { display: none; margin: 2px 0 0; min-height: 0; }
.invalid-feedback-custom.show { display: block; }

.jf-alert {
    border-radius: var(--jf-radius); padding: 12px 16px;
    font-size: 14px; line-height: 1.5; margin-bottom: 18px;
}

.jf-alert--error { background: #fdecea; color: #8c1d18; }
.jf-alert--ok { background: #eaf5ef; color: #14532d; }

/* render_flash() emits bootstrap's `alert alert-<type> alert-dismissible`
   markup, and bootstrap is deliberately not loaded on these pages. Styled here
   so a flash message still reads correctly inside the white card, rather than
   arriving as unstyled black text. */
.jf-card .alert {
    border-radius: var(--jf-radius);
    padding: 12px 44px 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    margin: 18px 0 0;
    position: relative;
}

.jf-card .alert-danger,
.jf-card .alert-warning { background: #fdecea; color: #8c1d18; }
.jf-card .alert-success { background: #eaf5ef; color: #14532d; }
.jf-card .alert-info { background: #eef2fb; color: #1e3a5f; }

.jf-card .alert .close,
.jf-card .alert .btn-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 4px 10px;
}

.jf-card .alert .close:hover { opacity: 1; }

/* Visually hidden, still announced. Used for the honeypot label and for
   status text that must reach a screen reader without occupying layout. */
.jf-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.jf-hidden { display: none !important; }

/* ── responsive ─────────────────────────────────────────────────────────── */

/* Tablet and below: one column, and the CARD comes first.
   Someone who opened /login came to sign in, not to read the pitch. */
@media (max-width: 980px) {
    .jf-auth__inner { padding: 28px 20px 0; gap: 16px; }
    .jf-auth__split { grid-template-columns: 1fr; gap: 36px; padding: 8px 0 32px; }
    .jf-pitch { order: 2; }
    .jf-card-wrap { order: 1; }
    .jf-pitch__title { font-size: 32px; }
    .jf-pitch__lede { font-size: 16px; max-width: none; }
    .jf-card { padding: 28px 22px 26px; }
    .jf-card-wrap::before { transform: translate(8px, 8px); }
}

@media (max-width: 640px) {
    .jf-auth__inner { padding: 20px 16px 0; }
    .jf-auth__brand img { height: 30px; }
    .jf-pitch__title { font-size: 27px; }
    .jf-card { padding: 24px 18px 22px; }
    .jf-card__title { font-size: 25px; }

    /* The two blobs are 900px and 820px circles animating on an infinite loop.
       On a phone they are mostly off-screen anyway, and dropping them removes
       two continuous compositing layers from the weakest hardware. */
    .jf-auth__blob--lime,
    .jf-auth__blob--moss { display: none; }

    .jf-marquee__track { gap: 28px; font-size: 13px; }
}

@media (max-width: 400px) {
    .jf-pitch__title { font-size: 24px; }
    .jf-card { padding: 20px 15px 18px; }
    .jf-card-wrap::before { transform: translate(5px, 5px); }

    /* Decorative marketing figures. At this width they crowd out the form,
       which is the only thing on the page anybody needs. */
    .jf-stats { display: none; }
}

/* Touch devices. Two separate problems, both invisible on a desktop. */
@media (hover: none) and (pointer: coarse) {

    /* iOS Safari ZOOMS the page when a focused input's text is under 16px, and
       it does not zoom back out afterwards. The design's 15px would trigger it
       on every field. */
    .jf-field__input { font-size: 16px; }

    /* Tap targets. Measured on a 375px viewport, these were 18x18 (the
       checkbox), 120x17 ("Forgot password?") and 37x36 (the reveal toggle) —
       all well under the 44px minimum, and all of them things a person taps
       with a thumb while holding a phone.

       The visual size is unchanged; only the hit area grows. The row gets
       taller, which is the correct trade on a touch screen. */
    .jf-check { min-height: 44px; }

    /* EVERY .jf-link, not just the ones in a row. The first version scoped this
       to `.jf-row .jf-link` and the "Back to sign in" link on the recovery
       screens sits outside a row, so it stayed 17px tall. Scope the rule to the
       component, not to where it happens to appear.

       `.jf-foot a` is the same problem in the other direction: "Sign in" and
       "Create an account" are plain anchors inside a sentence, so they never
       carried the class at all. Measured at 48x17. */
    .jf-link,
    .jf-foot a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .jf-field__reveal {
        min-width: 44px;
        height: 44px;
        justify-content: center;
    }
}

/* 100vh on a phone means the viewport WITHOUT the browser chrome, so the layout
   is taller than the visible area and the page scrolls by the height of the
   toolbar. dvh tracks the chrome as it hides and shows. Declared after the vh
   rules so browsers that do not know it keep the fallback. */
@supports (min-height: 100dvh) {
    .jf-auth,
    .jf-auth__inner { min-height: 100dvh; }
}

/* ==========================================================================
   THE ADMIN SHELL — sidebar and topbar, from the 2026-08 Dashboard design.
   ==========================================================================

   RESTYLED IN PLACE, NOT REWRITTEN.

   The existing sidebar markup is role-conditional: a company admin, a
   superadmin and a technician each get a different set of items, several of
   them behind permission checks, spread over ~170 lines of PHP. Rewriting that
   to match a mock would risk every one of those branches across the 88 views
   that include this layout, and would produce the same pixels.

   So these rules target the theme's OWN class names — `.left.side-menu`,
   `#sidebar-menu`, `.topbar`, `.menu-title`, `.has_sub` — and repaint them.
   Every href, every role condition and every permission check is untouched.

   Scoped to `body.fixed-left`, which the admin layout sets and the auth pages
   do not, so none of it can leak onto the login screen.
   ========================================================================== */

body.fixed-left {
    font-family: var(--jf-font);
    background: #f7f8f5;
}

/* ── topbar ─────────────────────────────────────────────────────────────── */

body.fixed-left .topbar {
    background: var(--jf-forest);
    box-shadow: none;
    border: 0;
}

body.fixed-left .topbar .navbar-custom {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.fixed-left .topbar .companyname {
    color: var(--jf-lime);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* Icon buttons in the bar: the design gives them a soft translucent chip
   rather than the theme's bare icon. */
body.fixed-left .topbar .nav-link,
body.fixed-left .topbar .noti-icon {
    color: var(--jf-paper);
}

body.fixed-left .topbar .notification-list > .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s ease;
}

body.fixed-left .topbar .notification-list > .nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

body.fixed-left .topbar .jf-iconbtn > svg {
    width: 17px;
    height: 17px;
    display: block;
}

/* The unread badge. It hangs off the button's top-right corner, so the button
   itself has to be the positioning context. */
body.fixed-left .topbar .notification-list > .nav-link { position: relative; }

body.fixed-left .jf-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--jf-ink);
    color: var(--jf-lime);
    font-family: var(--jf-font);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    /* Against the forest bar a bare dark chip reads as a smudge; the ring is
       what separates it from the button underneath. */
    box-shadow: 0 0 0 2px var(--jf-forest);
}

/* The profile disc. The design shows initials on lime, not a photograph. */
body.fixed-left .topbar .nav-user { padding: 0; }

body.fixed-left .jf-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--jf-lime);
    color: var(--jf-forest);
    font-family: var(--jf-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    /* Two initials in a 30px disc have no room for the theme's line-height. */
    line-height: 1;
    overflow: hidden;
}

body.fixed-left .jf-avatar--photo { object-fit: cover; background: transparent; }

/* The bar's right-hand controls.
 *
 * Three separate things were pushing the avatar ~40px in from the edge and
 * leaving the dropdown misaligned under it:
 *
 *   1. The <li> is `list-inline-item`, i.e. inline-block, so the newlines
 *      around its <a> rendered as real spaces and made it 45px wide around a
 *      30px button. The panel anchors to the <li>, so it inherited the error.
 *      inline-flex discards whitespace-only runs between items.
 *   2. A second, EMPTY .list-inline and a .clearfix trail the real one; both
 *      are zero-width but still take part in layout.
 *   3. The bar was padded 18px, not the design's 22px. */
body.fixed-left .topbar .notification-list { display: inline-flex; }

body.fixed-left .topbar .navbar-custom > ul.list-inline:empty,
body.fixed-left .topbar .navbar-custom > .clearfix { display: none; }

body.fixed-left .topbar .navbar-custom { padding-right: 22px; }

/* The theme gives .nav-user a 15px right margin, which made the <li> 45px wide
   around a 30px button. The dropdown anchors to the <li>, so the panel sat 15px
   right of the avatar it belongs to. */
body.fixed-left .topbar .nav-user { margin: 0; }

/* ── the profile menu ───────────────────────────────────────────────────── */

/* panel(open, 268) in the design: a 268px card, 40px below the button, with a
   long soft shadow. Bootstrap's .dropdown-menu supplies the open/close
   behaviour, so only the skin is replaced here.

   `right: 0` undoes style.css's `.profile-dropdown { right: -135px !important }`,
   which hung the panel off the right edge of the window. That rule is
   !important, so this one has to be too. */
body.fixed-left .profile-dropdown.jf-menu {
    right: 0 !important;
    left: auto !important;
    width: 268px;
    min-width: 268px;
    margin-top: 6px;
    padding: 0;
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(14, 59, 50, 0.45);
    overflow: hidden;
    color: var(--jf-forest);
    text-align: left;
    font-family: var(--jf-font);
}

body.fixed-left .jf-menu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e6eae2;
}

body.fixed-left .jf-menu__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--jf-lime);
    color: var(--jf-forest);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    flex: none;
    object-fit: cover;
}

/* min-width:0 is what lets the email actually ellipsis inside a flex row. */
body.fixed-left .jf-menu__who { min-width: 0; }

body.fixed-left .jf-menu__name { font-size: 14.5px; font-weight: 700; }

body.fixed-left .jf-menu__mail {
    font-size: 13px;
    color: var(--jf-slate);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-menu__items { padding: 8px; }

body.fixed-left .jf-menu__item {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1b3b33;
    transition: background 0.15s ease;
}

body.fixed-left .jf-menu__item:hover {
    background: #f1f4ee;
    color: var(--jf-forest);
    text-decoration: none;
}

/* Same artwork as the sidebar, one size down — the design draws these at 17px
   against the nav's 18px. Sized by context so jf_nav_icon() takes no argument
   that could reach its output. */
body.fixed-left .jf-menu__item .jf-nav-ico { width: 17px; height: 17px; }

/* ── sidebar ────────────────────────────────────────────────────────────── */

body.fixed-left .left.side-menu {
    background: #fff;
    border-right: 1px solid #dfe4dc;
    box-shadow: none;
}

body.fixed-left .left.side-menu .topbar-left {
    background: var(--jf-forest);
    border: 0;
}

body.fixed-left #sidebar-menu { padding: 16px 10px; }

body.fixed-left #sidebar-menu > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 9px;
    margin-bottom: 1px;
    border-radius: 10px;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 500;
    color: #1b3b33;
    transition: background 0.15s ease, color 0.15s ease;
}

body.fixed-left #sidebar-menu > ul > li > a:hover {
    background: #f1f4ee;
    color: var(--jf-forest);
}

/* The active item. The theme marks it with `.active` on the <li>; some pages
   also set it on the anchor, so both are covered. */
body.fixed-left #sidebar-menu > ul > li.active > a,
body.fixed-left #sidebar-menu > ul > li > a.active {
    background: #e8efdc;
    color: var(--jf-forest);
    font-weight: 700;
}

body.fixed-left #sidebar-menu > ul > li > a i {
    width: 18px;
    font-size: 15px;
    text-align: center;
    flex: none;
    color: inherit;
}

/* The nav icons are the design's own 24x24 stroked paths, emitted by
   jf_nav_icon(). `stroke: currentColor` is what makes them follow the row:
   they darken and thicken with the active state for free, which an icon font
   could only imitate by swapping glyphs. */
body.fixed-left #sidebar-menu .jf-nav-ico {
    width: 18px;
    height: 18px;
    flex: none;
    display: block;
}

/* The active row is heavier, and the icon has to gain the same weight or it
   looks like it belongs to the row above. */
body.fixed-left #sidebar-menu > ul > li.active > a .jf-nav-ico,
body.fixed-left #sidebar-menu > ul > li > a.active .jf-nav-ico { stroke-width: 2; }

/* Group titles. These were EMPTY <li> dividers rendering as bare hairlines;
   each now carries the label for the group it precedes, which is what gives the
   design's grouped sidebar. The empty rule is kept for any that are still bare. */
/* The two `!important` declarations below are the only ones in this file, and
   they are answering `!important` rather than starting it:

       style.css   .menu-title { padding: 12px 25px !important }
       custom.css  .menu-title { background: #eff3f6; padding: 1px !important }

   Specificity cannot beat `!important` at all, so a 0-3-1 selector still lost
   to those 0-1-0 ones. The `background` half of the custom.css rule is NOT
   important, so it is beaten normally — but it had to be beaten explicitly,
   because "declare nothing" left its grey band painted behind every group
   label, which the design does not have. */
body.fixed-left #sidebar-menu .menu-title {
    padding: 11px 10px 5px !important;
    background: transparent;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #55706a;
    line-height: 1.2;
}

/* The design wraps each group in its own block with a hairline underneath it.
   This nav is a flat <ul> whose groups are marked by title rows rather than
   nested, and it is role-conditional across 88 views, so the separator rides
   on the NEXT group's title instead. Same hairline, no restructuring:
   12px below the last item, then the rule, then 15px to the label — which is
   the design's 12px padding + 4px margin + 11px title padding. */
body.fixed-left #sidebar-menu .menu-title:not(:first-child) {
    margin-top: 12px;
    padding-top: 15px !important;
    border-top: 1px solid #eef1ea;
}

/* A divider with no label still needs to read as a separator. */
body.fixed-left #sidebar-menu .menu-title:empty {
    border-top: 1px solid #eef1ea;
    margin: 10px 4px;
    padding: 0;
    height: 0;
}

/* The design closes the last group with a rule too. Here the only thing below
   it is Sign Out, so that trailing hairline lands where it should anyway. */
body.fixed-left #sidebar-menu > ul > li:last-child > a[href$="logout"] {
    margin-top: 12px;
    padding-top: 3px;
    border-top: 1px solid #eef1ea;
    border-radius: 0 0 10px 10px;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

body.fixed-left .footer {
    background: transparent;
    border-top: 1px solid #e6eae2;
    color: #6f857c;
    font-size: 12.5px;
    padding: 16px 26px;
    text-align: center;
}

/* Submenus: indented with a hairline, per the design. */
body.fixed-left #sidebar-menu .has_sub .list-unstyled {
    margin: 2px 0 6px 20px;
    padding-left: 10px;
    border-left: 1px solid #e6eae2;
}

body.fixed-left #sidebar-menu .has_sub .list-unstyled a {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--jf-slate);
    transition: background 0.15s ease, color 0.15s ease;
}

body.fixed-left #sidebar-menu .has_sub .list-unstyled a:hover {
    background: #f1f4ee;
    color: var(--jf-forest);
}

body.fixed-left #sidebar-menu .has_sub > a .mdi-chevron-right {
    transition: transform 0.15s ease;
    color: #6f857c;
}

body.fixed-left #sidebar-menu .has_sub.active > a .mdi-chevron-right,
body.fixed-left #sidebar-menu .has_sub > a[aria-expanded="true"] .mdi-chevron-right {
    transform: rotate(90deg);
}

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

body.fixed-left .content-page,
body.fixed-left .content-page > .content {
    background: #f7f8f5;
}

/* The theme's page headings, on the design's type. */
body.fixed-left .content h1,
body.fixed-left .content h2,
body.fixed-left .content h3,
body.fixed-left .content h4 {
    font-family: var(--jf-display);
    color: var(--jf-forest);
    letter-spacing: -0.02em;
}

/* Cards: the design's softer corner and hairline, without touching bootstrap's
   layout behaviour. Only the skin changes. */
body.fixed-left .content .card {
    border: 1px solid #e6eae2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(14, 59, 50, 0.04);
}

/* The primary action, in brand colours rather than bootstrap blue. */
body.fixed-left .content .btn-primary {
    background-color: var(--jf-forest);
    border-color: var(--jf-forest);
}

body.fixed-left .content .btn-primary:hover,
body.fixed-left .content .btn-primary:focus {
    background-color: #0a2e27;
    border-color: #0a2e27;
}

/* The impersonation banner is fixed to the top of the viewport, so the shell
   has to start below it rather than underneath it. `body { padding-top }` in
   the banner's own styles handles the auth pages; the admin shell positions
   its bars absolutely, so they need shifting too. */
body.fixed-left:has(.jf-impersonation-banner) .topbar,
body.fixed-left:has(.jf-impersonation-banner) .left.side-menu {
    margin-top: 2.6rem;
}

/* ── shell geometry, to the design's measurements ───────────────────────── */

/* The design is a 48px bar and a 178px sidebar. The theme ships 67px and 240px,
   and the numbers are spread across `.topbar`, `.topbar-left`, `.side-menu` and
   `.content-page`, so all four move together or the layout tears. */

body.fixed-left .topbar,
body.fixed-left .topbar .navbar-custom,
body.fixed-left .left.side-menu .topbar-left {
    height: 48px;
    min-height: 48px;
    line-height: normal;
}

body.fixed-left .topbar .navbar-custom {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px 0 0;
    margin: 0;
}

body.fixed-left .left.side-menu,
body.fixed-left .left.side-menu .topbar-left {
    width: 178px;
}

body.fixed-left .content-page { margin-left: 178px; }
/* The bar is full-bleed in the design, but the theme nests it inside
   `.content`, which is padded 15px on the sides and 20px on top. So the bar was
   inset at both ends AND pushed 20px down, leaving a light strip above it while
   the brand block beside it — which lives in the sidebar, not in .content —
   sat flush at the top. Negative margins pull it back out on all three sides.

   (`left` is not the lever: .topbar is position:static here, so a `left`
   declaration on it does nothing at all.) */
body.fixed-left .topbar {
    margin-top: -20px;
    margin-left: -15px;
    margin-right: -15px;
}

/* The brand block. In the design this is a ROW — the stacked mark and tenant
   name, then the collapse toggle immediately beside them, 14px apart. It was
   previously a column with the toggle living at the head of .topbar, which
   starts at the sidebar's full 178px and so left a dead strip of dark bar
   between the tenant name and the button. */
body.fixed-left .left.side-menu .topbar-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    /* The design's bar is padded 22px from the viewport edge. */
    padding: 0 22px;
    text-align: left;
}

/* The mark and the tenant name, stacked. */
body.fixed-left .jf-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

body.fixed-left .topbar-left .logo { display: block; line-height: 0; }
body.fixed-left .topbar-left .logo-large { height: 13px; width: auto; display: block; }

body.fixed-left .jf-tenant-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--jf-lime);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── collapse toggle ────────────────────────────────────────────────────── */

/* The theme's own `.button-menu-mobile` is display:none above 768px, and its
   `.enlarged` state HIDES the sidebar rather than collapsing it. This is a
   separate control that drives the same class, with the rail behaviour the
   design shows, so the mobile button keeps working untouched. */
body.fixed-left .jf-collapse {
    width: 30px;
    height: 30px;
    flex: none;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--jf-paper);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.15s ease;
}

body.fixed-left .jf-collapse:hover { background: rgba(255, 255, 255, 0.16); }

body.fixed-left .jf-collapse > svg { width: 18px; height: 18px; display: block; }

/* ── the collapsed rail ─────────────────────────────────────────────────── */

body.fixed-left.jf-rail .left.side-menu,
body.fixed-left.jf-rail .left.side-menu .topbar-left { width: 58px; }
body.fixed-left.jf-rail .content-page { margin-left: 58px; }
body.fixed-left.jf-rail .topbar { left: 58px; }

/* Labels, group titles and submenu chevrons go; icons stay centred. */
body.fixed-left.jf-rail #sidebar-menu > ul > li > a > span:not(.float-right),
body.fixed-left.jf-rail #sidebar-menu .menu-title,
body.fixed-left.jf-rail #sidebar-menu .float-right,
body.fixed-left.jf-rail #sidebar-menu .list-unstyled,
body.fixed-left.jf-rail .jf-tenant-name {
    display: none !important;
}

body.fixed-left.jf-rail #sidebar-menu > ul > li > a {
    justify-content: center;
    padding: 0;
}

body.fixed-left.jf-rail .topbar-left { align-items: center; padding: 0; }

/* The design shows the label as a tooltip when the rail is collapsed. */
body.fixed-left.jf-rail #sidebar-menu > ul > li { position: relative; }

body.fixed-left.jf-rail #sidebar-menu > ul > li > a::after {
    content: attr(data-label);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 10px 22px -12px rgba(14, 59, 50, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease;
    z-index: 60;
}

body.fixed-left.jf-rail #sidebar-menu > ul > li > a:hover::after { opacity: 1; }

/* ── global search ──────────────────────────────────────────────────────── */

/* The design's flexible gap between the collapse button and the search. It
   absorbs the free space, which is what drives the search and the right-hand
   controls over to the far side of the bar. */
body.fixed-left .jf-topbar-gap { flex: 1; }

body.fixed-left .jf-search {
    position: relative;
    flex: 1;
    max-width: 380px;
    margin: 0;
}

body.fixed-left .jf-search__icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    /* `stroke="currentColor"` on the SVG, so `color` still drives it. */
    color: rgba(234, 243, 238, 0.7);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

body.fixed-left .jf-search__input {
    width: 100%;
    height: 32px;
    padding: 0 12px 0 34px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--jf-font);
    font-size: 13px;
    color: var(--jf-paper);
    outline: none;
}

body.fixed-left .jf-search__input::placeholder { color: rgba(234, 243, 238, 0.6); }

body.fixed-left .jf-search__input:focus {
    border-color: rgba(210, 224, 110, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

/* The bar's right-hand controls sit after the search, not floated. */
body.fixed-left .topbar .navbar-custom > ul.float-right {
    float: none !important;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Moved into a desktop-only media query at the end of this file. It used to
   be unconditional, which removed the ONLY control that opens the sidebar on a
   phone. See "The admin shell on a phone". */

@media (max-width: 768px) {
    body.fixed-left .jf-search { display: none; }
    body.fixed-left .topbar { left: 0; }
    body.fixed-left .content-page { margin-left: 0; }
}

/* ==========================================================================
   The company dashboard
   ==========================================================================

   Values are the design's own: cards are #fff on a 1px #e2e7de border at 15px
   (stat) or 16px (panel) radius, muted text is #46655c, and the body is a
   `1fr 340px` grid that collapses to one column on narrow screens.

   Everything is namespaced `jf-dash*` / `jf-card2` etc. The page still loads
   bootstrap for the other 87 views, so an unnamespaced `.card` or `.stat` here
   would repaint all of them.
   ========================================================================== */

body.fixed-left .jf-dash {
    font-family: var(--jf-font);
    color: var(--jf-forest);
    padding-bottom: 28px;
}

body.fixed-left .jf-dash * { box-sizing: border-box; }

/* ── page head ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-dash__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin: 22px 0 16px;
}

body.fixed-left .jf-dash__greeting {
    font-family: var(--jf-display);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

body.fixed-left .jf-dash__sub {
    font-size: 13.5px;
    color: #46655c;
    margin: 5px 0 0;
}


/* ── cards ──────────────────────────────────────────────────────────────── */

body.fixed-left .jf-card2 {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    padding: 18px 20px;
}

body.fixed-left .jf-card2__title {
    font-family: var(--jf-font);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

body.fixed-left .jf-card2__meta { font-size: 12.5px; color: #46655c; }

body.fixed-left .jf-card2__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ── the four stat cards ────────────────────────────────────────────────── */

body.fixed-left .jf-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body.fixed-left .jf-kpi {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 15px;
    padding: 15px 17px;
}

body.fixed-left .jf-kpi__label {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #46655c;
    font-weight: 700;
    text-transform: uppercase;
}

body.fixed-left .jf-kpi__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 7px;
}

body.fixed-left .jf-kpi__value {
    font-family: var(--jf-display);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

body.fixed-left .jf-kpi__delta {
    font-size: 12.5px;
    font-weight: 700;
    color: #2f7d5c;
}

body.fixed-left .jf-kpi__delta.is-down { color: #b4573a; }

body.fixed-left .jf-kpi__note { font-size: 12px; color: #46655c; margin-top: 8px; }

/* The sparkline. Bar heights are the one thing that genuinely varies per row,
   so they are the only inline style on this page. */
body.fixed-left .jf-spark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 34px;
    margin-top: 10px;
}

body.fixed-left .jf-spark span {
    flex: 1;
    border-radius: 3px;
    background: var(--jf-forest);
    min-height: 3px;
}

body.fixed-left .jf-spark span:nth-child(even) { background: #9fc06a; }

/* ── the two-column body ────────────────────────────────────────────────── */

body.fixed-left .jf-dash__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

body.fixed-left .jf-dash__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ── revenue chart ──────────────────────────────────────────────────────── */

body.fixed-left .jf-legend { display: flex; gap: 16px; font-size: 12.5px; font-weight: 600; color: #46655c; }
body.fixed-left .jf-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

body.fixed-left .jf-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 18px;
    overflow-x: auto;
}

body.fixed-left .jf-chart__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex: 1;
    min-width: 44px;
}

body.fixed-left .jf-chart__value { font-size: 11.5px; font-weight: 700; color: #17332c; }
body.fixed-left .jf-chart__month { font-size: 11.5px; font-weight: 600; color: #46655c; }

body.fixed-left .jf-chart__bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 130px;
}

body.fixed-left .jf-chart__bars span { width: 12px; border-radius: 4px 4px 0 0; min-height: 3px; }
body.fixed-left .jf-chart__bars .is-invoiced { background: var(--jf-forest); }
body.fixed-left .jf-chart__bars .is-collected { background: #c3d977; }

/* ── needs attention ────────────────────────────────────────────────────── */

body.fixed-left .jf-att { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

body.fixed-left .jf-att__row {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #e6eae2;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
}

body.fixed-left .jf-att__row.is-urgent { border-color: #f0dcd6; background: #fdf6f3; }

body.fixed-left .jf-att__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    flex: none;
    background: #eef1ea;
    color: #33544b;
}

body.fixed-left .jf-att__row.is-urgent .jf-att__badge { background: #f6e2db; color: #a1432f; }

body.fixed-left .jf-att__body { min-width: 0; flex: 1; }
body.fixed-left .jf-att__title { font-size: 14px; font-weight: 600; }
body.fixed-left .jf-att__detail { font-size: 12.5px; color: var(--jf-slate); margin-top: 2px; }

body.fixed-left .jf-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #dfe4dc;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--jf-forest);
    flex: none;
    transition: background 0.15s ease;
}

body.fixed-left .jf-btn-ghost:hover { background: #f1f4ee; text-decoration: none; color: var(--jf-forest); }

/* ── pipeline ───────────────────────────────────────────────────────────── */

body.fixed-left .jf-pipe {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

body.fixed-left .jf-pipe__cell {
    display: block;
    border: 1px solid #e6eae2;
    border-radius: 12px;
    padding: 13px 14px;
    transition: background 0.15s ease;
}

body.fixed-left .jf-pipe__cell:hover { background: #f7faf3; text-decoration: none; }
body.fixed-left .jf-pipe__label { font-size: 11px; letter-spacing: 0.1em; font-weight: 700; color: #55706a; text-transform: uppercase; }
body.fixed-left .jf-pipe__count { font-family: var(--jf-display); font-size: 22px; font-weight: 800; color: var(--jf-forest); margin-top: 5px; line-height: 1.1; }
body.fixed-left .jf-pipe__value { font-size: 12.5px; color: var(--jf-slate); margin-top: 3px; }

/* ── today's schedule ───────────────────────────────────────────────────── */

body.fixed-left .jf-sched { display: flex; flex-direction: column; margin-top: 6px; }

body.fixed-left .jf-sched__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2ec;
}

body.fixed-left .jf-sched__row:last-child { border-bottom: 0; }
body.fixed-left .jf-sched__time { font-size: 12.5px; font-weight: 700; color: var(--jf-forest); width: 74px; flex: none; }
body.fixed-left .jf-sched__body { min-width: 0; flex: 1; }
body.fixed-left .jf-sched__title { font-size: 14px; font-weight: 600; }
body.fixed-left .jf-sched__who { font-size: 12.5px; color: var(--jf-slate); margin-top: 2px; }

body.fixed-left .jf-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    flex: none;
    background: #eef1ea;
    color: #33544b;
}

body.fixed-left .jf-pill.is-completed { background: #e8efdc; color: #2f6b4f; }
body.fixed-left .jf-pill.is-in_progress { background: #fdf1e3; color: #a3652b; }

/* Expense approval, ticket P3-02. Three states and three readings: approved
   borrows the completed green, pending the in-progress amber, and rejected is
   the only one that needs a colour of its own - it is the one state that
   changes a number, because a rejected expense stops counting toward job cost. */
body.fixed-left .jf-pill.is-approved { background: #e8efdc; color: #2f6b4f; }
body.fixed-left .jf-pill.is-pending { background: #fdf1e3; color: #a3652b; }
body.fixed-left .jf-pill.is-rejected { background: #fbeaea; color: #9b3232; }

/* ── cash position: the one dark card ───────────────────────────────────── */

body.fixed-left .jf-cash {
    background: var(--jf-forest);
    border-radius: 16px;
    padding: 20px;
    color: var(--jf-paper);
}

body.fixed-left .jf-cash__title { font-size: 15px; font-weight: 700; }
body.fixed-left .jf-cash__total { font-family: var(--jf-display); font-size: 30px; font-weight: 800; letter-spacing: -0.025em; margin-top: 10px; }
body.fixed-left .jf-cash__sub { font-size: 13px; color: rgba(234, 243, 238, 0.75); margin-top: 4px; }

body.fixed-left .jf-cash__bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0 14px;
    background: rgba(255, 255, 255, 0.14);
}

body.fixed-left .jf-cash__bar span { height: 100%; }

body.fixed-left .jf-cash__row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    padding: 5px 0;
}

body.fixed-left .jf-cash__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
body.fixed-left .jf-cash__amt { margin-left: auto; font-weight: 700; }

body.fixed-left .jf-btn-lime {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin-top: 16px;
    border-radius: 11px;
    background: var(--jf-lime);
    color: var(--jf-forest);
    font-size: 14px;
    font-weight: 700;
    transition: filter 0.15s ease;
}

body.fixed-left .jf-btn-lime:hover { filter: brightness(0.95); color: var(--jf-forest); text-decoration: none; }

/* ── crew, top clients, activity ────────────────────────────────────────── */

body.fixed-left .jf-list { display: flex; flex-direction: column; margin-top: 8px; }

body.fixed-left .jf-list__row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2ec;
    font-size: 13.5px;
}

body.fixed-left .jf-list__row:last-child { border-bottom: 0; }

body.fixed-left .jf-list__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--jf-lime);
    color: var(--jf-forest);
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

body.fixed-left .jf-list__body { min-width: 0; flex: 1; }
body.fixed-left .jf-list__name { font-weight: 600; }
body.fixed-left .jf-list__meta { font-size: 12.5px; color: var(--jf-slate); margin-top: 1px; }
body.fixed-left .jf-list__amt { font-weight: 700; flex: none; }

body.fixed-left .jf-act__text { font-size: 13.5px; }
body.fixed-left .jf-act__when { font-size: 12px; color: #5c7a71; margin-top: 3px; }

/* An empty panel says so. A blank card reads as a loading failure. */
body.fixed-left .jf-empty {
    font-size: 13px;
    color: var(--jf-slate);
    padding: 18px 0;
    text-align: center;
}

/* ── narrow screens ─────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    body.fixed-left .jf-dash__grid { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body.fixed-left .jf-kpis,
    body.fixed-left .jf-pipe { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-dash__head { flex-direction: column; align-items: stretch; }
    body.fixed-left .jf-dash__controls { flex-wrap: wrap; }
    body.fixed-left .jf-sched__row { flex-wrap: wrap; }
    body.fixed-left .jf-sched__time { width: auto; }
}

/* ── dashboard head controls ────────────────────────────────────────────── */

body.fixed-left .jf-dash__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: none;
}

/* The range switch is a SEGMENTED CONTROL, not a row of buttons: one recessed
   #eef1ea track with the selected segment raised out of it in white. The
   previous version drew bordered white pills with a dark active state, which
   is a different control entirely. */
body.fixed-left .jf-seg {
    display: flex;
    gap: 3px;
    background: #eef1ea;
    border-radius: 10px;
    padding: 3px;
}

body.fixed-left .jf-seg__item {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1b3b33;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease;
}

body.fixed-left .jf-seg__item:hover { color: #1b3b33; text-decoration: none; background: rgba(255, 255, 255, 0.6); }

body.fixed-left .jf-seg__item.is-on {
    background: #fff;
    font-weight: 700;
    /* The shadow is what makes the segment read as raised out of the track. */
    box-shadow: 0 1px 4px rgba(14, 59, 50, 0.16);
}

/* ── quick create (the three dots) ──────────────────────────────────────── */

body.fixed-left .jf-quick { position: relative; }

body.fixed-left .jf-quick__btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #33544b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

body.fixed-left .jf-quick__btn:hover,
body.fixed-left .jf-quick__btn[aria-expanded="true"] { background: #eef2e8; }

body.fixed-left .jf-quick__btn > svg { width: 17px; height: 17px; display: block; }

body.fixed-left .jf-quick__menu {
    width: 196px;
    min-width: 196px;
    margin-top: 6px;
    padding: 7px;
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 12px;
    box-shadow: 0 20px 40px -18px rgba(14, 59, 50, 0.45);
    text-align: left;
    font-family: var(--jf-font);
}

body.fixed-left .jf-quick__item {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1b3b33;
    transition: background 0.15s ease;
}

body.fixed-left .jf-quick__item:hover { background: #f1f4ee; color: #1b3b33; text-decoration: none; }

/* ── the urgent action ──────────────────────────────────────────────────── */

/* The design gives every action button a 1.5px border, and makes the urgent
   one SOLID — it is the single thing on the page asking to be clicked now.
   Rendering it as another ghost button loses that entirely. */
body.fixed-left .jf-btn-ghost { border-width: 1.5px; }

body.fixed-left .jf-btn-ghost.is-urgent {
    border-color: #a1432f;
    background: #a1432f;
    color: #fff;
    font-weight: 700;
}

body.fixed-left .jf-btn-ghost.is-urgent:hover {
    background: #8d3a29;
    border-color: #8d3a29;
    color: #fff;
}

/* ── recent activity: a timeline, not a list ────────────────────────────── */

body.fixed-left .jf-act {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

/* 20px rail, then the text. The dot and its connector share the left column,
   which is what lets the line run continuously between entries. */
body.fixed-left .jf-act__row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
}

body.fixed-left .jf-act__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.fixed-left .jf-act__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none;
    /* Aligns the dot with the first line of text rather than the box top. */
    margin-top: 5px;
}

/* flex:1 stretches the connector to whatever height the entry turns out to
   be, so a two-line entry does not break the rail. The last entry omits the
   element entirely rather than painting it transparent. */
body.fixed-left .jf-act__line { width: 1px; flex: 1; background: #e2e7de; }

body.fixed-left .jf-act__body { padding-bottom: 14px; }
body.fixed-left .jf-act__text { font-size: 13.5px; color: #17332c; line-height: 1.45; }
body.fixed-left .jf-act__when { font-size: 12px; color: #46655c; margin-top: 3px; }

/* ══════════════════════════════════════════════════════════════════════════
   THE RECORD PAGE: head, panel, toolbar, table, pager
   ══════════════════════════════════════════════════════════════════════════

   Shared by the client list, view and forms, and built to carry the other
   record modules (jobs, quotes, invoices) without a second copy.

   Everything is scoped `body.fixed-left` for the same reason the dashboard
   rules are: assets/css/style.css and custom.css set .card, .table and .btn
   globally, and a single class selector loses to them on specificity alone.
   The body class costs nothing and wins.

   Names avoid .jf-pill, .jf-badge, .jf-empty, .jf-search and .jf-list, all of
   which are already taken by the topbar and the dashboard.
   ══════════════════════════════════════════════════════════════════════════ */

/* The shared header renders `.pg-title` on all 88 admin views. A redesigned
   page draws its own heading beside the page actions, so on those pages the
   legacy one is a second copy of the same word stacked directly above it.
   :has() lets the page opt out by existing, with no flag to set and nothing to
   pass through the controller, which matters because $this->include() shares
   the view DATA and not the calling view's local variables. */
body.fixed-left:has(.jf-page) .row.pg-title { display: none; }

body.fixed-left .jf-page {
    font-family: var(--jf-font);
    color: var(--jf-forest);
    padding-bottom: 28px;
}

body.fixed-left .jf-page * { box-sizing: border-box; }

body.fixed-left .jf-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 22px 0 0;
}

body.fixed-left .jf-page__title {
    font-family: var(--jf-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--jf-forest);
}

body.fixed-left .jf-page__sub {
    font-size: 13.5px;
    color: #46655c;
    margin: 4px 0 0;
}

body.fixed-left .jf-page__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The design's primary page action is FOREST, not lime. jf-btn-lime is the
   dashboard's quick-action button and reads as a different rank. */
body.fixed-left .jf-btn-forest {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 9px;
    border: 0;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
    white-space: nowrap;
}

body.fixed-left .jf-btn-forest:hover {
    color: var(--jf-paper);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(14, 59, 50, 0.2);
}

/* ── the page head's overflow menu ──────────────────────────────────────── */

body.fixed-left .jf-more { position: relative; }

body.fixed-left .jf-more__btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: #33544b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.fixed-left .jf-more__btn:hover { background: #eef2e8; color: var(--jf-forest); }

body.fixed-left .jf-more__menu {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 45;
    min-width: 208px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 13px;
    box-shadow: 0 18px 40px rgba(14, 59, 50, 0.14);
    display: none;
}

body.fixed-left .jf-more.is-open .jf-more__menu { display: block; }

body.fixed-left .jf-more__item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1b3b33;
    transition: 0.15s ease;
}

body.fixed-left .jf-more__item:hover { background: #f1f4ee; color: #1b3b33; }

/* The design colours the destructive entry ("Cancel job") and leaves the rest
   alone, so the tone is a modifier rather than a rule on :last-child — the
   last item is not always the dangerous one. */
body.fixed-left .jf-more__item--danger { color: #a1432f; }
body.fixed-left .jf-more__item--danger:hover { background: #fbeae6; color: #a1432f; }

body.fixed-left button.jf-more__item {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: var(--jf-font);
    text-align: left;
    cursor: pointer;
}

/* Shown, but not yet wired to anything. Rendering these as working links would
   be four menu items that 404. */
body.fixed-left .jf-more__item.is-soon { opacity: 0.45; cursor: default; }
body.fixed-left .jf-more__item.is-soon:hover { background: transparent; }

/* ── tag filter and columns menus ───────────────────────────────────────── */

/* EVERY dropdown root, not just some of them.
 *
 * .jf-pop is `position: absolute; top: 46px`, which resolves against the
 * nearest POSITIONED ancestor. .jf-statusfilter was missing from this list, so
 * its panel had no anchor and landed at the top-left of the page, tucked
 * behind the sidebar: the class toggled correctly, the CSS said display block,
 * and the menu was simply somewhere else on the screen. Adding a root here is
 * not optional styling. */
body.fixed-left .jf-statusfilter,
body.fixed-left .jf-tagfilter,
body.fixed-left .jf-cols { position: relative; }

body.fixed-left .jf-tagfilter__btn.is-on { border-color: #c7d4b2; background: #eaefe1; color: #1b3b33; }

/* No border and a transparent ground: the columns control is an icon button
   beside the search field, not a third bordered pill. */
body.fixed-left .jf-cols__btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #33544b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.15s ease;
}

body.fixed-left .jf-cols__btn:hover,
body.fixed-left .jf-cols.is-open .jf-cols__btn { background: #eef2e8; color: var(--jf-forest); }

body.fixed-left .jf-tagfilter__menu { left: 0; width: 186px; }
body.fixed-left .jf-cols__menu { right: 0; width: 198px; }
body.fixed-left .jf-statusfilter__menu { left: 0; width: 170px; }

/* The pager's right-hand group: the page numbers. */
body.fixed-left .jf-pager__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* The schedule's filter panel is the design's wide, two-column one: assignee
   on the left, state on the right, 380px so both fit side by side. A single
   stacked column made it a tall scrolling strip that looked nothing like it. */
body.fixed-left .jf-filterpanel {
    right: 0;
    left: auto;
    width: 380px;
    top: 42px;
    padding: 0;
}

body.fixed-left .jf-filterpanel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #eef1ea;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jf-forest);
}

body.fixed-left .jf-filterpanel__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    padding: 8px;
}

body.fixed-left .jf-filterpanel__col { display: flex; flex-direction: column; min-width: 0; }

body.fixed-left .jf-filterpanel__clear {
    border: 0;
    background: transparent;
    font-family: var(--jf-font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jf-moss);
    cursor: pointer;
    padding: 0;
}

/* Inside the two columns the options are shorter than the standalone ones. */
body.fixed-left .jf-filterpanel .jf-tagfilter__opt { height: 34px; }

body.fixed-left .jf-cols__head {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #55706a;
    padding: 8px 10px 6px;
}

body.fixed-left .jf-tagfilter__opt,
body.fixed-left .jf-cols__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1b3b33;
    cursor: pointer;
    position: relative;
    margin: 0;
}

body.fixed-left .jf-tagfilter__opt:hover,
body.fixed-left .jf-cols__opt:hover { background: #f1f4ee; }

body.fixed-left .jf-tagfilter__opt input,
body.fixed-left .jf-cols__opt input {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid #b6c2b3;
    background: #fff;
    cursor: pointer;
    margin: 0;
    flex: none;
}

body.fixed-left .jf-tagfilter__box,
body.fixed-left .jf-cols__box {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    pointer-events: none;
    display: none;
    background: var(--jf-forest) no-repeat center / 9px 7px;
    background-image: var(--jf-tick);
}

body.fixed-left .jf-tagfilter__opt input:checked + .jf-tagfilter__box,
body.fixed-left .jf-cols__opt input:checked + .jf-cols__box { display: block; }

body.fixed-left .jf-tagfilter__clear {
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    margin-top: 4px;
    border: 0;
    border-top: 1px solid #eef1ea;
    background: transparent;
    font-family: var(--jf-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--jf-moss);
    cursor: pointer;
}

/* ── the panel that holds a table ───────────────────────────────────────── */

body.fixed-left .jf-panel {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 18px;
    margin-top: 18px;
    /* NOT `overflow: hidden`, which is what the design export uses. The row
       action menus open downward and the last row's menu would be clipped by
       the panel's own edge. The table's wrapper scrolls instead, below. */
    overflow: visible;
    animation: jf-rise 0.35s ease both;
}

body.fixed-left .jf-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef1ea;
    flex-wrap: wrap;
}

body.fixed-left .jf-panel__group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── toolbar controls ───────────────────────────────────────────────────── */

/* Status and tag filters are BUTTONS with a dropdown, not <select>s.
   The design's status button carries a colour dot and takes the selected
   status's own tone, which a native select cannot express. */
body.fixed-left .jf-filterbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    width: auto;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    color: #1b3b33;
    cursor: pointer;
    transition: 0.15s ease;
    white-space: nowrap;
}

body.fixed-left .jf-filterbtn:focus-visible {
    outline: none;
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

body.fixed-left .jf-filterbtn__caret { font-size: 10px; opacity: 0.7; }

body.fixed-left .jf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: #9baba2;
}

body.fixed-left .jf-dot--active   { background: #2f7a4a; }
body.fixed-left .jf-dot--lead     { background: #8a6a1c; }
body.fixed-left .jf-dot--inactive { background: #63767b; }

/* Visit states, for the schedule's filter. Same four tones the calendar
   events and their badges use. */
body.fixed-left .jf-dot--scheduled { background: #2b5a8c; }
body.fixed-left .jf-dot--progress  { background: #8a6a1c; }
body.fixed-left .jf-dot--complete  { background: #2f7a4a; }
body.fixed-left .jf-dot--draft     { background: #46655c; }

/* The status filter wears the tone of whatever is selected. */
body.fixed-left .jf-filterbtn.is-active   { border-color: #e4f0dd; background: #e4f0dd; color: #2f7a4a; }
body.fixed-left .jf-filterbtn.is-inactive { border-color: #eceff0; background: #eceff0; color: #63767b; }

/* One panel shape for every dropdown on the page. */
body.fixed-left .jf-pop {
    position: absolute;
    top: 46px;
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 12px;
    box-shadow: 0 20px 40px -18px rgba(14, 59, 50, 0.45);
    padding: 6px;
    z-index: 35;
    display: none;
    text-align: left;
}

/* Each opener named explicitly rather than a bare `.is-open > .jf-pop`.
   This stylesheet reaches all 88 admin views, so a selector whose first class
   is not jf-* can match the theme's own markup; `.is-open` is exactly the kind
   of generic state class something else will use. */
body.fixed-left .jf-statusfilter.is-open > .jf-pop,
body.fixed-left .jf-tagfilter.is-open > .jf-pop,
body.fixed-left .jf-cols.is-open > .jf-pop,
body.fixed-left .jf-more.is-open > .jf-pop { display: block; }

body.fixed-left .jf-pop__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 500;
    color: #1b3b33;
    cursor: pointer;
    text-align: left;
}

body.fixed-left .jf-pop__item:hover { background: #f1f4ee; color: #1b3b33; }
body.fixed-left .jf-pop__item.is-current { font-weight: 700; }

body.fixed-left .jf-tblsearch {
    position: relative;
    min-width: 260px;
}

body.fixed-left .jf-tblsearch__icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

body.fixed-left .jf-tblsearch__input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 11px;
    border: 1px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14px;
    color: var(--jf-forest);
    outline: none;
    transition: 0.16s ease;
}

body.fixed-left .jf-tblsearch__input:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

/* ── the table ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-tblwrap { overflow-x: auto; }

/* A row menu inside a horizontally-scrolling wrapper is CLIPPED by it.
 *
 * `overflow-x: auto` with the default `overflow-y: visible` computes overflow-y
 * to `auto` as well — the spec does not allow one axis to clip while the other
 * overflows — so the wrapper becomes a scroll container in both directions and
 * an absolutely-positioned menu is cut off at its bottom edge.
 *
 * On a long table this is invisible: there are hundreds of pixels of wrapper
 * below row one, and the .is-up flip in jobflyte-ui.js handles the last rows.
 * It shows up the moment a table is SHORT — a job with a single visit, or a
 * board filtered down to one row — where the wrapper is barely taller than the
 * row and the menu has nowhere to go.
 *
 * Releasing the clip only while a menu is open keeps the horizontal scroll for
 * every other moment, which is what the wrapper is actually for. */
body.fixed-left .jf-tblwrap:has(.jf-rowact.is-open),
body.fixed-left .jf-tblwrap:has(.jf-statuscell.is-open),
body.fixed-left .jf-lines__wrap:has(.jf-rowact.is-open),
body.fixed-left .jf-lines__wrap:has(.jf-statuscell.is-open) { overflow: visible; }

body.fixed-left table.jf-tbl {
    width: 100%;
    margin: 0;
    /* !important because DataTables' own stylesheet declares
       `border-collapse: separate !important` on table.dataTable, and nothing
       weaker beats it.
     *
     * This is why the table appeared to have column dividers the design does
     * not have: with `separate` and a 2px border-spacing, every cell paints its
     * own background rectangle and the untouched gaps between them read as a
     * grid of thin vertical and horizontal lines. There were no borders to
     * remove; the cells were simply not touching. */
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 0;
    font-size: 14px;
}

body.fixed-left table.jf-tbl thead tr { background: #fbfcf9; }

body.fixed-left table.jf-tbl thead th {
    text-align: left;
    padding: 12px 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #33544b;
    font-weight: 700;
    white-space: nowrap;
    border: 0;
    border-bottom: 1px solid #dde3d6;
    vertical-align: middle;
}

body.fixed-left table.jf-tbl tbody td {
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #e8ece3;
    color: #17332c;
    vertical-align: middle;
}

/* Zebra on the EVEN row, so the first row is white against the header's own
   tint instead of doubling it. */
body.fixed-left table.jf-tbl tbody tr:nth-child(even) { background: #f6f8f2; }
body.fixed-left table.jf-tbl tbody tr:hover { background: #eef2e8; }
body.fixed-left table.jf-tbl tbody tr:last-child td { border-bottom: 0; }

/* The client table carries ten columns, so it is wider than the panel on any
   laptop and scrolls its wrapper. The design's own export sets min-width
   1300px for the same reason. Columns are sized by content rather than by
   percentage: `table-layout: fixed` would need ten hand-tuned widths that go
   wrong the moment a column is hidden from the COLUMNS menu. */
body.fixed-left table.jf-tbl--clients { min-width: 1240px; }

body.fixed-left table.jf-tbl--clients th,
body.fixed-left table.jf-tbl--clients td { white-space: nowrap; }

/* The two columns allowed to be long get a ceiling and an ellipsis rather than
   pushing the table wider still. The full value is on the client's own page. */
body.fixed-left table.jf-tbl--clients th:nth-child(4),
body.fixed-left table.jf-tbl--clients td:nth-child(4),
body.fixed-left table.jf-tbl--clients th:nth-child(5),
body.fixed-left table.jf-tbl--clients td:nth-child(5) {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The jobs board: nine columns, so the design sets min-width 1060px and lets
   the wrapper scroll rather than compressing them. */
body.fixed-left table.jf-tbl--jobs { min-width: 1060px; }

body.fixed-left table.jf-tbl--jobs th,
body.fixed-left table.jf-tbl--jobs td { white-space: nowrap; }

/* Only the two columns that can legitimately run long get a ceiling. */
body.fixed-left table.jf-tbl--jobs th:nth-child(2),
body.fixed-left table.jf-tbl--jobs td:nth-child(2),
body.fixed-left table.jf-tbl--jobs th:nth-child(4),
body.fixed-left table.jf-tbl--jobs td:nth-child(4) {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The jobs tabs are links, because they navigate to ?status= rather than
   filtering in place. They must still look identical to the button form. */
body.fixed-left a.jf-tab { text-decoration: none; }
body.fixed-left a.jf-tab:hover { color: #1b3b33; }
body.fixed-left a.jf-tab.is-on:hover { color: var(--jf-paper); }

/* ── select column ──────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl__check { width: 42px; padding-right: 0 !important; }
body.fixed-left .jf-tbl__actions { text-align: right; }

/* QA sheet row 20: "'Required' checkbox and label lack spacing and overlap
   with dropdown and 'Add field' button."

   The first half is here. This is a flex label wrapping a 17px box and the word
   next to it, and it declared no gap - so `gap: normal` resolved to 0 and the
   text started where the box ended. The second half is the form's own gap,
   below. */
body.fixed-left .jf-check2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

body.fixed-left .jf-check2 input {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid #b6c2b3;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

/* The tick is a sibling overlay rather than a ::before on the input, because
   Safari refuses to render generated content on a replaced element. */
body.fixed-left .jf-check2__box {
    position: absolute;
    left: 0;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    pointer-events: none;
    display: none;
    background: var(--jf-forest) no-repeat center / 9px 7px;
    background-image: var(--jf-tick);
}

body.fixed-left .jf-check2 input:checked + .jf-check2__box { display: block; }

/* ── tags ───────────────────────────────────────────────────────────────── */

body.fixed-left .jf-tags { display: flex; flex-wrap: wrap; gap: 6px; }

body.fixed-left .jf-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    background: #eaefe1;
    color: #33544b;
}

/* ── sort arrows ────────────────────────────────────────────────────────── */

/* DataTables draws its own sort indicator, replaced here with the design's
   glyph (appended by the view's paintArrows()).
 *
 * BOTH mechanisms have to be switched off. 1.10's core stylesheet uses a
 * background-image on the th; its bootstrap4 integration uses ::before and
 * ::after with a content glyph — and that second one is why every sortable
 * header briefly showed two arrows, since killing the background alone left
 * the pseudo-element untouched. */
body.fixed-left table.jf-tbl thead th.sorting,
body.fixed-left table.jf-tbl thead th.sorting_asc,
body.fixed-left table.jf-tbl thead th.sorting_desc {
    background-image: none !important;
    cursor: pointer;
    user-select: none;
}

body.fixed-left table.jf-tbl thead th.sorting::before,
body.fixed-left table.jf-tbl thead th.sorting::after,
body.fixed-left table.jf-tbl thead th.sorting_asc::before,
body.fixed-left table.jf-tbl thead th.sorting_asc::after,
body.fixed-left table.jf-tbl thead th.sorting_desc::before,
body.fixed-left table.jf-tbl thead th.sorting_desc::after {
    content: none !important;
    display: none !important;
}

body.fixed-left .jf-sortarrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    line-height: 1;
    color: #6f857c;
}

body.fixed-left .jf-sortarrow.is-active { color: var(--jf-forest); }

body.fixed-left table.jf-tbl thead th.sorting_asc,
body.fixed-left table.jf-tbl thead th.sorting_desc { color: var(--jf-forest); }

body.fixed-left .jf-tbl__name {
    font-weight: 700;
    color: var(--jf-forest);
    margin: 0;
    font-size: 14px;
}

body.fixed-left .jf-tbl__sub {
    display: block;
    font-size: 12.5px;
    color: #5c7a71;
    margin-top: 2px;
}

body.fixed-left .jf-tbl__muted { color: #6f857c; }

/* ── status pill ────────────────────────────────────────────────────────── */

body.fixed-left .jf-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

body.fixed-left .jf-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

body.fixed-left .jf-status--active   { background: #e4f0dd; color: #2f7a4a; border-color: #e4f0dd; }
body.fixed-left .jf-status--lead     { background: #fdf2da; color: #8a6a1c; border-color: #fdf2da; }
body.fixed-left .jf-status--inactive { background: #eceff0; color: #63767b; border-color: #eceff0; }

body.fixed-left button.jf-status {
    cursor: pointer;
    font-family: var(--jf-font);
    transition: 0.15s ease;
}

body.fixed-left button.jf-status:hover { filter: brightness(0.97); }

body.fixed-left .jf-status__caret { font-size: 10px; opacity: 0.7; margin-left: 1px; }

/* The status cell is a dropdown, not a toggle. Two values today, but a click
   that silently flips a record is a different interaction from choosing one,
   and the design chose the second. */
body.fixed-left .jf-statuscell { position: relative; display: inline-block; }

body.fixed-left .jf-statuscell__menu {
    position: absolute;
    top: 34px;
    left: 0;
    z-index: 30;
    width: 152px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 12px;
    box-shadow: 0 20px 40px -18px rgba(14, 59, 50, 0.45);
    display: none;
    text-align: left;
}

body.fixed-left .jf-statuscell.is-up .jf-statuscell__menu { top: auto; bottom: 34px; }
body.fixed-left .jf-statuscell.is-open .jf-statuscell__menu { display: block; }

/* A checked row, matching the design's selected tint. */
body.fixed-left table.jf-tbl tbody tr.is-picked,
body.fixed-left table.jf-tbl tbody tr.is-picked:nth-child(even) { background: #eef3e3; }

/* ── row actions ────────────────────────────────────────────────────────── */

body.fixed-left .jf-rowact {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

body.fixed-left .jf-rowact__btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #33544b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.fixed-left .jf-rowact__btn:hover { background: #e6ebdf; color: var(--jf-forest); }

body.fixed-left .jf-rowact__menu {
    position: absolute;
    top: 36px;
    right: 0;
    z-index: 30;
    width: 168px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 12px;
    box-shadow: 0 20px 40px -18px rgba(14, 59, 50, 0.45);
    display: none;
    text-align: left;
}

/* The last rows open upward, or the menu is cut off by the viewport. The
   design does the same, keyed on the row's position in the page slice. */
body.fixed-left .jf-rowact.is-up .jf-rowact__menu { top: auto; bottom: 36px; }

body.fixed-left .jf-rowact.is-open .jf-rowact__menu { display: block; }

body.fixed-left .jf-rowact__item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1b3b33;
    width: 100%;
    border: 0;
    background: transparent;
    font-family: var(--jf-font);
    text-align: left;
    cursor: pointer;
}

body.fixed-left .jf-rowact__item:hover { background: #f1f4ee; color: #1b3b33; }

body.fixed-left .jf-rowact__item--danger { color: #b0503c; }
body.fixed-left .jf-rowact__item--danger:hover { background: #fbeeea; color: #b0503c; }

/* An item that has to be a FORM, because it posts. QA sheet rows 50 and 52: a
   menu entry that writes a row or deletes one cannot be a link — a GET that
   changes state is followed by prefetchers, crawlers and the back-forward
   cache. The form is layout-transparent so the button inside it is still the
   menu item, and the menu does not know the difference. */
body.fixed-left .jf-rowact__form { display: contents; }


/* ── pager ──────────────────────────────────────────────────────────────── */

body.fixed-left .jf-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid #eef1ea;
    flex-wrap: wrap;
}

body.fixed-left .jf-pager__left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #46655c;
}

body.fixed-left select.jf-pager__size {
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    color: var(--jf-forest);
    cursor: pointer;
    outline: none;
    width: auto;
}

body.fixed-left .jf-pager__nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

body.fixed-left .jf-pager__btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #dfe4dc;
    background: #fff;
    color: #224037;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s ease;
}

body.fixed-left .jf-pager__btn:hover:not(:disabled) { background: #f1f4ee; }

body.fixed-left .jf-pager__btn.is-current {
    border-color: var(--jf-forest);
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-weight: 700;
}

body.fixed-left .jf-pager__btn:disabled { opacity: 0.45; cursor: default; }

body.fixed-left .jf-pager__gap { color: #6f857c; padding: 0 2px; }

body.fixed-left .jf-tblempty {
    padding: 40px 18px;
    text-align: center;
    color: #46655c;
    font-size: 14px;
}

/* ── dialog ─────────────────────────────────────────────────────────────── */

/* Opt-in per modal. custom.css styles .modal-header and .btn globally for the
   ~40 bootstrap modals in this app (dark header, lime cancel, magenta submit),
   and repainting all of them from here would change pages nobody has reviewed.
   A redesigned page adds .jf-modal to its own dialog and gets the new look;
   everything else is left exactly as it was. */

body.fixed-left .jf-modal .modal-content {
    border: 1px solid #e2e7de;
    border-radius: 18px;
    overflow: hidden;
    font-family: var(--jf-font);
    color: #17332c;
    box-shadow: 0 30px 70px rgba(14, 59, 50, 0.22);
}

body.fixed-left .jf-modal .modal-header {
    background: #fff;
    border-bottom: 1px solid #eef1ea;
    padding: 18px 22px;
    align-items: center;
}

body.fixed-left .jf-modal .modal-title {
    font-family: var(--jf-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--jf-forest);
}

body.fixed-left .jf-modal .modal-header .close {
    color: #46655c;
    opacity: 1;
    text-shadow: none;
    font-weight: 400;
    font-size: 26px;
    padding: 0 4px;
}

body.fixed-left .jf-modal .modal-header .close:hover { color: var(--jf-forest); }

body.fixed-left .jf-modal .modal-body {
    padding: 20px 22px;
    font-size: 14px;
    line-height: 1.6;
}

body.fixed-left .jf-modal .modal-body p { margin-bottom: 10px; }
body.fixed-left .jf-modal .modal-body ul { margin: 0 0 12px; padding-left: 20px; }
body.fixed-left .jf-modal .modal-body li { margin-bottom: 3px; }
body.fixed-left .jf-modal .modal-body .text-danger { color: #b0503c !important; font-weight: 600; }

body.fixed-left .jf-modal .modal-footer {
    background: #fbfcf9;
    border-top: 1px solid #eef1ea;
    padding: 14px 22px;
    gap: 8px;
}

body.fixed-left .jf-modal .modal-footer .btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
    margin: 0;
}

body.fixed-left .jf-modal .modal-footer .btn-secondary {
    background: #fff;
    border-color: #dfe4dc;
    color: #1b3b33;
}

body.fixed-left .jf-modal .modal-footer .btn-secondary:hover { background: #f1f4ee; }

body.fixed-left .jf-modal .modal-footer .btn-danger {
    background: #b0503c;
    border-color: #b0503c;
    color: #fff;
}

body.fixed-left .jf-modal .modal-footer .btn-danger:hover { background: #97432f; border-color: #97432f; }

/* ══════════════════════════════════════════════════════════════════════════
   THE RECORD FORM: breadcrumb, two-column layout, cards, controls
   ══════════════════════════════════════════════════════════════════════════

   Used by the client add and edit forms and built for the other record forms
   (job, quote, invoice) to adopt.

   Names avoid .jf-form, .jf-field, .jf-card, .jf-card2, .jf-rail, .jf-check,
   .jf-collapse and .jf-row, all of which the auth pages or the dashboard
   already own.
   ══════════════════════════════════════════════════════════════════════════ */

body.fixed-left .jf-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #46655c;
    white-space: nowrap;
    margin-top: 22px;
}

body.fixed-left .jf-crumbs a { color: var(--jf-moss); font-weight: 600; }

body.fixed-left .jf-page__title--form { margin: 8px 0 0; }

/* The rail is a fixed 320px because its cards (status, tags, lead source, the
   save stack) are all short controls that should not stretch. Below 1100px the
   grid collapses and the rail follows the form rather than sitting beside it. */
body.fixed-left .jf-fgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

@media (max-width: 1100px) {
    body.fixed-left .jf-fgrid { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-side { position: static !important; }
}

body.fixed-left .jf-fcol {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

body.fixed-left .jf-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

body.fixed-left .jf-fcard {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    padding: 20px 22px;
}

body.fixed-left .jf-fcard__title {
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--jf-forest);
    margin: 0;
}

body.fixed-left .jf-fcard__hint { font-size: 12.5px; color: #46655c; margin-top: 8px; }

body.fixed-left .jf-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

body.fixed-left .jf-grid2 .jf-span2 { grid-column: span 2; }

@media (max-width: 640px) {
    body.fixed-left .jf-grid2 { grid-template-columns: 1fr; }
    body.fixed-left .jf-grid2 .jf-span2 { grid-column: auto; }
}

body.fixed-left .jf-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

/* ── floating label ─────────────────────────────────────────────────────── */

/* Driven by :placeholder-shown, so the label rises with no JavaScript at all.
   That requires every input to carry a NON-EMPTY placeholder — a single space
   is enough and is what the markup uses. With placeholder="" the pseudo-class
   never matches and the label sits permanently over the text. */
body.fixed-left .jf-float {
    position: relative;
    display: block;
    margin: 0;
}

body.fixed-left .jf-float > input,
body.fixed-left .jf-float > select {
    width: 100%;
    height: 52px;
    padding: 18px 14px 4px;
    border-radius: 12px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14.5px;
    color: var(--jf-forest);
    outline: none;
    transition: 0.16s ease;
}

body.fixed-left .jf-float > input:focus,
body.fixed-left .jf-float > select:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

body.fixed-left .jf-float > span {
    position: absolute;
    left: 14px;
    pointer-events: none;
    transition: 0.15s ease;
    color: #4d6b62;
    font-size: 14.5px;
    top: 50%;
    transform: translateY(-50%);
}

body.fixed-left .jf-float > input:focus + span,
body.fixed-left .jf-float > input:not(:placeholder-shown) + span,
body.fixed-left .jf-float > select + span {
    color: #46655c;
    font-size: 11px;
    top: 9px;
    transform: none;
    letter-spacing: 0.04em;
}

body.fixed-left .jf-float__req { color: #b0503c; }

/* ── plain controls ─────────────────────────────────────────────────────── */

body.fixed-left .jf-inp,
body.fixed-left select.jf-sel,
body.fixed-left textarea.jf-area {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14px;
    color: var(--jf-forest);
    outline: none;
    transition: 0.16s ease;
    width: 100%;
}

body.fixed-left select.jf-sel { cursor: pointer; width: auto; min-width: 104px; }

body.fixed-left textarea.jf-area {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 12px;
    resize: vertical;
}

body.fixed-left .jf-inp:focus,
body.fixed-left select.jf-sel:focus,
body.fixed-left textarea.jf-area:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

/* ── repeatable rows: phone, email, custom field ────────────────────────── */

body.fixed-left .jf-repeat { display: flex; flex-direction: column; gap: 8px; }

body.fixed-left .jf-repeat__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.fixed-left .jf-repeat__row .jf-inp { flex: 1; min-width: 0; }

/* The star IS the primary control: it is a label wrapping a radio, so the
   browser enforces "exactly one" for free and the value posts as the index the
   controller reads. A button plus a hidden input would need JavaScript to keep
   those two in step. */
body.fixed-left .jf-star {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: #c9d2cb;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin: 0;
    transition: 0.15s ease;
}

body.fixed-left .jf-star input { position: absolute; opacity: 0; pointer-events: none; }
body.fixed-left .jf-star:hover { background: #f1f4ee; }
body.fixed-left .jf-star:has(input:checked) { color: #e0a32e; }

body.fixed-left .jf-remove {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: #46655c;
    font-size: 14px;
    cursor: pointer;
    flex: none;
    padding: 0;
}

body.fixed-left .jf-remove:hover { background: #fbeeea; color: #b0503c; }

/* QA sheet row 17: "Add card - button name has UI issue, text should be in
   centre of button."

   `.jf-addbtn` is worn by both <button> and <a>. A button centres its own label
   in both directions; an anchor is an inline box with a stated height and no
   line-height, so its text sat at the TOP of the 38px. Stating the layout here
   rather than relying on the element means the class looks the same whichever
   tag carries it. */
body.fixed-left .jf-addbtn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jf-forest);
    cursor: pointer;
    transition: 0.15s ease;
}

/* A button that has to be a FORM, because it posts (rows 19, and the same
   reasoning as .jf-rowact__form). Layout-transparent, so the surrounding rail
   lays the button out exactly as it laid out the anchor. */
body.fixed-left .jf-inlineform { display: contents; }

/* The Dispatch Map's jump-to-date field (QA rows 40-41). `display: contents` so
   the form does not become a box in the middle of the header's flex row - the
   input sits where a button would, between the arrows and Today. */
body.fixed-left .jf-cal__jump { display: contents; }

/* The job reference on a dispatch stop (QA row 38). Quieter than the visit
   title above it and than the client below it: it is a lookup key, read when
   somebody needs it and ignored the rest of the time. */
body.fixed-left .jf-stop__job {
    font-size: 12px;
    color: #46655c;
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

body.fixed-left .jf-cal__jumpinput {
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13px;
    color: var(--jf-forest);
    cursor: pointer;
}

body.fixed-left .jf-cal__jumpinput:focus {
    border-color: var(--jf-forest);
    outline: none;
}

/* Visible again on focus, so the Go button is reachable by keyboard for anyone
   whose browser does not submit on change. A control that only exists for
   keyboard users has to be findable by them. */
body.fixed-left .jf-sronly--focusable:focus,
body.fixed-left .jf-sronly--focusable:focus-visible {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    clip-path: none;
    white-space: normal;
    padding: 0 10px;
    height: 34px;
    border-radius: 9px;
    border: 1.5px solid var(--jf-forest);
    background: #fff;
    font-size: 13px;
}

/* QA sheet rows 27 and 35: "action buttons overlap" in the Add item modal and
   in the Add expense modal.

   Measured, Add item:    Cancel (.jf-btn-ghost)  34px at y 503, Save 46px at y 497.
   Measured, Add expense: Cancel (.btn-secondary) 36px at y 678, Save 46px at y 673.

   Neither pair overlaps HORIZONTALLY - 646 to 662, and 600 to 608. What they do
   is sit on different baselines in a centred flex footer, which at a glance is
   what "overlap" describes. The same shape as rows 22-23, where "Choose photo"
   was 38px beside a 32px "Remove".

   The cause is always the same: a `.jf-save` from the design system standing
   next to a Cancel that came from somewhere else - bootstrap's `.btn`, the
   theme's `.jf-btn-ghost`. So the rule is on the FOOTER rather than on a list
   of button classes: lining its actions up is what a footer is for, and a list
   of classes is a list somebody has to remember to add to. The delete modals
   were already right precisely because both of their buttons happened to come
   from the same place. */
/* QA sheet row 42, first half: "Misaligned buttons ... on Job View page."
   Measured in `.jf-rec__actions`: Edit (.jf-btn-outline--sm) 38px at y 100
   beside the Reschedule/Reassign menu (.jf-more) 36px at y 101. The third
   instance of the same thing on this sheet - rows 22-23, 27 and 35 - and always
   for the same reason: two controls from different parts of the system standing
   next to each other with nothing stating that they are a set.

   On the CONTAINER, as with the modal footer below: a row of actions lining
   itself up is a property of the row, not something each new button has to be
   told. The dropdown half of row 42 did not reproduce - every menu on that page
   opens well inside `.content-page`, measured with room to spare. */
body.fixed-left .jf-rec__actions > *,
body.fixed-left .modal-footer > .btn,
body.fixed-left .modal-footer > button,
body.fixed-left .modal-footer > a.jf-save,
body.fixed-left .jf-modal2__actions > button,
body.fixed-left .jf-modal2__actions > .btn {
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* `.jf-more` is a DIV wrapping its own trigger, so sizing the wrapper alone
   leaves the button inside it at its old height and the row still looks wrong
   by a pixel or two. */
body.fixed-left .jf-rec__actions > .jf-more > .jf-more__btn { height: 40px; }

body.fixed-left .jf-addbtn:hover { border-color: var(--jf-forest); }

/* ── switch ─────────────────────────────────────────────────────────────── */

body.fixed-left .jf-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #224037;
    cursor: pointer;
    margin: 0;
}

body.fixed-left .jf-switch input { position: absolute; opacity: 0; pointer-events: none; }

body.fixed-left .jf-switch__track {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    padding: 3px;
    display: inline-flex;
    justify-content: flex-start;
    background: #c9d3c5;
    cursor: pointer;
    transition: 0.18s ease;
    flex: none;
}

body.fixed-left .jf-switch__knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    display: block;
    transition: 0.18s ease;
}

body.fixed-left .jf-switch input:checked + .jf-switch__track {
    justify-content: flex-end;
    background: var(--jf-forest);
}

body.fixed-left .jf-switch input:checked + .jf-switch__track .jf-switch__knob { background: var(--jf-lime); }

body.fixed-left .jf-switch--lg .jf-switch__track { width: 46px; height: 26px; }
body.fixed-left .jf-switch--lg .jf-switch__knob { width: 20px; height: 20px; }

body.fixed-left .jf-switchrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.fixed-left .jf-switchrow__title { font-size: 14px; font-weight: 600; color: var(--jf-forest); }
body.fixed-left .jf-switchrow__body { font-size: 13px; color: #46655c; margin-top: 2px; }

/* ── chips: client type, tags, status ───────────────────────────────────── */

body.fixed-left .jf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

body.fixed-left .jf-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    color: #1b3b33;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
    margin: 0;
}

body.fixed-left .jf-chip input { position: absolute; opacity: 0; pointer-events: none; }
body.fixed-left .jf-chip:hover { border-color: #b6c2b3; }

body.fixed-left .jf-chip:has(input:checked),
body.fixed-left .jf-chip.is-on {
    border-color: var(--jf-forest);
    background: var(--jf-forest);
    color: var(--jf-paper);
}

/* ── disclosure ─────────────────────────────────────────────────────────── */

body.fixed-left .jf-disc {
    border-top: 1px solid #eef1ea;
    margin-top: 18px;
    padding-top: 14px;
}

body.fixed-left .jf-disc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    padding: 0;
    font-family: var(--jf-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--jf-forest);
    cursor: pointer;
}

body.fixed-left .jf-disc__chevron { transition: 0.18s ease; font-size: 15px; }
body.fixed-left .jf-disc.is-open .jf-disc__chevron { transform: rotate(180deg); }

body.fixed-left .jf-disc__body { display: none; }
body.fixed-left .jf-disc.is-open .jf-disc__body { display: block; }

/* ── status radio list ──────────────────────────────────────────────────── */

body.fixed-left .jf-statuspick { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

body.fixed-left .jf-statuspick label {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: #1b3b33;
    cursor: pointer;
    margin: 0;
    transition: 0.15s ease;
}

body.fixed-left .jf-statuspick input { position: absolute; opacity: 0; pointer-events: none; }

body.fixed-left .jf-statuspick label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: #9baba2;
}

body.fixed-left .jf-statuspick label.is-active::before   { background: #2f7a4a; }
body.fixed-left .jf-statuspick label.is-inactive::before { background: #4a5c60; }

/* A row that brings its OWN dot does not get this one too.
 *
 * The client form has two states and colours them with .is-active /
 * .is-inactive on the label, so ::before is enough there. The job form has
 * seven, each with the status colour the rest of the app uses, so it emits a
 * .jf-dot--<state> span — and the two together drew two dots per row. */
body.fixed-left .jf-statuspick label:has(.jf-dot)::before { display: none; }

/* The chosen status, as the design draws it: the row is outlined and tinted
   rather than merely bordered, so the selection reads at a glance down a list
   of seven near-identical rows. */
body.fixed-left .jf-statuspick label:has(input:checked) {
    border-color: var(--jf-forest);
    background: #f2f6ea;
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--jf-forest) inset;
}

body.fixed-left .jf-statuspick label:has(input:checked) {
    border-color: var(--jf-forest);
    background: #eef3e3;
    font-weight: 700;
}

/* ── save stack ─────────────────────────────────────────────────────────── */

body.fixed-left .jf-savestack { display: flex; flex-direction: column; gap: 10px; }

/* Where an AJAX save reports a refusal. The add form posts without a page
   reload, so there is no flash to carry "Email already exists!" - without
   this the button just went quiet. */
body.fixed-left .jf-formerror {
    margin: 0 0 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #f1c7c2;
    background: #fbe9e7;
    color: #b3261e;
    font-size: 13.6px;
    font-weight: 600;
}

body.fixed-left .jf-formerror[hidden] { display: none; }

body.fixed-left .jf-save {
    height: 46px;
    border-radius: 10px;
    border: 0;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-family: var(--jf-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.16s ease;
    box-shadow: 0 8px 20px rgba(14, 59, 50, 0.16);
}

body.fixed-left .jf-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(14, 59, 50, 0.22);
}

/* The destructive confirm in a .jf-modal2. `.jf-save` is the affirmative
   button everywhere else; this is the one case where affirming is the thing to
   be careful about, so it keeps the shape and changes the colour.

   🔴 These two lines used to sit ~700 lines EARLIER, above `.jf-save` itself.
   Same specificity, so the later rule won and the modifier did nothing: the
   "Delete form" button in form-builder, and every destructive confirm, was
   the same forest green as an ordinary Save. Found while adding the shared
   confirm dialog (QA row 6) by measuring the two backgrounds and getting
   rgb(14, 59, 50) for both. They have to come after `.jf-save` to apply. */
body.fixed-left .jf-save--danger { background: #b0503c; border-color: #b0503c; }
body.fixed-left .jf-save--danger:hover { background: #9a4533; border-color: #9a4533; }

body.fixed-left .jf-btn-outline {
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14px;
    font-weight: 600;
    color: #1b3b33;
    cursor: pointer;
    transition: 0.16s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.fixed-left .jf-btn-outline:hover { border-color: var(--jf-forest); color: #1b3b33; }

body.fixed-left .jf-cancel {
    text-align: center;
    font-size: 13.5px;
    color: #46655c;
    padding: 6px;
    /* Element-agnostic. Every use of this was an <a>, which has no chrome of
       its own, so the class never needed to remove any. The first <button> to
       take it rendered with the browser default `2px outset black` on a grey
       face, in the middle of a form card. */
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

body.fixed-left .jf-cancel:hover { color: var(--jf-forest); }

/* Inline validation, rendered by the form's own script. */
body.fixed-left .jf-err {
    display: block;
    font-size: 12.5px;
    color: #b0503c;
    margin-top: 5px;
}

body.fixed-left .jf-float > input.is-bad,
body.fixed-left .jf-inp.is-bad { border-color: #b0503c; }

/* ══════════════════════════════════════════════════════════════════════════
   THE SCHEDULE
   ══════════════════════════════════════════════════════════════════════════

   The design draws its own month grid. This page keeps FullCalendar v3 as the
   engine and restyles it, because the engine is not the part that was wrong:
   it already owns the event source, drag-to-reschedule, the click-through to a
   job and the endpoints behind all three. Rebuilding a calendar to match a
   picture would have traded a working scheduler for a nicer static one.

   So the CHROME is rebuilt to the design (title, prev/next, Today, view
   switcher, filters, actions, and the right rail) and FullCalendar's own
   header is switched off; everything below repaints its grid.
   ══════════════════════════════════════════════════════════════════════════ */

body.fixed-left .jf-cal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

@media (max-width: 1180px) {
    body.fixed-left .jf-cal__grid { grid-template-columns: minmax(0, 1fr); }
}

body.fixed-left .jf-cal__card {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    overflow: hidden;
    min-width: 0;
}

body.fixed-left .jf-cal__scroll { overflow-x: auto; }

/* The min-width belongs to the GRID, not to the card. Seven columns need room
   and scroll horizontally below it; the list view shares the same wrapper and
   was inheriting the constraint, which pushed its state badges off the right
   edge behind a scrollbar. `.fc` is FullCalendar's own root class. */
body.fixed-left .jf-cal .fc { min-width: 760px; }

body.fixed-left .jf-cal__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.fixed-left .jf-cal__nav { display: flex; align-items: center; gap: 4px; }

body.fixed-left .jf-cal__navbtn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: #33544b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.fixed-left .jf-cal__navbtn:hover { background: #eef2e8; color: var(--jf-forest); }

body.fixed-left .jf-cal__today {
    height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13px;
    font-weight: 600;
    color: #1b3b33;
    cursor: pointer;
}

body.fixed-left .jf-cal__today:hover { border-color: var(--jf-forest); }

/* The filter button's count badge. */
body.fixed-left .jf-cal__count {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--jf-forest);
    color: var(--jf-lime);
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

body.fixed-left .jf-cal__count.is-on { display: inline-flex; }

/* ── FullCalendar, repainted ────────────────────────────────────────────── */

/* Its own stylesheet loads on all 88 views, so every rule here is scoped to
   .jf-cal to keep the technician calendar (still on the old design) intact. */

body.fixed-left .jf-cal .fc-toolbar { display: none; }

body.fixed-left .jf-cal .fc-view-container,
body.fixed-left .jf-cal .fc table,
body.fixed-left .jf-cal .fc td,
body.fixed-left .jf-cal .fc th {
    border-color: #e8ece3;
    font-family: var(--jf-font);
}

body.fixed-left .jf-cal .fc-day-header {
    padding: 10px 12px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #46655c;
    text-align: left;
    text-transform: uppercase;
    border-width: 0 0 1px;
    background: #fff;
}

body.fixed-left .jf-cal .fc-day-number {
    font-size: 13px;
    font-weight: 600;
    color: #17332c;
    padding: 8px 10px 0;
    float: none;
    text-align: left;
}

body.fixed-left .jf-cal .fc-day-top { text-align: left; }

body.fixed-left .jf-cal .fc-other-month .fc-day-number { color: #9fb0a8; }

body.fixed-left .jf-cal .fc-today {
    background: #f4f8ec !important;
}

body.fixed-left .jf-cal .fc-today .fc-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin: 6px 0 0 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--jf-forest);
    color: var(--jf-paper);
}

/* !important throughout this block, and it is not laziness.
 *
 * assets/css/style.css:3797 declares
 *
 *     .fc-event { background-color: #e8efee !important;
 *                 border-left: 5px solid #014a43 !important;
 *                 color: #000 !important; padding: 2px 5px !important; }
 *
 * which is why every visit painted the same grey-green whatever state it was
 * in. Specificity does not enter into it: nothing beats !important except
 * !important. That sheet still dresses the technician calendar, which has not
 * been rebuilt yet, so it is overridden here rather than edited. */
body.fixed-left .jf-cal .fc-day-grid-event {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 2px 6px !important;
    padding: 4px 7px !important;
    border: 0 !important;
    border-radius: 7px !important;
    font-size: 11.5px;
    font-weight: 600;
    overflow: hidden;
}

/* The design's leading state dot. Drawn as a pseudo-element rather than added
   to the DOM: FullCalendar rebuilds an event's innards on every redraw, so
   anything injected there has to be re-injected on drag, filter and refetch. */
body.fixed-left .jf-cal .fc-day-grid-event::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    background: currentColor;
}

body.fixed-left .jf-cal .fc-day-grid-event .fc-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

body.fixed-left .jf-cal .fc-event .fc-title { font-weight: 600; }
body.fixed-left .jf-cal .fc-event .fc-time { font-weight: 700; opacity: 0.85; margin-right: 4px; }

/* Visit states, keyed by the class eventRender adds. The design's palette. */
body.fixed-left .jf-cal .jf-ev--scheduled { background-color: #e6eef8 !important; color: #2b5a8c !important; }
body.fixed-left .jf-cal .jf-ev--progress  { background-color: #fdf2da !important; color: #8a6a1c !important; }
body.fixed-left .jf-cal .jf-ev--complete  { background-color: #e4f0dd !important; color: #2f7a4a !important; }
body.fixed-left .jf-cal .jf-ev--draft     { background-color: #eef0e8 !important; color: #46655c !important; }

body.fixed-left .jf-cal .fc-more {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--jf-moss);
    margin: 0 6px;
}

body.fixed-left .jf-cal .fc-scroller { overflow: visible !important; height: auto !important; }

/* `.fc-week` only. FullCalendar gives the day-name header row the same
   `.fc-row` class as the week rows, so a bare `.fc-row` min-height stretched
   the header into a 104px empty band above the grid. */
body.fixed-left .jf-cal .fc-row.fc-week { min-height: 104px; }

body.fixed-left .jf-cal .fc-axis,
body.fixed-left .jf-cal .fc-time-grid .fc-slats td {
    font-size: 12.5px;
    color: #46655c;
    font-weight: 600;
}

body.fixed-left .jf-cal .fc-time-grid-event {
    border: 0;
    border-radius: 9px;
    padding: 4px 7px;
    font-size: 12.5px;
}

body.fixed-left .jf-cal .fc-list-item td { border-color: #eef1ea; }
body.fixed-left .jf-cal .fc-list-heading td {
    background: #fbfcf9;
    border-color: #e8ece3;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #33544b;
}

body.fixed-left .jf-cal .fc-highlight { background: #eef3e3; opacity: 1; }

/* ── list view ──────────────────────────────────────────────────────────── */

/* Rendered here rather than by FullCalendar. Its list view is a separate
   plugin and this build ships only fullcalendar.min.js, so asking for
   `listMonth` threw "b.class is not a constructor" — a control that looked
   available and broke on click. The rows come from the events already
   fetched, so it costs no request and cannot disagree with the grid. */

body.fixed-left .jf-cal__list { padding: 6px 0; }

body.fixed-left .jf-cal__listrow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1ea;
    color: inherit;
}

body.fixed-left .jf-cal__listrow:last-child { border-bottom: 0; }
body.fixed-left .jf-cal__listrow:hover { background: #fbfcf9; color: inherit; }

body.fixed-left .jf-cal__chip {
    width: 66px;
    flex: none;
    text-align: center;
    background: #f2f5ec;
    border-radius: 10px;
    padding: 6px 0;
}

body.fixed-left .jf-cal__chip-m {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
    text-transform: uppercase;
}

body.fixed-left .jf-cal__chip-d { font-size: 18px; font-weight: 800; color: var(--jf-forest); }

body.fixed-left .jf-cal__listmain { min-width: 0; flex: 1; }
body.fixed-left .jf-cal__listtitle { font-size: 14.5px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-cal__listmeta { font-size: 13px; color: #35564d; margin-top: 3px; }

/* ── the right rail ─────────────────────────────────────────────────────── */

body.fixed-left .jf-cal__rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.fixed-left .jf-cal__panel {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    padding: 18px 20px;
}

body.fixed-left .jf-cal__panel-title {
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--jf-forest);
    margin: 0;
}

body.fixed-left .jf-cal__panel-sub { font-size: 12.5px; color: #46655c; margin-top: 3px; }

body.fixed-left .jf-cal__events { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

body.fixed-left .jf-cal__event {
    border: 1px solid #e6eae2;
    border-radius: 12px;
    padding: 12px 13px;
    display: block;
    color: inherit;
}

body.fixed-left .jf-cal__event:hover { border-color: #cfd8c9; color: inherit; background: #fbfcf9; }

body.fixed-left .jf-cal__event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.fixed-left .jf-cal__event-time { font-size: 13px; font-weight: 700; color: #17332c; }
body.fixed-left .jf-cal__event-title { font-size: 14px; font-weight: 700; margin-top: 5px; color: var(--jf-forest); }
body.fixed-left .jf-cal__event-client { font-size: 13px; color: #35564d; margin-top: 3px; line-height: 1.5; }
body.fixed-left .jf-cal__event-crew { font-size: 12.5px; color: #46655c; margin-top: 6px; }

body.fixed-left .jf-cal__empty {
    font-size: 13px;
    color: #46655c;
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed #cfd8c9;
    border-radius: 12px;
    text-align: center;
}

body.fixed-left .jf-cal__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

body.fixed-left .jf-cal__badge--scheduled { background: #e6eef8; color: #2b5a8c; }
body.fixed-left .jf-cal__badge--progress  { background: #fdf2da; color: #8a6a1c; }
body.fixed-left .jf-cal__badge--complete  { background: #e4f0dd; color: #2f7a4a; }
body.fixed-left .jf-cal__badge--draft     { background: #eef0e8; color: #46655c; }

body.fixed-left .jf-cal__unsched {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px dashed #cfd8c9;
    border-radius: 11px;
    padding: 10px 12px;
    color: inherit;
}

body.fixed-left .jf-cal__unsched:hover { border-color: var(--jf-moss); color: inherit; background: #fbfcf9; }
body.fixed-left .jf-cal__unsched-title { font-size: 13.5px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-cal__unsched-client { font-size: 12.5px; color: #46655c; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════════════════
   THE RECORD DETAIL PAGE: identity header, stat strip, tabs, rail
   ══════════════════════════════════════════════════════════════════════════

   Built for the client view and shaped so the job, quote and invoice detail
   pages can adopt it: they all want the same identity block, the same
   four-across stat strip and the same tabbed related-records table.
   ══════════════════════════════════════════════════════════════════════════ */

body.fixed-left .jf-rec__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

body.fixed-left .jf-rec__who {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

body.fixed-left .jf-rec__avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--jf-forest);
    color: var(--jf-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex: none;
}

body.fixed-left .jf-rec__nameline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.fixed-left .jf-rec__name {
    font-family: var(--jf-display);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--jf-forest);
}

body.fixed-left .jf-rec__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 13.5px;
    color: #35564d;
    flex-wrap: wrap;
}

body.fixed-left .jf-rec__sep { color: #a9b7ae; }

body.fixed-left .jf-rec__actions { display: flex; align-items: center; gap: 8px; }

body.fixed-left .jf-btn-outline--sm {
    height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    color: #1b3b33;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

body.fixed-left .jf-btn-outline--sm:hover { border-color: var(--jf-forest); color: #1b3b33; }

body.fixed-left .jf-btn-forest--sm {
    height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    border: 0;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: 0.18s ease;
}

body.fixed-left .jf-btn-forest--sm:hover {
    color: var(--jf-paper);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(14, 59, 50, 0.2);
}

/* ── stat strip ─────────────────────────────────────────────────────────── */

body.fixed-left .jf-rec__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    body.fixed-left .jf-rec__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.fixed-left .jf-rec__stat {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 0;
}

body.fixed-left .jf-rec__stat-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
}

/* The jobs board's stat cards carry a state dot beside the label and are
   links to the tab they count, so the number and what it filters to cannot
   disagree. */
body.fixed-left .jf-rec__stat-head { display: flex; align-items: center; gap: 8px; }

body.fixed-left a.jf-rec__stat { display: block; color: inherit; transition: 0.15s ease; }

body.fixed-left a.jf-rec__stat:hover {
    color: inherit;
    border-color: #cfd8c9;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -14px rgba(14, 59, 50, 0.5);
}

/* ── stacked assignee avatars ───────────────────────────────────────────── */

body.fixed-left .jf-avatars { display: flex; align-items: center; }

body.fixed-left .jf-avatars__one {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8efdc;
    color: #1b3b33;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    border: 2px solid #fff;
    flex: none;
}

/* Overlapped, so a crew of four does not widen the column. */
body.fixed-left .jf-avatars__one + .jf-avatars__one { margin-left: -8px; }
body.fixed-left .jf-avatars__more { background: #dfe6d5; color: #46655c; font-size: 11px; }

body.fixed-left .jf-rec__stat-value {
    font-family: var(--jf-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 6px;
    color: var(--jf-forest);
}

body.fixed-left .jf-rec__stat-note { font-size: 12.5px; margin-top: 4px; color: #2f7a4a; }
body.fixed-left .jf-rec__stat-note--bad { color: #a1432f; }
body.fixed-left .jf-rec__stat-note--flat { color: #46655c; }

/* ── body grid ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-rec__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

/* 1100px, matching .jf-fgrid on the record FORM.
 *
 * These two were 1180 and 1100, so a 1,150px window showed the job FORM with
 * its rail and the job VIEW without one — the same shell, the same rail, two
 * different answers. 1fr + 330px fits comfortably at 1,100: a ~230px sidebar
 * leaves ~870, so the main column still gets over 500. */
@media (max-width: 1100px) {
    body.fixed-left .jf-rec__grid { grid-template-columns: minmax(0, 1fr); }
}

body.fixed-left .jf-rec__col,
body.fixed-left .jf-rec__rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

body.fixed-left .jf-rec__card {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    padding: 18px 20px;
}

body.fixed-left .jf-rec__card--flush { padding: 0; overflow: hidden; }

body.fixed-left .jf-rec__cardhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.fixed-left .jf-rec__cardtitle {
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--jf-forest);
    margin: 0;
}

body.fixed-left .jf-rec__cardlink { font-size: 13.5px; font-weight: 600; color: var(--jf-moss); }
body.fixed-left .jf-rec__cardsub { font-size: 12.5px; color: #46655c; margin-top: 4px; }

/* ── tabs ───────────────────────────────────────────────────────────────── */

body.fixed-left .jf-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    border-bottom: 1px solid #eef1ea;
    overflow-x: auto;
}

/* Tabs on the left, the column manager on the right, one rule above the table.

   The strip keeps its own horizontal scroll — a board with many tabs still
   scrolls rather than wrapping — so the rule moves to the row and min-width: 0
   lets the strip shrink instead of shoving the button off the edge. */
body.fixed-left .jf-tabsrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-tabsrow .jf-tabs {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 0;
}

body.fixed-left .jf-tabsrow .jf-cols { flex: 0 0 auto; }

body.fixed-left .jf-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #1b3b33;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s ease;
}

body.fixed-left .jf-tab:hover { background: #f1f4ee; }

body.fixed-left .jf-tab.is-on {
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-weight: 700;
}

body.fixed-left .jf-tab__count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #eef1ea;
    color: #46655c;
}

body.fixed-left .jf-tab.is-on .jf-tab__count {
    background: rgba(210, 224, 110, 0.25);
    color: var(--jf-lime);
}

body.fixed-left .jf-tabpanel { display: none; }
body.fixed-left .jf-tabpanel.is-on { display: block; }

/* The related-records table. Same bones as .jf-tbl with the detail page's
   tighter row height. */
body.fixed-left table.jf-rectbl {
    width: 100%;
    min-width: 640px;
    margin: 0;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 0;
    font-size: 14px;
}

body.fixed-left table.jf-rectbl thead tr { background: #fbfcf9; }

body.fixed-left table.jf-rectbl thead th {
    text-align: left;
    padding: 11px 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #33544b;
    font-weight: 700;
    border: 0;
    border-bottom: 1px solid #dde3d6;
    white-space: nowrap;
}

body.fixed-left table.jf-rectbl tbody td {
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid #e8ece3;
    color: #17332c;
}

body.fixed-left table.jf-rectbl tbody tr:last-child td { border-bottom: 0; }
body.fixed-left table.jf-rectbl tbody tr:hover { background: #eef2e8; }
body.fixed-left table.jf-rectbl .jf-rectbl__ref { font-weight: 700; white-space: nowrap; }
body.fixed-left table.jf-rectbl .jf-nowrap { white-space: nowrap; }

/* ── state badges ───────────────────────────────────────────────────────── */

body.fixed-left .jf-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    background: #eef0e8;
    color: #46655c;
}

body.fixed-left .jf-state--blue  { background: #e6eef8; color: #2b5a8c; }
body.fixed-left .jf-state--amber { background: #fdf2da; color: #8a6a1c; }
body.fixed-left .jf-state--green { background: #e4f0dd; color: #2f7a4a; }
body.fixed-left .jf-state--red   { background: #fbeae6; color: #a1432f; }

/* The jobs board's status badge is a dropdown trigger, so it needs the button
   reset the static badge does not. */
body.fixed-left button.jf-state {
    border: 0;
    cursor: pointer;
    font-family: var(--jf-font);
    gap: 6px;
    transition: 0.15s ease;
}

body.fixed-left button.jf-state:hover { filter: brightness(0.97); }

/* ── schedule rows ──────────────────────────────────────────────────────── */

body.fixed-left .jf-rec__visit {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #eef1ea;
    color: inherit;
}

body.fixed-left .jf-rec__visit:hover { color: inherit; background: #fbfcf9; }

body.fixed-left .jf-rec__chip {
    text-align: center;
    background: #f2f5ec;
    border-radius: 10px;
    padding: 7px 0;
}

body.fixed-left .jf-rec__chip-m {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
    text-transform: uppercase;
}

body.fixed-left .jf-rec__chip-d { font-size: 19px; font-weight: 800; color: var(--jf-forest); }
body.fixed-left .jf-rec__visit-title { font-size: 14.5px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-rec__visit-meta { font-size: 13px; color: #35564d; margin-top: 3px; }

/* ── contact rows ───────────────────────────────────────────────────────── */

body.fixed-left .jf-rec__contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body.fixed-left .jf-rec__star { font-size: 14px; color: #d7dfd6; line-height: 1.2; flex: none; }
body.fixed-left .jf-rec__star.is-primary { color: #e0a32e; }

body.fixed-left .jf-rec__contact-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #46655c;
    font-weight: 700;
}

body.fixed-left .jf-rec__contact-value {
    font-size: 14px;
    color: #17332c;
    margin-top: 2px;
    word-break: break-word;
}

/* ── property cards ─────────────────────────────────────────────────────── */

body.fixed-left .jf-rec__prop {
    border: 1px solid #e6eae2;
    border-radius: 12px;
    padding: 12px 14px;
}

body.fixed-left .jf-rec__prop-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.fixed-left .jf-rec__prop-name { font-size: 13.5px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-rec__prop-addr { font-size: 13px; color: #35564d; margin-top: 4px; line-height: 1.5; }

/* ── activity timeline ──────────────────────────────────────────────────── */

body.fixed-left .jf-rec__act {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
}

body.fixed-left .jf-rec__act-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.fixed-left .jf-rec__act-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--jf-moss);
    margin-top: 5px;
    flex: none;
}

body.fixed-left .jf-rec__act-line { width: 1px; flex: 1; background: #e2e7de; }
body.fixed-left .jf-rec__act-body { padding-bottom: 16px; }
body.fixed-left .jf-rec__act-text { font-size: 14px; color: #17332c; line-height: 1.5; }
body.fixed-left .jf-rec__act-time { font-size: 12.5px; color: #46655c; margin-top: 3px; }

/* ── saved notes ────────────────────────────────────────────────────────── */

body.fixed-left .jf-rec__note {
    border-top: 1px solid #eef1ea;
    padding-top: 10px;
}

body.fixed-left .jf-rec__note-text { font-size: 13.5px; color: #17332c; line-height: 1.5; }
body.fixed-left .jf-rec__note-meta { font-size: 12px; color: #46655c; margin-top: 3px; }

body.fixed-left .jf-rec__empty {
    padding: 34px 18px;
    text-align: center;
    color: #46655c;
    font-size: 14px;
}

/* ── notes panel ────────────────────────────────────────────────────────── */

/* The notes markup was lifted out of the old page whole and still carries
   bootstrap classes. Rather than rewrite ~670 lines of working create / edit /
   delete markup to restyle a card, its handful of visible controls are brought
   into the design here. */

body.fixed-left .jf-notes .form-group { margin-bottom: 14px; }

/* The textarea: the design's 84px floor and 12px radius, not the taller
   rows=4 box the legacy markup had. */
body.fixed-left .jf-notes__area {
    width: 100%;
    min-height: 84px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    color: var(--jf-forest);
    outline: none;
    resize: vertical;
    transition: 0.16s ease;
}

body.fixed-left .jf-notes__area:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

/* Attachments demoted to one line. The design has no uploader at all; this
   keeps the feature without letting it own the card. */
body.fixed-left .jf-notes__drop {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

body.fixed-left .jf-notes__drop.is-dragover {
    outline: 1.5px dashed var(--jf-moss);
    outline-offset: 6px;
    border-radius: 10px;
}

body.fixed-left .jf-notes__attach {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jf-forest);
    cursor: pointer;
    margin: 0;
}

body.fixed-left .jf-notes__attach:hover { border-color: var(--jf-forest); }
body.fixed-left .jf-notes__drophint { font-size: 12.5px; color: #46655c; margin: 0; }

/* The legacy sheet gives .drop-area a 30px bottom margin and .file-list a 20px
   top margin. The file list is EMPTY until something is attached, but it is a
   100%-wide flex item, so it still wrapped onto its own line and contributed
   its margin: 50px of blank space under the attach row, from two elements you
   cannot see. */
body.fixed-left .jf-notes__drop { margin-bottom: 0; }

body.fixed-left .jf-notes .file-list {
    width: 100%;
    font-size: 12.5px;
    color: #35564d;
    margin: 0;
}

/* :empty needs literally no child nodes, which is true until the upload script
   appends one, so the row disappears and reappears on its own. */
body.fixed-left .jf-notes .file-list:empty { display: none; }
body.fixed-left .jf-notes .file-list:not(:empty) { margin-top: 8px; }

/* Link checkboxes: horizontal and wrapping, gap 10px 16px, no group label. */
body.fixed-left .jf-notes__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
}

body.fixed-left .jf-notes__link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #224037;
    cursor: pointer;
    margin: 0;
}

body.fixed-left .jf-notes .form-check-input {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid #b6c2b3;
    background: #fff;
    cursor: pointer;
    margin: 0;
    position: static;
    flex: none;
}

body.fixed-left .jf-notes .form-check-input:checked {
    background: var(--jf-forest) no-repeat center / 9px 7px;
    border-color: var(--jf-forest);
    background-image: var(--jf-tick);
}

/* Full width, 42px, as the design has it. */
body.fixed-left .jf-notes__save {
    width: 100%;
    height: 42px;
    margin-top: 14px;
    border-radius: 10px;
    border: 0;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-family: var(--jf-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.16s ease;
}

body.fixed-left .jf-notes__save:hover { background: #0a2f28; color: var(--jf-paper); }
body.fixed-left .jf-notes__save.is-saved { background: #2f7a4a; }

/* Saved notes below the form. */
body.fixed-left .jf-notes .note-item,
body.fixed-left .jf-notes .jf-rec__note {
    border-top: 1px solid #eef1ea;
    padding-top: 10px;
    margin-top: 8px;
}

body.fixed-left .jf-notes .note-item .card,
body.fixed-left .jf-notes .note-item .card-body {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

/* ══════════════════════════════════════════════════════════════════════════
   THE DISPATCH MAP
   ══════════════════════════════════════════════════════════════════════════

   Leaflet, per the design, replacing Google Maps. The map needed a Google API
   key that two of the three configured tenants do not have, so for them the
   board rendered a blank grey rectangle. OpenStreetMap tiles need no key, so
   the map now works for everyone.
   ══════════════════════════════════════════════════════════════════════════ */

body.fixed-left .jf-disp__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

@media (max-width: 1100px) {
    body.fixed-left .jf-disp__grid { grid-template-columns: minmax(0, 1fr); }
}

body.fixed-left .jf-disp__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

body.fixed-left .jf-disp__card {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    padding: 16px 18px;
}

body.fixed-left .jf-disp__cardhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.fixed-left .jf-disp__cardtitle {
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--jf-forest);
    margin: 0;
}

/* "Add job": 30px / 8px radius / 12.5px / 700, per the design.
 *
 * The combined selector is load-bearing. This button also carries
 * .jf-more__btn, which is how assets/js/jobflyte-ui.js finds a dropdown
 * trigger, and that class styles an ICON button: 36px square, no border,
 * transparent. It won on equal specificity and later position, so the button
 * rendered as bare text. Overriding it here keeps the behaviour hook without
 * inheriting its shape. */
body.fixed-left .jf-disp__smallbtn,
body.fixed-left .jf-more__btn.jf-disp__smallbtn {
    width: auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 12.5px;
    font-weight: 700;
    color: #1b3b33;
    cursor: pointer;
    white-space: nowrap;
    flex: none;
}

body.fixed-left .jf-disp__smallbtn:hover,
body.fixed-left .jf-more__btn.jf-disp__smallbtn:hover {
    border-color: var(--jf-forest);
    background: #fff;
    color: #1b3b33;
}

/* ── header controls ────────────────────────────────────────────────────── */

/* This page's design sizes its header buttons 36px with a 9px radius and a
   1.5px border, which is NOT the schedule page's 40px / 11px / 1px filter
   pill. Reusing .jf-cal__today and .jf-filterbtn here left three buttons at
   three different heights sitting next to each other. */
body.fixed-left .jf-disp__hdrbtn,
body.fixed-left .jf-disp .jf-filterbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    color: #1b3b33;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

body.fixed-left .jf-disp__hdrbtn:hover,
body.fixed-left .jf-disp .jf-filterbtn:hover { border-color: var(--jf-forest); color: #1b3b33; }

body.fixed-left .jf-disp .jf-filterbtn.is-on {
    border-color: #c7d4b2;
    background: #eaefe1;
    color: #1b3b33;
}

/* The day stepper matches their height so the row reads as one control set. */
body.fixed-left .jf-disp .jf-cal__navbtn { width: 36px; height: 36px; border-radius: 9px; }

body.fixed-left select.jf-disp__crew {
    width: 100%;
    height: 38px;
    margin-top: 10px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    color: var(--jf-forest);
    outline: none;
    cursor: pointer;
}

/* Shown instead of the select when the Filters panel already names a
   technician: the board is theirs, so the card states it rather than asking
   again in a control that could disagree with the filter. */
body.fixed-left .jf-disp__crewname {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--jf-forest);
}

body.fixed-left .jf-disp__crewswap { font-size: 12.5px; font-weight: 600; color: var(--jf-moss); }

/* The technician options are links, because picking one re-queries the
   controller. They still need to look like the checkbox rows beside them. */
body.fixed-left a.jf-tagfilter__opt { text-decoration: none; }
body.fixed-left a.jf-tagfilter__opt:hover { color: #1b3b33; }
body.fixed-left a.jf-tagfilter__opt input { pointer-events: none; }

body.fixed-left .jf-disp__figures { display: flex; gap: 18px; margin-top: 12px; }
body.fixed-left .jf-disp__figure { font-size: 20px; font-weight: 800; color: var(--jf-forest); }
body.fixed-left .jf-disp__figlabel { font-size: 12px; color: #46655c; }
body.fixed-left .jf-disp__hint { font-size: 12px; color: #46655c; margin-top: 10px; line-height: 1.45; }

/* ── the stop list ──────────────────────────────────────────────────────── */

body.fixed-left .jf-disp__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 2px;
}

body.fixed-left .jf-stop {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: grab;
    transition: 0.15s ease;
}

body.fixed-left .jf-stop:hover { border-color: #cfd8c9; }
body.fixed-left .jf-stop.is-active { border-color: var(--jf-forest); box-shadow: 0 0 0 3px rgba(210, 224, 110, 0.4); }
body.fixed-left .jf-stop.is-dragging { opacity: 0.5; }

body.fixed-left .jf-stop__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.fixed-left .jf-stop__left { display: flex; align-items: center; gap: 9px; }

body.fixed-left .jf-stop__pin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    flex: none;
    background: #2b5a8c;
}

body.fixed-left .jf-stop__pin--progress { background: #b8891f; }
body.fixed-left .jf-stop__pin--complete { background: #2f7a4a; }
body.fixed-left .jf-stop__pin--draft    { background: #46655c; }

body.fixed-left .jf-stop__time { font-size: 12.5px; font-weight: 700; color: #17332c; }
body.fixed-left .jf-stop__title { font-size: 14px; font-weight: 700; margin-top: 8px; color: var(--jf-forest); }
body.fixed-left .jf-stop__client { font-size: 13px; color: #35564d; margin-top: 2px; }
body.fixed-left .jf-stop__addr { font-size: 12.5px; color: #46655c; margin-top: 6px; line-height: 1.45; }

body.fixed-left .jf-stop__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

body.fixed-left .jf-stop__crew { font-size: 12.5px; color: #46655c; }
body.fixed-left .jf-stop__btns { display: flex; gap: 4px; }

body.fixed-left .jf-stop__btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid #dfe4dc;
    background: #fff;
    color: #33544b;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

body.fixed-left .jf-stop__btn:hover { background: #f1f4ee; }
body.fixed-left .jf-stop__btn--danger { color: #a1432f; }
body.fixed-left .jf-stop__btn--danger:hover { background: #fbeeea; }
body.fixed-left .jf-stop__btn:disabled { opacity: 0.4; cursor: default; }

body.fixed-left .jf-stop__grip { cursor: grab; flex: none; }

/* ── the map ────────────────────────────────────────────────────────────── */

body.fixed-left .jf-disp__mapcard {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-width: 0;

    /* Contains Leaflet's z-indexes.
     *
     * Leaflet stacks its panes from 200 (tiles) to 800 (controls). The map
     * container is positioned but has no z-index of its own, so it creates no
     * stacking context and those numbers compete directly with the rest of the
     * page — where .jf-pop sits at 35. The Filters panel therefore opened
     * UNDERNEATH the map.
     *
     * `isolation: isolate` makes this card a stacking context, so everything
     * Leaflet does is sealed inside it and ranks as one layer against its
     * siblings. Raising .jf-pop past 800 instead would have worked until the
     * next library arrived with a bigger number. */
    isolation: isolate;
    z-index: 0;
}

body.fixed-left .jf-disp__map { height: 560px; width: 100%; }
body.fixed-left .jf-disp__map .leaflet-container { font-family: var(--jf-font); }

body.fixed-left .jf-disp__legend {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 500;
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 12px 26px -16px rgba(14, 59, 50, 0.5);
}

body.fixed-left .jf-disp__legend-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #55706a;
}

body.fixed-left .jf-disp__legend-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }

body.fixed-left .jf-disp__legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #17332c;
}

body.fixed-left .jf-disp__legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* The numbered marker Leaflet renders through a divIcon.
   Scoped like every other rule in this sheet: Leaflet injects the icon HTML
   into the map pane, which is inside the page, so body.fixed-left reaches it. */
body.fixed-left .jf-mapmarker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--jf-font);
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(14, 59, 50, 0.35);
}

/* A default fill, because the technician map's divIcon carries no inline
   colour: the admin board sets one per status, this page has a single kind of
   stop. Without it the pins render transparent and only the number shows. */
body.fixed-left .jf-mapmarker { background: #2b5a8c; }

/* The technician's own position. Lime, so it reads as "you" rather than as
   another stop, and it replaces a Google-hosted PNG that was served over
   plain http and blocked as mixed content on an https page. */
body.fixed-left .jf-mapmarker--tech {
    background: var(--jf-lime);
    border-color: var(--jf-forest);
    box-shadow: 0 2px 10px rgba(14, 59, 50, 0.45);
}

body.fixed-left .jf-maplegend__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(14, 59, 50, 0.3);
    flex: none;
}

body.fixed-left .jf-maplegend__dot--tech { background: var(--jf-lime); border-color: var(--jf-forest); }
body.fixed-left .jf-maplegend__dot--job  { background: #2b5a8c; }

/* The technician route page's two columns. It used col-md-4/col-md-8, the
   only bootstrap grid left on a page otherwise carrying jf- classes. */
body.fixed-left .jf-routegrid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

body.fixed-left .jf-routegrid__list {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

@media (max-width: 1100px) {
    body.fixed-left .jf-routegrid { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-routegrid__list { max-height: 340px; }
}

body.fixed-left .jf-disp__unassigned { max-height: 250px; overflow-y: auto; }

body.fixed-left .jf-disp__unrow {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-bottom: 1px solid #eef1ea;
    cursor: pointer;
    font-family: var(--jf-font);
}

body.fixed-left .jf-disp__unrow:last-child { border-bottom: 0; }
body.fixed-left .jf-disp__unrow:hover { background: #f1f4ee; }
body.fixed-left .jf-disp__unrow-title { font-size: 13.5px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-disp__unrow-meta { font-size: 12.5px; color: #46655c; margin-top: 2px; }

/* DataTables draws its own chrome. This page renders the design's controls
   instead and drives the table through the API, so the built-in wrapper
   elements are hidden rather than styled into submission. */
body.fixed-left .jf-panel .dataTables_wrapper .dataTables_length,
body.fixed-left .jf-panel .dataTables_wrapper .dataTables_filter,
body.fixed-left .jf-panel .dataTables_wrapper .dataTables_info,
body.fixed-left .jf-panel .dataTables_wrapper .dataTables_paginate { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   THE JOB DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════

   Additions to the record-detail system above, not a replacement: the job view
   reuses .jf-rec__head, .jf-rec__stats, .jf-rec__grid, .jf-rec__card and the
   .jf-rec__act timeline unchanged. What it needs on top is the design's pieces
   that no other detail page draws: a progress stepper, a task checklist, a
   line-item table with totals, a date chip and a file list.

   Named .jf-prog / .jf-tasks / .jf-lines rather than .jf-rec__* because the
   quote and invoice detail pages will want the line-item table and the file
   list without wanting a job's progress stepper.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── progress stepper ───────────────────────────────────────────────────── */

body.fixed-left .jf-prog { display: flex; align-items: flex-start; margin-top: 16px; }

/* Every step but the last grows, so the connecting lines share the remaining
   width evenly. The last shrinks to its label. */
body.fixed-left .jf-prog__step { flex: 1; min-width: 0; }
body.fixed-left .jf-prog__step:last-child { flex: 0 0 auto; }

body.fixed-left .jf-prog__top { display: flex; align-items: center; }

body.fixed-left .jf-prog__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex: none;
    background: #eef1ea;
    color: #46655c;
}

body.fixed-left .jf-prog__step.is-done .jf-prog__dot,
body.fixed-left .jf-prog__step.is-current .jf-prog__dot { background: var(--jf-forest); color: var(--jf-lime); }

body.fixed-left .jf-prog__line { flex: 1; height: 2px; background: #e2e7de; }
body.fixed-left .jf-prog__step.is-done .jf-prog__line { background: var(--jf-forest); }
body.fixed-left .jf-prog__step:last-child .jf-prog__line { display: none; }

body.fixed-left .jf-prog__label {
    font-size: 13px;
    font-weight: 500;
    color: #46655c;
    margin-top: 8px;
    padding-right: 8px;
}

body.fixed-left .jf-prog__step.is-done .jf-prog__label { color: var(--jf-forest); }
body.fixed-left .jf-prog__step.is-current .jf-prog__label { color: var(--jf-forest); font-weight: 700; }
body.fixed-left .jf-prog__time { font-size: 11.5px; color: #46655c; margin-top: 2px; }

/* Five 28px dots plus five labels do not fit a phone. Stacking keeps the
   labels readable instead of clipping them to two characters. */
@media (max-width: 700px) {
    body.fixed-left .jf-prog { flex-direction: column; gap: 10px; }

    body.fixed-left .jf-prog__step,
    body.fixed-left .jf-prog__step:last-child { flex: none; width: 100%; }

    body.fixed-left .jf-prog__line { display: none; }
    body.fixed-left .jf-prog__top { gap: 10px; }
    body.fixed-left .jf-prog__label { margin-top: 0; }
    body.fixed-left .jf-prog__body { display: flex; align-items: baseline; gap: 8px; }
}

/* ── label / value pairs, two across ────────────────────────────────────── */

body.fixed-left .jf-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-top: 14px;
}

@media (max-width: 620px) {
    body.fixed-left .jf-dl { grid-template-columns: minmax(0, 1fr); }
}

body.fixed-left .jf-dl__k {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
}

body.fixed-left .jf-dl__v {
    font-size: 14px;
    color: #17332c;
    margin-top: 4px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-dl__v--muted { color: #5c7a71; }
body.fixed-left .jf-dl__span2 { grid-column: 1 / -1; }

/* A block below the grid, separated by a hairline: the design's DESCRIPTION. */
body.fixed-left .jf-dl__more {
    border-top: 1px solid #eef1ea;
    margin-top: 16px;
    padding-top: 14px;
}

body.fixed-left .jf-dl__text {
    margin: 6px 0 0;
    font-size: 14px;
    color: #17332c;
    line-height: 1.6;
    white-space: pre-line;
}

/* ── task checklist ─────────────────────────────────────────────────────── */

body.fixed-left .jf-tasks__bar {
    height: 6px;
    border-radius: 999px;
    background: #eef1ea;
    margin-top: 12px;
    overflow: hidden;
}

body.fixed-left .jf-tasks__fill {
    height: 100%;
    background: var(--jf-forest);
    border-radius: 999px;
    transition: width 0.2s ease;
}

body.fixed-left .jf-tasks__list { display: flex; flex-direction: column; margin-top: 12px; }

body.fixed-left .jf-tasks__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 4px;
    border-bottom: 1px solid #f2f4ef;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

body.fixed-left .jf-tasks__item:last-child { border-bottom: 0; }

body.fixed-left .jf-tasks__item input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid #b6c2b3;
    background: #fff;
    cursor: pointer;
    margin: 0;
    flex: none;
}

body.fixed-left .jf-tasks__item input:checked {
    background: var(--jf-forest) no-repeat center/9px 7px;
    background-image: var(--jf-tick);
    border-color: var(--jf-forest);
}

body.fixed-left .jf-tasks__item input:focus-visible { outline: 2px solid var(--jf-moss); outline-offset: 2px; }

body.fixed-left .jf-tasks__text { color: #17332c; }

body.fixed-left .jf-tasks__item input:checked ~ .jf-tasks__text {
    color: #5c7a71;
    text-decoration: line-through;
}

/* While a toggle is in flight the row dims, so a slow save cannot read as a
   click that did nothing. */
body.fixed-left .jf-tasks__item.is-saving { opacity: 0.55; }

/* ── line items ─────────────────────────────────────────────────────────── */

body.fixed-left .jf-lines__wrap { overflow-x: auto; margin-top: 12px; }

body.fixed-left .jf-lines {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}

body.fixed-left .jf-lines thead tr { background: #fbfcf9; }

body.fixed-left .jf-lines th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: #33544b;
    font-weight: 700;
    border-bottom: 1px solid #dde3d6;
    white-space: nowrap;
}

body.fixed-left .jf-lines th:last-child,
body.fixed-left .jf-lines td:last-child { text-align: right; }

body.fixed-left .jf-lines td {
    padding: 12px 14px;
    color: #17332c;
    border-bottom: 1px solid #e8ece3;
    vertical-align: top;
}

/* The design stripes the body rows. */
body.fixed-left .jf-lines tbody tr:nth-child(even) { background: #f6f8f2; }
body.fixed-left .jf-lines tbody tr:last-child td { border-bottom: 0; }
body.fixed-left .jf-lines__name { font-weight: 600; }
body.fixed-left .jf-lines__desc { font-size: 12.5px; color: #5c7a71; margin-top: 3px; line-height: 1.45; }
body.fixed-left .jf-lines__total { font-weight: 700; white-space: nowrap; }

body.fixed-left .jf-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    border-top: 1px solid #eef1ea;
    padding-top: 14px;
    align-items: flex-end;
}

body.fixed-left .jf-totals__row {
    display: flex;
    gap: 40px;
    font-size: 13.5px;
    color: #35564d;
}

body.fixed-left .jf-totals__row span:last-child { font-weight: 600; color: #17332c; }

body.fixed-left .jf-totals__row--grand { font-size: 16px; font-weight: 800; color: var(--jf-forest); }
body.fixed-left .jf-totals__row--grand span:last-child { font-weight: 800; color: var(--jf-forest); }

/* ── the schedule card's date chip ──────────────────────────────────────── */

body.fixed-left .jf-when { display: flex; align-items: center; gap: 14px; margin-top: 12px; }

body.fixed-left .jf-when__chip {
    text-align: center;
    background: #f2f5ec;
    border-radius: 12px;
    padding: 9px 14px;
    flex: none;
}

body.fixed-left .jf-when__mon {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
}

body.fixed-left .jf-when__day {
    font-family: var(--jf-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--jf-forest);
    line-height: 1.15;
}

body.fixed-left .jf-when__time { font-size: 14px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-when__sub { font-size: 13px; color: #35564d; margin-top: 3px; }
body.fixed-left .jf-when__note { font-size: 12.5px; color: #46655c; margin-top: 12px; line-height: 1.5; }

/* ── file list ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

body.fixed-left .jf-files__row {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e6eae2;
    border-radius: 11px;
    padding: 10px 12px;
    color: inherit;
    transition: 0.15s ease;
}

body.fixed-left a.jf-files__row:hover { border-color: #cfd8c9; background: #fbfcf9; color: inherit; }
body.fixed-left .jf-files__body { min-width: 0; flex: 1; }

body.fixed-left .jf-files__name {
    font-size: 13.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-files__meta { font-size: 12px; color: #46655c; margin-top: 1px; }

/* ── crew rows ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-crew { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
body.fixed-left .jf-crew__row { display: flex; align-items: center; gap: 11px; }

body.fixed-left .jf-crew__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8efdc;
    color: #2c4d44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

body.fixed-left .jf-crew__name { font-size: 14px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-crew__role { font-size: 12.5px; color: #46655c; margin-top: 1px; }

/* ── the activity note composer ─────────────────────────────────────────── */

body.fixed-left .jf-noteform { display: flex; gap: 8px; margin-top: 4px; }

body.fixed-left .jf-noteform__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    color: var(--jf-forest);
    outline: none;
}

body.fixed-left .jf-noteform__input:focus { border-color: var(--jf-forest); }

body.fixed-left .jf-noteform__btn {
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    flex: none;
}

body.fixed-left .jf-noteform__btn:disabled { opacity: 0.55; cursor: default; }

/* ── visits, which the design has no card for ───────────────────────────── */

/* The app groups visits into Overdue / Today / Tomorrow / this week / this
   month / other, and the old page painted EVERY group's rows pink and every
   heading red, including "Tomorrow" — a whole table that reads as an error.
   Only the overdue group keeps a warning tone now, carried by its heading and
   a left edge rather than a full fill. */
body.fixed-left .jf-vgroup td {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #46655c;
    background: #fbfcf9;
}

body.fixed-left .jf-vgroup--late td { color: #a1432f; background: #fdf6f3; }
body.fixed-left tr.is-late td { background: #fdf6f3; }
body.fixed-left tr.is-late td:first-child { box-shadow: inset 3px 0 0 #d98b74; }
body.fixed-left .jf-vdur { font-size: 12px; font-weight: 600; color: #35564d; }

/* ══════════════════════════════════════════════════════════════════════════
   THE JOB FORM
   ══════════════════════════════════════════════════════════════════════════

   Additions to the record-form system: the job form reuses .jf-fgrid,
   .jf-fcard, .jf-float, .jf-statuspick, .jf-switchrow and .jf-savestack
   unchanged. What it needs on top is a radio-driven segmented control and an
   editable line-item row, neither of which the client form has.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── one-off / recurring ────────────────────────────────────────────────── */

/* .jf-seg__item above is for buttons and links, switched by an .is-on class.
   This one wraps a RADIO, because the choice has to post as `jobtype` and the
   browser should enforce "exactly one" without help.

   The design does NOT recess these into a grey track like the dashboard's range
   switch: they are separate pills on the card's own white, and the chosen one
   is FILLED FOREST with pale text. A white-on-grey selected pill was the single
   biggest reason the form still read as the old UI. */
body.fixed-left .jf-seg {
    display: inline-flex;
    align-self: flex-start;
    gap: 8px;
    background: transparent;
    border-radius: 999px;
    padding: 0;
    margin-top: 14px;
}

body.fixed-left .jf-seg__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: 1.5px solid #dfe4dc;
    border-radius: 999px;
    background: #fff;
    color: #1b3b33;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
    transition: 0.15s ease;
}

body.fixed-left .jf-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
body.fixed-left .jf-seg__opt:hover { border-color: #b6c2b3; }

body.fixed-left .jf-seg__opt:has(input:checked) {
    background: var(--jf-forest);
    border-color: var(--jf-forest);
    color: var(--jf-paper);
    font-weight: 700;
}

/* The theme's own .custom-control-label draws a bootstrap radio dial through
   ::before and ::after. Inside a segment that is a second control on top of the
   one already there. */
body.fixed-left .jf-seg__opt .custom-control-label::before,
body.fixed-left .jf-seg__opt .custom-control-label::after { display: none; }
body.fixed-left .jf-seg__opt .custom-control-label { position: static; padding: 0; margin: 0; }

/* Several chips that are each independently on or off, rather than one choice
   out of a row: the request form's arrival windows. Wraps instead of scrolling,
   because the rail leaves the card narrow. */
body.fixed-left .jf-seg--wrap { display: flex; flex-wrap: wrap; }

/* Priority is three equal segments filling its column, not three pills sized to
   their words — the design lines them up with the JOB TYPE select beside it. */
body.fixed-left .jf-seg--wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
body.fixed-left .jf-seg--wide .jf-seg__opt { padding: 0 8px; border-radius: 10px; }

/* ── the editable line item ─────────────────────────────────────────────── */

body.fixed-left .jf-lines__edit { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

body.fixed-left .jf-lrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 116px 116px 36px;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid #e6eae2;
    border-radius: 12px;
    background: #fbfcf9;
}

/* Below the two-column breakpoint the row becomes a stack: five columns in
   ~320px gives a qty box four characters wide. */
@media (max-width: 860px) {
    body.fixed-left .jf-lrow { grid-template-columns: minmax(0, 1fr) 1fr; }
    body.fixed-left .jf-lrow__main { grid-column: 1 / -1; }
}

body.fixed-left .jf-lrow__main { min-width: 0; }

/* QA sheet rows 11 and 45: "Text Overlap Bug on Request Date Card" and
   "'RECEIVED' label and date text overlap on New Request page".

   The summary cards on the request and invoice forms are key/value pairs -
   RECEIVED / a date, NUMBER / an invoice number, STATUS / a chip - and they
   wore `.jf-lrow`, which is the LINE ITEM grid:

       grid-template-columns: minmax(0, 1fr) 84px 116px 116px 36px

   Five columns for two cells. The fixed ones total 352px and the gaps another
   40, so in a 392px rail the flexible first column resolves to ZERO: measured
   at a 1280px viewport, the RECEIVED label was in a cell `x 961-961`, nothing
   wide, with its text hanging out of it across whatever sat beside it. At
   1440px the same markup got 403px instead, which is why this looks like it
   comes and goes.

   `.jf-lrow__v` had no rule at all - the markup invented a class the stylesheet
   had never heard of, which is the tell that this was borrowed rather than
   designed.

   Their own block, so a change to the line-item grid cannot reach them. Same
   shape of fix as .jf-status -> .jf-sysstatus. */

body.fixed-left .jf-kv {
    display: grid;
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
    gap: 10px 14px;
    align-items: baseline;
    padding: 10px 12px;
    border: 1px solid #e6eae2;
    border-radius: 12px;
    background: #fbfcf9;
}

body.fixed-left .jf-kv__k {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
    /* No bottom margin: .jf-lrow__k carries 6px for the stacked label-above-field
       layout it belongs to, and here the value is BESIDE the label, not under
       it - inheriting that margin would push the key off the value's baseline. */
    margin-bottom: 0;
}

body.fixed-left .jf-kv__v { min-width: 0; font-size: 13.5px; color: var(--jf-forest); }

/* Narrow: the label goes above its value rather than squeezing it. */
@media (max-width: 520px) {
    body.fixed-left .jf-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

body.fixed-left .jf-lrow__k {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: #46655c;
    font-weight: 700;
    margin-bottom: 6px;
}

/* The row's own controls: the theme's .form-control is bootstrap's, so the
   height and radius are brought into line with .jf-inp rather than left as two
   different field styles side by side. */
body.fixed-left .jf-lrow .form-control,
body.fixed-left .jf-lrow textarea {
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14px;
    color: var(--jf-forest);
    box-shadow: none;
}

body.fixed-left .jf-lrow textarea { height: auto; min-height: 62px; padding: 10px 12px; resize: vertical; }
body.fixed-left .jf-lrow .form-control:focus { border-color: var(--jf-forest); box-shadow: none; }

/* The theme draws the currency symbol as .dollar::before, absolutely placed at
   left: 8px. The field needs padding to clear it or the symbol lands on top of
   the number: 275.50 read as "$75.50" and 551.00 as "$51.00", which is a wrong
   figure rather than a cosmetic overlap. */
body.fixed-left .jf-lrow .dollar { position: relative; }
body.fixed-left .jf-lrow .dollar .form-control { padding-left: 24px; }

/* The remove control sits on the row's top line, level with the first field
   rather than centred against a row whose height depends on the description. */
body.fixed-left .jf-lrow .jf-remove { margin-top: 22px; }

/* ── inline control rows (discount, tax) ────────────────────────────────── */

body.fixed-left .jf-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

body.fixed-left .jf-inline .jf-inp { width: auto; flex: 0 1 auto; min-width: 90px; }

/* The totals block on the FORM.
 *
 * The design right-aligns it under the table rather than stretching it edge to
 * edge: a subtotal spread across 700px reads as two unrelated things. It is a
 * narrow column pinned right, with the editors it opens sitting inside it. */
body.fixed-left .jf-fcard .jf-totals {
    align-items: stretch;
    margin-left: auto;
    width: 100%;
    max-width: 330px;
}

body.fixed-left .jf-fcard .jf-totals__row { justify-content: space-between; gap: 16px; }
body.fixed-left .jf-fcard .jf-totals .adcnt { cursor: pointer; color: var(--jf-moss); font-weight: 600; }
body.fixed-left .jf-fcard .jf-totals .jf-quietlink { margin-top: 0; font-size: 12.5px; }
body.fixed-left .jf-fcard .jf-totals .jf-inline { justify-content: flex-end; }

body.fixed-left .jf-hint {
    background: #f4f7ee;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    color: #224037;
}

/* ── the client combobox ────────────────────────────────────────────────── */

/* The design searches for a client rather than opening a 400-row select. The
   real field stays a hidden <select> so its options are both the search index
   and what posts — one list, not two. */
body.fixed-left .jf-combo { position: relative; }
body.fixed-left .jf-hidden { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; }

body.fixed-left .jf-combo__list {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 12px;
    box-shadow: 0 20px 40px -18px rgba(14, 59, 50, 0.45);
    z-index: 35;
    max-height: 264px;
    overflow-y: auto;
    padding: 6px;
    display: none;
}

body.fixed-left .jf-combo__list.is-open { display: block; }

body.fixed-left .jf-combo__item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 8px 10px;
    cursor: pointer;
    font-family: var(--jf-font);
}

body.fixed-left .jf-combo__item:hover { background: #f1f4ee; }
body.fixed-left .jf-combo__name { display: block; font-size: 14px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-combo__meta { display: block; font-size: 12.5px; color: #46655c; margin-top: 2px; }
body.fixed-left .jf-combo__empty { padding: 10px; font-size: 13px; color: #46655c; }

/* ── the address hint box ───────────────────────────────────────────────── */

body.fixed-left .jf-pinbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    background: #f4f7ee;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    color: #224037;
    line-height: 1.5;
}

body.fixed-left .jf-pinbox svg { flex: none; margin-top: 1px; }
body.fixed-left .jf-pinbox__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; color: #46655c; font-size: 12.5px; }

/* ── a quiet inline link, for the two "+ Add" affordances ───────────────── */

body.fixed-left .jf-quietlink {
    display: inline-block;
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--jf-moss);
    cursor: pointer;
}

body.fixed-left .jf-quietlink:hover { color: var(--jf-forest); text-decoration: underline; }

/* ── three across, for date / start / duration ──────────────────────────── */

body.fixed-left .jf-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 620px) {
    body.fixed-left .jf-grid3 { grid-template-columns: minmax(0, 1fr); }
}

/* A three-option segmented control (priority) should fill its column. */
body.fixed-left .jf-seg--wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── tick lists: crew and salesperson ───────────────────────────────────── */

body.fixed-left .jf-picklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    max-height: 268px;
    overflow-y: auto;
}


body.fixed-left .jf-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1.5px solid #dfe4dc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    margin: 0;
    transition: 0.15s ease;
}

body.fixed-left .jf-pick input { position: absolute; opacity: 0; pointer-events: none; }
body.fixed-left .jf-pick:hover { border-color: #b6c2b3; }

body.fixed-left .jf-pick:has(input:checked) {
    border-color: var(--jf-forest);
    background: #f2f6ea;
}

body.fixed-left .jf-pick__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8efdc;
    color: #2c4d44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    flex: none;
}

body.fixed-left .jf-pick__body { min-width: 0; flex: 1; }
body.fixed-left .jf-pick__name { font-size: 13.5px; font-weight: 600; color: var(--jf-forest); }

/* The design writes the role on the SAME line, after a middot — "Rico Perez ·
   Lead technician" — not stacked under the name. */
body.fixed-left .jf-pick__meta { font-size: 13px; color: #46655c; }
body.fixed-left .jf-pick__meta::before { content: " · "; color: #a9b7ae; }

/* The tick is the design's confirmation that a row is chosen. */
body.fixed-left .jf-pick__tick { color: transparent; font-size: 14px; font-weight: 800; flex: none; }
body.fixed-left .jf-pick:has(input:checked) .jf-pick__tick { color: var(--jf-forest); }
body.fixed-left .jf-picklist__empty { font-size: 13px; color: #46655c; padding: 8px 2px; }

/* ── line items, as the design's table ──────────────────────────────────── */

/* The editable table sits in the LEFT column of a 1fr/320px grid, so at a
   1,100–1,300px window it has roughly 500px to work in. A 620px floor put it
   permanently into horizontal scroll and clipped the TOTAL column and the
   remove button — the two things at the right-hand end. */
body.fixed-left .jf-lines--edit { min-width: 460px; table-layout: fixed; }
body.fixed-left .jf-lines--edit td { padding: 10px 6px; vertical-align: top; }
body.fixed-left .jf-lines--edit .jf-inp { padding: 0 10px; }
body.fixed-left .jf-lines--edit td:first-child { padding-left: 0; }
body.fixed-left .jf-lines--edit th:first-child { padding-left: 0; }
body.fixed-left .jf-lines--edit tbody tr { background: transparent; }
body.fixed-left .jf-lines--edit tbody tr:nth-child(even) { background: transparent; }
body.fixed-left .jf-lines--edit .jf-lrow__desc { margin-top: 8px; min-height: 54px; }
body.fixed-left .jf-lines--edit .jf-lrow__amount { text-align: right; font-weight: 700; white-space: nowrap; padding-top: 22px; }
body.fixed-left .jf-lines--edit .jf-remove { margin-top: 14px; }

/* The theme draws the currency symbol as .dollar::before at left: 8px, so the
   field needs padding to clear it or the symbol lands on the number: 275.50
   read as "$75.50", a wrong figure rather than a cosmetic overlap. */
body.fixed-left .jf-lines--edit .dollar { position: relative; }
body.fixed-left .jf-lines--edit .dollar .jf-inp { padding-left: 24px; }

/* ── the file drop area ─────────────────────────────────────────────────── */

body.fixed-left .jf-drop {
    border: 1.5px dashed #cfd8c9;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: 0.15s ease;
    background: #fbfcf9;
}

body.fixed-left .jf-drop:hover,
body.fixed-left .jf-drop.is-over { border-color: var(--jf-forest); background: #f2f6ea; }
body.fixed-left .jf-drop p { margin: 0 0 8px; font-size: 13.5px; color: #46655c; }

body.fixed-left .jf-drop .file-label {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--jf-forest);
    cursor: pointer;
    margin: 0;
}

body.fixed-left .jf-newfiles { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }

/* The quote's LIKELIHOOD rating. Five spans, lit or unlit — a loop rather than
   str_repeat, because scripts/test-xss.php holds HTML-text echoes at zero and a
   call that returns markup cannot be distinguished from one that returns user
   input. */
body.fixed-left .jf-stars { font-size: 19px; letter-spacing: 2px; line-height: 1; }
body.fixed-left .jf-stars__on { color: #e0a32e; }
body.fixed-left .jf-stars__off { color: #d7dfd6; }

/* The pickable version on the quote form: five radios drawn as stars.

   The markup lists them 5 to 1 and row-reverse puts them back in reading order,
   which is what lets ~ light the CHOSEN star and every one before it — CSS can
   only select forwards, so "all stars up to this one" has to be "all siblings
   after it" in a reversed row. */
body.fixed-left .jf-stars--pick {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 12px;
    font-size: 26px;
}

body.fixed-left .jf-stars__opt { color: #d7dfd6; cursor: pointer; margin: 0; transition: color 0.12s ease; }
body.fixed-left .jf-stars__opt input { position: absolute; opacity: 0; pointer-events: none; }
body.fixed-left .jf-stars__opt:hover,
body.fixed-left .jf-stars__opt:hover ~ .jf-stars__opt { color: #edc06a; }
body.fixed-left .jf-stars__opt:has(input:checked),
body.fixed-left .jf-stars__opt:has(input:checked) ~ .jf-stars__opt { color: #e0a32e; }

/* Keyboard focus has to be visible: the input itself is off-screen. */
body.fixed-left .jf-stars__opt:focus-within { outline: 2px solid var(--jf-forest); outline-offset: 2px; border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   NOTICES
   ══════════════════════════════════════════════════════════════════════════

   The flash message, restyled to the design.

   render_flash() emits bootstrap's `.alert.alert-{type}.alert-dismissible`, and
   so do dozens of controllers that set raw HTML into flashdata — that markup
   cannot be changed from one place. So the theme's classes are restyled IN
   PLACE, the same way .topbar and .content-page are, and .jf-note is the shape
   both they and new markup take.
   ══════════════════════════════════════════════════════════════════════════ */

body.fixed-left .jf-note,
body.fixed-left .alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    position: relative;
    border: 1px solid #dfe4dc;
    border-left-width: 4px;
    border-radius: 12px;
    background: #fff;
    padding: 13px 42px 13px 15px;
    margin: 0 0 16px;
    font-family: var(--jf-font);
    font-size: 13.5px;
    line-height: 1.5;
    color: #1b3b33;
    box-shadow: 0 8px 20px -16px rgba(14, 59, 50, 0.5);
}

/* The tone lives on the left edge, so the message itself stays readable rather
   than being a block of coloured text. */
body.fixed-left .jf-note--ok,
body.fixed-left .alert-success { border-left-color: #2f7a4a; background: #f4faf1; color: #21503a; }

body.fixed-left .jf-note--bad,
body.fixed-left .alert-danger,
body.fixed-left .alert-error { border-left-color: #a1432f; background: #fdf6f3; color: #7d3320; }

body.fixed-left .jf-note--warn,
body.fixed-left .alert-warning { border-left-color: #c08a1f; background: #fdfaf1; color: #6f5514; }

body.fixed-left .jf-note--info,
body.fixed-left .alert-info { border-left-color: #2b5a8c; background: #f4f8fd; color: #23486e; }

/* Bootstrap's dismiss button is an absolutely-positioned × with its own font
   sizing; it is re-placed rather than replaced, because the markup comes from
   render_flash and from raw strings all over the controllers. */
body.fixed-left .alert .close,
body.fixed-left .jf-note__x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: inherit;
    opacity: 0.55;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.fixed-left .alert .close:hover,
body.fixed-left .jf-note__x:hover { opacity: 1; background: rgba(14, 59, 50, 0.07); }

body.fixed-left .jf-note__icon { flex: none; margin-top: 1px; }
body.fixed-left .jf-note__body { min-width: 0; flex: 1; }
body.fixed-left .jf-note strong { font-weight: 700; }

/* ── Team ───────────────────────────────────────────────────────────────────
   Jobflyte Team + My Profile. Everything here is scoped under body.fixed-left
   like the rest of this file, so the panel skin cannot leak onto the public
   booking page or the marketing site, which share no layout with it.
   ------------------------------------------------------------------------- */

/* The design's Team header carries three cards, not the dashboard's four. */
body.fixed-left .jf-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* PERSON cell: avatar or initials, name, and the nearest thing this schema has
   to a job title. A link, because the whole cell is the way into the record. */
body.fixed-left .jf-person {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    min-width: 0;
}

body.fixed-left .jf-person:hover .jf-person__name { color: var(--jf-moss); }

body.fixed-left .jf-person__img,
body.fixed-left .jf-person__initials {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

/* Initials rather than a stock silhouette. A default avatar repeated down a
   column reads as "no data"; two letters read as a person. */
body.fixed-left .jf-person__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.fixed-left .jf-person__text { min-width: 0; display: flex; flex-direction: column; }
body.fixed-left .jf-person__name { font-weight: 700; line-height: 1.25; }

body.fixed-left .jf-person__sub {
    font-size: 12px;
    color: #46655c;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A STATIC role label. Deliberately not .jf-chip, which is the checkbox chip:
   that one styles a nested <input> and carries an is-on state, so reusing it
   here would give a read-only label the affordances of a control. */
body.fixed-left .jf-rolechip {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--jf-line);
    border-radius: 999px;
    background: #f4f7f2;
    font-size: 12px;
    font-weight: 700;
    color: var(--jf-forest);
    white-space: nowrap;
}

/* Two stacked contact lines in one cell. */
body.fixed-left .jf-stack__line {
    display: block;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

body.fixed-left .jf-stack__line--muted { font-size: 12px; color: #46655c; }
body.fixed-left .jf-stack__line:hover { color: var(--jf-moss); }

/* "There is nothing here", as opposed to a zero. A dash tells the reader the
   value is absent; a 0 claims a measurement was taken. */
body.fixed-left .jf-muted { color: #8aa096; }

body.fixed-left .jf-sronly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.fixed-left .jf-inp--search { min-width: 260px; }

/* The empty state gets a heading and a sentence. The base .jf-empty is one
   line of muted text, which is right for "no rows match a filter" and far too
   thin for "you have not added anybody yet". */
body.fixed-left .jf-empty__title {
    font-family: var(--jf-display);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--jf-forest);
}

body.fixed-left .jf-empty__body { margin: 0 0 16px; }
body.fixed-left .jf-empty--filtered { padding: 22px 0; }

body.fixed-left .jf-tbl--team td { vertical-align: middle; }
body.fixed-left .jf-tbl--team th:nth-child(4),
body.fixed-left .jf-tbl--team th:nth-child(5),
body.fixed-left .jf-tbl--team td:nth-child(4),
body.fixed-left .jf-tbl--team td:nth-child(5) { white-space: nowrap; }

/* A name on one line, in the TEAM table only. Without it "Tia Brooks" breaks
   after the first word and every row grows to two lines. Scoped, because a
   product called "Thermostat commissioning and calibration" does need to wrap,
   and an unscoped rule pushed those tables sideways instead. */
body.fixed-left .jf-tbl--team .jf-person__name { white-space: nowrap; }

/* Name over subtitle when they are used directly in a cell rather than inside
   a .jf-person__text flex column. Both are spans, so without this the
   description ran on after the name: "Refrigerant R-410A Per kilogram,
   supplied and charged." on one line. */
body.fixed-left .jf-tbl td > .jf-person__name,
body.fixed-left .jf-tbl td > .jf-person__sub { display: block; }

/* CONTACT is capped so the ellipsis on .jf-stack__line can actually engage.
   The rule was there from the start and never fired: with no width limit the
   cell simply grew, and one long address like
   tia.brooks+demo504@example.com pushed the table 400px past its container. */
body.fixed-left .jf-tbl--team td:nth-child(3) { max-width: 240px; }
body.fixed-left .jf-tbl--team td:nth-child(3) .jf-stack { min-width: 0; }

@media (max-width: 900px) {
    body.fixed-left .jf-kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.fixed-left .jf-inp--search { min-width: 0; width: 100%; }
}

/* ── Team form ──────────────────────────────────────────────────────────── */

/* Photo picker. The real <input type=file> is visually hidden rather than
   styled: browsers do not allow the native control to be restyled reliably,
   and hiding it keeps the keyboard and screen-reader path intact because the
   visible button forwards the click to it. */
body.fixed-left .jf-avatarpick {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.fixed-left .jf-avatarpick__img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--jf-line);
    background: #f4f7f2;
    flex: none;
}

body.fixed-left .jf-avatarpick__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

body.fixed-left .jf-avatarpick__actions .jf-fcard__hint { flex-basis: 100%; margin: 0; }

/* ── QA sheet rows 21-23: cards whose contents touch ─────────────────────────
 *
 * Measured on /admin/team-members/<id>/edit at 1440px, not eyeballed:
 *
 *   .jf-fcard__title  ->  next block      gap 0px   (Photo card, Work card)
 *   .jf-float         ->  .jf-float       gap 0px   (Work card)
 *   "Choose photo" 38px tall, top 255  |  "Remove" 32px tall, top 250
 *
 * The design system already answers the first two — `.jf-grid2` and `.jf-stack`
 * carry `margin-top: 14px` and a gap, and `.jf-float` sets `margin: 0` BECAUSE
 * it is meant to live inside one of them. The cards that look wrong are the
 * ones whose markup skipped the wrapper.
 *
 * Fixing it here as well as in the markup is deliberate: a card title that
 * touches its content is wrong on every screen that does it, and there are
 * more of those than the two the QA pass happened to open.
 */

/* A title with something after it always gets the same 14px the wrappers use.
   `:not(:only-child)` so a card that is nothing but a heading keeps its shape. */
body.fixed-left .jf-fcard > .jf-fcard__title:not(:only-child) { margin-bottom: 14px; }

/* ...and the wrapper's own top margin is dropped when it follows that title, or
   the two would add up to 28px and the fix would look like a different bug. */
body.fixed-left .jf-fcard > .jf-fcard__title + .jf-grid2,
body.fixed-left .jf-fcard > .jf-fcard__title + .jf-stack { margin-top: 0; }

/* 🔴 `.jf-addbtn` carries `margin-top: 14px` for when it sits UNDER something in
   a stack — "+ Add another", and so on. In a flex row of buttons that margin
   pushes it 14px below its neighbours, which is the whole of the reported
   misalignment: the two buttons are not on different baselines by accident,
   one of them is being pushed down by a margin meant for another context. */
body.fixed-left .jf-avatarpick__actions .jf-addbtn { margin-top: 0; }

/* And the pair share a height, so they line up whatever their padding and
   borders are. `.jf-cancel` is a text button with no height of its own; without
   this it is 32px beside a 38px neighbour. */
body.fixed-left .jf-avatarpick__actions .jf-addbtn,
body.fixed-left .jf-avatarpick__actions .jf-cancel {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


body.fixed-left .jf-fcard__subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--jf-forest);
    margin: 18px 0 2px;
}

/* Preset rows. A block target rather than a bare radio: the description is
   part of the choice, so the whole card has to be clickable. */
body.fixed-left .jf-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--jf-line);
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
    background: #fff;
}

body.fixed-left .jf-radio:hover { border-color: #b6c2b3; }
body.fixed-left .jf-radio input { margin-top: 3px; flex: none; accent-color: var(--jf-forest); }
body.fixed-left .jf-radio span { display: flex; flex-direction: column; min-width: 0; }
body.fixed-left .jf-radio strong { font-size: 13px; font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-radio small { font-size: 12px; color: #46655c; line-height: 1.4; }

body.fixed-left .jf-radio:has(input:checked) {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 1px var(--jf-forest) inset;
}

body.fixed-left .jf-rolestate { margin: 0 0 6px; }

/* ── My profile ─────────────────────────────────────────────────────────── */

body.fixed-left .jf-idcard { display: flex; align-items: center; gap: 16px; }

body.fixed-left .jf-idcard__img,
body.fixed-left .jf-idcard__initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

body.fixed-left .jf-idcard__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 20px;
    font-weight: 800;
}

body.fixed-left .jf-idcard__body { min-width: 0; }

body.fixed-left .jf-idcard__name {
    font-family: var(--jf-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--jf-forest);
}

body.fixed-left .jf-idcard__meta { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Label/value pairs. A definition list rather than a two-column grid of divs,
   because that is what this is and screen readers announce the pairing. */
body.fixed-left .jf-deflist { margin: 0; }

body.fixed-left .jf-deflist__row {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--jf-line);
}

body.fixed-left .jf-deflist__row:last-child { border-bottom: 0; }
body.fixed-left .jf-deflist dt { font-size: 12px; font-weight: 700; color: #46655c; margin: 0; }
body.fixed-left .jf-deflist dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

body.fixed-left .jf-prefs { list-style: none; margin: 0; padding: 0; }

body.fixed-left .jf-prefs__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--jf-line);
}

body.fixed-left .jf-prefs__row:last-child { border-bottom: 0; }

@media (max-width: 700px) {
    body.fixed-left .jf-deflist__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ── Tax rates ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl--tax td { vertical-align: middle; }
body.fixed-left .jf-tbl--tax th:nth-child(2),
body.fixed-left .jf-tbl--tax td:nth-child(2),
body.fixed-left .jf-tbl--tax th:nth-child(4),
body.fixed-left .jf-tbl--tax td:nth-child(4) { white-space: nowrap; }

/* TEXTAREAS INSIDE A FLOAT LABEL.
   The float rules were written for `> input` and `> select` only. A textarea
   dropped into one inherited none of them: it kept the browser's default
   ~150px width beside full-width siblings, and because the label-raising
   selectors did not name it either, "Description" stayed vertically centred in
   the middle of the box. Same three rules the other two controls get. */
body.fixed-left .jf-float > textarea {
    /* A textarea is inline by default, so the label wrapping it reserved a
       few pixels of descender space under the box and the field sat on an
       invisible ledge. */
    display: block;
    width: 100%;
    min-height: 92px;
    padding: 24px 14px 8px;
    border-radius: 12px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14.5px;
    color: var(--jf-forest);
    outline: none;
    resize: vertical;
    transition: 0.16s ease;
}

body.fixed-left .jf-float > textarea:focus { border-color: var(--jf-forest); }

body.fixed-left .jf-float > textarea + span {
    top: 9px;
    transform: none;
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* A labelled field that is NOT a float.
   Floating labels assume a single-line control whose value can slide out from
   under the label. A multiple select, a list box and a colour input cannot do
   that, so they get a plain label above instead of a label printed on top of
   their first row. */
body.fixed-left .jf-fieldblock { display: block; margin-top: 12px; }

body.fixed-left .jf-fieldblock__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #46655c;
    margin-bottom: 6px;
}

body.fixed-left select.jf-sel--multi {
    height: auto;
    min-height: 120px;
    padding: 8px 10px;
}

body.fixed-left select.jf-sel--multi option { padding: 4px 6px; border-radius: 6px; }

/* ── Notifications panel ────────────────────────────────────────────────────
 *
 * A DROPDOWN UNDER THE BELL, per the design: a 340px card floating over the
 * page, anchored to the button that opened it.
 *
 * It used to be a Bootstrap `modal-dialog-slideout` - a full-height drawer
 * pinned to the right edge of the window, covering the page top to bottom.
 * That is a different component and it is gone: no .modal-content, no
 * .modal-dialog, no Bootstrap positioning. The panel now lives inside the
 * bell's <li>, which is what `position: absolute` resolves against.
 * ------------------------------------------------------------------------- */

/* The anchor. Without it the panel would position against the page. */
body.fixed-left .notification-list { position: relative; }

body.fixed-left .jf-notif {
    position: absolute;
    top: 42px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    z-index: 1050;
}

body.fixed-left .jf-notif[hidden] { display: none; }

body.fixed-left .jf-notif__panel {
    display: flex;
    flex-direction: column;
    max-height: min(460px, calc(100vh - 90px));
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(14, 59, 50, 0.45);
    overflow: hidden;
    animation: jf-notif-in 0.16s ease;
}

/* Down and in, the way the design's panel arrives. */
@keyframes jf-notif-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    /* Pinned to the viewport rather than the button, or a 340px card anchored
       to a bell near the right edge hangs off the screen. */
    body.fixed-left .jf-notif { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; }
}

body.fixed-left .jf-notif__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--jf-line);
}

body.fixed-left .jf-notif__title {
    margin: 0;
    font-family: var(--jf-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--jf-forest);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The count, not a "badge". Bootstrap's badge classes carry their own palette
   and this panel should not introduce a second one. */
body.fixed-left .jf-notif__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--jf-lime);
    color: var(--jf-ink);
    font-family: var(--jf-font);
    font-size: 11.5px;
    font-weight: 800;
}

body.fixed-left .jf-notif__x {
    background: none;
    border: 0;
    padding: 0 2px;
    font-size: 22px;
    line-height: 1;
    color: #46655c;
    cursor: pointer;
    opacity: 0.7;
}

body.fixed-left .jf-notif__x:hover { opacity: 1; }

body.fixed-left .jf-notif__body { flex: 1; overflow-y: auto; padding: 8px; }
body.fixed-left .jf-notif__list { display: flex; flex-direction: column; }

body.fixed-left .jf-notif__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

body.fixed-left .jf-notif__item:hover { background: #f4f7f2; }

/* Unread is ONE signal: a filled dot. The version this replaces used a left
   border, a background tint and a badge for the same state. */
body.fixed-left .jf-notif__dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #cdd8cf;
}

body.fixed-left .jf-notif__item.is-unread .jf-notif__dot {
    background: var(--jf-moss);
    border-color: var(--jf-moss);
}

body.fixed-left .jf-notif__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }

body.fixed-left .jf-notif__who {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jf-forest);
    overflow-wrap: anywhere;
}

body.fixed-left .jf-notif__what { font-size: 12.5px; color: #46655c; }
body.fixed-left .jf-notif__when { font-size: 11.5px; color: #8aa096; }

body.fixed-left .jf-notif__empty { text-align: center; padding: 48px 20px; color: #46655c; }

body.fixed-left .jf-notif__emptytitle {
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--jf-forest);
    margin: 0 0 4px;
}

body.fixed-left .jf-notif__empty .no-note { font-size: 13px; margin: 0; }

body.fixed-left .jf-notif__foot {
    padding: 12px 18px;
    border-top: 1px solid var(--jf-line);
}

body.fixed-left .jf-notif__all {
    display: block;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jf-forest);
}

body.fixed-left .jf-notif__all:hover { color: var(--jf-moss); }

/* ── Activity list ──────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl--activity td { vertical-align: middle; }

body.fixed-left .jf-activity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: inherit;
}

body.fixed-left .jf-activity:hover .jf-activity__msg { color: var(--jf-moss); }
body.fixed-left .jf-activity__msg { min-width: 0; overflow-wrap: anywhere; }

/* Unread rows read slightly heavier. The dot carries the state; this is
   support, not a second signal in a different colour. */
body.fixed-left .jf-tbl--activity tr.is-unread .jf-activity__msg { font-weight: 700; }

/* The activity table used to carry the panel's unread dot, and a rule here
   filled it for unread ROWS because the panel's own rule keys off
   .jf-notif__item. Both are gone: QA sheet row 39 reported the read state as
   "empty unaligned radio buttons", and a column of hollow rings beside a STATUS
   column that already says Read is exactly that. The dot stays in the
   notification PANEL, where it is the only signal there is. */

/* The read toggle is a <button> wearing the status pill. jf-status was written
   for a <span>, so the button's own chrome has to go. */
body.fixed-left button.jf-status {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

/* ── Reports ────────────────────────────────────────────────────────────── */

body.fixed-left .jf-sectiontitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #46655c;
    margin: 22px 0 10px;
}

body.fixed-left .jf-cardgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.fixed-left .jf-reportcard {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--jf-line);
    border-radius: 14px;
    color: inherit;
}

body.fixed-left .jf-reportcard:hover { border-color: var(--jf-forest); }

body.fixed-left .jf-reportcard__icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f5ee;
    color: var(--jf-forest);
}

body.fixed-left .jf-reportcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

body.fixed-left .jf-reportcard__label {
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--jf-forest);
}

body.fixed-left .jf-reportcard__note { font-size: 12.5px; color: #46655c; line-height: 1.4; }

/* The shared date range bar. */
body.fixed-left .jf-daterange {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

body.fixed-left .jf-daterange__field { min-width: 170px; }
body.fixed-left .jf-daterange__go { flex: none; }

/* Report tables. Money right-aligned and tabular, so columns of figures line
   up on the decimal instead of drifting with the glyph widths. */
body.fixed-left .jf-tbl--report td { vertical-align: top; }

body.fixed-left .jf-tbl--report .jf-num,
body.fixed-left .jf-tbl--report th.jf-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-tbl--report tfoot td {
    font-weight: 800;
    color: var(--jf-forest);
    border-top: 2px solid var(--jf-line);
}

body.fixed-left .jf-lines { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
body.fixed-left .jf-lines li { padding: 2px 0; }
body.fixed-left .jf-lines__qty { color: #8aa096; margin-left: 6px; white-space: nowrap; }

/* Overlapping crew faces, the pattern the dispatch board uses. */
body.fixed-left .jf-crew { display: inline-flex; align-items: center; }

body.fixed-left .jf-crew__face {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

body.fixed-left .jf-crew__face:first-child { margin-left: 0; }
body.fixed-left .jf-crew__face--initial { background: var(--jf-forest); color: var(--jf-paper); }
body.fixed-left .jf-crew__face--more { background: #e8eee6; color: var(--jf-forest); }

@media (max-width: 1100px) {
    body.fixed-left .jf-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    body.fixed-left .jf-cardgrid { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-daterange__field { min-width: 0; flex: 1 1 140px; }
}

/* Status badges come from get_job_status_badge(), which emits its own markup.
   In a narrow report column "In progress" wrapped and the second line escaped
   the pill's rounded background. */
body.fixed-left .jf-tbl--report td .badge,
body.fixed-left .jf-tbl--report td [class*="status"] {
    white-space: nowrap;
    display: inline-block;
}

/* ── Report charts ──────────────────────────────────────────────────────── */

body.fixed-left .jf-chartrow {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* Chart.js needs a sized parent when maintainAspectRatio is off, or the canvas
   grows on every resize. */
body.fixed-left .jf-chart { position: relative; height: 280px; }

/* A loss, and only a loss. The tables this replaces coloured revenue blue,
   cost red, profit green and margin purple, which is four colours carrying no
   information: the figures are already in labelled columns. */
body.fixed-left .jf-num.is-loss,
body.fixed-left .jf-kpi__value.is-loss { color: #b0503c; }

@media (max-width: 1100px) {
    body.fixed-left .jf-chartrow { grid-template-columns: minmax(0, 1fr); }
}

/* ── Message templates ──────────────────────────────────────────────────── */

body.fixed-left .jf-templates { list-style: none; margin: 0; padding: 0; }

body.fixed-left .jf-templates__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--jf-line);
}

body.fixed-left .jf-templates__row:last-child { border-bottom: 0; }
body.fixed-left .jf-templates__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.fixed-left .jf-templates__name { font-weight: 700; color: var(--jf-forest); }
body.fixed-left .jf-templates__meta { font-size: 12px; color: #46655c; }

/* Tabs inside the template dialog. */
body.fixed-left .jf-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--jf-line);
    margin-bottom: 16px;
}

body.fixed-left .jf-tabs__tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #46655c;
    cursor: pointer;
}

body.fixed-left .jf-tabs__tab.is-on { color: var(--jf-forest); border-bottom-color: var(--jf-forest); }
body.fixed-left .jf-tabs__pane.is-hidden { display: none; }

/* ── Tab strip with counts ──────────────────────────────────────────────────
   The filter pattern the design uses on list pages: the options and their
   sizes are readable before anything is clicked, which a dropdown cannot do.
   ------------------------------------------------------------------------- */

body.fixed-left .jf-tabstrip { display: flex; gap: 4px; flex-wrap: wrap; }

body.fixed-left .jf-tabstrip__tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #46655c;
    cursor: pointer;
    white-space: nowrap;
}

body.fixed-left .jf-tabstrip__tab:hover { background: #f0f5ee; }

body.fixed-left .jf-tabstrip__tab.is-on {
    background: var(--jf-forest);
    color: var(--jf-paper);
}

/* The count is the point of the tab, so it stays legible in both states. */
body.fixed-left .jf-tabstrip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e8eee6;
    color: var(--jf-forest);
    font-size: 11px;
    font-weight: 800;
}

body.fixed-left .jf-tabstrip__tab.is-on .jf-tabstrip__count {
    background: var(--jf-lime);
    color: var(--jf-ink);
}

/* A count beside a section heading, for grouped configuration lists. */
body.fixed-left .jf-sectiontitle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 17px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e8eee6;
    color: var(--jf-forest);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0;
}

/* Transaction ids and other machine strings. */
body.fixed-left .jf-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #46655c;
    background: #f4f7f2;
    border-radius: 5px;
    padding: 2px 6px;
}

/* ── Billing and plan ───────────────────────────────────────────────────────
 *
 * Built against docs/Login page redesign/Jobflyte Billing and Plan.dc.html.
 * Two columns, 1fr and 300px, with everything on the left in its own card. */

body.fixed-left .jf-billgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

body.fixed-left .jf-billgrid__main,
body.fixed-left .jf-billgrid__rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* A card that carries its own padding, for sections that are not a table. */
body.fixed-left .jf-panel--pad { padding: 20px 22px; }

body.fixed-left .jf-cardtitle {
    font-family: var(--jf-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--jf-ink);
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
}

body.fixed-left .jf-cardsub {
    font-size: 12.5px;
    line-height: 1.5;
    color: #46655c;
    margin: 3px 0 0;
}

body.fixed-left .jf-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-panel__count { font-size: 12.5px; color: #46655c; }

/* ── the dark hero ──────────────────────────────────────────────────────── */

body.fixed-left .jf-plancard {
    background: var(--jf-forest);
    border: 1px solid var(--jf-forest);
    border-radius: 16px;
    padding: 22px 24px;
    color: var(--jf-paper);
}

body.fixed-left .jf-plancard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

body.fixed-left .jf-plancard__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(234, 243, 238, 0.7);
}

/* Specific enough to beat whatever colours headings inside a card. The first
   version rendered forest-on-forest: the plan name was present in the DOM, the
   right size, and invisible. */
body.fixed-left .jf-plancard .jf-plancard__name {
    font-family: var(--jf-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 6px 0 0;
    color: var(--jf-paper);
}

body.fixed-left .jf-plancard .jf-plancard__name--sm { font-size: 22px; }

body.fixed-left .jf-plancard__line {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: rgba(234, 243, 238, 0.82);
}

body.fixed-left .jf-plancard__next { text-align: right; }

body.fixed-left .jf-meters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

/* QA sheet row 18: "Metric values are separated from labels, causing
   misaligned layout and confusion."

   Measured on the plan card: `justify-content: space-between` put "Users" at
   left 0 and "4 of 5" at the far right edge, 228px away across a 263px row.
   With three meters stacked, nothing tells the eye which value belongs to
   which label - they read as two columns of unrelated words rather than three
   labelled readings.

   Paired instead. The value sits straight after its label, so "Users 4 of 5"
   reads as one phrase above its own bar, which is what the bar is measuring. */
body.fixed-left .jf-meter__top {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    font-size: 12.5px;
}

body.fixed-left .jf-meter__label { color: rgba(234, 243, 238, 0.82); }

body.fixed-left .jf-meter__value { font-weight: 700; white-space: nowrap; }

body.fixed-left .jf-meter__track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin-top: 7px;
    overflow: hidden;
}

body.fixed-left .jf-meter__fill { height: 100%; border-radius: 999px; background: var(--jf-lime); }

/* Near the cap. Amber rather than red: you are not broken, you are close. */
body.fixed-left .jf-meter__fill.is-full { background: #f0b429; }

/* ── change plan ────────────────────────────────────────────────────────── */

body.fixed-left .jf-planhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Monthly [switch] Yearly, as the design draws it. Two pill buttons read as a
   filter; a switch reads as one setting with two positions, which is what it
   is. */
body.fixed-left .jf-cycle { display: flex; align-items: center; gap: 10px; }

body.fixed-left .jf-cycle__label { font-size: 13px; color: var(--jf-slate); }

body.fixed-left .jf-cycle__save { color: #2f7a4a; font-weight: 700; }

body.fixed-left .jf-cycle__switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d7ded3;
    cursor: pointer;
    transition: background 0.16s ease;
}

body.fixed-left .jf-cycle__switch.is-on { background: var(--jf-forest); }

body.fixed-left .jf-cycle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.16s ease;
}

body.fixed-left .jf-cycle__switch.is-on .jf-cycle__knob { transform: translateX(18px); }

body.fixed-left .jf-cycle__switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.55);
}

/* Flex rather than a three-column grid, so two plans do not leave a hole and
   four do not overflow. */
body.fixed-left .jf-plans { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

body.fixed-left .jf-plan {
    flex: 1 1 210px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1.5px solid #e6eae2;
    border-radius: 15px;
    transition: 0.15s ease;
}

/* The plan you are ON is the one held, not the one being upsold. */
body.fixed-left .jf-plan.is-current { border-color: var(--jf-forest); background: #f6f8f2; }

body.fixed-left .jf-plan__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.fixed-left .jf-plan__name {
    font-family: var(--jf-font);
    font-size: 15px;
    font-weight: 800;
    color: var(--jf-ink);
    margin: 0;
}

body.fixed-left .jf-plan__tag {
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    background: #e4f0dd;
    color: #2f7a4a;
}

body.fixed-left .jf-plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 0;
}

body.fixed-left .jf-plan__amount {
    font-family: var(--jf-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--jf-ink);
}

body.fixed-left .jf-plan__per { font-size: 12.5px; color: #46655c; }

body.fixed-left .jf-plan__summary {
    font-size: 12.5px;
    line-height: 1.5;
    color: #46655c;
    margin: 4px 0 0;
}

body.fixed-left .jf-plan__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    flex: 1;
}

body.fixed-left .jf-plan__features li {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #224037;
}

body.fixed-left .jf-plan__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2f7a4a;
    font-weight: 800;
}

body.fixed-left .jf-plan__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin-top: 14px;
    border-radius: 10px;
    border: 1.5px solid var(--jf-forest);
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.fixed-left .jf-plan__cta--go:hover { background: var(--jf-moss); border-color: var(--jf-moss); color: var(--jf-paper); }

body.fixed-left .jf-plan__cta.is-current {
    background: #fff;
    border-color: #dfe4dc;
    color: #46655c;
    cursor: default;
}

/* ── add-ons ────────────────────────────────────────────────────────────── */

body.fixed-left .jf-addons { list-style: none; margin: 6px 0 0; padding: 0; }

body.fixed-left .jf-addons__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-addons__row:last-child { border-bottom: 0; }

body.fixed-left .jf-addons__text { flex: 1; min-width: 0; }

body.fixed-left .jf-addons__name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jf-ink);
}

body.fixed-left .jf-addons__note {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: #46655c;
}

body.fixed-left .jf-addons__price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

body.fixed-left .jf-addons__form { margin: 0; display: flex; align-items: center; }

/* QA 12 Oct rows 5/7: what the add-on switch becomes for a viewer who may not
   change billing. Sized and coloured like the switch it replaces so the row
   keeps its shape, and inside `body.fixed-left` like every rule around it -
   outside that scope it would never apply. */
body.fixed-left .jf-addons__state {
    min-width: 44px;
    text-align: right;
    font-size: 12.5px;
    font-weight: 600;
    color: #46655c;
    white-space: nowrap;
}

/* The running total, so flipping a switch changes a figure you can see. */
body.fixed-left .jf-estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 13px 15px;
    background: #f4f7ee;
    border-radius: 12px;
}

body.fixed-left .jf-estimate__label { font-size: 13.5px; color: #224037; }

body.fixed-left .jf-estimate__value { font-family: var(--jf-display); font-size: 18px; font-weight: 800; }

/* ── billing history ────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl--zebra { min-width: 660px; }

body.fixed-left .jf-tbl--zebra tbody tr:nth-child(even) { background: #f6f8f2; }

body.fixed-left .jf-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #46655c;
}

/* ── the right rail ─────────────────────────────────────────────────────── */

body.fixed-left .jf-railhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* A saved card. NOT .jf-card, which the auth pages already own; a payment
   method borrowing that name would inherit a 28px white panel. */
body.fixed-left .jf-pm {
    padding: 12px;
    border: 1.5px solid #e6eae2;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

body.fixed-left .jf-pm.is-default { border-color: var(--jf-forest); background: #f6f8f2; }

body.fixed-left .jf-pm:last-of-type { margin-bottom: 0; }

body.fixed-left .jf-pm__top { display: flex; align-items: center; gap: 10px; }

/* Fixed width and clipped. MASTERCARD is ten characters against VISA's four,
   and letting the chip size itself pushed the card number onto two lines in a
   300px rail. */
body.fixed-left .jf-pm__brand {
    flex-shrink: 0;
    width: 42px;
    padding: 5px 4px;
    border-radius: 6px;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-pm__number { white-space: nowrap; }

body.fixed-left .jf-pm__text { flex: 1; min-width: 0; }

body.fixed-left .jf-pm__number {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--jf-ink);
}

body.fixed-left .jf-pm__expiry {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: #46655c;
}

body.fixed-left .jf-pm__badge {
    flex-shrink: 0;
    border-radius: 7px;
    padding: 3px 9px;
    background: #e4f0dd;
    color: #2f7a4a;
    font-size: 11px;
    font-weight: 700;
}

body.fixed-left .jf-pm__actions { display: flex; gap: 8px; margin: 10px 0 0; }

/* The rail's button: white with a border, as the design draws every action in
   it. .jf-save is the solid forest one and belongs on a page's main form. */
body.fixed-left .jf-ghostbtn {
    flex: 1;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    color: var(--jf-ink);
    font-family: var(--jf-font);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s ease;
}

body.fixed-left .jf-ghostbtn:hover { border-color: var(--jf-forest); }

body.fixed-left .jf-ghostbtn--block { width: 100%; flex: none; height: 40px; margin-top: 12px; font-size: 13.5px; }

/* The card's own action sits inside it, so it does not need the form's top gap. */
body.fixed-left .jf-pm__actions .jf-ghostbtn--block { height: 32px; margin-top: 0; font-size: 12.5px; }

/* The header download, with its glyph. */
body.fixed-left .jf-dlbtn { display: inline-flex; align-items: center; gap: 8px; }

body.fixed-left .jf-ghostbtn--danger { color: #a1432f; border-color: #e2bcb0; }

body.fixed-left .jf-ghostbtn--danger:hover { background: #fdf6f3; border-color: #a1432f; }

/* Label above the field, not floating inside it. The rail is 300px and a
   float label has to compete with the value for the same line. */
body.fixed-left .jf-stackform { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

body.fixed-left .jf-sfield__label {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #46655c;
}

body.fixed-left .jf-sfield__input {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    color: var(--jf-forest);
    outline: none;
    transition: 0.15s ease;
}

body.fixed-left textarea.jf-sfield__input { resize: vertical; min-height: 70px; }

/* 🔴 QA sheet row 16: "Fix Dropdown Menu Styling Discrepancy & Misalignment in
   Modal."

   Measured in the equipment modal at 1440px: the text inputs were 40px tall,
   the <select> 38px, and the three date inputs 42px. Three heights stacked in
   one column, each field a couple of pixels out from the one above it, plus the
   select wearing the operating system's own arrow while nothing else in the
   form did.

   None of that was written anywhere. It is what a shared `min-height` produces
   when each control type adds its own intrinsic box on top: a select's option
   list, a date input's spin buttons. So the height is stated rather than left
   to the browser, and the select is given the design system's caret. */

body.fixed-left select.jf-sfield__input,
body.fixed-left input.jf-sfield__input {
    height: 40px;
    min-height: 40px;
}

body.fixed-left textarea.jf-sfield__input { height: auto; min-height: 70px; }

body.fixed-left select.jf-sfield__input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /* The caret, drawn rather than left to the platform, so it matches the one
       on every other select in the app. Inline SVG: an external file would be a
       second request for eleven bytes of chevron. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2346655c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    /* Room for the caret, or a long option name runs underneath it. */
    padding-right: 32px;
}

body.fixed-left .jf-sfield__input:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

body.fixed-left .jf-prefsform { margin: 0; }

body.fixed-left .jf-prefs { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 12px 0 0; padding: 0; }

body.fixed-left .jf-prefs__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

body.fixed-left .jf-prefs__text { font-size: 13.5px; color: #224037; }

body.fixed-left .jf-prefs__note { display: block; margin-top: 2px; font-size: 11.5px; color: #7c8f88; }

/* The one card on the page that can take something away. */
body.fixed-left .jf-danger { border-color: #f0dcd6; }

body.fixed-left .jf-danger .jf-danger__title { color: #a1432f; }

@media (max-width: 1200px) {
    /* The rail goes under the main column before either gets too narrow to
       read. Sticky is dropped with it: a full-width sticky block would pin
       itself over the content it is meant to sit beside. */
    body.fixed-left .jf-billgrid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    body.fixed-left .jf-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.fixed-left .jf-plancard__next { text-align: left; }
}

@media (max-width: 620px) {
    body.fixed-left .jf-meters { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-planhead { align-items: flex-start; }
    body.fixed-left .jf-addons__row { flex-wrap: wrap; }
    body.fixed-left .jf-addons__text { flex-basis: 100%; }
}

/* ── Forms ──────────────────────────────────────────────────────────────────
 *
 * Built against docs/Login page redesign/Jobflyte Forms.dc.html. One page with
 * three views: the list, the builder, and every entry. */

body.fixed-left .jf-state--grey { background: #eef1ea; color: #4a635b; }

/* The view switcher. A pill group on a tinted well, so it reads as "which of
   these three am I looking at" rather than as three separate buttons. */
body.fixed-left .jf-viewseg {
    display: flex;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin-top: 16px;
    padding: 3px;
    background: #eef1ea;
    border-radius: 11px;
    overflow-x: auto;
}

body.fixed-left .jf-viewseg__opt {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 9px;
    background: transparent;
    color: var(--jf-ink);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.15s ease;
}

body.fixed-left .jf-viewseg__opt.is-on {
    background: #fff;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(14, 59, 50, 0.16);
}

body.fixed-left .jf-viewseg__opt:hover { color: var(--jf-forest); }

/* ── the builder ────────────────────────────────────────────────────────── */

body.fixed-left .jf-buildgrid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 280px;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

body.fixed-left .jf-buildmain { min-width: 0; }

body.fixed-left .jf-buildrail { display: flex; flex-direction: column; gap: 16px; }

body.fixed-left .jf-palette { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }

body.fixed-left .jf-palette__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1.5px solid #e6eae2;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 600;
    color: #1b3b33;
    text-align: left;
    cursor: pointer;
    transition: 0.15s ease;
}

body.fixed-left .jf-palette__btn:hover { border-color: var(--jf-forest); background: #f6f8f2; }

/* The first letter of the type name. Ten icons would be ten things to draw and
   keep matched to a list that changes. */
body.fixed-left .jf-palette__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #eef1ea;
    color: #33544b;
    font-size: 12px;
    font-weight: 800;
}

body.fixed-left .jf-buildname,
body.fixed-left .jf-builddesc {
    display: block;
    width: 100%;
    border-radius: 11px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
    font-family: var(--jf-font);
    color: var(--jf-forest);
    outline: none;
    transition: 0.15s ease;
}

body.fixed-left .jf-buildname { height: 44px; padding: 0 12px; font-size: 16px; font-weight: 700; }
body.fixed-left .jf-builddesc { height: 40px; margin-top: 8px; padding: 0 12px; font-size: 13.5px; }

body.fixed-left .jf-buildname:focus,
body.fixed-left .jf-builddesc:focus {
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

body.fixed-left .jf-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

body.fixed-left .jf-fields__empty {
    margin-top: 16px;
    padding: 30px;
    border: 1px dashed #dfe4dc;
    border-radius: 14px;
    text-align: center;
    font-size: 13.5px;
    color: #46655c;
}

body.fixed-left .jf-field2 {
    padding: 12px 14px;
    border: 1.5px solid #e6eae2;
    border-radius: 13px;
    background: #fff;
    transition: 0.12s ease;
}

body.fixed-left .jf-field2.is-dragging { border-color: var(--jf-forest); background: #f2f6ea; opacity: 0.6; }

body.fixed-left .jf-field2__top {
    display: flex;
    align-items: center;
    gap: 10px;
    row-gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

body.fixed-left .jf-field2__grip { flex: none; color: #9aaba3; cursor: grab; font-size: 14px; line-height: 1; }

body.fixed-left .jf-field2__label {
    flex: 1 1 140px;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1.5px solid #e6eae2;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jf-forest);
    outline: none;
}

body.fixed-left .jf-field2__label:focus { border-color: var(--jf-forest); }

body.fixed-left .jf-field2__type { font-size: 12px; color: #46655c; white-space: nowrap; }

body.fixed-left .jf-field2__x {
    width: 28px;
    height: 28px;
    flex: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a1432f;
    font-size: 13px;
    cursor: pointer;
}

body.fixed-left .jf-field2__x:hover { background: #fbeae6; }

/* What the answer will look like. Without it a Phone field and a Short text
   field are two rows that differ only by a word. */
body.fixed-left .jf-field2__preview {
    margin: 10px 0 0 24px;
    padding: 10px 12px;
    border: 1.5px dashed #e2e7de;
    border-radius: 10px;
    background: #fbfcf9;
    font-size: 13px;
    color: #7b8f87;
}

body.fixed-left .jf-buildactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

body.fixed-left .jf-buildactions .jf-save { padding: 0 16px; }

/* ── the radio groups in the rail ───────────────────────────────────────── */

body.fixed-left .jf-placements { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

body.fixed-left .jf-placement {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1.5px solid #dfe4dc;
    border-radius: 11px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: #1b3b33;
    cursor: pointer;
    transition: 0.15s ease;
}

body.fixed-left .jf-placement.is-on { border-color: var(--jf-forest); background: #f2f6ea; font-weight: 700; }

/* The radio is the control; the row is its label. Hidden rather than removed so
   the group stays keyboard-navigable with the arrow keys. */
body.fixed-left .jf-placement input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.fixed-left .jf-placement:focus-within { box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45); }

body.fixed-left .jf-placement__label { flex: 1; text-align: left; }

body.fixed-left .jf-placement__tick { font-size: 14px; font-weight: 700; color: #2f7a4a; visibility: hidden; }

body.fixed-left .jf-placement.is-on .jf-placement__tick { visibility: visible; }

/* ── entries ────────────────────────────────────────────────────────────── */

body.fixed-left .jf-entryfilter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }

body.fixed-left .jf-entryfilter .jf-sel { height: 34px; min-width: 160px; font-size: 13px; }

body.fixed-left .jf-tbl--forms { min-width: 900px; }
body.fixed-left .jf-tbl--entries { min-width: 940px; }

@media (max-width: 1100px) {
    /* The palette goes above the canvas and the rail below it. Three columns in
       900px leaves the middle one too narrow for a field label and its type on
       one line, which is the whole row. */
    body.fixed-left .jf-buildgrid { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    body.fixed-left .jf-buildrail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 620px) {
    body.fixed-left .jf-viewseg { width: 100%; }
    body.fixed-left .jf-field2__preview { margin-left: 0; }
}

/* ── Permissions ────────────────────────────────────────────────────────────
 *
 * The Categories half follows the Categories section of
 * docs/Login page redesign/Jobflyte Settings.dc.html. The Roles half has no
 * mockup and reuses the card-and-switch language from the rest of the
 * redesign rather than inventing a third one. */

/* A second row of tabs under the view switcher, for the role being edited.
   Lighter than the one above it so the hierarchy is readable. */
body.fixed-left .jf-viewseg--sub { margin-top: 12px; background: transparent; padding: 0; gap: 6px; }

body.fixed-left .jf-viewseg--sub .jf-viewseg__opt {
    height: 32px;
    padding: 0 13px;
    border: 1.5px solid #dfe4dc;
    font-size: 13px;
}

body.fixed-left .jf-viewseg--sub .jf-viewseg__opt.is-on {
    border-color: var(--jf-forest);
    background: var(--jf-forest);
    color: var(--jf-paper);
    box-shadow: none;
}

body.fixed-left .jf-permhead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

body.fixed-left .jf-permhead__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

body.fixed-left .jf-permhead__actions .jf-save { height: 38px; padding: 0 16px; font-size: 13.5px; }

body.fixed-left .jf-permgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

/* The permission key under its label. Somebody granting "Edit clients" needs
   to know it is clients.update when they read it in a log or an API call. */
body.fixed-left .jf-prefs__note {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0;
}

body.fixed-left .jf-resetcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

body.fixed-left .jf-resetcard form { margin: 0; flex: none; }

body.fixed-left .jf-resetcard .jf-ghostbtn { flex: none; width: auto; padding: 0 16px; height: 38px; }

/* ── categories ─────────────────────────────────────────────────────────── */

body.fixed-left .jf-addcat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Six controls totalling ~683px inside a 396px rail, so this wraps - measured
   on /admin/custom-fields?place=invoice, the items land on three lines. At
   `gap: 8px` the "Required" label sat 8px from the type dropdown and 7px from
   "Add field", which at a wrap point reads as touching rather than as spacing.
   12px is what the rest of the design system uses between adjacent controls. */
body.fixed-left .jf-addcat__form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    flex: 1 1 380px;
    justify-content: flex-end;
}

body.fixed-left .jf-addcat__form .jf-sfield__input { flex: 1 1 160px; min-width: 0; width: auto; }

body.fixed-left .jf-catgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

body.fixed-left .jf-cathead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.fixed-left .jf-cathead form { margin: 0; flex: none; }

body.fixed-left .jf-catempty { margin-top: 14px; font-style: italic; }

body.fixed-left .jf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* .jf-chip is already the filter pill on the list pages, which is a different
   size and carries a different affordance. */
body.fixed-left .jf-chip2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border-radius: 9px;
    background: #eaefe1;
    color: #33544b;
    font-size: 13px;
    font-weight: 600;
}

body.fixed-left .jf-chip2__dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #8fa86a;
}

body.fixed-left .jf-chip2 form { margin: 0; display: flex; }

body.fixed-left .jf-chip2__x {
    border: 0;
    padding: 0;
    background: transparent;
    color: #5c7a71;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

body.fixed-left .jf-chip2__x:hover { color: #a1432f; }

body.fixed-left .jf-addsub { display: flex; gap: 8px; margin: 14px 0 0; }

body.fixed-left .jf-addsub .jf-sfield__input { flex: 1; min-width: 0; }

body.fixed-left .jf-addsub .jf-ghostbtn { flex: none; width: auto; padding: 0 14px; height: 38px; }

body.fixed-left .jf-iconbtn--danger { color: #a1432f; }

body.fixed-left .jf-iconbtn--danger:hover { background: #fbeae6; }

@media (max-width: 900px) {
    body.fixed-left .jf-catgrid { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-addcat__form { justify-content: flex-start; }
}

/* ── Custom fields ────────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl--cfields { min-width: 720px; }

/* The edit dialog. `hidden` on the element does the showing and hiding, so the
   markup stays out of the accessibility tree while closed rather than being
   merely invisible. */
/* 🔴 QA sheet row 15: "the dark backdrop overlay fails to cover the left
   navigation sidebar. As a result, the sidebar remains fully highlighted,
   active, and exposed outside the dimmed background layer."

   Measured: this was `z-index: 90` and `.left.side-menu` is `position: fixed;
   z-index: 99`. The sidebar was nine layers above the thing meant to be
   covering it, and elementFromPoint() over it returned a sidebar LINK — it was
   not merely visible through the dim, it was still clickable, so the modal was
   not modal.

   1050 is Bootstrap's own `.modal` layer. This page carries Bootstrap modals
   too (#jfAddProperty, #deleteFieldModal); putting the hand-rolled one on the
   same layer means the two cannot end up fighting about which is on top. */

body.fixed-left .jf-modal2 {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 33, 28, 0.45);
}

body.fixed-left .jf-modal2[hidden] { display: none; }

body.fixed-left .jf-modal2__card {
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 60px -24px rgba(14, 59, 50, 0.55);
}

body.fixed-left .jf-modal2__actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

body.fixed-left .jf-modal2__actions .jf-save { height: 40px; padding: 0 16px; }

/* ── Job log ──────────────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl--joblog { min-width: 720px; }

/* The value a field held before the change, so before → after reads as one
   thought rather than two equally-weighted strings. */
body.fixed-left .jf-was { color: #8a9c95; text-decoration: line-through; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */

/* Stripe mounts an iframe in here, so the box is ours and the field inside it
   is not. Height is fixed rather than min-height: the iframe reports its own
   and a growing box shifts the button under the cursor mid-click. */
body.fixed-left .jf-cardel {
    height: 44px;
    padding: 12px 12px 0;
    border-radius: 11px;
    border: 1.5px solid #dfe4dc;
    background: #fff;
}

body.fixed-left .jf-cardel.StripeElement--focus { border-color: var(--jf-forest); }

body.fixed-left .jf-paybtn { width: 100%; height: 46px; margin-top: 18px; }

body.fixed-left .jf-paybtn:disabled { opacity: 0.65; cursor: progress; transform: none; }

body.fixed-left .jf-paynote { margin-top: 12px; }

/* The line the eye should land on. */
body.fixed-left .jf-deflist__row--total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1.5px solid var(--jf-line);
}

body.fixed-left .jf-deflist__row--total dt,
body.fixed-left .jf-deflist__row--total dd {
    font-size: 15px;
    font-weight: 800;
    color: var(--jf-ink);
}

/* ── Password meter (auth pages) ──────────────────────────────────────────────
 *
 * NOT .jf-strength__row, which sign-up already uses as a flex row holding a
 * label beside a bar. This is a track with a fill inside it. Unprefixed like
 * the other auth rules: these pages are body.jf-auth-page, not body.fixed-left. */

.jf-pwmeter {
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(234, 243, 238, 0.16);
    overflow: hidden;
}

.jf-pwmeter__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--jf-lime);
    transition: width 0.2s ease, background 0.2s ease;
}

.jf-pwmeter__bar.is-weak   { background: #e06a4a; }
.jf-pwmeter__bar.is-fair   { background: #f0b429; }
.jf-pwmeter__bar.is-good   { background: #9ec36a; }
.jf-pwmeter__bar.is-strong { background: var(--jf-lime); }

.jf-pwhint { margin: 7px 0 0; font-size: 12.5px; color: var(--jf-slate); }

/* ── Calendar job panel ───────────────────────────────────────────────────── */

body.fixed-left .jf-jobpop { padding: 4px 2px; }

body.fixed-left .jf-jobpop__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body.fixed-left .jf-jobpop__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    color: #46655c;
}

body.fixed-left .jf-jobpop__title {
    margin: 3px 0 0;
    font-family: var(--jf-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--jf-ink);
}

body.fixed-left .jf-jobpop__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ── Notification bell: "Mark all read" ───────────────────────────────────────
 *
 * Replaces the × in the header. The design puts an action there, not a close
 * button - the panel already closes on click-away and on Escape. */

body.fixed-left .jf-notif__markform { margin: 0; }

body.fixed-left .jf-notif__mark {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2f7a4a;
    font-family: var(--jf-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

body.fixed-left .jf-notif__mark:hover { text-decoration: underline; }

/* The title carried a count badge and a close button; neither is in the design
   and the markup no longer emits them. Rules kept out rather than left behind
   to style elements that are gone. */

/* ── Help centre ──────────────────────────────────────────────────────────── */

body.fixed-left .jf-helphero {
    background: var(--jf-forest);
    border-radius: 18px;
    padding: 28px 30px;
    color: var(--jf-paper);
    margin-top: 4px;
}

/* Specific enough to beat whatever colours an h1 inside the panel. The first
   version rendered forest-on-forest: the heading was present, the right size,
   and invisible - the same trap the billing hero fell into. */
body.fixed-left .jf-helphero .jf-helphero__title {
    margin: 0;
    font-family: var(--jf-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--jf-paper);
}

body.fixed-left .jf-helphero__sub {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: rgba(234, 243, 238, 0.82);
}

body.fixed-left .jf-helpsearch { position: relative; max-width: 560px; margin: 16px 0 0; }

body.fixed-left .jf-helpsearch__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #46655c;
    pointer-events: none;
}

body.fixed-left .jf-helpsearch__input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    font-family: var(--jf-font);
    font-size: 14.5px;
    color: var(--jf-forest);
    outline: none;
}

body.fixed-left .jf-helpsearch__input:focus { box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45); }

body.fixed-left .jf-helppop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

body.fixed-left .jf-helppop__label { font-size: 12.5px; color: rgba(234, 243, 238, 0.7); }

/* On the forest, so these are alphas over it rather than tokens. */
body.fixed-left .jf-helppop__chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--jf-paper);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

body.fixed-left .jf-helppop__chip:hover { background: rgba(255, 255, 255, 0.16); color: var(--jf-paper); }

body.fixed-left .jf-helpcats { display: flex; flex-wrap: wrap; gap: 12px; }

body.fixed-left .jf-helpcat {
    flex: 1 1 150px;
    min-width: 150px;
    padding: 16px;
    background: #fff;
    border: 1.5px solid #e2e7de;
    border-radius: 15px;
    color: var(--jf-ink);
    text-decoration: none;
    transition: 0.15s ease;
}

body.fixed-left .jf-helpcat.is-on { border-color: var(--jf-forest); }

body.fixed-left .jf-helpcat:hover { border-color: var(--jf-forest); }

body.fixed-left .jf-helpcat__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #eef1ea;
    color: #33544b;
    font-family: var(--jf-display);
    font-size: 15px;
    font-weight: 800;
}

body.fixed-left .jf-helpcat.is-on .jf-helpcat__mark { background: var(--jf-forest); color: var(--jf-lime); }

body.fixed-left .jf-helpcat__label { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
body.fixed-left .jf-helpcat__count { display: block; margin-top: 3px; font-size: 12.5px; color: #46655c; }

/* ── articles ─────────────────────────────────────────────────────────────── */

body.fixed-left .jf-art { border-bottom: 1px solid #eef1ea; }
body.fixed-left .jf-art:last-child { border-bottom: 0; }

body.fixed-left .jf-art__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

/* The default disclosure triangle, removed in both dialects. */
body.fixed-left .jf-art__head::-webkit-details-marker { display: none; }
body.fixed-left .jf-art__head::marker { content: ''; }

body.fixed-left .jf-art__head:hover { background: #f6f8f2; }

body.fixed-left .jf-art__text { flex: 1; min-width: 0; }
body.fixed-left .jf-art__title { display: block; font-size: 14px; font-weight: 700; color: #17332c; }
body.fixed-left .jf-art__meta { display: block; margin-top: 3px; font-size: 12.5px; color: #46655c; }

body.fixed-left .jf-art__chev {
    flex: none;
    font-size: 20px;
    color: #7b8f87;
    transition: transform 0.15s ease;
}

body.fixed-left .jf-art[open] .jf-art__chev { transform: rotate(90deg); }

body.fixed-left .jf-art__body { padding: 0 18px 18px 18px; }

body.fixed-left .jf-art__body p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #224037; }

/* ── what's new ───────────────────────────────────────────────────────────── */

body.fixed-left .jf-changelog { list-style: none; margin: 6px 0 0; padding: 0; }

body.fixed-left .jf-changelog__row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-changelog__row:last-child { border-bottom: 0; }

body.fixed-left .jf-changelog__date { font-size: 12.5px; font-weight: 600; color: #46655c; }
body.fixed-left .jf-changelog__title { display: block; font-size: 13.5px; font-weight: 700; color: #17332c; }
body.fixed-left .jf-changelog__body { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: #46655c; }

/* ── rail ─────────────────────────────────────────────────────────────────── */

body.fixed-left textarea.jf-ticketbody { min-height: 110px; line-height: 1.55; }

body.fixed-left .jf-tickets { list-style: none; margin: 6px 0 0; padding: 0; }

body.fixed-left .jf-tickets__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-tickets__row:last-child { border-bottom: 0; }

body.fixed-left .jf-tickets__text { flex: 1; min-width: 0; }

body.fixed-left .jf-tickets__subject {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #17332c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-tickets__meta { display: block; margin-top: 2px; font-size: 12px; color: #46655c; }

/* 🔴 QA sheet row 21: "Status dot indicators overlap vertically with badge text
   in Active and On tags."

   This block used to be called `.jf-status`, which is the STATUS PILL's block
   name 5,300 lines above. Two unrelated components, one class, and the later
   rule won: every pill in the application became `display: flex` with
   `flex-direction: column` and `padding: 0`, so its ::before dot stacked on top
   of its label instead of sitting beside it, and the pill lost its background.

   Not an overlap - a name collision. A BEM block name is an identifier; the
   Help page's system-status LIST is not the same component as the status pill
   just because both are about status. Renamed to `.jf-sysstatus`, which is what
   it is: the list of subsystems on the help page. */

body.fixed-left .jf-sysstatus { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0; }

body.fixed-left .jf-sysstatus__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.fixed-left .jf-sysstatus__label { font-size: 13px; color: #224037; }

body.fixed-left .jf-sysstatus__value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jf-slate);
}

body.fixed-left .jf-sysstatus__dot { width: 8px; height: 8px; border-radius: 50%; background: #2f7a4a; flex: none; }
body.fixed-left .jf-sysstatus__dot.is-bad { background: #f0b429; }

@media (max-width: 620px) {
    body.fixed-left .jf-changelog__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ── Spacing corrections for the two-column pages ────────────────────────────
 *
 * `.jf-panel` carries `margin-top: 18px` for the stacked pages it was written
 * for. Inside a flex column with `gap`, that margin ADDS to the gap, so:
 *
 *   - the left column opened 18px lower than the right, because the left
 *     starts with a non-panel block and the right starts with a panel;
 *   - consecutive panels sat 34px apart (16 gap + 18 margin) while siblings
 *     that were not panels sat 16px apart.
 *
 * The gap owns the spacing in these containers, so the margin goes. */
body.fixed-left .jf-billgrid__main > .jf-panel,
body.fixed-left .jf-billgrid__rail > .jf-panel,
body.fixed-left .jf-buildmain,
body.fixed-left .jf-buildrail > .jf-panel,
body.fixed-left .jf-permgrid > .jf-panel,
body.fixed-left .jf-catgrid > .jf-panel { margin-top: 0; }

/* Room above the first block on pages that open on a card rather than on a
   page heading. Without it the hero butts against the top bar. */
body.fixed-left .jf-page > .jf-helphero:first-child,
body.fixed-left .jf-page > .jf-billgrid:first-child { margin-top: 18px; }

/* Every tile the same width.
 *
 * `flex: 1 1 150px` let the last item on a row absorb all the leftover space,
 * so with six tiles and five per row the sixth rendered 951px wide against its
 * siblings' 181px. A grid gives every cell the same track. */
body.fixed-left .jf-helpcats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}

body.fixed-left .jf-helpcat { flex: none; min-width: 0; }

/* The rail's cards are denser than the main column's, so they need the same
   internal rhythm rather than inheriting a list's default zero. */
body.fixed-left .jf-billgrid__rail .jf-cardtitle + .jf-cardsub { margin-bottom: 2px; }

/* ── Property page ────────────────────────────────────────────────────────── */

body.fixed-left .jf-tbl--property { min-width: 640px; }

/* A KPI that is also the tab control for the table below it. Inherits .jf-kpi
   and only adds the affordance, so the strip stays visually one row. */
body.fixed-left .jf-kpi--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: 0.15s ease;
}

body.fixed-left .jf-kpi--link:hover {
    border-color: var(--jf-forest);
    transform: translateY(-1px);
}

/* ── equipment at a property ─────────────────────────────────────────────── */
/* The record a technician reads in the driveway, rendered in the client page's
   right rail. Everything here is scoped under .jf-equip so it cannot leak into
   the cards above and below it. */

body.fixed-left .jf-equip { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

body.fixed-left .jf-equip__row {
    border: 1px solid var(--jf-line);
    border-radius: 12px;
    padding: 12px 13px;
    background: #fff;
}

body.fixed-left .jf-equip__top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}

body.fixed-left .jf-equip__name {
    font-weight: 650; font-size: 14px; color: var(--jf-ink); line-height: 1.3;
}

body.fixed-left .jf-equip__cat { font-size: 12.5px; color: var(--jf-slate); margin-top: 1px; }

/* Hidden until the row is hovered or something inside it has focus. The rail is
   narrow and two permanent buttons per unit crowd out the data. :focus-within
   is what keeps them reachable by keyboard, where hover never fires. */
body.fixed-left .jf-equip__actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    opacity: 0; transition: opacity .14s ease;
}

body.fixed-left .jf-equip__row:hover .jf-equip__actions,
body.fixed-left .jf-equip__row:focus-within .jf-equip__actions { opacity: 1; }

body.fixed-left .jf-equip__del { display: inline; margin: 0; }

body.fixed-left .jf-equip__btn {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: var(--jf-font); font-size: 12.5px; font-weight: 600;
    color: var(--jf-moss);
}

body.fixed-left .jf-equip__btn:hover { text-decoration: underline; }
body.fixed-left .jf-equip__btn--danger { color: #a1432f; }

/* Monospace, because this gets read aloud to a parts distributor and 1/I and
   0/O have to be tellable apart. */
body.fixed-left .jf-equip__serial { font-size: 12.5px; color: var(--jf-slate); margin-top: 7px; }

body.fixed-left .jf-equip__serial span,
body.fixed-left .jf-equip__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}

body.fixed-left .jf-equip__serial span { color: var(--jf-ink); font-size: 12px; }

body.fixed-left .jf-equip__meta {
    display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px;
    font-size: 12.5px; color: var(--jf-slate);
}

/* Dot separators drawn in CSS rather than typed into the markup, so a missing
   field never leaves a stranded dot. */
body.fixed-left .jf-equip__meta span + span::before {
    content: '·'; margin-right: 10px; color: var(--jf-line);
}

body.fixed-left .jf-equip__warranty {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px;
}

body.fixed-left .jf-equip__grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

@media (max-width: 575.98px) {
    body.fixed-left .jf-equip__grid { grid-template-columns: 1fr; }
    /* No hover on touch, so the actions never appear. Always shown instead. */
    body.fixed-left .jf-equip__actions { opacity: 1; }
}

/* ── job costing ─────────────────────────────────────────────────────────── */
/* The profit figure leads, the gaps sit immediately under it, and the
   breakdown follows. That order is the design: a margin read without its
   caveats is a margin somebody prices the next twenty jobs from. */

body.fixed-left .jf-cost { margin-top: 12px; }

body.fixed-left .jf-cost__headline {
    border-radius: 12px;
    padding: 14px 15px;
    background: #eaf3ee;
    border: 1px solid #c8ddd0;
}

body.fixed-left .jf-cost__headline.is-down {
    background: #fbeae6;
    border-color: #f0cec4;
}

body.fixed-left .jf-cost__profit {
    font-family: var(--jf-display), var(--jf-font), sans-serif;
    font-size: 26px; font-weight: 700; line-height: 1.1; color: #2f7a4a;
}

body.fixed-left .jf-cost__headline.is-down .jf-cost__profit { color: #a1432f; }

body.fixed-left .jf-cost__label {
    font-size: 12.5px; color: var(--jf-slate); margin-top: 3px;
}

/* Amber, not red. An incomplete figure is a caution, not an error: the numbers
   shown are correct for what they cover. */
body.fixed-left .jf-cost__gaps {
    margin-top: 10px;
    background: #fdf2da;
    border-left: 3px solid #d8a53a;
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #6b5313;
}

body.fixed-left .jf-cost__gaps strong { display: block; margin-bottom: 4px; color: #5a4410; }
body.fixed-left .jf-cost__gaps ul { margin: 0; padding-left: 16px; }
body.fixed-left .jf-cost__gaps li { margin-bottom: 2px; }

body.fixed-left .jf-cost__table {
    width: 100%; border-collapse: collapse; margin-top: 12px;
}

body.fixed-left .jf-cost__table th,
body.fixed-left .jf-cost__table td {
    padding: 7px 0; font-size: 13.5px; text-align: left;
    border-bottom: 1px solid var(--jf-line);
}

body.fixed-left .jf-cost__table th { color: var(--jf-slate); font-weight: 500; }
body.fixed-left .jf-cost__table td { text-align: right; color: var(--jf-ink); font-weight: 600; }

/* Indented, lighter: these sum into the Labour row above, they do not add to it. */
body.fixed-left .jf-cost__sub th { padding-left: 14px; font-size: 12.5px; color: #7b918a; }
body.fixed-left .jf-cost__sub td { font-weight: 500; color: var(--jf-slate); font-size: 12.5px; }
body.fixed-left .jf-cost__sub th, body.fixed-left .jf-cost__sub td { border-bottom: 0; padding-top: 2px; padding-bottom: 2px; }

body.fixed-left .jf-cost__total th { color: var(--jf-ink); font-weight: 650; }
body.fixed-left .jf-cost__owed { color: #a1432f; }

body.fixed-left .jf-cost__note {
    display: block; font-size: 12px; color: var(--jf-slate); font-weight: 400;
}

body.fixed-left .jf-cost__pending { margin-top: 10px; }

/* ── optional line items ─────────────────────────────────────────────────── */
/* Good, better, best. An offered line and a bought line have to look different
   at a glance, because the difference is what the customer is being billed. */

body.fixed-left .jf-lopt {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 7px;
}

body.fixed-left .jf-lopt__toggle {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--jf-slate); cursor: pointer; margin: 0;
}

body.fixed-left .jf-lopt__group { width: 130px; height: 32px; font-size: 12.5px; padding: 0 9px; }

/* The cost sits under the price, quieter than it: it is an internal number the
   customer never sees, and it must not read as another thing being charged. */
body.fixed-left .jf-lrow__cost {
    margin-top: 6px; height: 32px; font-size: 12.5px; padding: 0 9px;
    color: var(--jf-slate); background: #f7f9f5;
}

/* Offered. A left edge rather than a background, so the row still reads as
   part of the same table. */
body.fixed-left .prodtbx.is-optional > td:first-child {
    box-shadow: inset 3px 0 0 var(--jf-moss);
}

/* Offered and declined. Struck through and faded: it is on the document, it is
   not in the total, and both facts have to be obvious. */
body.fixed-left .prodtbx.is-declined > td:first-child { box-shadow: inset 3px 0 0 var(--jf-line); }
body.fixed-left .prodtbx.is-declined { opacity: 0.62; }
body.fixed-left .prodtbx.is-declined .jf-linetotal { text-decoration: line-through; }

/* ── customer's quote options: MOVED ────────────────────────────────────
   These lived here, unscoped, with a comment saying they were for the
   client portal. The portal has never loaded this stylesheet, so they had
   never once applied and the options rendered as bare radios. They are now
   in public/assets/css/user_panel.css, which the portal does load. */

/* ==========================================================================
   The admin shell on a phone
   ==========================================================================

   🔴 What was broken

   The rule below used to read, with no media query at all:

       body.fixed-left .topbar .navbar-custom > ul.menu-left { display: none; }

   Its comment said the theme's mobile menu list was "redundant now the collapse
   button is in the bar". It is not redundant, because that `<ul>` contains
   `.button-menu-mobile` — the ONLY control that opens the sidebar — and the
   collapse button that replaced it lives INSIDE the sidebar.

   Measured at 375px before this change:

       ul.menu-left      display:none, width 0
       the hamburger     width 0 (its parent is hidden)
       .left.side-menu   left: -375px   (off-canvas, theme's margin-left:-100%)
       #jfCollapse       left: -266px   (off-screen, it is inside the sidebar)
       the close button  left: -198px   (off-screen, same reason)

   So the sidebar was off-canvas and every control that could bring it back was
   hidden or off-screen with it: **the admin had no navigation at all on a
   phone.** The drawer mechanism itself was fine — adding `#wrapper.enlarged`
   puts the sidebar at left:0, width:178 — there was simply no way to add it.

   The hide is now scoped to desktop, and the button is styled to belong to the
   bar instead of being the theme's raw grey square.
   ========================================================================== */

/* Desktop keeps the design's arrangement: no theme menu list, the collapse
   toggle beside the brand. */
@media (min-width: 769px) {
    body.fixed-left .topbar .navbar-custom > ul.menu-left { display: none; }
}

@media (max-width: 768px) {
    /* The trigger comes back, and sits FIRST in the bar. `float: left` does
       nothing useful inside a flex row, so order is what places it. */
    body.fixed-left .topbar .navbar-custom > ul.menu-left {
        display: inline-flex;
        align-items: center;
        order: -1;
        margin: 0 !important;
        padding: 0;
        float: none;
    }

    body.fixed-left .topbar .navbar-custom > ul.menu-left > li {
        float: none !important;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body.fixed-left .topbar .navbar-custom .button-menu-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin: 0 0 0 14px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 21px;
        line-height: 1;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    body.fixed-left .topbar .navbar-custom .button-menu-mobile:hover,
    body.fixed-left .topbar .navbar-custom .button-menu-mobile:focus-visible {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        outline: 0;
    }

    body.fixed-left .topbar .navbar-custom .button-menu-mobile i {
        line-height: 1;
    }

    /* The brand block belongs to the sidebar, which is off-canvas here, so the
       bar would otherwise open with the search gap and nothing else. */
    body.fixed-left .jf-topbar-gap { flex: 1 1 auto; }

    /* The desktop rail is a desktop idea. On a phone the sidebar is a drawer:
       full height, above the content, at its natural width. `jf-rail` would
       shrink the drawer to a 58px icon strip with no labels. */
    body.jf-rail .left.side-menu,
    body.jf-rail .left.side-menu .topbar-left {
        width: 178px;
    }

    body.jf-rail .content-page { margin-left: 0; }

    /* The collapse toggle is inside the drawer and means nothing there. */
    body.fixed-left .left.side-menu .jf-collapse { display: none; }

    /* The drawer sits above the page and the backdrop. */
    body.fixed-left #wrapper.enlarged .left.side-menu {
        z-index: 1002;
        box-shadow: 6px 0 24px rgba(7, 33, 28, 0.28);
    }

    /* The theme's close button, restyled from its default pink square. */
    body.fixed-left .left.side-menu .button-menu-mobile-topbar {
        background: var(--jf-forest);
        color: #fff;
        border: 0;
        border-radius: 0 10px 10px 0;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* The backdrop. Present in the DOM only while the drawer is open, so it cannot
   swallow clicks on a desktop where the sidebar is permanent. */
.jf-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(7, 33, 28, 0.5);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    animation: jf-drawer-fade 0.18s ease-out;
}

@keyframes jf-drawer-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .jf-drawer-backdrop { animation: none; }
}

/* While the drawer is open the page behind it must not scroll — otherwise
   closing the drawer leaves the reader somewhere they did not choose to be. */
body.jf-drawer-open {
    overflow: hidden;
}

/* ── the brand on a phone ───────────────────────────────────────────────── */

/* The real brand block is inside the sidebar, which is off-canvas below 769px,
   so the bar had no logo at all. This is a mobile-only copy in the bar itself.
   Hidden from 769px up, where the sidebar's own brand is visible again. */
.jf-topbar-brand { display: none; }

@media (max-width: 768px) {
    body.fixed-left .topbar .navbar-custom .jf-topbar-brand {
        /* Centred on the BAR, not in the flex flow. Centring it with flex
           would put it in the middle of the space left over by the hamburger
           and the icons on the right, which are different widths — so it
           would sit visibly off-centre and drift as the icon count changes. */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        max-width: 46%;
        text-decoration: none;
        pointer-events: auto;
    }

    body.fixed-left .topbar .navbar-custom .jf-topbar-brand img {
        max-height: 26px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }

    /* The fallback when a tenant has no logo file: their name, which can be
       long, so it truncates rather than pushing the icons off the bar. */
    body.fixed-left .topbar .navbar-custom .jf-topbar-brand span {
        color: #fff;
        font-family: var(--jf-display);
        font-size: 15px;
        font-weight: 700;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* The absolutely-positioned brand needs a positioned ancestor, and the bar
       is the right one — the nav is what it should be centred within. */
    body.fixed-left .topbar .navbar-custom {
        position: relative;
    }
}

/* ==========================================================================
   List tables on a phone — rows become cards
   ==========================================================================

   See the note in jobflyte-ui.js. Measured before this, on the clients list at
   375px: a 1241px table in a 305px window, 25% of a row visible, 936px hidden,
   every cell `nowrap`, and the headings scrolled out of sight by the time you
   reached a value.

   Below 769px each row is a card and each cell a `label: value` line. The
   labels are written onto the cells from their own `<th>` by the JS, so this
   needs no per-table knowledge and picks up any list added later.
   ========================================================================== */

@media (max-width: 768px) {
    /* The wrapper no longer needs to scroll, and leaving it scrollable would
       trap vertical swipes that start on a card. */
    body.fixed-left .jf-tblwrap {
        overflow-x: visible;
        overflow-y: visible;
    }

    /* The minimum widths are per-table and set on the same specificity as this,
       so !important rather than relying on source order surviving an edit. */
    body.fixed-left table.jf-tbl {
        display: block;
        min-width: 0 !important;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: 0;
    }

    /* The headings move into the cells as labels, so the row of them is now
       duplicate content. Kept in the DOM for the sort controls and for anything
       reading the table semantically. */
    body.fixed-left table.jf-tbl thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.fixed-left table.jf-tbl tbody { display: block; }

    body.fixed-left table.jf-tbl tbody tr {
        display: block;
        background: #fff !important;
        border: 1px solid var(--jf-line, #dde1d6);
        border-radius: 12px;
        padding: 4px 14px;
        margin-bottom: 12px;
        box-shadow: 0 1px 2px rgba(7, 33, 28, 0.05);
    }

    /* The zebra striping and hover tint are a grid idea. On cards they read as
       "this one is different", which is not true. */
    body.fixed-left table.jf-tbl tbody tr:nth-child(even),
    body.fixed-left table.jf-tbl tbody tr:hover {
        background: #fff !important;
    }

    body.fixed-left table.jf-tbl tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        width: auto !important;
        white-space: normal !important;
        text-align: right;
        padding: 9px 0;
        border: 0;
        border-bottom: 1px solid #f0f3ec;
        max-width: none !important;
    }

    body.fixed-left table.jf-tbl tbody tr td:last-child { border-bottom: 0; }

    body.fixed-left table.jf-tbl tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        text-align: left;
        color: var(--jf-slate, #35564d);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    /* A cell with no label — the checkbox, the actions menu — spans the card
       instead of leaving an empty label column. */
    body.fixed-left table.jf-tbl tbody td[data-nolabel],
    body.fixed-left table.jf-tbl tbody td.jf-tbl__check,
    body.fixed-left table.jf-tbl tbody td.jf-tbl__actions {
        justify-content: flex-end;
    }

    body.fixed-left table.jf-tbl tbody td.jf-tbl__check::before,
    body.fixed-left table.jf-tbl tbody td.jf-tbl__actions::before { content: none; }

    /* The checkbox belongs beside the name, not on a line of its own. */
    body.fixed-left table.jf-tbl tbody td.jf-tbl__check {
        justify-content: flex-start;
        border-bottom: 0;
        padding-bottom: 0;
    }

    body.fixed-left table.jf-tbl tbody td[data-nolabel]::before { content: none; }

    /* The card title is the NAME cell, addressed by its own class. It is not
       `:first-child` — the first column on these lists is the row checkbox,
       and styling that as the title puts a 15px bold empty box where the
       record name should be. */
    body.fixed-left table.jf-tbl tbody td.jf-tbl__name {
        display: block;
        text-align: left;
        font-family: var(--jf-display, Onest, Inter, sans-serif);
        font-size: 15.5px;
        font-weight: 700;
        color: var(--jf-forest, #0e3b32);
        padding-top: 12px;
        padding-bottom: 10px;
    }

    body.fixed-left table.jf-tbl tbody td.jf-tbl__name::before {
        display: block;
        margin-bottom: 2px;
    }

    /* A column hidden by the column manager must stay hidden as a card line —
       DataTables sets display:none inline, which the display:flex above would
       otherwise beat. */
    body.fixed-left table.jf-tbl tbody td[style*="display: none"],
    body.fixed-left table.jf-tbl tbody td[style*="display:none"] {
        display: none !important;
    }
}

/* ── the drawer slides on a transform, not a negative margin ────────────── */

/* The theme parks the off-canvas sidebar with `margin-left: -100%`. A negative
   margin still participates in layout, and on a 375px viewport it left the
   document 4px wider than the window — a page that drifts sideways by a few
   pixels on every swipe.
 *
 * A transform takes it out of layout entirely, cannot contribute to scroll
 * width, and animates on the compositor instead of triggering a reflow of the
 * whole page on every open. `overflow-x: hidden` on the body would also have
 * hidden the symptom, but it breaks `position: sticky` — which `.jf-side` on
 * the form screens depends on. */
@media (max-width: 768px) {
    body.fixed-left .left.side-menu {
        margin-left: 0 !important;
        transform: translateX(-100%);
        transition: transform 0.26s ease;
    }

    body.fixed-left #wrapper.enlarged .left.side-menu {
        margin-left: 0 !important;
        transform: translateX(0);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    body.fixed-left .left.side-menu { transition: none; }
}


/* ==========================================================================
   The line-items editor on a phone
   ==========================================================================

   🔴 What was broken

   The form SHELL is responsive already — `.jf-fgrid` collapses to one column
   at 1100px, `.jf-side` stops being sticky, `.jf-grid2` collapses at 640px.
   All of that works and is left alone.

   The line-items editor does not. `.jf-lines--edit` carries
   `min-width: 460px; table-layout: fixed` with fixed column widths, and no
   media query touches it. Measured at 375px: a **460px table inside a 259px
   wrapper — 201px hidden, 56% of it visible.** Filling in a job meant dragging
   sideways to reach the price, on the one screen where every cell is a field
   you have to type into.

   ## Why one column and not a grid

   The first attempt laid the row out as `1fr 1fr auto auto` — item on top,
   then qty / price / total / remove side by side. It fitted, and it looked
   wrong, because the columns are not one field each:

       ITEM        select + "add a note" + description textarea + optional  (95px)
       QTY         one input                                                (64px)
       UNIT PRICE  price input + COST input + TAX select                   (146px)
       TOTAL       a span                                                   (47px)

   A cell holding three controls cannot sit in a row beside one holding a
   span — whatever the alignment, something is stranded. So each cell gets its
   own full-width line with its heading above it, which does not care how many
   controls a cell contains or how many are added later.

   The labels come from the table's own `<thead>`, written onto the cells by
   the same code that labels the list tables.
   ========================================================================== */

@media (max-width: 640px) {
    body.fixed-left .jf-lines__wrap {
        overflow-x: visible;
        margin-top: 10px;
    }

    /* BOTH line-item tables, not just the editable one.
     *
     * The read-only table on the record view is a separate class —
     * `.jf-lines` with no `--edit` — and it carries its own
     * `min-width: 520px`. Converting only the editor while making the shared
     * wrapper `overflow-x: visible` left the read-only table 520px wide in a
     * 263px card with nothing to scroll it: worse than before the fix. */
    body.fixed-left table.jf-lines {
        display: block;
        min-width: 0 !important;
        width: 100%;
    }

    body.fixed-left table.jf-lines thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.fixed-left table.jf-lines tbody { display: block; }

    /* The read-only rows read as the list cards do: a title, then labelled
       figures. The editor keeps its own stacked-field treatment below. */
    body.fixed-left table.jf-lines:not(.jf-lines--edit) tbody tr {
        display: block;
        background: #fff !important;
        border: 1px solid #e2e7de;
        border-radius: 12px;
        padding: 4px 14px;
        margin-bottom: 10px;
    }

    body.fixed-left table.jf-lines:not(.jf-lines--edit) tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        width: auto !important;
        white-space: normal !important;
        text-align: right;
        padding: 9px 0 !important;
        border: 0;
        border-bottom: 1px solid #f0f3ec;
    }

    body.fixed-left table.jf-lines:not(.jf-lines--edit) tbody tr td:last-child { border-bottom: 0; }

    body.fixed-left table.jf-lines:not(.jf-lines--edit) tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        text-align: left;
        color: #46655c;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    /* The item is the card title, so it spans instead of pairing. */
    body.fixed-left table.jf-lines:not(.jf-lines--edit) tbody td:first-child {
        display: block;
        text-align: left;
        padding-top: 12px !important;
    }

    body.fixed-left table.jf-lines:not(.jf-lines--edit) tbody td:first-child::before {
        display: block;
        margin-bottom: 3px;
    }

    body.fixed-left table.jf-lines:not(.jf-lines--edit) .jf-lines__name {
        font-family: var(--jf-display);
        font-size: 14.5px;
        font-weight: 700;
        color: var(--jf-forest);
    }

    body.fixed-left table.jf-lines--edit {
        display: block;
        min-width: 0 !important;
        width: 100%;
        table-layout: auto;
    }

    /* The headings become per-field labels inside each row. Kept in the DOM
       because the labelling reads it. */
    body.fixed-left table.jf-lines--edit thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.fixed-left table.jf-lines--edit tbody { display: block; }

    body.fixed-left table.jf-lines--edit tbody tr {
        display: block;
        position: relative;
        background: #fff !important;
        border: 1px solid #e2e7de;
        border-radius: 12px;
        padding: 12px 46px 4px 12px;
        margin-bottom: 10px;
    }

    body.fixed-left table.jf-lines--edit tbody td {
        display: block;
        width: auto !important;
        padding: 0 0 12px !important;
        border: 0 !important;
        vertical-align: baseline;
    }

    body.fixed-left table.jf-lines--edit tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: #46655c;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* The item picker names itself — its select already reads "Service or
       part", so a heading above it says the same thing twice. */
    body.fixed-left table.jf-lines--edit tbody td:nth-child(1)::before { content: none; }

    body.fixed-left table.jf-lines--edit tbody td .jf-inp,
    body.fixed-left table.jf-lines--edit tbody td .jf-area {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Price, cost and tax are stacked inside one cell; they need space between
       them or they read as one control. */
    body.fixed-left table.jf-lines--edit tbody td > .jf-inp + .jf-inp,
    body.fixed-left table.jf-lines--edit tbody td > .jf-inp + select,
    body.fixed-left table.jf-lines--edit tbody td > select + .jf-inp {
        margin-top: 8px;
    }

    body.fixed-left table.jf-lines--edit tbody td .jf-linetotal {
        font-size: 15px;
        font-weight: 700;
    }

    /* Remove sits in the corner of the card, out of the reading order of the
       fields — the padding-right on the row is what reserves its space. */
    body.fixed-left table.jf-lines--edit tbody td:last-child {
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 0 !important;
    }
}

/* ── card headings on a phone ───────────────────────────────────────────── */

/* `.jf-rec__cardhead` is a flex ROW: a title and a hint side by side, which is
   right on a wide card. In a 259px column the hint takes 195px of it and the
   title is squeezed to 54px — "Line items" breaks across two lines mid-phrase.
   Stacked, both get the full width. */
@media (max-width: 640px) {
    body.fixed-left .jf-rec__cardhead {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    body.fixed-left .jf-rec__cardhead > * { width: 100%; }
}

/* ── the dashboard chart on a phone ─────────────────────────────────────── */

/* `.jf-chart__col` is `flex: 1` with `min-width: 44px`, and the min-width is
   what breaks it: 8 columns at 44px plus gaps is 394px of content in a 263px
   card, so **five of the eight months are visible** and the rest are behind a
   sideways scroll. A trend chart you have to scrub through is not a trend
   chart — the whole reason it is on a dashboard is to be read at a glance.
 *
 * The columns are already flexible, so dropping the minimum lets all eight
 * fit: (263 - 7 gaps) / 8 ≈ 27px each, which is exactly two 9px bars and a
 * three-letter month.
 *
 * The per-column money label goes. At 27px "$12,450" cannot render — it would
 * either clip or force the overflow straight back. The bars carry the shape,
 * the months carry the axis, and the exact figures are already on the cards
 * above the chart. */
@media (max-width: 640px) {
    body.fixed-left .jf-chart {
        overflow-x: visible;
        gap: 6px;
    }

    body.fixed-left .jf-chart__col {
        min-width: 0;
        flex: 1 1 0;
    }

    body.fixed-left .jf-chart__value { display: none; }

    body.fixed-left .jf-chart__month {
        font-size: 10px;
        letter-spacing: -0.01em;
    }

    body.fixed-left .jf-chart__bars {
        gap: 2px;
    }

    body.fixed-left .jf-chart__bars span {
        width: 9px;
    }
}

/* ── scrolling tab strips ───────────────────────────────────────────────── */

/* See the note in jobflyte-ui.js. The fade is a mask on the strip itself, not
   a pseudo-element inside it — a child would scroll away with the tabs and
   stop marking the edge. The classes are set by that script only while there
   is actually more in that direction, so the hint never points at nothing. */
body.fixed-left .jf-tabs {
    scrollbar-width: none;
}

body.fixed-left .jf-tabs::-webkit-scrollbar {
    display: none;
}

body.fixed-left .jf-tabs.has-more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
}

body.fixed-left .jf-tabs.has-more-left {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent 100%);
}

body.fixed-left .jf-tabs.has-more-left.has-more-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

/* ── page action rows on a phone ────────────────────────────────────────── */

/* 🔴 A control you cannot reach.
 *
 * `.jf-page__head` wraps, but `.jf-page__actions` inside it does not — it has
 * no `flex-wrap`, so it defaults to `nowrap` and simply grows past its parent.
 * On the job view at 375px it measured 376px inside a 305px head: search
 * (230px) + tag filter (94px) + the "…" menu (36px), and the menu landed at
 * x 375–411. Entirely off the screen, on a 375px screen. Not clipped, not
 * scrollable — just untappable.
 *
 * The search takes its own line because it is the widest control and the one
 * being typed into; the filters and the menu then sit together beneath it.
 */
@media (max-width: 640px) {
    body.fixed-left .jf-page__actions {
        flex-wrap: wrap;
        width: 100%;
        row-gap: 10px;
        justify-content: flex-start;
    }

    body.fixed-left .jf-page__actions > .jf-tblsearch {
        flex: 1 1 100%;
        min-width: 0;
    }

    body.fixed-left .jf-page__actions > .jf-tblsearch .jf-tblsearch__input {
        width: 100%;
    }

    /* Everything else may shrink rather than push a sibling off the edge. */
    body.fixed-left .jf-page__actions > * {
        min-width: 0;
    }
}

/* ── P2-05 · the automation activation screen ────────────────────────────
 *
 * Cards rather than a table, because the decision on this page is "is this
 * worth switching on", and that needs the sentence explaining why — which a
 * table row has nowhere to put.
 *
 * The blocked state is muted, never hidden. Most of these templates cannot
 * fire yet, and a screen that greyed them out of existence would leave an
 * owner wondering where the fifteen went; one that showed them as available
 * would have them switch on a rule that silently never runs. Muted and
 * labelled is the honest middle.
 */

.jf-note--warn {
    background: #fdf6e3;
    border-left: 3px solid #d9a441;
}

.jf-autolist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin: 18px 0 28px;
}

.jf-auto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--jf-line);
    border-radius: var(--jf-radius-lg);
}

/* A left edge rather than a tint: the card stays white and readable, and the
   state is legible at a glance down the column without colouring the text. */
.jf-auto--ready   { border-left: 3px solid var(--jf-forest); }
.jf-auto--blocked { border-left: 3px solid #c9ccc2; background: #fcfcfa; }

.jf-auto__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.jf-auto__title {
    font-family: var(--jf-display);
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    color: var(--jf-ink);
}

.jf-auto__state {
    flex: none;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.jf-auto__state.is-ready   { background: #e8f0e4; color: #2c5c3f; }
.jf-auto__state.is-blocked { background: #eceee8; color: #6b7166; }

.jf-auto__why {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--jf-slate);
}

.jf-auto__facts {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 4px 10px;
    margin: 0;
    font-size: 13px;
}

.jf-auto__facts > div { display: contents; }

.jf-auto__facts dt {
    color: #8a908a;
    font-weight: 500;
}

.jf-auto__facts dd {
    margin: 0;
    color: var(--jf-ink);
    /* A trigger name is long and unbreakable; let it wrap rather than widen
       the card and break the grid. */
    overflow-wrap: anywhere;
}

.jf-auto__facts code {
    font-size: 12px;
    background: #f4f6f0;
    padding: 1px 5px;
    border-radius: 4px;
    color: #33513f;
}

.jf-auto__blockers {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #8a6d3b;
}

.jf-auto__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* Pushed to the bottom so the buttons line up across a row of cards whose
       text runs to different lengths. */
    margin-top: auto;
    padding-top: 4px;
}

.jf-auto__copies {
    font-size: 12.5px;
    color: #2c5c3f;
}

.jf-auto__foot form { margin: 0; }

.jf-badge--on  { background: #e8f0e4; color: #2c5c3f; }
.jf-badge--off { background: #eceee8; color: #6b7166; }

.jf-mt { margin-top: 26px; }

@media (max-width: 768px) {
    .jf-autolist { grid-template-columns: 1fr; gap: 12px; }
    .jf-auto { padding: 15px; }

    /* The label column costs more than it earns at this width. */
    .jf-auto__facts { grid-template-columns: 1fr; gap: 2px; }
    .jf-auto__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
    .jf-auto__facts dd { margin-bottom: 6px; }

    .jf-auto__foot { flex-direction: column; align-items: stretch; }
    .jf-auto__foot .jf-btn { width: 100%; }
}

/* ── P2-13 · the dispatch board ───────────────────────────────────────────
 *
 * Columns rather than a list, because the question a dispatcher is asking is
 * "who is free", and a list sorted by time answers a different one. The board
 * scrolls sideways on purpose: a column per technician is the layout, and
 * squeezing eight of them into a phone width would make each one useless.
 * On a phone the columns stack instead — the same information, read down.
 */

.jf-dayjump { display: flex; align-items: center; gap: 8px; }
.jf-dayjump__day { font-size: 13px; color: var(--jf-slate); min-width: 88px; text-align: center; }

.jf-board {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    /* The board scrolls, not the page. */
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: flex-start;
}

.jf-board__col {
    flex: 0 0 264px;
    background: #f7f8f4;
    border: 1px solid var(--jf-line);
    border-radius: var(--jf-radius-lg);
    padding: 12px;
}

/* The work that needs a decision, marked without being shouted. */
.jf-board__col.is-unassigned { background: #fdf9ee; border-color: #e6d9b8; }

.jf-board__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 10px;
}

.jf-board__name {
    font-family: var(--jf-display); font-size: 14px; margin: 0; color: var(--jf-ink);
    /* A long name must not widen the column and break the row rhythm. */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.jf-board__count {
    flex: none; font-size: 11px; color: var(--jf-slate);
    background: #fff; border: 1px solid var(--jf-line);
    border-radius: 999px; padding: 1px 7px;
}

.jf-board__drop { display: flex; flex-direction: column; gap: 10px; min-height: 70px; }
.jf-board__empty { margin: 0; font-size: 12.5px; color: #8a908a; padding: 10px 2px; }

.jf-card-visit {
    background: #fff;
    border: 1px solid var(--jf-line);
    border-left: 3px solid #c9ccc2;
    border-radius: var(--jf-radius);
    padding: 10px 11px;
    cursor: grab;
    display: flex; flex-direction: column; gap: 5px;
}

.jf-card-visit.is-dragging { opacity: .45; cursor: grabbing; }

/* The status is on the card's edge as well as in its chip: down a column of
   eight, the edge is what is actually read. */
.jf-card-visit.is-en_route    { border-left-color: #d9a441; }
.jf-card-visit.is-arrived     { border-left-color: #4a90c2; }
.jf-card-visit.is-in_progress { border-left-color: var(--jf-forest); }
.jf-card-visit.is-completed   { border-left-color: #9aa295; opacity: .72; }
.jf-card-visit.is-cancelled   { border-left-color: #c26b6b; opacity: .6; }

.jf-card-visit__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jf-card-visit__time { font-size: 12px; color: var(--jf-slate); font-variant-numeric: tabular-nums; }

.jf-chip {
    font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px; white-space: nowrap;
    background: #eceee8; color: #6b7166;
}

.jf-chip--en_route    { background: #fbf0d9; color: #8a6a1f; }
.jf-chip--arrived     { background: #e2eef7; color: #2d5f85; }
.jf-chip--in_progress { background: #e8f0e4; color: #2c5c3f; }
.jf-chip--completed   { background: #eceee8; color: #6b7166; }
.jf-chip--cancelled   { background: #f7e6e6; color: #8a3f3f; }

.jf-card-visit__client { font-size: 13.5px; font-weight: 600; margin: 0; color: var(--jf-ink); }
.jf-card-visit__job    { font-size: 12.5px; margin: 0; color: var(--jf-slate); }
.jf-card-visit__where  { font-size: 12px; margin: 0; color: #8a908a; }

.jf-card-visit__do { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.jf-card-visit__do .jf-btn { font-size: 11.5px; padding: 4px 9px; }

@media (max-width: 768px) {
    /* Stacked, not squeezed. Eight 264px columns on a phone is eight columns
       nobody can read; the same information reads perfectly well down the
       page, and dragging is not a phone gesture anyway. */
    .jf-board { display: block; overflow-x: visible; }
    .jf-board__col { width: auto; margin-bottom: 12px; }
    .jf-card-visit { cursor: default; }
    .jf-card-visit__do .jf-btn { flex: 1 1 auto; }
    .jf-dayjump { flex-wrap: wrap; }
}

/* ── P6-08 · dispatch suggestions ────────────────────────────────────────
 *
 * The REASON sits under the name, not behind a tooltip. docs/fsm-competitors
 * is blunt that dispatchers optimise for things a model cannot see — which
 * technician the customer likes, who needs the hours — so a suggestion they
 * cannot interrogate is one they learn to ignore. The why has to be as easy to
 * read as the name.
 */

.jf-suggest {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--jf-line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jf-suggest__who {
    display: block;
    width: 100%;
    text-align: left;
    background: #f7f8f4;
    border: 1px solid var(--jf-line);
    border-radius: var(--jf-radius);
    padding: 6px 8px;
    cursor: pointer;
    font: inherit;
}

.jf-suggest__who:hover { background: #eef2e8; border-color: var(--jf-forest); }

/* Shown, never hidden: a full day is a fact the dispatcher may decide to
   override, and removing the option makes that decision for them. */
.jf-suggest__who.is-busy { opacity: .6; }

.jf-suggest__name { display: block; font-size: 12.5px; font-weight: 600; color: var(--jf-ink); }
.jf-suggest__why  { display: block; font-size: 11.5px; color: var(--jf-slate); line-height: 1.4; margin-top: 1px; }

.jf-suggest__blind {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #8a6d3b;
}


/* ── QA row 10: the client dropdown was cut off ──────────────────────────────
 *
 * *"opening the VISIT TO BILL dropdown causes the select options menu to get
 * cut off vertically by its container border, hiding visible choices."*
 *
 * The field named in the report is a native <select>, whose popup is drawn by
 * the OS and cannot be clipped by CSS — which is why this was first written off
 * as not reproducible. The field BESIDE it is the one that clips: the client
 * combo renders its own list in the DOM, and measured on /admin/invoices/add it
 * extended 77px past `.content-page`, which the theme gives `overflow: hidden`.
 * Two fields side by side, and the one that looks like a dropdown is the one
 * that cannot break.
 *
 * `overflow: hidden` there is the old trick for containing floats next to the
 * fixed sidebar. `display: flow-root` establishes the same block formatting
 * context and clips nothing, which is the whole of the fix. Overflow goes back
 * to visible so every absolutely-positioned menu in the content area — this
 * combo, the row-action popovers, the notification list — can leave its card.
 *
 * Wide content is not a worry: the tables that need it carry `.jf-tblwrap`
 * with its own `overflow-x: auto`, so they scroll themselves rather than
 * relying on an ancestor to hide what does not fit. Hiding it was never right
 * anyway — clipped columns are unreachable, not tidy.
 *
 * BOTH elements, because they carry the same rule for the same reason and
 * fixing only `.content-page` left `#wrapper` still cutting the list by the
 * same 77px. A clipping ancestor is a chain, not a single culprit. */
body.fixed-left #wrapper,
body.fixed-left .content-page {
    display: flow-root;
    overflow: visible;
}

/* ==========================================================================
   THE UNIFIED INBOX — ticket P2-24, docs/06 §8
   ==========================================================================

   These rules were a minified <style> block inside
   app/Views/admin/company/inbox/_inbox_js.php. Moving them here is the same
   argument this file's header makes: a token change belongs in one place, and
   an inline <style> is what keeps `ContentSecurityPolicy::$styleSrc` pinned to
   'unsafe-inline'.

   WHAT WAS ACTUALLY WRONG WITH THE OLD ONES

   They drew the entire screen in `var(--jf-accent, #1f7a5a)`. There is no
   --jf-accent token in this product — the palette is forest #0e3b32, moss
   #1c6a58, lime #d2e06e — so every accent on the page fell through to a teal
   that appears nowhere else in it. The active thread, the unread badge and the
   outbound bubble were all that colour, which is why the screen read as
   belonging to a different product.

   Three class names also carried two meanings each:

     .jf-msg    the LOGIN form's status line (`text-align: center`), so every
                message bubble was being centred by the auth stylesheet.
                Renamed to .jf-bubble in the view's script.
     .jf-chip   the filter pill AND the visit-status chip. The thread tags are
                now .jf-tag, which is neither.
     .jf-btn    the auth submit button, `height: 52px; width: 100%`. The thread
                header's two actions rendered as stacked full-width login
                buttons; they use .jf-btn-outline--sm now, and the composer has
                its own .jf-sendbtn.

   THE LAYOUT IS ONE CARD, NOT TWO BOXES

   The old rules gave the list and the pane their own border and radius and
   floated them on the page background, with `max-height: 70vh` and `52vh`
   picked by eye. Every other board in this app is a .jf-panel. This is one
   panel split by a hairline, and the height comes from the viewport once —
   --jf-inbox-h — so the list and the thread scroll independently inside a
   frame that does not move. That is the whole point of a two-pane inbox: the
   operator answers one message and the list has not shifted under them.
   ========================================================================== */

body.fixed-left .jf-panel--inbox {
    /* The panel clips its own corners here. Nothing inside opens a menu that
       needs to escape — the reason .jf-panel keeps `overflow: visible` — and
       the two panes must not square off the card's radius. */
    overflow: hidden;
}

body.fixed-left .jf-inbox {
    /* One number, derived once. 232px is the admin chrome above this point:
       topbar, page head, tab strip and the panel's own margin. */
    --jf-inbox-h: clamp(460px, calc(100vh - 232px), 860px);

    display: grid;
    grid-template-columns: minmax(268px, 350px) 1fr;
    height: var(--jf-inbox-h);
    min-height: 0;
}

/* ── the thread list ─────────────────────────────────────────────────────── */

body.fixed-left .jf-inbox__list {
    border-right: 1px solid #eef1ea;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fcfdfb;
    /* BOTH axes. A grid item defaults to `min-width: auto`, which means it
       refuses to shrink below its content - so one unbreakable 64-character
       contact name (an unknown number has no client row, and the id is what
       gets shown) widened the whole column instead of ellipsising inside it.
       Measured: the name element reached 2941px in a 350px track. */
    min-height: 0;
    min-width: 0;
}

/* A quiet scrollbar. The platform default is a wide light-grey channel that
   cuts the card in half visually. */
body.fixed-left .jf-inbox__list::-webkit-scrollbar,
body.fixed-left .jf-conv__body::-webkit-scrollbar { width: 10px; }

body.fixed-left .jf-inbox__list::-webkit-scrollbar-thumb,
body.fixed-left .jf-conv__body::-webkit-scrollbar-thumb {
    background: #d8e0d8;
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}

body.fixed-left .jf-inbox__list::-webkit-scrollbar-thumb:hover,
body.fixed-left .jf-conv__body::-webkit-scrollbar-thumb:hover {
    background: #bcc9bc;
    background-clip: content-box;
}

body.fixed-left .jf-thread {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 11px;
    width: 100%;
    text-align: left;
    padding: 13px 15px;
    border: 0;
    border-bottom: 1px solid #eff2ec;
    background: transparent;
    cursor: pointer;
    font: inherit;
    position: relative;
    transition: background 0.14s ease;
}

body.fixed-left .jf-thread:hover { background: #f4f8f3; }

body.fixed-left .jf-thread:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--jf-forest);
}

/* The active row is a filled surface with a forest rail, not a tint plus a
   teal bar. The rail is a pseudo-element so it sits flush with the card edge
   rather than inside the row's padding. */
body.fixed-left .jf-thread.is-active { background: #fff; }

body.fixed-left .jf-thread.is-active::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--jf-forest);
}

body.fixed-left .jf-thread__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7ede6;
    color: #3d5c52;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex: none;
    user-select: none;
}

body.fixed-left .jf-thread.is-active .jf-thread__avatar,
body.fixed-left .jf-thread.is-unread .jf-thread__avatar {
    background: var(--jf-forest);
    color: var(--jf-paper);
}

body.fixed-left .jf-thread__main { min-width: 0; }

body.fixed-left .jf-thread__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

body.fixed-left .jf-thread__who {
    color: var(--jf-forest);
    font-size: 13.8px;
    font-weight: 600;
    /* Its own min-width, or a long name pushes the timestamp out of the card
       instead of truncating. */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-thread__when {
    color: #829990;
    font-size: 11.5px;
    font-weight: 500;
    flex: none;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-thread__preview {
    display: block;
    color: #5f7a71;
    font-size: 12.8px;
    line-height: 1.45;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-thread__you { color: #93a79e; font-weight: 600; }

/* Unread is carried by weight and the filled monogram, not by a colour swap.
   An inbox is read by glancing down the left edge. */
body.fixed-left .jf-thread.is-unread .jf-thread__who { font-weight: 700; }
body.fixed-left .jf-thread.is-unread .jf-thread__preview { color: #3d5c52; font-weight: 500; }

body.fixed-left .jf-thread__tags {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 7px;
}

body.fixed-left .jf-tag {
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2.5px 7px;
    border-radius: 999px;
    background: #eef1ea;
    color: #5f7a71;
    font-weight: 700;
    line-height: 1.5;
}

body.fixed-left .jf-tag--sms   { background: #e8f0e4; color: #2c5c3f; }
body.fixed-left .jf-tag--email { background: #e2eef7; color: #2d5f85; }
body.fixed-left .jf-tag--voice { background: #f0eaf7; color: #57407e; }

/* A lead, not an edge case: a text from a number nobody has met. Lime is the
   product's emphasis colour and this is the one row in the list worth it. */
body.fixed-left .jf-tag--new {
    background: var(--jf-lime);
    color: #4a5312;
}

body.fixed-left .jf-thread__badge {
    margin-left: auto;
    background: var(--jf-forest);
    color: var(--jf-paper);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* ── the conversation pane ───────────────────────────────────────────────── */

body.fixed-left .jf-inbox__pane {
    display: flex;
    flex-direction: column;
    /* See the list above: min-width is the one that stops a long name from
       stretching the grid column. */
    min-height: 0;
    min-width: 0;
    background: #fff;
}

body.fixed-left .jf-conv {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

body.fixed-left .jf-conv__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #eef1ea;
    background: #fff;
    flex: none;
    min-width: 0;
}

/* Both lines truncate, and the block they sit in is allowed to shrink.
   Without min-width: 0 a flex item refuses to go below its content width, so a
   long contact name did not ellipsis - it pushed "Close thread" off the header
   and wrapped across the whole pane. An unknown number with no client row is
   exactly the case that produces one. */
body.fixed-left .jf-conv__ident { min-width: 0; flex: 1 1 auto; }

body.fixed-left .jf-conv__who {
    font-family: var(--jf-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--jf-forest);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-conv__contact {
    color: #829990;
    font-size: 12.2px;
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-conv__actions { display: flex; gap: 8px; flex: none; }

/* The message river. A faint tint separates it from the header and composer
   without spending another border line on it. */
body.fixed-left .jf-conv__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fbfcfa;
}

body.fixed-left .jf-bubble {
    max-width: 74%;
    padding: 9px 13px 8px;
    border-radius: 16px;
    font-size: 13.4px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    /* No transition on purpose: an inbox is not a chat app, and a long thread
       should not animate every time it is re-rendered. */
}

body.fixed-left .jf-bubble--in {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5eae2;
    color: #1b3b33;
    border-bottom-left-radius: 5px;
}

body.fixed-left .jf-bubble--out {
    align-self: flex-end;
    background: var(--jf-forest);
    color: var(--jf-paper);
    border-bottom-right-radius: 5px;
}

body.fixed-left .jf-bubble__meta {
    display: block;
    font-size: 10.5px;
    margin-top: 5px;
    opacity: 0.72;
    font-variant-numeric: tabular-nums;
}

/* A failed send is the one thing on this screen that must not be missed, and
   it is an OUTBOUND bubble — so it overrides the forest fill rather than
   sitting beside it. */
body.fixed-left .jf-bubble--failed {
    background: #fdecea;
    color: #8a1c12;
    border: 1px solid #f2c9c3;
}

body.fixed-left .jf-bubble--failed .jf-bubble__meta { opacity: 0.9; font-weight: 600; }

/* ── the composer ────────────────────────────────────────────────────────── */

body.fixed-left .jf-conv__composer {
    display: flex;
    gap: 9px;
    align-items: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #eef1ea;
    background: #fff;
    flex: none;
}

body.fixed-left .jf-conv__input {
    flex: 1 1 auto;
    min-width: 0;
    resize: none;
    border: 1.5px solid #dfe4dc;
    border-radius: 12px;
    padding: 10px 13px;
    font-family: var(--jf-font);
    font-size: 13.4px;
    line-height: 1.5;
    color: var(--jf-forest);
    background: #fff;
    max-height: 132px;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

body.fixed-left .jf-conv__input::placeholder { color: #9bb0a7; }

body.fixed-left .jf-conv__input:focus {
    outline: 0;
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

body.fixed-left .jf-sendbtn {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    transition: 0.18s ease;
}

body.fixed-left .jf-sendbtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(14, 59, 50, 0.2);
}

body.fixed-left .jf-sendbtn:disabled {
    background: #c3ccc0;
    cursor: default;
    box-shadow: none;
    transform: none;
}

body.fixed-left .jf-sendbtn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.5);
}

body.fixed-left .jf-conv__note {
    margin: 0;
    padding: 0 16px 12px;
    font-size: 12.3px;
    font-weight: 500;
    color: #8a1c12;
    background: #fff;
    flex: none;
}

body.fixed-left .jf-conv__note--ok { color: var(--jf-moss); }

/* ── empty states ────────────────────────────────────────────────────────── */

body.fixed-left .jf-inbox__empty {
    padding: 38px 26px;
    color: #5f7a71;
    text-align: center;
    font-size: 13.4px;
}

body.fixed-left .jf-inbox__empty p { margin: 0 0 5px; }
body.fixed-left .jf-inbox__empty strong { color: var(--jf-forest); font-size: 14.5px; }

/* The pane's placeholder centres in the whole pane; the list's sits at the top
   of the column, where the first row would be. */
body.fixed-left .jf-inbox__empty--pane {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fbfcfa;
}

body.fixed-left .jf-inbox__emptyart {
    display: block;
    color: #c2d0c6;
    margin-bottom: 12px;
}

/* ── narrow screens ──────────────────────────────────────────────────────── */

/* Below 900px the two panes stack. The list keeps a capped height so the
   conversation is reachable without scrolling past every thread, and the pane
   grows to what the messages need rather than holding a viewport-height frame
   on a phone. */
@media (max-width: 900px) {
    body.fixed-left .jf-inbox {
        grid-template-columns: 1fr;
        height: auto;
    }

    body.fixed-left .jf-inbox__list {
        border-right: 0;
        border-bottom: 1px solid #eef1ea;
        max-height: 46vh;
    }

    body.fixed-left .jf-inbox__pane { min-height: 58vh; }

    body.fixed-left .jf-bubble { max-width: 86%; }

    body.fixed-left .jf-conv__head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    body.fixed-left .jf-thread,
    body.fixed-left .jf-sendbtn,
    body.fixed-left .jf-conv__input { transition: none; }

    body.fixed-left .jf-sendbtn:hover:not(:disabled) { transform: none; }
}

/* ==========================================================================
   THE TECHNICIAN DASHBOARD — rebuilt 2026-09-23
   ==========================================================================

   There was no such screen. `Technician::Dashboard()` returned
   `view("technician/dashboard")` against a file that did not exist, so the
   route answered 500 — and `technician` redirects to it, which means every
   technician signing in met an error page. Probed before the rebuild:
   `ViewException: Invalid file: "technician/dashboard.php"`.

   The panel's chrome was never the problem. All thirteen technician views
   include `admin/include/header`, so they already carry the 2026-08 redesign;
   what they lacked was any of its components below the topbar.

   THE LAYOUT

   One stat strip, then three cards: what is next, today in order, and the
   fortnight ahead. "Up next" is the widest because it is the only one a
   technician acts on standing in a van, and it carries the two things they
   need there — the address and a route to it.

   Statuses reuse `.jf-chip--<status>`, which already exists for visits
   (en_route, arrived, in_progress, completed, cancelled). `scheduled` is added
   below because the visit table uses it and the chip set did not have it.
   ========================================================================== */

body.fixed-left .jf-chip--scheduled { background: #e7edfa; color: #33477e; }

/* ── the stat strip ──────────────────────────────────────────────────────── */

body.fixed-left .jf-tdash__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

body.fixed-left .jf-tdash__stat {
    background: #fff;
    border: 1px solid #e2e7de;
    border-radius: 16px;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* The first tile is the one a technician checks before anything else — how
   many are left — so it is the only one that is filled. Four emphasised tiles
   is no emphasis at all. */
body.fixed-left .jf-tdash__stat.is-lead {
    background: var(--jf-forest);
    border-color: var(--jf-forest);
}

body.fixed-left .jf-tdash__statlabel {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7d968d;
}

body.fixed-left .jf-tdash__stat.is-lead .jf-tdash__statlabel { color: #a9c3b4; }

body.fixed-left .jf-tdash__statvalue {
    font-family: var(--jf-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--jf-forest);
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-tdash__stat.is-lead .jf-tdash__statvalue { color: var(--jf-lime); }

body.fixed-left .jf-tdash__stathint {
    font-size: 11.8px;
    color: #829990;
    line-height: 1.4;
}

body.fixed-left .jf-tdash__stat.is-lead .jf-tdash__stathint { color: #9fb8aa; }

/* ── the three cards ─────────────────────────────────────────────────────── */

body.fixed-left .jf-tdash {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas:
        "next  ahead"
        "today ahead";
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

body.fixed-left .jf-tdash__next  { grid-area: next;  margin-top: 0; }
body.fixed-left .jf-tdash__today { grid-area: today; margin-top: 0; }
body.fixed-left .jf-tdash__ahead { grid-area: ahead; margin-top: 0; }

body.fixed-left .jf-tdash__sectionhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-tdash__sectiontitle {
    font-family: var(--jf-display);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--jf-forest);
    margin: 0;
}

body.fixed-left .jf-tdash__more {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jf-moss);
    text-decoration: none;
}

body.fixed-left .jf-tdash__more:hover { color: var(--jf-forest); text-decoration: underline; }

/* ── up next ─────────────────────────────────────────────────────────────── */

body.fixed-left .jf-tdash__nextbody {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

/* The time reads as a label, not as prose. A technician glancing at this from
   the driver's seat is looking for one number. */
body.fixed-left .jf-tdash__nexttime {
    border-right: 1px solid #eef1ea;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.fixed-left .jf-tdash__nexthour {
    font-family: var(--jf-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--jf-forest);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.fixed-left .jf-tdash__nextto {
    font-size: 12px;
    color: #829990;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.fixed-left .jf-tdash__nextmain { min-width: 0; }

body.fixed-left .jf-tdash__nextwho {
    font-family: var(--jf-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--jf-forest);
    margin: 8px 0 0;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-tdash__nextjob {
    font-size: 13.5px;
    color: #5f7a71;
    margin: 3px 0 0;
}

body.fixed-left .jf-tdash__nextaddr {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: #46655c;
    margin: 10px 0 0;
    line-height: 1.5;
}

body.fixed-left .jf-tdash__nextaddr svg { flex: none; margin-top: 2px; color: #93a79e; }

body.fixed-left .jf-tdash__nextactions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ── the two lists ───────────────────────────────────────────────────────── */

body.fixed-left .jf-tdash__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

body.fixed-left .jf-tdash__item + .jf-tdash__item { border-top: 1px solid #eff2ec; }

body.fixed-left .jf-tdash__itemlink {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 18px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background 0.14s ease;
}

body.fixed-left .jf-tdash__itemlink:hover { background: #f4f8f3; text-decoration: none; }

body.fixed-left .jf-tdash__itemlink:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--jf-forest);
}

/* The running job gets the rail, the same one the inbox gives the open thread:
   one visual idea for "this is the one you are on". */
body.fixed-left .jf-tdash__item.is-in_progress .jf-tdash__itemlink::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--jf-forest);
}

body.fixed-left .jf-tdash__item.is-completed .jf-tdash__itemwho { color: #7d968d; }
body.fixed-left .jf-tdash__item.is-completed .jf-tdash__itemtime { color: #a3b5ac; }

body.fixed-left .jf-tdash__itemtime {
    font-size: 13px;
    font-weight: 700;
    color: var(--jf-forest);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.fixed-left .jf-tdash__itemtime--ahead { font-weight: 600; color: #5f7a71; font-size: 12.5px; }

/* A day block rather than a time, because a date two weeks out is read as
   "which day", not "what o'clock". */
body.fixed-left .jf-tdash__itemdate {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef1ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    flex: none;
}

body.fixed-left .jf-tdash__itemdow {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7d968d;
}

body.fixed-left .jf-tdash__itemday {
    font-family: var(--jf-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--jf-forest);
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-tdash__list--ahead .jf-tdash__itemlink { grid-template-columns: 44px minmax(0, 1fr) auto; }

body.fixed-left .jf-tdash__itemmain { min-width: 0; display: flex; flex-direction: column; gap: 1px; }

body.fixed-left .jf-tdash__itemwho {
    font-size: 13.8px;
    font-weight: 600;
    color: var(--jf-forest);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-tdash__itemjob,
body.fixed-left .jf-tdash__itemaddr {
    font-size: 12.5px;
    color: #5f7a71;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fixed-left .jf-tdash__itemaddr { color: #829990; font-size: 12px; }

/* ── empty states ────────────────────────────────────────────────────────── */

body.fixed-left .jf-tdash__empty {
    padding: 30px 22px;
    text-align: center;
    color: #5f7a71;
    font-size: 13.2px;
}

body.fixed-left .jf-tdash__empty p { margin: 0 0 4px; }
body.fixed-left .jf-tdash__empty strong { color: var(--jf-forest); font-size: 14.2px; }

/* ── narrower ────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
    body.fixed-left .jf-tdash {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "next" "today" "ahead";
    }
}

@media (max-width: 860px) {
    body.fixed-left .jf-tdash__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    body.fixed-left .jf-tdash__nextbody {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    body.fixed-left .jf-tdash__nexttime {
        border-right: 0;
        border-bottom: 1px solid #eef1ea;
        padding: 0 0 12px;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    body.fixed-left .jf-tdash__itemlink { grid-template-columns: 56px minmax(0, 1fr); row-gap: 6px; }
    body.fixed-left .jf-tdash__itemlink .jf-chip { grid-column: 2; justify-self: start; }
    body.fixed-left .jf-tdash__list--ahead .jf-tdash__itemlink { grid-template-columns: 44px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    body.fixed-left .jf-tdash__itemlink { transition: none; }
}

/* ==========================================================================
   THE TECHNICIAN JOB LISTS — redesigned 2026-09-24
   ==========================================================================

   Today's Jobs and All Jobs were the last two list screens still drawing a
   bootstrap `.card` around a `table table-bordered` with DataTables' own grey
   toolbar. Every admin board had moved to .jf-panel + .jf-tbl and driven the
   table through jfTable(); these two had not, which is why the panel looked
   like a different product to the pages beside it.

   Almost nothing new is needed here: .jf-panel, .jf-panel__bar, .jf-tblwrap,
   .jf-tbl, .jf-pager, .jf-tblsearch and .jf-tabs already exist and are what
   the boards use. These are the four pieces the job lists want on top.
   ========================================================================== */

/* The row count beside a tab label. The technician's tabs are built from the
   statuses actually present, so the number tells them whether a tab is worth
   pressing before they press it. */
body.fixed-left .jf-tab__n {
    display: inline-block;
    margin-left: 5px;
    padding: 0 5px;
    min-width: 17px;
    border-radius: 999px;
    background: #e7ede6;
    color: #5f7a71;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-tab.is-on .jf-tab__n {
    background: var(--jf-forest);
    color: var(--jf-paper);
}

/* The start time leads every row, because a run is read in time order. Tabular
   figures so the column lines up rather than jittering between "9:45 AM" and
   "11:30 AM". */
body.fixed-left .jf-tbl__time {
    font-weight: 700;
    color: var(--jf-forest);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Six columns, one of them a full service address. Below this the wrapper
   scrolls rather than the address wrapping to four lines and making every row
   a different height. */
body.fixed-left table.jf-tbl--techjobs { min-width: 940px; }

/* The empty state is a whole panel here, not a row inside a table, so it needs
   room and a call to action. A technician with a clear day should not be given
   a bare grey line. */
body.fixed-left .jf-tblempty--tall {
    padding: 48px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

body.fixed-left .jf-tblempty--tall strong {
    font-family: var(--jf-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--jf-forest);
}

body.fixed-left .jf-tblempty--tall p { margin: 0 0 10px; color: #5f7a71; font-size: 13.4px; }

/* ── the date range on All Jobs ──────────────────────────────────────────── */

/* Two native date inputs, which replaced `daterangepicker`. That control cost
   three third-party requests - moment.min.js, daterangepicker.min.js and a
   stylesheet, all from jsdelivr - on a page a technician opens in a van, and
   three origins ContentSecurityPolicy::$scriptSrc has to keep allowing. A
   native input IS a calendar picker and needs nothing loaded; the
   route-optimisation screen already uses one for the same job. */
body.fixed-left .jf-daterange {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

body.fixed-left .jf-daterange__input {
    width: auto;
    min-width: 138px;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-daterange__input:focus {
    outline: 0;
    border-color: var(--jf-forest);
    box-shadow: 0 0 0 4px rgba(210, 224, 110, 0.45);
}

body.fixed-left .jf-daterange__sep {
    font-size: 12.5px;
    color: #829990;
    flex: none;
}

/* The toolbar carries tabs on the left and three controls on the right; below
   this it wraps rather than squeezing the search box to nothing. */
@media (max-width: 1100px) {
    body.fixed-left .jf-daterange { flex-wrap: wrap; }
    body.fixed-left .jf-daterange__input { min-width: 124px; }
}

/* ==========================================================================
   THE TECHNICIAN'S REQUEST QUEUE — redesigned 2026-09-24
   ==========================================================================

   This screen asks for a decision rather than reporting state, which is why it
   is cards and not a `.jf-tbl`: the technician needs the schedule, both
   addresses and the distance in front of them before they can answer, and none
   of that fits a table row.

   Each card is a `.jf-panel`, so the surface, radius and border are the same
   ones every board uses. These rules are the contents.
   ========================================================================== */

body.fixed-left .jf-reqlist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

body.fixed-left .jf-req { margin-top: 0; padding: 18px 20px 20px; }

/* An answered request stays on the list — a technician wants to see what they
   took — but it stops competing with the ones still waiting. */
body.fixed-left .jf-req.is-accepted { background: #fbfcfa; }

body.fixed-left .jf-req__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body.fixed-left .jf-req__headmain { min-width: 0; }

body.fixed-left .jf-req__title {
    font-family: var(--jf-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--jf-forest);
    margin: 0;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-req__meta {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* How far it is, which is the figure that decides most of these. */
body.fixed-left .jf-req__distance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #5f7a71;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-req__distance svg { color: #93a79e; flex: none; }

body.fixed-left .jf-req__accepted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 12px;
    font-weight: 700;
}

body.fixed-left .jf-req__desc {
    margin: 12px 0 0;
    font-size: 13.6px;
    line-height: 1.55;
    color: #46655c;
}

/* ── the facts ───────────────────────────────────────────────────────────── */

body.fixed-left .jf-req__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 20px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #eef1ea;
}

body.fixed-left .jf-req__fact { min-width: 0; margin: 0; }

body.fixed-left .jf-req__fact dt {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #829990;
    margin: 0 0 3px;
}

body.fixed-left .jf-req__fact dd {
    margin: 0;
    font-size: 13.3px;
    line-height: 1.5;
    color: var(--jf-forest);
    font-weight: 600;
}

body.fixed-left .jf-req__factsub {
    display: block;
    font-size: 12.4px;
    font-weight: 500;
    color: #5f7a71;
    margin-top: 1px;
}

body.fixed-left .jf-req__none { color: #a3b5ac; font-weight: 500; font-style: italic; }

/* ── accept / decline ────────────────────────────────────────────────────── */

body.fixed-left .jf-req__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}

body.fixed-left .jf-req__actions form { margin: 0; display: inline-flex; }

/* Decline is a real outcome, not a danger. It is an outline button that turns
   red on approach rather than a red button sitting beside Accept competing for
   the eye — the accept is the one the tenant wants and the technician usually
   means. */
body.fixed-left .jf-req__decline:hover {
    border-color: #c0705f;
    color: #8a3f2f;
}

body.fixed-left .jf-req__note {
    font-size: 12.5px;
    color: #829990;
}

/* ── report submissions ──────────────────────────────────────────────────── */

/* Seven columns, one of them a thumbnail strip. */
body.fixed-left table.jf-tbl--techreports { min-width: 900px; }

/* Photo evidence is the point of a site report, so it is shown rather than
   counted — three thumbnails and a count for the rest, which fits a row
   without turning it into a gallery. */
body.fixed-left .jf-repphotos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.fixed-left .jf-repphotos__img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid #e2e7de;
    background: #f4f6f2;
    flex: none;
}

body.fixed-left .jf-repphotos__more {
    font-size: 11px;
    font-weight: 700;
    color: #5f7a71;
    padding: 0 5px;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   THE TECHNICIAN'S VISIT PAGE — redesigned 2026-09-24
   ==========================================================================

   The record itself now uses the detail system the admin job page uses —
   .jf-rec__head, .jf-rec__grid, .jf-rec__card — so only the pieces peculiar to
   a visit are below: the on-site timer, the property lists and the parts
   table.

   Before this, the page carried ZERO jf- classes. Its markup was a bootstrap
   `.card.border-card` around `.dx` / `.dx1` / `.ajx` spans from the
   pre-redesign theme, which is why it read as a different product to the lists
   that link into it.
   ========================================================================== */

body.fixed-left .jf-visitbar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

/* The timer is the one number on this page that changes while you look at it,
   so it is set apart rather than being a bare span between two buttons. */
body.fixed-left .jf-timer {
    display: inline-flex;
    flex-direction: column;
    padding: 5px 13px 6px;
    border-radius: 12px;
    background: #eef1ea;
    line-height: 1.15;
    flex: none;
}

body.fixed-left .jf-timer__label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7d968d;
}

body.fixed-left .jf-timer__clock {
    font-family: var(--jf-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--jf-forest);
    /* Tabular, or the whole row shifts left and right once a second as the
       digits change width. */
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-visitdone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--jf-forest);
    color: var(--jf-paper);
    font-size: 13px;
    font-weight: 700;
}

/* ── the work ────────────────────────────────────────────────────────────── */

body.fixed-left .jf-vis__worktitle {
    margin: 10px 0 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--jf-forest);
}

body.fixed-left .jf-vis__desc {
    margin: 6px 0 0;
    font-size: 13.6px;
    line-height: 1.6;
    color: #46655c;
}

/* ── property lists ──────────────────────────────────────────────────────── */

body.fixed-left .jf-vis__props { margin: 12px 0 0; }

body.fixed-left .jf-vis__prop {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    margin: 0;
    border-top: 1px solid #f0f3ed;
}

body.fixed-left .jf-vis__prop:first-child { border-top: 0; padding-top: 0; }

body.fixed-left .jf-vis__prop dt {
    font-size: 12.3px;
    color: #829990;
    font-weight: 600;
    flex: none;
}

body.fixed-left .jf-vis__prop dd {
    margin: 0;
    font-size: 13.2px;
    font-weight: 600;
    color: var(--jf-forest);
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-vis__link { color: var(--jf-moss); text-decoration: none; }
body.fixed-left .jf-vis__link:hover { color: var(--jf-forest); text-decoration: underline; }

/* A technician standing outside the wrong building wants one tap, so this is
   full width rather than tucked beside the address. */
body.fixed-left .jf-vis__directions {
    display: inline-flex;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 14px;
    text-decoration: none;
}

body.fixed-left .jf-vis__directions:hover { color: var(--jf-paper); text-decoration: none; }

/* ── the parts table ─────────────────────────────────────────────────────── */

body.fixed-left table.jf-tbl--visitparts { min-width: 0; }
body.fixed-left .jf-vis__qtycol { width: 78px; text-align: right; }

@media (max-width: 1100px) {
    body.fixed-left .jf-rec__grid { grid-template-columns: minmax(0, 1fr); }
}

/* The visit page's tab panel. The strip sits above it, so the panel's top
   corners stay square against it rather than the strip floating free. */
body.fixed-left .jf-visittabs__body {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 18px 20px 20px;
    min-height: 200px;
}

body.fixed-left .jf-visittabs .jf-tabs {
    border: 1px solid #e2e7de;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #fbfcf9;
    padding: 8px 10px 0;
}

/* .fade/.show are bootstrap's, kept because the panes still carry them. */
body.fixed-left .jf-visittabs__body .tab-pane { display: none; }
body.fixed-left .jf-visittabs__body .tab-pane.active { display: block; }

/* ── the report form ─────────────────────────────────────────────────────── */

body.fixed-left .jf-repfield { margin-top: 14px; }
body.fixed-left .jf-repfield:first-of-type { margin-top: 12px; }

body.fixed-left .jf-repfield__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #829990;
    margin-bottom: 5px;
}

body.fixed-left .jf-repfield__hint {
    display: block;
    font-size: 11.8px;
    color: #829990;
    margin-top: 5px;
}

body.fixed-left .jf-repfield__none { font-size: 13.2px; color: #829990; margin: 12px 0 0; }

body.fixed-left textarea.jf-sfield__input { resize: vertical; line-height: 1.55; }

/* Existing photos. A site report's evidence is the reason it exists, so it is
   shown at a size somebody can judge rather than as a row of stamps. */
body.fixed-left .jf-repgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

body.fixed-left .jf-repgrid__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e7de;
    background: #f4f6f2;
}

body.fixed-left .jf-repsig {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e6eae2;
    border-radius: 12px;
    background: #fbfcfa;
}

body.fixed-left .jf-repsave { width: 100%; justify-content: center; }

/* The technician calendar's panel. FullCalendar draws its own toolbar and
   grid, so this only supplies the surface it sits on — the screen previously
   had none, and no page title either. */
body.fixed-left .jf-calpanel { padding: 16px 18px 20px; }

/* ── route optimisation ──────────────────────────────────────────────────── */

/* The day picker and the four route actions sit in the page head, where this
   screen previously had neither a head nor a title. */
body.fixed-left .jf-routehead { align-items: flex-end; }

body.fixed-left .jf-routebar {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

body.fixed-left .jf-routebar__date {
    width: auto;
    min-width: 152px;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-routelist { margin-top: 16px; overflow: hidden; }

body.fixed-left .jf-routelist__head {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1ea;
}

body.fixed-left .jf-routemap { margin-top: 16px; overflow: hidden; }
body.fixed-left .jf-routemap__body { position: relative; padding: 0; }

/* The draggable stop. The old rule gave it a hard shadow on rest AND on hover,
   so nothing changed when you picked one up. Rest is flat; the lift is the
   hover. */
body.fixed-left .jf-routecard {
    border-left: 4px solid var(--jf-forest);
    box-shadow: none;
    border-radius: 10px;
    background: #fff;
}

body.fixed-left .jf-routecard:hover {
    box-shadow: 0 10px 20px rgba(14, 59, 50, 0.14);
    transform: translateY(-2px);
}

/* ==========================================================================
   THE TECHNICIAN DASHBOARD, PART TWO
   ==========================================================================

   Built against docs/Login page redesign/Jobflyte Technician Dashboard.dc.html.
   The stat strip and the two lists are above; these are the pieces the design
   adds on top: the filled UP NEXT card, the route markers, the week bars and
   the pay card.
   ========================================================================== */

/* ── up next ─────────────────────────────────────────────────────────────── */

/* Filled, not outlined. It is the one thing on this page a technician acts on
   while standing in a van, and the design gives it the only dark surface for
   exactly that reason: everything else on the screen is something to read. */
body.fixed-left .jf-upnext {
    background: var(--jf-forest);
    border-radius: 18px;
    padding: 18px 22px 20px;
    margin-top: 16px;
    color: var(--jf-paper);
}

body.fixed-left .jf-upnext__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.fixed-left .jf-upnext__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jf-lime);
}

body.fixed-left .jf-upnext__state {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(234, 243, 238, 0.14);
    color: var(--jf-paper);
}

/* `.jf-upnext .jf-upnext__title`, not just the element class.
   `body.fixed-left .content h1..h4` sets every heading in the content area to
   forest, and at (0,2,2) it beat a plain (0,2,1) class rule - so this title
   rendered forest ON forest and simply was not there. The extra class buys the
   specificity; nothing else changes. */
body.fixed-left .jf-upnext .jf-upnext__title {
    font-family: var(--jf-display);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 10px 0 0;
    color: #fff;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-upnext__who {
    margin: 4px 0 0;
    font-size: 13.6px;
    color: #a9c3b4;
}

body.fixed-left .jf-upnext__addr {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 10px 0 0;
    font-size: 13.2px;
    line-height: 1.5;
    color: #cadbd0;
}

body.fixed-left .jf-upnext__addr svg { flex: none; margin-top: 2px; color: #8fae9d; }

body.fixed-left .jf-upnext__actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Lime on forest for the primary. It is the only lime button in the panel, so
   there is never a question which control is the one to press. */
body.fixed-left .jf-upnext__go {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: var(--jf-lime);
    color: #24310a;
    font-family: var(--jf-font);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: 0.18s ease;
}

body.fixed-left .jf-upnext__go:hover:not(:disabled) {
    color: #24310a;
    text-decoration: none;
    transform: translateY(-1px);
}

body.fixed-left .jf-upnext__go:disabled { opacity: 0.6; cursor: default; transform: none; }

body.fixed-left .jf-upnext__alt {
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid rgba(234, 243, 238, 0.28);
    border-radius: 11px;
    background: transparent;
    color: var(--jf-paper);
    font-size: 13.2px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: 0.18s ease;
}

body.fixed-left .jf-upnext__alt:hover {
    border-color: var(--jf-paper);
    color: var(--jf-paper);
    text-decoration: none;
}

/* ── the route, and its markers ──────────────────────────────────────────── */

/* The main column and a rail, which is what the design's lower half is. */
body.fixed-left .jf-tdash {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: "today rail";
}

body.fixed-left .jf-tdash__rail {
    grid-area: rail;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

body.fixed-left .jf-tdash__rail .jf-panel { margin-top: 0; }

body.fixed-left .jf-tdash__itemlink--route { grid-template-columns: 26px 66px minmax(0, 1fr) auto; }
body.fixed-left .jf-tdash__itemlink--done  { grid-template-columns: 26px minmax(0, 1fr) auto; }

/* A number until it is done, then a tick. The sequence is the run order, which
   is the only numbering a technician cares about. */
body.fixed-left .jf-routemark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    background: #e7ede6;
    color: #5f7a71;
    flex: none;
}

body.fixed-left .jf-routemark.is-done { background: #dfe9dc; color: var(--jf-forest); }
body.fixed-left .jf-routemark.is-live { background: var(--jf-forest); color: var(--jf-lime); }

/* ── the week ────────────────────────────────────────────────────────────── */

body.fixed-left .jf-weekbars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 16px 18px 14px;
    align-items: end;
}

body.fixed-left .jf-weekbars__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

body.fixed-left .jf-weekbars__value {
    font-size: 10px;
    font-weight: 700;
    color: #5f7a71;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-height: 13px;
}

/* The track is always drawn, so an unworked day reads as a day off rather than
   as a missing bar. */
/* A baseline, not a filled block. The first version gave the track a solid
   background, so an unworked day drew a full-height grey rectangle and the
   chart read as seven bars of which one happened to be green. The rule under
   each column says "this day exists"; only the fill says how long it was. */
body.fixed-left .jf-weekbars__track {
    width: 100%;
    height: 74px;
    display: flex;
    align-items: flex-end;
    border-bottom: 2px solid #e2e7de;
}

body.fixed-left .jf-weekbars__fill {
    width: 100%;
    background: var(--jf-forest);
    border-radius: 6px 6px 0 0;
    min-height: 0;
}

body.fixed-left .jf-weekbars__col.is-today .jf-weekbars__fill { background: var(--jf-lime); }
body.fixed-left .jf-weekbars__col.is-today .jf-weekbars__day { color: var(--jf-forest); font-weight: 700; }

body.fixed-left .jf-weekbars__day {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #93a79e;
}

/* ── the week's pay ──────────────────────────────────────────────────────── */

body.fixed-left .jf-paycard__value {
    font-family: var(--jf-display);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--jf-forest);
    margin: 14px 18px 0;
    font-variant-numeric: tabular-nums;
}

body.fixed-left .jf-paycard__hint {
    margin: 3px 18px 18px;
    font-size: 12.2px;
    color: #829990;
}

@media (max-width: 1180px) {
    body.fixed-left .jf-tdash {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "today" "rail";
    }
}

@media (max-width: 860px) {
    body.fixed-left .jf-upnext { padding: 16px 16px 18px; }
    body.fixed-left .jf-upnext__title { font-size: 20px; }
    body.fixed-left .jf-upnext__go,
    body.fixed-left .jf-upnext__alt { flex: 1 1 auto; justify-content: center; }

    body.fixed-left .jf-tdash__itemlink--route { grid-template-columns: 26px 56px minmax(0, 1fr); }
    body.fixed-left .jf-tdash__itemlink--route .jf-chip { grid-column: 3; justify-self: start; }
    body.fixed-left .jf-weekbars { padding: 14px 12px 12px; gap: 4px; }
}

/* ── the "Add client" modal ──────────────────────────────────────────────
   The modal now embeds the real client form, so it only needs the chrome:
   the form brings its own jf-fcard / jf-inp styling with it. */

body.fixed-left .jf-cmodal .modal-body { padding: 0 18px 4px; max-height: 70vh; overflow-y: auto; }
body.fixed-left .jf-cmodal .jf-cform { padding: 14px 0 4px; }

/* One column inside a modal: the page version is a two-column grid, which at
   modal width leaves both columns too narrow to read. */
body.fixed-left .jf-cmodal .jf-fgrid { grid-template-columns: minmax(0, 1fr); }

body.fixed-left .jf-cmodal__foot { border-top: 1px solid #e6eae2; gap: 10px; }

body.fixed-left .jf-cmodal__msg {
    margin: 14px 0 0;
    padding: 10px 13px;
    border-radius: 10px;
    background: #eef4e6;
    color: var(--jf-forest);
    font-size: 13px;
}

body.fixed-left .jf-cmodal__msg.is-bad { background: #fbeceb; color: #8a2d22; }

/* The per-field error the modal's validation adds. */
body.fixed-left .jf-inperr { margin-top: 5px; font-size: 12.2px; color: #b4342a; }

/* ── settings forms ──────────────────────────────────────────────────────
   The five settings screens (general, booking, reviews, late fees,
   financing) are one column of cards rather than the two-column form/rail
   the client and job forms use: there is no summary rail to put beside
   them, and a 320px empty column is just a narrower form. */

body.fixed-left .jf-fgrid--one { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

/* A plain field label. The client form floats its labels inside the input,
   which works for a name but not for "Representative APR (%)" - a settings
   field is usually pre-filled, so a floating label is always in its raised
   state and is simply a smaller, harder-to-read version of this. */
body.fixed-left .jf-flabel {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #46655c;
    margin-bottom: 5px;
}

/* The explanatory line under a settings field. These pages are read by
   somebody deciding what a number should be, so the hint is part of the
   control, not decoration. */
body.fixed-left .jf-fhint {
    display: block;
    margin-top: 5px;
    font-size: 11.8px;
    line-height: 1.45;
    color: #7b918a;
}

/* An informational note, as opposed to jf-note's default warning tone. */
body.fixed-left .jf-note--calm {
    background: #eef4e6;
    border-color: #d8e5c6;
    color: var(--jf-forest);
}

/* Connection state on the reviews settings screen: a status pill, a re-check
   link and a disconnect, on one line. The disconnect is a <button> because it
   submits a form, so it needs the link styling explicitly. */
body.fixed-left .jf-connrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 0;
}

body.fixed-left .jf-pill--ok { background: #e4efd4; color: #33551f; }

body.fixed-left .jf-link {
    border: 0;
    background: transparent;
    padding: 0;
    font-family: var(--jf-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--jf-moss);
    cursor: pointer;
}

body.fixed-left .jf-link:hover { text-decoration: underline; }

/* Disconnecting drops a stored credential, so it is not styled like the
   neighbouring "Re-check" link that costs nothing. */
body.fixed-left .jf-link--danger { color: #b4342a; }

/* A field with a fixed prefix in front of it, for the booking page's web
   address. The prefix is not editable and not a field, so it is not an input
   with a readonly attribute that people then try to type into. */
body.fixed-left .jf-prefixed {
    display: flex;
    align-items: stretch;
}

body.fixed-left .jf-prefixed__tag {
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 1.5px solid #dfe4dc;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f4f6f1;
    font-size: 12.8px;
    color: #5f7a71;
    white-space: nowrap;
}

body.fixed-left .jf-prefixed .jf-inp { border-radius: 0 10px 10px 0; min-width: 0; }

/* One weekday: the day toggle, then its two times. */
body.fixed-left .jf-dayrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 140px;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    border-top: 1px solid #f0f2ec;
}

body.fixed-left .jf-dayrow:first-of-type { border-top: 0; }

/* A table whose cells hold inputs rather than text: the default cell padding
   stacks with the input's own and makes the rows twice as tall as they need
   to be. */
body.fixed-left .jf-tbl--form td { padding: 6px 8px; vertical-align: middle; }
body.fixed-left .jf-tbl--form td .jf-inp { margin: 0; }

@media (max-width: 720px) {
    body.fixed-left .jf-dayrow { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
    body.fixed-left .jf-prefixed { flex-direction: column; }
    body.fixed-left .jf-prefixed__tag { border-right: 1.5px solid #dfe4dc; border-radius: 10px 10px 0 0; }
    body.fixed-left .jf-prefixed .jf-inp { border-radius: 0 0 10px 10px; }
}

/* ── the general settings screen ─────────────────────────────────────────
   Seven tabs, seven forms, all posting to save_settings. The tab machinery
   is still bootstrap's pills, deliberately: rewriting working tab JS to
   restyle it is how a settings page loses a tab nobody notices for months.
   What changes is the look. */

body.fixed-left .jf-settings {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* A flash belongs ABOVE both columns, not beside them. Any direct child of
   `.jf-settings` becomes a grid item, which is how this page came to render
   its tab rail and its form in each other's columns. */
body.fixed-left .jf-settings__flash { grid-column: 1 / -1; }

body.fixed-left .jf-settings__rail { min-width: 0; }
body.fixed-left .jf-settings__body { min-width: 0; }

body.fixed-left .jf-settings .jf-fcard__body { padding: 14px 16px; }

/* The vertical pill rail. */
body.fixed-left .jf-settings .nav-pills .nav-link {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.6px;
    font-weight: 600;
    color: #35564d;
    background: transparent;
    transition: 0.15s ease;
}

body.fixed-left .jf-settings .nav-pills .nav-link:hover { background: #f1f4ee; color: var(--jf-forest); }

body.fixed-left .jf-settings .nav-pills .nav-link.active {
    background: #e8efdc;
    color: var(--jf-forest);
    font-weight: 700;
}

body.fixed-left .jf-settings h5 {
    font-family: var(--jf-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--jf-forest);
    margin: 0 0 14px;
}

/* Two fields side by side, where the page used col-lg-6. */
body.fixed-left .jf-settings .jf-half { display: inline-block; width: calc(50% - 7px); vertical-align: top; }
body.fixed-left .jf-settings .jf-half + .jf-half { margin-left: 10px; }

body.fixed-left .jf-settings .mb-3 { margin-bottom: 14px; }

@media (max-width: 900px) {
    body.fixed-left .jf-settings { grid-template-columns: minmax(0, 1fr); }
    body.fixed-left .jf-settings .jf-half { width: 100%; }
    body.fixed-left .jf-settings .jf-half + .jf-half { margin-left: 0; }
}

/* The field picker on the form-entry export: a scrolling list of checkboxes
   that only appears once a form is chosen. */
body.fixed-left .jf-fieldpick:not(:empty) {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid #e6eae2;
    border-radius: 12px;
    background: #fafbf8;
    max-height: 230px;
    overflow-y: auto;
}

body.fixed-left .jf-fieldpick__all {
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e6eae2;
}

/* The compliance dashboard's card grid. It was a .row per pair of cards, so
   adding a card left an uneven column; one grid reflows on its own. */
body.fixed-left .jf-cgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

body.fixed-left .jf-cgrid__cell { min-width: 0; display: flex; }

/* Fills its grid cell, so two cards in a row end level regardless of how much
   text each one holds. */
body.fixed-left .jf-fcard--fill { width: 100%; display: flex; flex-direction: column; }
body.fixed-left .jf-fcard--fill .jf-fcard__body { flex: 1; }

/* ── the calendar's visit modal ──────────────────────────────────────────
   Opened by clicking an event. Its body used to be markup from a component
   that no longer exists (innerFrame / popover-header / contentSection), so
   it inherited no styling and rendered as bare text in a styled dialog. */

body.fixed-left .jf-vmodal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(14, 59, 50, 0.5);
}

body.fixed-left .jf-vmodal__head {
    border-bottom: 1px solid #e6eae2;
    padding: 15px 18px;
    align-items: center;
}

body.fixed-left .jf-vmodal__title {
    font-family: var(--jf-display);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--jf-forest);
    margin: 0;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-vmodal__body { padding: 16px 18px 6px; }

body.fixed-left .jf-vmodal__state { margin-bottom: 12px; }

/* Label above value, not beside it: an address wraps, and a two-column row
   with a wrapping value leaves the label stranded at the top of a gap. */
body.fixed-left .jf-vmodal__row {
    padding: 9px 0;
    border-top: 1px solid #f0f2ec;
}

body.fixed-left .jf-vmodal__row:first-of-type { border-top: 0; padding-top: 0; }

body.fixed-left .jf-vmodal__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b918a;
}

body.fixed-left .jf-vmodal__value {
    font-size: 14px;
    color: var(--jf-forest);
    line-height: 1.45;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

body.fixed-left .jf-vmodal__foot {
    border-top: 1px solid #e6eae2;
    padding: 13px 18px;
    gap: 10px;
}

/* The footer's two controls are anchors, so they need the button metrics
   the form buttons get from their own element defaults. */
body.fixed-left .jf-vmodal__foot .jf-save,
body.fixed-left .jf-vmodal__foot .jf-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    text-decoration: none;
}

/* ── form cells inside a modal ───────────────────────────────────────────
   The email and job-report modals laid their fields out with bootstrap's
   row/col pair, the only thing on those pages still doing so. These are the
   same three widths expressed against the design system's own grid, so a
   modal body reflows on a phone instead of staying at twelve columns. */

body.fixed-left .jf-modal .modal-body > .row,
body.fixed-left .jf-modal .modal-body .row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

body.fixed-left .jf-ffull  { grid-column: span 6; min-width: 0; }
body.fixed-left .jf-fhalf  { grid-column: span 3; min-width: 0; }
body.fixed-left .jf-fthird { grid-column: span 2; min-width: 0; }

@media (max-width: 680px) {
    body.fixed-left .jf-fhalf,
    body.fixed-left .jf-fthird { grid-column: span 6; }
}

/* ── the field-app nudge ─────────────────────────────────────────────────
   Shown once on the technician dashboard. It is a signpost, not an install
   button: the manifest is scoped to /field and this page links no manifest,
   so nothing here can install anything. The install itself happens on
   /field, where the browser will offer it. */

body.fixed-left .jf-fieldnudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding: 15px 18px;
    border-radius: 16px;
    background: var(--jf-forest);
    color: var(--jf-paper);
}

body.fixed-left .jf-fieldnudge[hidden] { display: none; }

body.fixed-left .jf-fieldnudge__body { min-width: 0; flex: 1 1 320px; }

body.fixed-left .jf-fieldnudge__title {
    font-family: var(--jf-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #fff;
}

body.fixed-left .jf-fieldnudge__text {
    margin: 4px 0 0;
    font-size: 13.2px;
    line-height: 1.5;
    color: #b7cdc1;
}

body.fixed-left .jf-fieldnudge__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* Lime on forest: the only lime control in the panel, so there is no question
   which one is the offer and which one dismisses it. */
body.fixed-left .jf-fieldnudge__go {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--jf-lime);
    color: #24310a;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.18s ease;
}

body.fixed-left .jf-fieldnudge__go:hover {
    color: #24310a;
    text-decoration: none;
    transform: translateY(-1px);
}

body.fixed-left .jf-fieldnudge__no {
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #b7cdc1;
    font-family: var(--jf-font);
    font-size: 13.2px;
    font-weight: 600;
    cursor: pointer;
}

body.fixed-left .jf-fieldnudge__no:hover { color: var(--jf-paper); }

@media (max-width: 600px) {
    body.fixed-left .jf-fieldnudge__actions { width: 100%; }
    body.fixed-left .jf-fieldnudge__go { flex: 1; justify-content: center; }
}
