/* ============================================================
   BLACKLENS — ROUND 278 (operator 2026-11-10)
   1 · CAPTURE MEDIUM: what a card was captured through (js/medium.js) — INSPECTION's card under Capture Sequence and
       the JOBS ARCHIVE's pop-up. Six boxes, more than one may be ticked; None is a raw card. Slab opens the company,
       the cert#, LOOK UP and the grade; the comparison with the pre-grade is the admin's.
   2 · THE JOBS ARCHIVE one line a job, scrolling (js/archive.js).
   ============================================================ */

/* ---- the editor ---- */
.md-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.md-box { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; height: 26px; padding: 0 7px; background: #161616; border: 1px solid #333;
  border-radius: 5px; cursor: pointer; font-size: 11px; letter-spacing: .3px; color: #a6a6a6; user-select: none; }
.md-box:hover { border-color: #3d6b6b; color: #d9d9d9; }
.md-box input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.md-box > i { flex: 0 0 auto; width: 13px; height: 13px; border: 1px solid #5a5a5a; border-radius: 3px; background: #0f0f0f; position: relative; }
.md-box > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-box.on { background: #102c2c; border-color: #19c8c8; color: #dff8f8; }
.md-box.on > i { background: #19c8c8; border-color: #19c8c8; }
.md-box.on > i::after { content: ''; position: absolute; left: 3.5px; top: .5px; width: 4px; height: 8px; border: solid #0b2020; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.md-box.none.on { background: #1f1f1f; border-color: #7f7f7f; color: #f2f2f2; }
.md-box.none.on > i { background: #a6a6a6; border-color: #a6a6a6; }
.md-box input:focus-visible + i { outline: 2px solid #19c8c8; outline-offset: 1px; }
.md-box input:disabled ~ span { opacity: .7; }
.md-box:has(input:disabled) { cursor: default; }

.md-slab { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 70px; gap: 4px; align-items: end; margin-top: 6px; padding: 6px; background: #121a1a; border: 1px solid #234040; border-radius: 6px; }
.md-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-f i { font-style: normal; font-size: 8.5px; letter-spacing: 1.2px; color: #7fbfbf; }
.md-f select, .md-f input { height: 24px; min-width: 0; width: 100%; padding: 0 6px; background: #0d0d0d; border: 1px solid #3a3a3a; border-radius: 4px; color: #f2f2f2; font: inherit; font-size: 12px; }
.md-f select { padding: 0 2px; }
.md-f input:focus, .md-f select:focus { outline: none; border-color: #19c8c8; }
.md-look { height: 24px !important; padding: 0 9px !important; font-size: 10px !important; letter-spacing: 1px; background: #123f3f; border-color: #19c8c8; color: #aef2f2; }
.md-look:disabled { background: #1b1b1b; border-color: #333; color: #6f6f6f; }
.md-say { grid-column: 1 / -1; font-size: 10.5px; color: #a6a6a6; line-height: 1.3; }
.md-say.ok { color: #7ed4a6; } .md-say.warn { color: #f0c060; } .md-say.bad { color: #f08a87; }
.md-cmp { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 4px 7px; border-radius: 4px; background: #1d1a10; border: 1px solid #55503a; font-size: 11px; color: #d8c89a; }
.md-cmp b { font-size: 8.5px; letter-spacing: 1.3px; padding: 1px 5px; border-radius: 3px; background: #ab9b6f; color: #1b1b1b; }
.md-cmp i { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: 1px; }
.md-cmp.up i { color: #f0c060; } .md-cmp.down i { color: #8fc4ff; } .md-cmp.same i { color: #7ed4a6; } .md-cmp.none i { color: #7f7f7f; }

/* ---- INSPECTION: the card under Capture Sequence. The column never scrolls (operator: 'Minimal - No Scrolling'):
   Full-Card Preview gives way, its picture shrinks to the height left (never past its own shape, never under 150 px) ---- */
/* round 331 (operator 2026-11-18: 'take out the leftover grey space, and move the capture sequence box below the shorter Full-Card Preview
   box'): the card is no taller than its picture (the card's own shape at the column's width) and its buttons — Capture Sequence follows
   right under it, the room left stays below; a short window still shrinks the picture (never under 150 px) */
#view-job .jb-prevcol > .card:first-child { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
#view-job .jb-prevcol > .card:first-child > .card-body { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; container-type: inline-size; }
#view-job .jb-prevcol #jb-prevbox { flex: 0 1 auto; min-height: 150px; aspect-ratio: auto; height: calc(100cqw * 6200 / 4800); max-height: calc(100cqw * 6200 / 4800); }
#view-job .jb-prevcol #jb-prevbox img { position: absolute; inset: 0; }
/* round 279 (operator 2026-11-11: 'more compact, fit the area without scrolling'): Capture Sequence = one row for the two picks and two rows
   of buttons, 26 px each; Capture Medium sits in the same card under a rule (it stays when the sequence is folded), its boxes one line, 24 px.
   At 1920 × 917 Full-Card Preview keeps its whole shape, even with a slab open */
#view-job #jb-card-seq > .card-head { margin-bottom: 5px; }
#view-job #jb-card-seq > .card-head > b { white-space: nowrap; }
#view-job #jb-card-seq > .card-head .jb-headtools .btn { padding: 3px 8px; font-size: 10px; letter-spacing: .4px; white-space: nowrap; }
#view-job #jb-card-seq .jb-seqbody { display: flex; flex-direction: column; gap: 4px; }
#view-job #jb-card-seq .jb-seqpick { display: flex; gap: 4px; min-width: 0; }
#view-job #jb-card-seq .jb-seqpick select { height: 26px; margin: 0; padding: 0 5px; font-size: 11px; }
#view-job #jb-card-seq .jb-seqpick #jb-seq { flex: 1 1 auto; width: auto; min-width: 0; }
#view-job #jb-card-seq .jb-seqpick select.jb-cadsel { flex: 0 0 84px; width: 84px; }
#view-job #jb-card-seq .jb-seqbtns { margin: 0; align-items: stretch; gap: 4px; }
#view-job #jb-card-seq .jb-seqbtns > .btn { flex: 1 1 0; min-width: 0; height: 26px; padding: 0 3px; font-size: 10.5px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-job #jb-card-seq .jb-seqbtns > .btn[hidden] { display: none; }
#view-job #jb-card-seq > .jb-mdsec { display: block; margin-top: 7px; padding-top: 6px; border-top: 1px solid #2c2c2c; }
#view-job #jb-card-seq.collapsed > .jb-seqbody { display: none; }   /* the fold still folds the controls */
#view-job #jb-card-seq.collapsed > .jb-mdsec { display: block; margin-top: 2px; }
.jb-mdhead { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 4px; }
.jb-mdhead > b { flex: 0 0 auto; font-size: 11px; letter-spacing: 1.3px; color: #cfcfcf; font-weight: 600; text-transform: uppercase; }
.jb-mdhead > .md-now { margin-left: auto; min-width: 0; }
.md-now { font-size: 9px; letter-spacing: 1.1px; color: #7f7f7f; padding: 1px 6px; border: 1px solid #333; border-radius: 4px; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.md-now.on { color: #aef2f2; border-color: #19c8c8; background: #102c2c; }
#jb-medium .md-grid { gap: 3px; }
#jb-medium .md-box { height: 24px; padding: 0 5px; gap: 4px; font-size: 10.5px; }
#jb-medium .md-box > i { width: 10px; height: 10px; border-radius: 2px; }
#jb-medium .md-box.on > i::after { left: 2.5px; top: 0; width: 3px; height: 6px; border-width: 0 1.8px 1.8px 0; }
#jb-medium .md-box em { display: block; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jb-medium .md-slab { grid-template-columns: 60px minmax(0, 1fr) auto 50px; align-items: center; gap: 3px; margin-top: 4px; padding: 4px; }
#jb-medium .md-f > i { display: none; }
#view-job #jb-medium .md-f select, #view-job #jb-medium .md-f input { height: 22px; padding: 0 3px; font-size: 11px; }
#jb-medium .md-look { height: 22px !important; padding: 0 6px !important; font-size: 9.5px !important; }
#jb-medium .md-say { font-size: 10px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jb-medium .md-cmp { padding: 2px 6px; font-size: 10px; gap: 6px; }
#jb-medium .md-cmp span { flex: 0 0 auto; white-space: nowrap; }
#jb-medium .md-cmp i { flex: 0 1 auto; min-width: 0; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1500px) {
  #view-job #jb-card-seq .jb-seqbtns > .btn { font-size: 9.5px; letter-spacing: 0; }
  #jb-medium .md-box { font-size: 9.5px; padding: 0 4px; gap: 3px; }
  #jb-medium .md-slab { grid-template-columns: 56px minmax(0, 1fr) auto 46px; }
  #jb-medium .md-cmp b { display: none; }
}

/* ---- the pop-up (the JOBS ARCHIVE) ---- */
.md-pop { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
.md-pop[hidden] { display: none; }
.md-win { width: min(520px, calc(100vw - 32px)); padding: 14px 16px 12px; background: #1f1f1f; border: 1px solid #3a3a3a; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.md-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.md-head b { font-size: 13px; letter-spacing: 2px; color: #fff; }
.md-head span { min-width: 0; flex: 1 1 auto; font-size: 11.5px; color: #a6a6a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-x { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; border: 1px solid #3a3a3a; background: #262626; color: #d9d9d9; font-size: 16px; line-height: 1; cursor: pointer; }
.md-x:hover { color: #fff; border-color: #7f7f7f; }
.md-note { margin: 2px 0 8px; font-size: 11px; color: #a6a6a6; }
.md-win .md-box { height: 30px; font-size: 12px; }
.md-win .md-box em { font-style: normal; }
.md-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.md-foot .btn { padding: 5px 16px; font-size: 11px; letter-spacing: 1.2px; }

/* ---- 2 · THE JOBS ARCHIVE, one line a job ---- */
.ja-body { overflow: auto; }
.ja-grid.ja-lines { display: block; min-width: 1480px; padding: 0; }
.ja-lines .ja-hrow, .ja-lines .ja-row {
  display: grid; grid-template-columns: 24px 118px minmax(180px, 1fr) 150px 110px 86px 150px 84px 150px 150px 176px; column-gap: 8px; align-items: center; }
.ja-lines .ja-hrow { position: sticky; top: 0; z-index: 2; height: 26px; padding: 0 10px; background: #141414; border-bottom: 1px solid #2e2e2e;
  font-size: 8.5px; letter-spacing: 1.4px; color: #7f7f7f; }
.ja-lines .ja-row { height: 40px; padding: 0 10px; margin: 0; background: transparent; border: 0; border-bottom: 1px solid #242424; border-radius: 0; gap: 0 8px; }
.ja-lines .ja-row:nth-child(odd) { background: #191919; }
.ja-lines .ja-row:hover { background: #20242a; }
.ja-lines .ja-thumb { width: 24px; height: 33px; border-radius: 2px; font-size: 9px; }
.ja-lines .ja-row > * { min-width: 0; }
.ja-id { font-size: 12px; letter-spacing: .6px; color: #f2f2f2; font-weight: 600; white-space: nowrap; }
.ja-nm { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.ja-nm b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; color: #fff; letter-spacing: .3px; text-transform: uppercase; }
.ja-nm i { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-size: 11px; color: #9a9a9a; }
.ja-ord { font-size: 11px; color: #cfcfcf; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-ag { font-size: 11px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-lv .ord-lvl { display: inline-block; }
.ja-md { display: flex; align-items: center; gap: 3px; height: 24px; padding: 0 5px; overflow: hidden; background: #141414; border: 1px solid #2f2f2f; border-radius: 5px; cursor: pointer; font: inherit; text-align: left; }
.ja-md:hover { border-color: #19c8c8; }
.ja-md.ro { cursor: default; }
.ja-md.ro:hover { border-color: #2f2f2f; }
.ja-md i { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 9px; letter-spacing: 1px; padding: 2px 5px; border-radius: 3px; background: #102c2c; color: #aef2f2; }
.ja-md i.msl { background: #2a2618; color: #d8c89a; }
.ja-md i.none { background: transparent; color: #6f6f6f; }
.ja-rc, .ja-pc { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.ja-rc em, .ja-pc em { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-size: 10px; letter-spacing: .6px; }
.ja-pc em { width: 54px; flex: 0 0 auto; }
.ja-pc em.none { width: auto; flex: 1 1 auto; }
.ja-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #555; }
.ja-dot.cloud { background: #8fc4ff; } .ja-dot.local { background: #f0c060; } .ja-dot.up { background: #7fe09a; } .ja-dot.bad { background: #e05a57; }
.ja-rc em.cloud, .ja-pc em.cloud { color: #8fc4ff; } .ja-rc em.local, .ja-pc em.local { color: #f0c060; } .ja-pc em.up { color: #7fe09a; }
.ja-rc em.bad, .ja-pc em.bad { color: #f08a87; } .ja-rc em.none, .ja-pc em.none { color: #6a6a6a; }
.ja-pc .btn { padding: 2px 7px; font-size: 9px; letter-spacing: 1px; border-radius: 3px; }
.ja-lines .ja-acts { flex-direction: row; justify-content: flex-end; gap: 5px; }
.ja-lines .ja-acts .btn { padding: 3px 9px; font-size: 9.5px; }
.ja-lines .ord-col-empty { padding: 30px 10px; }

/* ============================================================
   ROUND 285 (operator 2026-11-12): the medium in the report. ONE choice of six — RAW · SLEEVE · TOPLOADER · CARD SAVER ·
   SLAB · SEALED — each in its own colour ('Ensure the color pills differ from each other'); a sleeve's sides and count;
   the pill (.md-pill) the reports and the bench's head share. The colours = BL.medium.COL (dark) / LIGHT (the A4).
   ============================================================ */
.f-raw { --mf: #d6d6d6; --mb: #242424; --md: #7a7a7a; }
.f-sleeve { --mf: #93d4ff; --mb: #0f2433; --md: #3d92c9; }
.f-tl { --mf: #ffb68c; --mb: #2e1a0e; --md: #cc7440; }
.f-cs { --mf: #cfbfff; --mb: #1f1833; --md: #8c72d9; }
.f-slab { --mf: #f1e3b3; --mb: #262010; --md: #ab9b6f; }
.f-sealed { --mf: #9fe6c0; --mb: #0f2a1d; --md: #42a06f; }
/* the boxes: a radio each, lit in its own colour */
.md-box > i { border-radius: 50%; }
.md-box.on, .md-box.none.on { background: var(--mb); border-color: var(--md); color: var(--mf); }
.md-box.on > i, .md-box.none.on > i { background: var(--mf); border-color: var(--md); }
.md-box.on > i::after { content: ''; left: 50%; top: 50%; width: 5px; height: 5px; border: 0; border-radius: 50%; background: var(--mb); transform: translate(-50%, -50%); }
#jb-medium .md-box.on > i::after { left: 50%; top: 50%; width: 4px; height: 4px; border: 0; }
.md-box:hover { border-color: var(--md); }
.md-box input:focus-visible + i { outline-color: var(--md); }
/* a sleeve: which sides, how many */
.md-sl { display: flex; gap: 4px; margin-top: 4px; min-width: 0; }
.md-seg { display: flex; flex: 1 1 auto; min-width: 0; border: 1px solid #2f4b5e; border-radius: 5px; overflow: hidden; background: #101a22; }
.md-seg.n { flex: 0 0 auto; }
.md-seg.n button { flex: 0 0 auto; }                               /* the count: each button its own text's width */
.md-seg button { flex: 1 1 0; min-width: 0; height: 24px; padding: 0 6px; border: 0; border-right: 1px solid #2f4b5e; background: transparent; color: #8aa6b8;
  font: inherit; font-size: 10.5px; letter-spacing: .8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-seg button:last-child { border-right: 0; }
.md-seg button:hover:not(:disabled) { color: #dff1ff; }
.md-seg button.on { background: #1d4560; color: #e6f5ff; font-weight: 600; }
.md-seg button:disabled { cursor: default; }
#jb-medium .md-sl { gap: 3px; margin-top: 3px; }
#jb-medium .md-seg button { height: 22px; padding: 0 4px; font-size: 9.5px; letter-spacing: .4px; }
#jb-medium .md-seg.n button { padding: 0 7px; }
.md-win .md-seg button { height: 28px; font-size: 11px; }
/* the pill — the reports, the bench's head, the pop-up's THE REPORT READS */
.md-pill, .bv-phead .md-pill, .bv-ver .md-pill { display: inline-flex; align-items: center; gap: 0; max-width: 100%; min-width: 0; padding: 2px 8px; border: 1px solid var(--md); border-radius: 4px;
  background: var(--mb); color: var(--mf); font-size: 10.5px; line-height: 1.35; letter-spacing: 1.1px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-pill > * { font-style: normal; text-decoration: none; }
.md-pill > u { margin-right: 5px; padding-right: 5px; border-right: 1px solid var(--md); opacity: .85; }
.md-pill > s { opacity: .75; font-weight: 400; }
.md-pill > i { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.md-pill.sm { padding: 0 5px; font-size: 9px; letter-spacing: .8px; }
.md-pill.sm > u { margin-right: 4px; padding-right: 4px; }
.md-now.md-pills { display: flex; gap: 3px; justify-content: flex-end; max-width: 210px; padding: 0; border: 0; background: none; overflow: hidden; }
.md-now.md-pills .md-pill { flex: 0 1 auto; }
.md-reads { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #2c2c2c; }
.md-reads > b { flex: 0 0 auto; margin-right: 3px; font-size: 9px; letter-spacing: 1.4px; color: #8a8a8a; font-weight: 600; }
/* the JOBS ARCHIVE's chips in the same colours */
.ja-md i.md-c { background: var(--mb); color: var(--mf); box-shadow: inset 0 0 0 1px var(--md); }
/* the A4 (white paper): the same kinds in LIGHT colours, under the ORDER#; FRONT and BACK side by side when they differ */
.jr-md { display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: 4px; margin-top: 4px; min-width: 0; }
.jr .md-pill { padding: 1px 6px; border-radius: 3px; font-family: var(--rep-font-sc); font-stretch: semi-condensed; font-size: 9px; line-height: 1.35; letter-spacing: .5px; font-weight: 700; }
.jr .md-pill > s { font-weight: 400; opacity: .8; }
.jr .f-raw { --mf: #404040; --mb: #f0f0f0; --md: #9a9a9a; }
.jr .f-sleeve { --mf: #1b5e8c; --mb: #e8f3fc; --md: #5aa3d6; }
.jr .f-tl { --mf: #9a4a17; --mb: #fdefe5; --md: #e09a6c; }
.jr .f-cs { --mf: #5b40ae; --mb: #f0ebfd; --md: #a08ae0; }
.jr .f-slab { --mf: #6e5d2c; --mb: #f7f1de; --md: #ab9b6f; }
.jr .f-sealed { --mf: #1f7a4d; --mb: #e6f6ed; --md: #5fb98a; }
/* BLACKVAULT: a side's pill right after its title (FRONT · FINISH, FRONT · CORNERS …); the same both sides under ISSUED */
.bv-phead > .bv-md { flex: 0 1 auto; align-self: center; margin-right: auto; font-size: calc(9.5px + var(--bv-up)); letter-spacing: 1.2px; padding: 1px 7px; }
.bv-phead.bv-shead > .bv-md { margin-right: 0; }
.bv-ver > .bv-md { align-self: flex-end; margin-top: 2px; font-size: calc(9px + var(--bv-up)); letter-spacing: 1.2px; padding: 1px 7px; }
body.mv .bv-ver { flex-wrap: wrap; row-gap: 7px; }
body.mv .bv-ver > .bv-md { order: 9; flex: 0 1 auto; align-self: flex-start; margin: 0; max-width: 100%; }   /* a phone: its own line under the Job# when the row is full */

/* ============================================================
   ROUND 289 (operator 2026-11-12): the JOBS ARCHIVE — one row of filters (PICTURES gone, MEDIUM beside LEVEL), the card's name opens
   BLACKVAULT (the VAULT button gone), REPUBLISH on each line (gold when the report is behind its job), REPUBLISH n beside SYNC NOW, the
   card's picture large beside the thumbnail on hover (the search module's preview box)
   ============================================================ */
#jobs-archive .ja-bar { flex-wrap: nowrap; gap: 12px; }
#jobs-archive .ja-filters { flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; }
#jobs-archive .ja-bar .ord-f.search { flex: 1 1 180px; max-width: 320px; }
#jobs-archive .ja-bar .ord-f:not(.search) { flex: 0 1 auto; }
#jobs-archive .ja-bar .ord-f select { max-width: 180px; }
#jobs-archive .ja-bar .ord-bar-counts { flex: 0 1 auto; min-width: 0; max-width: 300px; white-space: normal; line-height: 1.35; font-size: 10px; letter-spacing: 1.2px; text-align: right; }
#jobs-archive .ja-bar > .btn { flex: 0 0 auto; }
.ja-repall { background: #3a2f12; border-color: #ab9b6f; color: #f4e7c0; letter-spacing: 1.2px; }
.ja-repall b { display: inline-block; min-width: 14px; margin-left: 4px; padding: 0 4px; border-radius: 3px; background: #ab9b6f; color: #1b1b1b; font-weight: 700; }
.ja-nm.go { cursor: pointer; border-radius: 3px; outline: none; }
.ja-nm.go:hover b, .ja-nm.go:focus-visible b { color: #d8c89a; text-decoration: underline; text-underline-offset: 3px; }
.ja-nm.go:focus-visible { box-shadow: 0 0 0 1px #ab9b6f; }
.ja-lines .ja-acts .ja-rep { background: #222; border-color: #555; color: #d9d9d9; }
.ja-lines .ja-acts .ja-rep:hover { border-color: #ab9b6f; color: #f4e7c0; }
.ja-lines .ja-acts .ja-rep.due { background: #3a2f12; border-color: #ab9b6f; color: #f4e7c0; box-shadow: inset 0 0 0 1px rgba(216, 200, 154, .25); }
.ja-lines .ja-acts .ja-rep.ok { color: #8a8a8a; }
.ja-peek { z-index: 1200; }
.ja-peek img { min-height: 0; }
@media (max-width: 1500px) {
  #jobs-archive .ja-bar { gap: 9px; }
  #jobs-archive .ja-bar .ord-f select { max-width: 130px; }
  #jobs-archive .ja-bar .ord-bar-counts { max-width: 190px; font-size: 9px; letter-spacing: 1px; }
}
/* three buttons on a line (REPUBLISH · INSPECTION · UPLOAD) need the room: the actions column 236 px */
.ja-grid.ja-lines { min-width: 1540px; }
.ja-lines .ja-hrow, .ja-lines .ja-row { grid-template-columns: 24px 118px minmax(180px, 1fr) 150px 110px 86px 150px 84px 150px 150px 236px; }
#jobs-archive .ja-bar .ord-f select { max-width: 160px; }

/* ============================================================
   ROUND 292 (operator 2026-11-12): a slab's grade is the card's graded result on BLACKBOARD; GRADED SINCE in the JOBS ARCHIVE's
   pop-up takes a grade the card got after its inspection (the newest is its grade); the archive's MEDIUM chip shows → its newest
   ============================================================ */
.md-regr { margin-top: 8px; padding: 8px; background: #17150e; border: 1px solid #4a4230; border-radius: 6px; }
.md-regh { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.md-regh b { font-size: 10px; letter-spacing: 1.6px; color: #d8c89a; font-weight: 600; }
.md-regh span { font-size: 10.5px; line-height: 1.35; color: #a6a6a6; }
.md-regl { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 3px; }
.md-regl li { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 4px 0 8px; border-radius: 4px; background: #0f0f0f; border: 1px solid #2f2f2f; font-size: 12px; color: #cfcfcf; }
.md-regl li.now { border-color: #ab9b6f; background: #262010; }
.md-regl li b { color: #f1e3b3; font-weight: 600; letter-spacing: .6px; }
.md-regl li i { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: 1px; color: #8f8f8f; }
.md-regx { width: 22px; height: 22px; padding: 0; border: 1px solid #3a3a3a; border-radius: 4px; background: #181818; color: #bdbdbd; cursor: pointer; font-size: 14px; line-height: 1; }
.md-regx:hover { border-color: #e05a57; color: #fff; }
.md-regf { display: grid; grid-template-columns: 74px minmax(0, 1fr) 70px auto; gap: 4px; align-items: end; }
.md-regf .md-f i { color: #cdbd8d; }
.md-regadd { height: 24px; padding: 0 10px; border-radius: 6px; font-size: 10px; letter-spacing: 1.2px; background: #3a2f12; border-color: #ab9b6f; color: #f4e7c0; }
.md-regadd[disabled] { opacity: .45; cursor: not-allowed; }
.md-regnow { margin-top: 6px; font-size: 10.5px; line-height: 1.35; color: #cdbd8d; }
.md-regnow.ok { color: #7ed4a6; } .md-regnow.warn { color: #f0c060; } .md-regnow.bad { color: #f08a87; }
.ja-md i.md-rg { background: #262010; color: #f1e3b3; border: 1px solid #ab9b6f; }

/* ROUND 315: the JOBS ARCHIVE sorts by a click on a column's head (js/archive.js sortHead) */
.ja-lines .ja-hrow .ja-sort { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; min-width: 0; height: 100%; cursor: pointer;
  font: inherit; font-size: 8.5px; letter-spacing: 1.4px; color: #7f7f7f; white-space: nowrap; }
.ja-lines .ja-hrow .ja-sort:hover { color: #d9d9d9; }
.ja-lines .ja-hrow .ja-sort.on { color: #f2f2f2; }
.ja-lines .ja-hrow .ja-sort i { font-style: normal; font-size: 8px; color: #DC4F4C; }
.ja-lines .ja-hrow .ja-sort:focus-visible { outline: 1px solid #DC4F4C; outline-offset: 2px; border-radius: 3px; }
