/* ============================================================
   FastLocations - shared form pieces: NAICS picker pop-up (js/naics.js)
   and Month / Year date dropdowns (js/fields.js). Loaded after prospect.css.
   ============================================================ */
/* ---------- NAICS picker (js/naics.js) ---------- */
body.nx-open { overflow: hidden; }
.nx-back { position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.nx-back[hidden] { display: none !important; }
.nx-dlg { background: #fff; border-radius: 16px; width: 100%; max-width: 820px; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 24px 60px -12px rgba(15,23,42,.35); overflow: hidden; }
.nx-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 20px 22px 10px; }
.nx-head h3 { font-size: 19px; }
.nx-head p { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 640px; }
.nx-x { border: 0; background: var(--line-soft); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-secondary); flex: none; }
.nx-x:hover { background: var(--line); }
.nx-search { padding: 4px 22px 12px; border-bottom: 1px solid var(--line); }
.nx-body { overflow-y: auto; flex: 1; min-height: 160px; }
.nx-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nx-t thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.nx-t td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.nx-t td:first-child { width: 36px; padding-left: 22px; }
.nx-t input[type=checkbox] { width: 17px; height: 17px; margin: 1px 0 0; cursor: pointer; accent-color: var(--fl-blue); }
.nx-t label { cursor: pointer; display: block; }
.nx-code { width: 64px; font-family: var(--mono); font-weight: 600; color: var(--fl-blue); }
.nx-name { display: block; font-weight: 600; color: var(--ink); }
.nx-desc { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.nx-sec td { background: var(--fl-blue-soft); color: var(--fl-blue); font-size: 12.5px; font-weight: 600; padding: 7px 22px; }
.nx-sec td b { font-family: var(--mono); margin-right: 4px; }
.nx-row:hover td { background: #f8fafc; }
.nx-row.is-on td { background: #eef5fd; }
.nx-none { padding: 30px; text-align: center; color: var(--muted); }
.nx-foot { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--line); background: #fafbfc; }
.nx-count { font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.nx-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .nx-back { padding: 0; align-items: stretch; }
  .nx-dlg { border-radius: 0; max-height: none; height: 100%; }
  .nx-head { padding: 16px 16px 8px; } .nx-search { padding: 4px 16px 10px; } .nx-foot { padding: 10px 16px; }
  .nx-t td:first-child { padding-left: 16px; } .nx-sec td { padding: 7px 16px; }
  .nx-t thead { display: none; }
}

.fx-date { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }

/* "this form was prefilled" banner and the marks on prefilled fields (Briefing Builder) */
.fx-prefill { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; background: #f0fdf4; box-shadow: var(--shadow-sm); }
.fx-prefill.k-edit { border-color: var(--fl-blue-border); border-left-color: var(--fl-blue); background: var(--fl-blue-soft); }
.fx-prefill.k-draft { border-color: #fde68a; border-left-color: #d97706; background: #fffbeb; }
.fx-prefill-i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 17px; color: #15803d; }
.fx-prefill.k-edit .fx-prefill-i { color: var(--fl-blue); } .fx-prefill.k-draft .fx-prefill-i { color: #b45309; }
.fx-prefill b { display: block; font-family: var(--head); font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.fx-prefill span { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.5; }
.fx-prefill-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; cursor: pointer; }
.fx-filled .fl-in, .fx-filled .fl-sel, .fx-filled .fl-ta { border-color: #86efac; box-shadow: inset 4px 0 0 #16a34a; background: #f7fdf9; }
.fx-filled > .fl-lab::after, .fx-filled > label::after { content: "from study"; margin-left: 8px; font-size: 10.5px; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 99px; padding: 1px 7px; vertical-align: 1px; text-transform: none; letter-spacing: 0; }
.fx-filled-chips { outline: 2px dashed #86efac; outline-offset: 6px; border-radius: 8px; }

/* "Start from a feasibility study" list (Briefing Builder, step 1) */
.fx-studies { display: grid; gap: 8px; margin-top: 10px; }
.fx-study { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14px; }
.fx-study .nm { font-weight: 600; color: var(--ink); }
.fx-study .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.fx-study .vd { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line-soft); color: var(--ink-secondary); white-space: nowrap; }
.fx-study .vd.go { background: #f0fdf4; color: #15803d; } .fx-study .vd.conditional { background: #ecfeff; color: #0e7c86; }
.fx-study .vd.study { background: #fffbeb; color: #b45309; } .fx-study .vd.nogo { background: #fef2f2; color: #b91c1c; }
.fx-study.is-off { opacity: .6; }
.fx-studies-none { font-size: 13.5px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
@media (max-width: 640px) { .fx-study { grid-template-columns: 1fr auto; } .fx-study .vd { display: none; } }

/* Company Research tool (research.html) */
.rx-go { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.rx-out { padding: 8px 28px 28px; }
.rx-head { padding: 14px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.rx-eyebrow { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fl-blue); }
.rx-title { font-size: 28px; margin: 4px 0 4px; font-family: var(--serif, inherit); }
.rx-sub { font-size: 13.5px; color: var(--muted); }
.rx-wait { display: flex; gap: 12px; align-items: center; padding: 18px 0; color: var(--ink-secondary); font-size: 14px; }
.rx-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--fl-blue-soft); border-top-color: var(--fl-blue); animation: rxSpin .9s linear infinite; flex: none; }
@keyframes rxSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .rx-out { padding: 6px 16px 20px; } .rx-title { font-size: 23px; } }
@media print { #signCard, #askCard, #mineCard { display: none !important; } .rx-out { padding: 0; } }

/* Company Research PDF: FastLocations header and disclaimer appear only when printed */
.rx-print-head, .rx-print-foot { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  .rx-print-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 3px 10px 0; margin-bottom: 8px; border-bottom: 2px solid #123f7a; position: relative; z-index: 2; }   /* above the report body, whose background clipped the last letter */
  .rx-print-head img { height: 34px; width: auto; }
  .rx-print-head div { text-align: right; font-size: 11px; color: #475569; }
  .rx-print-head b { display: block; font-size: 12px; color: #123f7a; letter-spacing: .08em; }   /* written in capitals: text-transform printed the last letter lower-case */
  .rx-print-foot { display: block; margin-top: 18px; padding-top: 10px; border-top: 1px solid #cbd5e1; break-inside: avoid; }
  .rx-print-foot p { font-size: 9.5px; line-height: 1.5; color: #475569; margin: 0 0 8px; }
  .rx-print-foot .pow { display: flex; align-items: center; gap: 10px; }
  .rx-print-foot .pow img { height: 24px; width: auto; }
  .rx-print-foot .pow span { font-size: 9.5px; color: #64748b; }
  .rx-head { padding-top: 4px; } .rx-eyebrow { display: none; }
}
@media print {
  /* the card clips in print: keep numbered source lists and long titles inside it */
  #outCard { overflow: visible !important; }
  #outCard .fs-src-list ol { display: block; padding-left: 30px; margin-left: 0; }
  #outCard .fs-src-list li { margin: 0 0 3px; padding-left: 2px; overflow-wrap: anywhere; break-inside: avoid; }
  #outCard .fs-src-list a { color: #123f7a; text-decoration: none; }
  #outCard .fs-src-list summary { list-style: none; }
  #outCard .fs-src-list summary::-webkit-details-marker { display: none; }
}
