/* Job Sheet mobile app: compact layout from the "Job Sheet Screens" design.
   Every class carries the jb- prefix so nothing here meets Bootstrap, DevExpress or app.css.
   Light only, like the design. */
.jb-root {
    --jb-blue: #0047ba; --jb-blue-d: #00358c; --jb-blue-t: #E6EEFB; --jb-navy: #0B2E6B;
    --jb-bg: #F3F5F9; --jb-backdrop: #D9DFE8; --jb-line: #E1E6EE; --jb-line-soft: #EEF1F5; --jb-field: #8A94A6;
    --jb-text: #1B2333; --jb-text-2: #2C3546; --jb-label: #4A5466; --jb-muted: #5B6577; --jb-ph: #6B7588;
    --jb-green: #157347; --jb-green-d: #0F5C38; --jb-green-t: #E8F5EC; --jb-green-text: #146C3A;
    --jb-amber: #8A4B00; --jb-amber-t: #FFF1DC; --jb-red: #B42318; --jb-red-t: #FFF5F4; --jb-orange: #FF6B00;
    --jb-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center;
    background: var(--jb-backdrop); font-family: var(--jb-font); font-size: 14px; line-height: normal; color: var(--jb-text);
    -webkit-font-smoothing: antialiased; text-align: left;
}
.jb-root *, .jb-root *::before, .jb-root *::after { box-sizing: border-box; }
.jb-root button, .jb-root input, .jb-root select, .jb-root textarea { font-family: inherit; line-height: normal; }
.jb-root h1, .jb-root h2, .jb-root h3 { line-height: normal; }
.jb-root dt { font-weight: 400; }
.jb-root :focus-visible { outline: 3px solid rgba(0,71,186,.45); outline-offset: 2px; }
.jb-root .jb-hdr :focus-visible { outline-color: #FFFFFF; }

/* Full screen on a phone; a centred column on anything wider */
.jb-app { position: relative; width: 100%; max-width: 560px; height: 100%; overflow: hidden; background: var(--jb-bg); }
@media (min-width: 561px) { .jb-app { box-shadow: 0 0 40px rgba(11,20,38,.18); } }

/* Layout primitives */
.jb-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--jb-bg); }
.jb-screen.jb-white { background: #FFFFFF; }
.jb-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.jb-scroll, .jb-sheet-body, .jb-strip { scrollbar-width: none; }
.jb-scroll::-webkit-scrollbar, .jb-sheet-body::-webkit-scrollbar, .jb-strip::-webkit-scrollbar { display: none; }
.jb-row { display: flex; align-items: center; }
.jb-col { display: flex; flex-direction: column; }
.jb-grow { flex: 1 1 0; min-width: 0; }
.jb-between { justify-content: space-between; }
.jb-end { justify-content: flex-end; }
.jb-gap4 { gap: 4px; } .jb-gap6 { gap: 6px; } .jb-gap8 { gap: 8px; } .jb-gap10 { gap: 10px; }
.jb-push { margin-left: auto; }
.jb-muted { color: var(--jb-muted); }
.jb-sub { font-size: 12px; color: var(--jb-muted); }

/* Header */
.jb-hdr { background: var(--jb-blue); color: #FFFFFF; padding: 10px 10px 12px; border-radius: 0 0 20px 20px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.jb-hdr-list { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
.jb-hdr-btn { position: relative; width: 40px; height: 40px; border-radius: 11px; border: 0; background: rgba(255,255,255,.14); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; padding: 0; }
.jb-hdr-btn:active { background: rgba(255,255,255,.24); }
.jb-hdr-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.jb-hdr-kicker { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.84); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-hdr-h { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-badge-dot { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--jb-orange); color: var(--jb-text); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.jb-logo { width: 30px; height: 30px; padding: 3.5px; background: #FFFFFF; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.jb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.jb-view-title { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 2px 4px; border-radius: 10px; cursor: pointer; margin: 0; }
.jb-view-title .jb-vt { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.jb-view-title .jb-vt-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jb-view-title .jb-vt svg { flex-shrink: 0; }
.jb-view-title select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.jb-view-title:focus-within { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.jb-search { height: 42px; border-radius: 11px; background: #FFFFFF; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--jb-muted); margin: 0; }
.jb-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 16px; color: var(--jb-text); background: transparent; padding: 0; }
.jb-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.jb-root input::placeholder, .jb-root textarea::placeholder { color: var(--jb-ph); opacity: 1; }

/* Works order list */
.jb-list-wrap { padding: 10px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.jb-list-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; padding: 0 2px; }
.jb-list-meta .jb-count { font-size: 12.5px; font-weight: 600; color: var(--jb-label); }
.jb-cards { display: flex; flex-direction: column; }
.jb-card { position: relative; background: #FFFFFF; border: 1px solid var(--jb-line); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.jb-card-ph { height: 118px; }
.jb-card-main { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px 6px; background: none; border: 0; border-radius: 0; text-align: left; color: inherit; cursor: pointer; width: 100%; }
.jb-card-main:active { background: #F8FAFC; }
.jb-card-top { display: flex; align-items: center; gap: 6px; width: 100%; }
.jb-ref { font-size: 11.5px; font-weight: 600; color: var(--jb-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jb-card-title { display: block; font-size: 15px; line-height: 1.3; font-weight: 700; margin-top: 2px; }
.jb-card-sub { display: block; font-size: 12.5px; color: var(--jb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jb-card-foot { display: flex; align-items: center; gap: 10px; padding: 0 10px 12px 12px; }
.jb-plan-d { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--jb-label); min-width: 0; flex: 0 1 auto; }
.jb-plan-d svg { flex-shrink: 0; }
.jb-pd-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jb-cnt { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--jb-muted); flex-shrink: 0; }
.jb-card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #E9EDF3; }
.jb-card-progress i { display: block; height: 100%; background: var(--jb-blue); }
.jb-src { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jb-src-N { background: var(--jb-blue-t); color: var(--jb-blue); }
.jb-src-Z { background: var(--jb-amber-t); color: var(--jb-amber); }
.jb-src-I, .jb-src-U { background: #E9ECF1; color: #3B4556; }
.jb-pill { padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.jb-st-prog { background: var(--jb-blue-t); color: var(--jb-blue); }
.jb-st-open { background: var(--jb-amber-t); color: var(--jb-amber); }
.jb-st-sched { background: var(--jb-green-t); color: var(--jb-green-text); }
.jb-st-other { background: #E9ECF1; color: #3B4556; }
.jb-avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: #DDE5F3; color: #0B2E6B; flex-shrink: 0; }
.jb-avatar.jb-alt { background: #FCE7D6; color: #7A3A00; }
.jb-avatar.jb-grey { background: #E9ECF1; color: #3B4556; }
.jb-avatar.jb-md { width: 34px; height: 34px; font-size: 11.5px; }
.jb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 16px; text-align: center; color: var(--jb-muted); font-size: 13px; }
.jb-empty b { color: var(--jb-text); font-size: 14.5px; }

/* Buttons */
.jb-btn { height: 44px; padding: 0 14px; border-radius: 11px; border: 0; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.jb-btn-lg { height: 48px; border-radius: 12px; font-size: 15px; padding: 0 18px; }
.jb-btn-sm { height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; }
.jb-btn-primary { background: var(--jb-blue); color: #FFFFFF; }
.jb-btn-primary:active { background: var(--jb-blue-d); }
.jb-btn-success { background: var(--jb-green); color: #FFFFFF; }
.jb-btn-success:active { background: var(--jb-green-d); }
.jb-btn-outline { background: #FFFFFF; color: var(--jb-text); border: 1px solid var(--jb-field); }
.jb-btn-danger-outline { background: #FFFFFF; color: var(--jb-red); border: 1px solid #F0B8B2; }
.jb-btn:disabled { opacity: .45; cursor: not-allowed; }
.jb-btn.jb-grow { flex: 1 1 0; }
.jb-icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 0; background: #F1F4F8; color: #3B4556; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.jb-round-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--jb-blue-t); color: var(--jb-blue); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; text-decoration: none; }
.jb-icon-btn-danger { width: 36px; height: 36px; border-radius: 9px; border: 1px solid #F0B8B2; background: var(--jb-red-t); color: var(--jb-red); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.jb-link-btn { align-self: flex-start; min-height: 32px; padding: 4px 2px; background: none; border: 0; color: var(--jb-blue); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.jb-link-btn.jb-center { align-self: center; }

/* Bottom bar */
.jb-bottombar { background: #FFFFFF; border-top: 1px solid #E6EAF0; padding: 10px 12px 12px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.jb-bottombar.jb-stack { flex-direction: column; align-items: stretch; border-top: 0; padding-bottom: 16px; }
.jb-sig-chip { flex: 1 1 0; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid #E9C58F; background: #FFF7EB; display: flex; align-items: center; gap: 8px; padding: 0 10px; cursor: pointer; text-align: left; color: var(--jb-text); }
.jb-sig-chip svg { color: var(--jb-amber); flex-shrink: 0; }
.jb-sig-chip.jb-missing { border: 2px solid var(--jb-red); background: var(--jb-red-t); }
.jb-sig-chip.jb-missing svg { color: var(--jb-red); }
.jb-sig-chip.jb-signed { border-color: #A7D7B8; background: var(--jb-green-t); }
.jb-sig-thumb { height: 30px; width: 48px; object-fit: contain; background: #FFFFFF; border-radius: 6px; flex-shrink: 0; }
.jb-sig-txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.jb-sig-k { font-size: 11px; font-weight: 600; color: var(--jb-muted); }
.jb-sig-v { font-size: 13px; font-weight: 700; color: var(--jb-amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-sig-chip.jb-missing .jb-sig-v { color: var(--jb-red); }
.jb-sig-v.jb-ok { color: var(--jb-green-text); }
.jb-nosig { flex: 1 1 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--jb-muted); }

/* Form */
.jb-form { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 10px; }
.jb-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; background: #E3E8F0; border-radius: 12px; }
.jb-seg.jb-seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jb-seg button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: #3B4556; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 2px; cursor: pointer; white-space: nowrap; }
@media (max-width: 380px) { .jb-seg button svg { display: none; } }
.jb-opt { font-size: 11px; font-weight: 600; color: var(--jb-muted); text-transform: none; letter-spacing: 0; }
.jb-seg button[aria-pressed="true"] { background: #FFFFFF; color: var(--jb-blue); font-weight: 700; box-shadow: 0 1px 3px rgba(16,24,40,.14); }
.jb-section { background: #FFFFFF; border: 1px solid var(--jb-line); border-radius: 14px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.jb-section h2, .jb-sec-h { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--jb-navy); text-transform: uppercase; letter-spacing: .06em; }
.jb-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.jb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jb-lbl { font-size: 11.5px; font-weight: 600; color: var(--jb-label); margin: 0; }
.jb-lbl-icon { display: flex; align-items: center; gap: 5px; }
.jb-lbl-strong { font-size: 13px; font-weight: 600; color: var(--jb-label); }
.jb-req { color: var(--jb-red); }
.jb-input { height: 44px; width: 100%; border: 1px solid var(--jb-field); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--jb-text); background: #FFFFFF; margin: 0; display: block; }
.jb-input:focus { outline: none; border-color: var(--jb-blue); box-shadow: 0 0 0 3px rgba(0,71,186,.2); }
select.jb-input { -webkit-appearance: none; appearance: none; padding-right: 32px; text-overflow: ellipsis; }
textarea.jb-input { height: auto; min-height: 72px; padding: 10px 12px; line-height: 1.45; resize: none; }
textarea.jb-input.jb-tall { min-height: 200px; }
.jb-input.jb-invalid, .jb-stepper.jb-invalid { border: 2px solid var(--jb-red); }
.jb-select-wrap { position: relative; min-width: 0; }
.jb-select-wrap svg { position: absolute; right: 10px; top: 14px; pointer-events: none; color: var(--jb-label); }
.jb-input.jb-time-in { font-size: 17px; font-weight: 700; padding: 0 8px; }
.jb-input.jb-date-in { width: auto; height: 36px; padding: 0 8px; border-radius: 9px; font-size: 16px; font-weight: 600; }
.jb-stat { height: 44px; border-radius: 10px; background: var(--jb-bg); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.jb-err { display: flex; align-items: flex-start; gap: 5px; font-size: 12px; font-weight: 600; color: var(--jb-red); }
.jb-err svg { flex-shrink: 0; margin-top: 1px; }
.jb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jb-span2 { grid-column: span 2; }
.jb-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.jb-tchip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--jb-field); background: #FFFFFF; color: #3B4556; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.jb-tchip[aria-pressed="true"] { background: var(--jb-blue-t); border-color: var(--jb-blue); color: var(--jb-blue); font-weight: 700; }
.jb-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.jb-chip { min-height: 38px; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--jb-field); background: #FFFFFF; color: #3B4556; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.jb-chip[aria-checked="true"] { border: 1.5px solid var(--jb-blue); background: var(--jb-blue-t); color: var(--jb-blue); font-weight: 700; }
.jb-inline-row { display: flex; align-items: center; gap: 10px; }
.jb-stepper { display: flex; align-items: center; border: 1px solid var(--jb-field); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.jb-stepper button { width: 36px; height: 36px; border: 0; border-radius: 0; background: #F3F5F9; color: var(--jb-text); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.jb-stepper button:disabled { color: #A3ACBB; cursor: not-allowed; }
.jb-stepper output { min-width: 34px; text-align: center; font-size: 15px; font-weight: 700; padding: 0 2px; }
.jb-bill { display: flex; align-items: center; gap: 8px; background: #F0F5FF; border: 1px solid #C9D8F5; border-radius: 12px; padding: 8px 8px 8px 12px; }
.jb-bill .jb-bl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; margin: 0; }
.jb-bill-t { font-size: 13.5px; font-weight: 700; color: var(--jb-navy); }
.jb-bill-c { font-size: 11.5px; color: var(--jb-label); }
.jb-input.jb-billable { width: 80px; height: 40px; padding: 0; text-align: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.jb-contact-sum { display: flex; align-items: center; gap: 10px; }
.jb-contact-sum .jb-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jb-contact-sum b { font-size: 14px; }
.jb-contact-sum .jb-ct > span { font-size: 12px; color: var(--jb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-contact-sum .jb-ct > .jb-ct-k { font-size: 10.5px; font-weight: 700; color: var(--jb-navy); text-transform: uppercase; letter-spacing: .06em; }
.jb-stock-line { display: flex; align-items: center; gap: 6px; }
.jb-stock-line .jb-select-wrap { flex: 1; }
.jb-input.jb-sel-sm { height: 38px; font-size: 14px; font-weight: 600; padding: 0 28px 0 10px; border-radius: 9px; }
.jb-stock-line .jb-select-wrap svg { top: 11px; right: 8px; }
.jb-empty-line { margin: 0; font-size: 12.5px; color: var(--jb-muted); }
.jb-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.jb-thumb { width: 56px; height: 56px; border-radius: 10px; border: 0; padding: 0; flex-shrink: 0; background: #E3E8EF center/cover no-repeat; cursor: zoom-in; }
.jb-add-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; border: 1.5px dashed var(--jb-field); background: #F8FAFC; color: var(--jb-blue); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; }

/* Sheets, dialogs, viewer */
.jb-overlay { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; }
.jb-overlay.jb-center { justify-content: center; align-items: center; z-index: 30; }
.jb-scrim { position: absolute; inset: 0; background: rgba(11,20,38,.5); animation: jb-fade .2s ease-out; }
.jb-sheet { position: relative; background: #FFFFFF; border-radius: 20px 20px 0 0; max-height: 92%; display: flex; flex-direction: column; animation: jb-up .28s cubic-bezier(.2,.8,.2,1); }
.jb-handle { width: 36px; height: 4px; border-radius: 2px; background: #CBD2DD; margin: 8px auto 4px; flex-shrink: 0; }
.jb-sheet-body { overflow-y: auto; padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.jb-sheet-foot { padding: 10px 12px 12px; border-top: 1px solid var(--jb-line-soft); display: flex; gap: 8px; }
.jb-d-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.jb-root h2.jb-d-title { line-height: 1.25; }
.jb-meta-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--jb-muted); }
.jb-bar { flex: 1; height: 6px; border-radius: 3px; background: #E9EDF3; overflow: hidden; display: block; }
.jb-bar > i { display: block; height: 100%; background: var(--jb-blue); }
.jb-contact { background: #F6F8FB; border-radius: 12px; padding: 10px 10px 10px 12px; display: flex; align-items: center; gap: 10px; }
.jb-contact-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--jb-muted); }
.jb-contact-txt b { font-size: 14px; color: var(--jb-text); }
.jb-contact-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.jb-root .jb-facts dt { font-size: 11px; font-weight: 600; color: var(--jb-muted); margin-bottom: 2px; }
.jb-facts dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.jb-more { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--jb-line-soft); }
.jb-more h3 { margin: 0; font-size: 11px; font-weight: 700; color: var(--jb-label); text-transform: uppercase; letter-spacing: .06em; }
.jb-more-body { margin: 0; font-size: 13px; line-height: 1.5; color: var(--jb-text-2); overflow-wrap: anywhere; }
.jb-more-body p { margin: 0 0 6px; }
.jb-more-body img { max-width: 100%; height: auto; }
.jb-summary { margin: 0; border: 1px solid var(--jb-line); border-radius: 12px; overflow: hidden; }
.jb-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--jb-line-soft); }
.jb-summary > div:last-child { border-bottom: 0; }
.jb-summary dt { font-size: 12.5px; color: var(--jb-label); }
.jb-summary dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; }
.jb-summary .jb-hl { background: #F0F5FF; }
.jb-root .jb-summary .jb-hl dt { font-weight: 700; color: var(--jb-navy); }
.jb-summary .jb-hl dd { font-size: 14px; font-weight: 700; color: var(--jb-blue); }
.jb-summary .jb-ok { color: var(--jb-green-text); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.jb-switch-row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.jb-sw-label { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jb-sw-title { font-size: 14px; font-weight: 600; }
.jb-sw-sub { font-size: 12px; color: var(--jb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-switch { width: 56px; height: 44px; border: 0; padding: 0; background: transparent; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; flex-shrink: 0; }
.jb-switch .jb-track { width: 50px; height: 28px; border-radius: 999px; background: var(--jb-field); padding: 3px; display: flex; transition: background .15s; }
.jb-switch .jb-knob { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.jb-switch[aria-checked="true"] .jb-track { background: var(--jb-blue); }
.jb-switch[aria-checked="true"] .jb-knob { transform: translateX(22px); }
.jb-dialog { position: relative; margin: 0 24px; background: #FFFFFF; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; animation: jb-pop .2s ease-out; }
.jb-dialog h2 { margin: 0; font-size: 18px; font-weight: 700; }
.jb-dialog p { margin: 0 0 6px; font-size: 13.5px; color: var(--jb-label); line-height: 1.5; }
.jb-dlg-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--jb-amber-t); color: var(--jb-amber); display: flex; align-items: center; justify-content: center; }
.jb-overlay.jb-viewer { background: #0B1426; justify-content: space-between; z-index: 25; animation: jb-fade .2s ease-out; }
.jb-viewer-top { display: flex; align-items: center; gap: 12px; padding: 10px; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.jb-viewer img, .jb-viewer video { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.jb-viewer .jb-sheet-foot { border-top: 0; }
@keyframes jb-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes jb-fade { from { opacity: 0; } }
@keyframes jb-pop { from { opacity: 0; transform: scale(.96); } }

/* Comments */
.jb-hist { padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.jb-hist h2 { margin: 6px 2px 0; font-size: 11px; font-weight: 700; color: var(--jb-label); text-transform: uppercase; letter-spacing: .06em; }
.jb-hist h2:first-child { margin-top: 0; }
.jb-note-card { background: #FEFCF3; border: 1px solid #F1E3A6; border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; }
.jb-note-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--jb-text-2); white-space: pre-line; overflow-wrap: anywhere; }
.jb-note-who { display: flex; align-items: center; gap: 8px; }
.jb-note-who b { font-size: 13.5px; }
.jb-note-who span { font-size: 11.5px; color: var(--jb-muted); }
.jb-note-who .jb-avatar { font-size: 10px; color: #0B2E6B; }
.jb-note-who .jb-avatar.jb-alt { color: #7A3A00; }
.jb-note-who .jb-avatar.jb-grey { color: #3B4556; }

/* Signature */
.jb-plain-hdr { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--jb-line-soft); flex-shrink: 0; }
.jb-plain-hdr h1 { margin: 0; font-size: 16px; font-weight: 700; }
.jb-sign-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.jb-sum-card { background: #F6F8FB; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--jb-label); }
.jb-sum-card b { font-size: 14.5px; color: var(--jb-text); }
.jb-sum-k { font-size: 11.5px; font-weight: 600; }
.jb-pad-wrap { position: relative; height: 280px; border: 1px solid var(--jb-field); border-radius: 14px; background: #FFFFFF; overflow: hidden; }
.jb-pad-wrap canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.jb-pad-line { position: absolute; left: 20px; right: 20px; bottom: 60px; display: flex; align-items: flex-end; gap: 8px; color: var(--jb-ph); pointer-events: none; }
.jb-pad-line span { flex: 1; height: 1px; background: #B6BECB; margin-bottom: 7px; }
.jb-pad-hint { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 12px; color: var(--jb-muted); pointer-events: none; }

/* Saved */
.jb-saved { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; text-align: center; }
.jb-saved h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.jb-saved p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--jb-label); }
.jb-check-ring { width: 88px; height: 88px; border-radius: 50%; background: var(--jb-green-t); display: flex; align-items: center; justify-content: center; }
.jb-check-ring > div { width: 58px; height: 58px; border-radius: 50%; background: var(--jb-green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.jb-sum-card.jb-row { flex-direction: row; align-items: center; gap: 10px; text-align: left; width: 100%; color: var(--jb-text-2); }
.jb-sum-card.jb-row svg { color: var(--jb-blue); flex-shrink: 0; }
.jb-sum-card.jb-lines { width: 100%; text-align: left; }
.jb-sum-card.jb-lines span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--jb-text-2); }

/* Toast */
.jb-toast { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 60; background: var(--jb-text); color: #FFFFFF; border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; line-height: 1.4; box-shadow: 0 8px 24px rgba(11,20,38,.25); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.jb-toast.jb-show { opacity: 1; transform: none; }
.jb-toast.jb-error { background: var(--jb-red); }
.jb-toast.jb-success { background: var(--jb-green); }
.jb-stepper output, .jb-billable, .jb-stat, .jb-time-in, .jb-summary dd, .jb-plan-d { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .jb-root * { animation: none !important; transition: none !important; } }

/* ---------- W7 form controls (wbi_core_layout) in the Job Sheet skin ----------
   The package declares its --w7fc-* variables on .w7fc itself, so they are re-set here on the
   same element (one class more specific) rather than inherited from .jb-root. */
.jb-root .w7fc {
    --w7fc-h: 44px; --w7fc-fs: 16px; --w7fc-px: 12px; --w7fc-radius: 10px;
    --w7fc-border: var(--jb-field); --w7fc-bg: #FFFFFF; --w7fc-fg: var(--jb-text); --w7fc-ph: var(--jb-ph);
    --w7fc-accent: var(--jb-blue); --w7fc-ring: rgba(0,71,186,.2); --w7fc-danger: var(--jb-red);
    font-family: var(--jb-font); gap: 4px;
}
.jb-root .w7fc__input { font-family: var(--jb-font); line-height: normal; }
.jb-root .w7fc--invalid .w7fc__input { border-width: 2px; }
.jb-root .w7fc__msg--error { font-size: 12px; font-weight: 600; line-height: 1.3; }
/* the drop-down list: design font, rows tall enough for a thumb */
.jb-root .w7ddw { font-family: var(--jb-font); font-size: 15px; color: var(--jb-text); --w7fc-accent: var(--jb-blue); }
/* W7 fields draw their own focus ring on the field; the design's outline would double it on the inner text box */
.jb-root .w7fc :focus-visible, .jb-root .w7fc__input:focus-visible { outline: none; }
/* same alert mark in front of a W7 validation message as the design's own error lines carry */
.jb-root .w7fc__msg--error { display: flex; align-items: flex-start; gap: 5px; }
.jb-root .w7fc__msg--error::before {
    content: ""; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 1px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
