/* ProAirs Jobs board skin (scoped .jb-*) layered on the shared UI kit (pa-*).
   Ported from the approved design canvas "ProAirs jobs board". Read-only (no drag):
   columns follow HouseCall Pro status; tapping a card opens the MorphPanel. */

.jb-h1, .jb-kv { font-stretch: 118%; }

.jb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 24px; }
.jb-h1 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.022em; color: #1e2e56; }
.jb-lead { margin: 10px 0 0; max-width: 60ch; font-size: 16px; line-height: 24px; color: #4d586e; }

.jb-kpis { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.jb-kv { margin: 6px 0 0; font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; color: #1e2e56; font-variant-numeric: tabular-nums; }
.jb-kv--hero { font-size: 46px; line-height: 50px; letter-spacing: -.022em; }
.jb-due { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.jb-due__word { font-size: 14px; line-height: 20px; font-weight: 600; color: #b23a32; }
.jb-bar { display: flex; height: 10px; margin-top: 18px; border-radius: 999px; overflow: hidden; background: #edf2f6; gap: 3px; }
.jb-bar > span { display: block; height: 100%; border-radius: 999px; }
.jb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; line-height: 20px; color: #4d586e; }
.jb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.jb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 14px; }
.jb-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(30,46,86,.06); box-shadow: inset 0 0 0 1px rgba(30,46,86,.06); }
.jb-seg button { border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 15px; line-height: 20px; font-weight: 600; background: transparent; color: #4d586e; cursor: pointer; transition: background-color .3s cubic-bezier(.32,.72,0,1), color .3s cubic-bezier(.32,.72,0,1); }
.jb-seg button[aria-pressed="true"] { background: #1e2e56; color: #fff; box-shadow: 0 10px 20px -14px rgba(18,28,56,.8); }
.jb-seg button:focus-visible, .jb-select:focus-visible { outline: 2px solid #4c6c88; outline-offset: 2px; }
.jb-select { height: 40px; box-sizing: border-box; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #141c33; font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px #5e7f9f; }
.jb-hint { font-size: 14px; line-height: 20px; color: #4d586e; }

.jb-board { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding: 8px 2px 28px; }
.jb-board .pa-col { flex: 1 0 300px; min-width: 300px; }
.jb-board .pa-job { gap: 5px; cursor: pointer; }
/* Coordinated soft-tint palette: all four columns are a light wash of their hue with dark text;
   the header dot carries the strong hue so columns stay easy to tell apart. The kit paints the
   card/panel from --pa-bg/--pa-fg per data-phase. */
.pa-job[data-phase="needs"], .pa-panel[data-phase="needs"] { --pa-bg: #f6ecd6; --pa-fg: #141c33; --pa-sub: #8f5b0c; --pa-ring: rgba(143,91,12,.2); --pa-chip: #8f5b0c; }
.pa-job[data-phase="sched"], .pa-panel[data-phase="sched"] { --pa-bg: #e3ecf5; --pa-fg: #141c33; --pa-sub: #4c6c88; --pa-ring: rgba(76,108,136,.2); --pa-chip: #4c6c88; }
.pa-job[data-phase="prog"],  .pa-panel[data-phase="prog"]  { --pa-bg: #dae4f2; --pa-fg: #141c33; --pa-sub: #1e2e56; --pa-ring: rgba(30,46,86,.2);  --pa-chip: #1e2e56; }
.pa-job[data-phase="done"],  .pa-panel[data-phase="done"]  { --pa-bg: #e8f0e1; --pa-fg: #141c33; --pa-sub: #46663a; --pa-ring: rgba(70,102,58,.2); --pa-chip: #46663a; }
.jb-dot-amber { background: #8f5b0c; box-shadow: none; }
.jb-dot-sky   { background: #4c6c88; box-shadow: none; }
.jb-dot-navy  { background: #1e2e56; box-shadow: none; }
.jb-dot-done  { background: #46663a; box-shadow: none; }

.jb-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jb-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.jb-pill--danger { background: #b23a32; color: #fff; }
.jb-pill--good { background: #46663a; color: #fff; }
.jb-pill--warn { background: #8f5b0c; color: #fff; }
.jb-pill--info { background: #1e2e56; color: #fff; }
.jb-pill--quiet { background: color-mix(in srgb, var(--pa-fg) 10%, transparent); color: var(--pa-fg); }
.jb-pill--proj { height: 20px; padding: 0 8px; font-size: 12px; background: transparent; color: var(--pa-sub); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pa-fg) 28%, transparent); }
.jb-addr { font-size: 14px; line-height: 20px; color: var(--pa-sub); }
.jb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jb-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 600; background: color-mix(in srgb, var(--pa-fg) 8%, transparent); color: var(--pa-fg); }
.jb-cost { margin-top: 10px; display: block; }
.jb-cost__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; color: var(--pa-sub); font-variant-numeric: tabular-nums; }
.jb-cost__track { height: 6px; margin-top: 6px; border-radius: 999px; background: color-mix(in srgb, var(--pa-fg) 12%, transparent); overflow: hidden; }
.jb-cost__track span { display: block; height: 100%; border-radius: inherit; background: var(--pa-fg); opacity: .7; transform-origin: left center; }
.jb-next { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 20px; background: color-mix(in srgb, var(--pa-fg) 6%, transparent); }
.jb-next b { font-weight: 600; }
.jb-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--pa-fg) 12%, transparent); font-size: 14px; line-height: 20px; }
.jb-links a, .jb-links button { color: var(--pa-fg); opacity: .86; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.jb-links a:hover, .jb-links button:hover { opacity: 1; text-decoration: underline; }
.jb-links a:focus-visible, .jb-links button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }

.jb-paid { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #d5dbe3; }
.jb-paid__toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 6px; cursor: pointer; font: inherit; font-size: 15px; line-height: 20px; font-weight: 600; color: #141c33; border-radius: 10px; }
.jb-paid__toggle:focus-visible { outline: 2px solid #4c6c88; outline-offset: 2px; }
.jb-paid__chev { transition: transform .4s cubic-bezier(.32,.72,0,1); }
.jb-paid__chev.is-open { transform: rotate(180deg); }
.jb-paid__row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px; border-top: 1px solid #edf2f6; font-size: 14px; line-height: 20px; color: #4d586e; }
.jb-paid__row b { color: #141c33; font-weight: 600; }

.jb-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.jb-fact { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--pa-fg) 7%, transparent); }
.jb-fact p { margin: 0; }
.jb-fact__k { font-size: 14px; line-height: 20px; color: var(--pa-sub); }
.jb-fact__v { margin-top: 2px !important; font-size: 20px; line-height: 26px; font-weight: 700; font-stretch: 118%; font-variant-numeric: tabular-nums; }
.jb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.jb-close { position: absolute; top: 20px; right: 20px; }

@media (max-width: 760px) {
  .jb-kpis { grid-template-columns: minmax(0, 1fr); }
  .jb-h1 { font-size: 30px; line-height: 34px; }
  .jb-kv--hero { font-size: 38px; line-height: 42px; }
}
