/* NAEJOBS Pro - "What the data says" (data1, 2026-11-03, TEST page first; live 2026-11-03 - micheal: "push it to live") - js/datasays.js: the header button (grey with a lock without Pro)
   and the report overlay. Same look as the Pro / About overlays. Bars are one hue (how many); labels wear the text colours. */
.nj-data-btn { font: inherit; font-size: 12.5px; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
    padding: 3px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.nj-data-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.nj-data-btn:focus-visible { outline: 2px solid #8ce0b8; outline-offset: 2px; }
.nj-data-btn.is-locked { color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .05); border-style: dashed; }   /* like the five map buttons: grey, a lock, still a click (the Pro overlay) */
.nj-data-btn.is-locked:hover { color: #fff; }
.nj-data-btn[hidden] { display: none; }
@media (max-width: 900px), (pointer: coarse) and (max-height: 500px) { .nj-data-btn { display: none !important; } }   /* phones: NAEJOBS Pro is computer-only */

.nj-data { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; }
.nj-data[hidden] { display: none; }
.nj-data-shade { position: absolute; inset: 0; background: rgba(10, 40, 71, .42); }
.nj-data-card { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; color: var(--ink, #14263a); border-radius: 14px;
    box-shadow: 0 18px 48px rgba(10, 40, 71, .35), 0 2px 8px rgba(10, 40, 71, .15); padding: 14px 22px 16px; font-size: 13.5px; line-height: 1.45; }
.nj-data-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; position: sticky; top: -14px; background: #fff; padding: 6px 0 8px; z-index: 2; border-bottom: 1px solid var(--line, #e3e8ef); }
.nj-data-ht b { display: flex; align-items: center; gap: 8px; font-size: 19px; color: var(--navy, #0a2847); }
.nj-data-scope { color: #34506b; font-size: 13px; margin-top: 2px; }
.nj-data-scope i { color: var(--muted, #5f7285); font-style: normal; }
.nj-data-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nj-data-print { font: inherit; font-size: 12.5px; font-weight: 650; color: var(--navy, #0a2847); background: #fff; border: 1px solid #b9cbe0; border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.nj-data-print:hover { background: #f1f7fd; }
.nj-data.is-loading .nj-data-body { opacity: .55; transition: opacity .2s ease .3s; }
.nj-data-wait { margin: 18px 0; color: #34506b; text-align: center; }
.nj-data-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line, #e3e8ef); font-size: 11.5px; color: var(--muted, #5f7285); }

/* the hero numbers */
.nj-ds-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.nj-ds-tile { background: #f1f7fd; border-radius: 10px; padding: 9px 10px 8px; min-width: 0; }
.nj-ds-tile b { display: block; font-size: 22px; line-height: 1.1; color: var(--navy, #0a2847); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nj-ds-tile span { display: block; font-size: 12px; font-weight: 700; color: #34506b; margin-top: 2px; }
.nj-ds-tile small { display: block; font-size: 11px; color: var(--muted, #5f7285); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nj-ds-tile.is-up small { color: #1f6b4f; font-weight: 700; }
.nj-ds-tile.is-down small { color: #8a5300; font-weight: 700; }

.nj-ds-weekbtn { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #1f4f86, var(--navy, #0a2847)); border: 0; border-radius: 999px; padding: 4px 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nj-ds-weekbtn:hover { filter: brightness(1.12); }
.nj-ds-weekbtn:focus-visible { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 2px; }

/* "new this week" as a list */
.nj-ds-weekhead { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 2px 0 4px; }
.nj-ds-weekhead b { font-size: 16px; color: var(--navy, #0a2847); }
.nj-ds-weekhead span { color: #34506b; font-size: 12.5px; }
.nj-ds-weekcap { margin-top: 3px; font-size: 12px; color: #8a5300; font-weight: 700; }
.nj-ds-weektable { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: 12px; }
.nj-ds-weektable th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5f7285); padding: 4px 6px; border-bottom: 1px solid var(--line, #e3e8ef); }
.nj-ds-weektable td { padding: 4px 6px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.nj-ds-weektable td:first-child { white-space: nowrap; color: #34506b; }
.nj-ds-weektable td small { display: block; font-size: 10.5px; color: var(--muted, #5f7285); }
.nj-ds-weektable a { color: var(--blue, #2563eb); text-decoration: none; font-weight: 650; }
.nj-ds-weektable a:hover { text-decoration: underline; }
.nj-ds-weektable tr:hover td { background: #f7fafd; }

/* sections: a 3-column grid; wide ones span */
.nj-data-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; align-items: start; }
.nj-ds-tiles, .nj-ds-wide, .nj-data-wait { grid-column: 1 / -1; }
.nj-ds-two-wide { grid-column: span 2; }
.nj-ds-sec { min-width: 0; break-inside: avoid; }
.nj-ds-sec h3 { margin: 6px 0 5px; font-size: 13px; color: var(--navy, #0a2847); text-transform: uppercase; letter-spacing: .04em; }
.nj-ds-sec h3 small, .nj-ds-h4 small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11.5px; color: var(--muted, #5f7285); }
.nj-ds-h4 { font-weight: 800; font-size: 12.5px; color: #34506b; margin: 2px 0 4px; }
.nj-ds-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.nj-ds-note { margin: 6px 0 0; font-size: 12px; color: #34506b; }
.nj-ds-none { font-size: 12px; color: var(--muted, #5f7285); padding: 4px 0; }

/* bar lists: label - bar - count - share */
.nj-ds-bars { display: grid; gap: 3px; }
.nj-ds-row { display: grid; grid-template-columns: minmax(0, 11fr) minmax(40px, 10fr) auto 36px; align-items: center; gap: 6px; font-size: 12px; }
.nj-ds-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink, #14263a); }
.nj-ds-b { height: 10px; background: #edf2f8; border-radius: 3px; overflow: hidden; }
.nj-ds-b i { display: block; height: 100%; min-width: 2px; background: #3a6fb0; border-radius: 0 3px 3px 0; }
.nj-ds-row b { font-variant-numeric: tabular-nums; color: var(--ink, #14263a); text-align: right; }
.nj-ds-row u { text-decoration: none; color: var(--muted, #5f7285); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.nj-ds-row:hover .nj-ds-b i { background: var(--navy, #0a2847); }

/* how long posted: one bar, four shades new -> old, a key under it */
.nj-ds-age { display: flex; gap: 2px; height: 18px; border-radius: 5px; overflow: hidden; background: #edf2f8; }
.nj-ds-age i { display: block; min-width: 2px; }
.nj-ds-age .s0, .nj-ds-agekey .s0 { background: #cfe0f3; }
.nj-ds-age .s1, .nj-ds-agekey .s1 { background: #86acd9; }
.nj-ds-age .s2, .nj-ds-agekey .s2 { background: #3a6fb0; }
.nj-ds-age .s3, .nj-ds-agekey .s3 { background: #0a2847; }
.nj-ds-agekey { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11.5px; color: #34506b; }
.nj-ds-agekey span { display: inline-flex; align-items: center; gap: 5px; }
.nj-ds-agekey i { width: 10px; height: 10px; border-radius: 2px; }
.nj-ds-agekey b { color: var(--ink, #14263a); }
.nj-ds-week { display: block; width: 100%; height: 72px; }
.nj-ds-weekx { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted, #5f7285); margin-top: 2px; }
.nj-ds-week rect { fill: #86acd9; }
.nj-ds-week rect.is-top { fill: #3a6fb0; }
.nj-ds-week rect:hover { fill: var(--navy, #0a2847); }

/* the boards: a table with a share bar */
.nj-ds-board { width: 100%; border-collapse: collapse; font-size: 12px; }
.nj-ds-board th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5f7285); padding: 3px 6px; border-bottom: 1px solid var(--line, #e3e8ef); white-space: nowrap; }
.nj-ds-board td { padding: 3px 6px; border-bottom: 1px solid #eef2f6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nj-ds-board td:first-child { white-space: normal; max-width: 260px; }
.nj-ds-board td .nj-ds-b { display: inline-block; width: 90px; vertical-align: middle; margin-right: 6px; }
.nj-ds-board td u { text-decoration: none; color: var(--muted, #5f7285); font-size: 11px; }
.nj-ds-board tr:hover td { background: #f7fafd; }
.nj-ds-bars-of .nj-ds-row { grid-template-columns: minmax(0, 12fr) minmax(40px, 8fr) auto; }
.nj-ds-row b u { text-decoration: none; color: var(--muted, #5f7285); font-size: 11px; font-weight: 600; }
.nj-ds-listbtn { margin-top: 7px; font: inherit; font-size: 11px; font-weight: 700; color: var(--navy, #0a2847); background: #fff; border: 1px solid #b9cbe0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.nj-ds-listbtn:hover { background: #f1f7fd; }
.nj-ds-facts2 { grid-template-columns: 1fr; align-content: start; }
.nj-ds-vs { margin-top: 8px; padding: 6px 9px; border-radius: 8px; background: #f7f9fc; }
.nj-ds-flag { margin-top: 8px; padding: 6px 9px; border-radius: 8px; background: #fff7e6; border: 1px solid #f5d79a; color: #5a3d00; }
.nj-ds-flag b { color: #8a5300; }

/* shortage areas & visas: small facts */
.nj-ds-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.nj-ds-fact { background: #f7f9fc; border-radius: 8px; padding: 6px 9px; min-width: 0; }
.nj-ds-fact b { font-size: 17px; color: var(--navy, #0a2847); margin-right: 6px; font-variant-numeric: tabular-nums; }
.nj-ds-fact span { font-weight: 700; color: #34506b; font-size: 12px; }
.nj-ds-fact small { display: block; font-size: 11px; color: var(--muted, #5f7285); }

@media (max-width: 1100px) {
    .nj-data-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nj-ds-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nj-ds-two-wide { grid-column: 1 / -1; }
}

/* print / save as PDF: only the report, on paper */
@media print {
    @page { margin: 12mm; }
    html, body { height: auto !important; overflow: visible !important; display: block !important; background: #fff !important; }
    body.nj-data-printing > *:not(.nj-data) { display: none !important; }
    body.nj-data-printing .nj-data { position: static; display: block; padding: 0; }
    .nj-data-shade, .nj-data-acts, .nj-data.is-loading .nj-data-body { display: none !important; }
    .nj-data-card { width: 100%; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; padding: 0; font-size: 12px; }
    .nj-data-head { position: static; }
    .nj-data-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
    .nj-ds-sec, .nj-ds-tile, .nj-ds-fact { break-inside: avoid; }
    .nj-ds-b i, .nj-ds-age i, .nj-ds-agekey i, .nj-ds-tile, .nj-ds-fact, .nj-ds-b { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .nj-ds-week rect { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .nj-data-foot { margin-top: 10px; }
    .nj-ds-weekbtn, .nj-ds-weekacts, .nj-ds-listbtn { display: none !important; }
    .nj-ds-board { font-size: 10.5px; } .nj-ds-board tr { break-inside: avoid; } .nj-ds-board thead { display: table-header-group; }
    .nj-ds-weektable { font-size: 10.5px; }
    .nj-ds-weektable td, .nj-ds-weektable th { padding: 3px 5px; }
    .nj-ds-weektable thead { display: table-header-group; }
    .nj-ds-weektable tr { break-inside: avoid; }
    .nj-ds-weektable a { color: var(--ink, #14263a); }
}

/* wage1 (2026-11-05): "What the data says" is for NAEJOBS Data subscribers - without Data the button is grey and a click does nothing */
.nj-data-btn.is-locked, .nj-data-btn.is-locked:hover { cursor: default; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .3); }
/* wage1: the wage tool inside the overlay */
.nj-data-wagebtn { margin-right: 6px; }
.nj-wg { grid-column: 1 / -1; }
.nj-wg .nj-ds-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nj-wg-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; margin: 10px 0 14px; }
.nj-wg-ctl label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #3d5a78; }
.nj-wg-ctl select, .nj-wg-ctl input { font: inherit; font-size: 14px; font-weight: 600; color: #14263a; padding: 6px 8px; border: 1px solid #b9cbe0; border-radius: 6px; background: #fff; }
.nj-wg-ctl input { width: 90px; }
.nj-wg-more { font-size: 12px; color: #5b7590; padding-bottom: 8px; }
.nj-wg-h { margin: 16px 0 6px; font-size: 14px; color: #14263a; }
.nj-wg-h small { font-weight: 500; color: #5b7590; margin-left: 6px; }
.nj-ds-tile b small { display: inline; font-size: .55em; font-weight: 600; margin-left: 2px; }
@media print { .nj-wg-ctl select, .nj-wg-ctl input { border: none; padding: 0; } .nj-data-wagebtn { display: none !important; } }
/* wage2 (2026-11-05): the BLS toggle + the line that says whether BLS was weighed in */
.nj-wg-bls { font: inherit; font-size: 12.5px; font-weight: 700; color: #5b7590; background: #fff; border: 1px solid #b9cbe0; border-radius: 999px; padding: 6px 12px; cursor: pointer; margin-bottom: 1px; }
.nj-wg-bls.is-on { color: #0b3a75; background: #e8f1ff; border-color: #7aa7e8; }
.nj-wg-badge { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid; font-size: 13px; line-height: 1.45; }
.nj-wg-badge.is-on { color: #0b3a75; background: #e8f1ff; border-color: #7aa7e8; }
.nj-wg-badge.is-warn { color: #6b4300; background: #fff4e0; border-color: #e0a84a; }
.nj-wg-badge.is-off { color: #4a5f75; background: #f3f5f8; border-color: #d3dbe4; }
.nj-wg-cmp { max-width: 680px; margin: 0 0 12px; }
@media print { .nj-wg-bls { display: none !important; } }

/* wage3 (2026-11-05, micheal: "resolve down to the actual job with specialty and all"): the Job picker (grouped like the map) + Specialty picker,
   and the "<job> by specialty" table - a row picks that specialty */
.nj-wg-ctl select { max-width: 360px; }
.nj-wg-ctl select:disabled { color: #7a8ea3; background: #f3f5f8; }
.nj-wg-spec tbody tr[data-wspec] { cursor: pointer; }
.nj-wg-spec tbody tr[data-wspec]:hover, .nj-wg-spec tbody tr[data-wspec]:focus { background: #eef5ff; outline: none; }
.nj-wg-spec td small { display: block; font-size: 11px; color: #5b7590; }
@media print { .nj-wg-spec tbody tr[data-wspec] { cursor: default; } }
/* wage scale maker (2026-11-05, micheal: "can we also add the wage scale maker with pdf download and all? same filtered area on the map") -
   js/datasays.js renderScale: the form, five tiles, the step table; Print / Save as PDF prints the summary line, tiles, table and notes */
.nj-wg-scalebtn { color: #0b3a75; }
.nj-sc .nj-ds-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nj-wg-ctl .nj-sc-chk { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; padding-bottom: 8px; cursor: pointer; }
.nj-wg-ctl .nj-sc-chk input { width: auto; margin: 0; }
.nj-sc-sum { margin: 0 0 10px; font-size: 13px; color: #14263a; }
.nj-sc-acts { margin: 6px 0 8px; justify-content: flex-start; }
.nj-sc-table td, .nj-sc-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media print { .nj-sc-form, .nj-sc-acts { display: none !important; } .nj-sc-table tr { break-inside: avoid; } }
