/* jls.css — Analytics › Job Log Search v2 (release 20261023). Builds on bf-analytics.css (.jls-*, .bf-thm-*, .bf-tt-*). */
.jls-wrap { display: flex; flex-direction: column; gap: 12px; color: var(--bf-ink, #15201A); font-size: 13px; }
.jls-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.jls-title { font-size: 1rem; font-weight: 800; color: var(--sa-green-dark, #005C2E); }
.jls-sub { font-size: 12px; color: var(--bf-muted, #56655D); }
.jls-scope { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: #fbfaf5; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; }

/* search row */
.jls-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jls-box { flex: 1 1 380px; min-width: 260px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: #fff; border: 1.5px solid var(--bf-line, #DCE3DF); border-radius: 10px; }
.jls-box:focus-within { border-color: var(--bf-green, #007A3D); box-shadow: 0 0 0 3px rgba(0,122,61,.12); }
.jls-box i { color: var(--bf-muted, #56655D); }
.jls-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 14px; background: transparent; }
.jls-go { height: 42px; padding: 0 18px; font-size: 13px !important; font-weight: 600; border-radius: 10px !important; }
.jls-tog { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; cursor: pointer; user-select: none; white-space: nowrap; }
.jls-help { position: relative; font-size: 12px; }
.jls-help summary { cursor: pointer; color: var(--bf-green, #007A3D); font-weight: 600; list-style: none; white-space: nowrap; }
.jls-help summary::-webkit-details-marker { display: none; }
.jls-help summary::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; font-weight: 700; }
.jls-help[open] .jls-syntax { position: absolute; right: 0; top: 24px; z-index: 30; width: 380px; max-width: 86vw; background: #fff; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,20,.14); padding: 12px 14px; }
.jls-syntax { margin: 0; display: grid; gap: 6px; }
.jls-syntax > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: baseline; }
.jls-syntax dt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 600; color: #0d366b; background: #EAF2FD; border-radius: 5px; padding: 1px 6px; justify-self: start; }
.jls-syntax dd { margin: 0; font-size: 12px; color: var(--bf-muted, #56655D); }

/* idle state */
.jls-idle { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.jls-idle-t { font-size: 14px; font-weight: 600; }
.jls-idle-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--bf-muted, #56655D); }
.jls-ex { border: 1px solid var(--bf-line, #DCE3DF); background: #F7FAF8; border-radius: 14px; padding: 3px 10px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--bf-ink, #15201A); }
.jls-ex:hover { background: #EAF4EE; border-color: #B9D8C6; }
.jls-idle .jls-syntax { max-width: 560px; }

/* answer panel */
.jls-ans { display: flex; flex-direction: column; gap: 12px; }
.jls-kpis { display: flex; flex-wrap: wrap; gap: 0; padding: 0; overflow: hidden; }
.jls-kpi { flex: 1 1 110px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-right: 1px solid var(--bf-line, #DCE3DF); }
.jls-kpi:last-child { border-right: 0; }
.jls-kpi b { font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.jls-kpi span { font-size: 11.5px; color: var(--bf-muted, #56655D); }
.jls-kpi-w { flex: 2 1 220px; }
.jls-kpi-w b { font-size: 15px; padding-top: 4px; }
.jls-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.jls-top { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.jls-top-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.jls-top-h span { font-size: 11px; font-weight: 400; color: var(--bf-muted, #56655D); }
.jls-tb { display: grid; grid-template-columns: minmax(70px, 38%) 1fr 48px 46px; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 3px 4px; border-radius: 6px; text-align: left; font-size: 12px; color: var(--bf-ink, #15201A); }
.jls-tb:hover { background: #F2F6F3; }
.jls-tb.on { background: #EAF4EE; box-shadow: inset 3px 0 0 var(--bf-green, #007A3D); }
.jls-tb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jls-tb-t { height: 8px; background: #EEF2EF; border-radius: 4px; overflow: hidden; }
.jls-tb-t i { display: block; height: 100%; background: #2E7D5B; border-radius: 4px; }
.jls-tb-n, .jls-tb-h { text-align: right; font-variant-numeric: tabular-nums; }
.jls-tb-h { color: var(--bf-muted, #56655D); }
.jls-none { font-size: 12px; color: var(--bf-muted, #56655D); padding: 4px; }
.jls-trend { padding: 10px 12px; }
.jls-trend-c { position: relative; height: 210px; }

/* results */
.jls-bar.bf-tt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jls-ms { margin-left: 6px; font-size: 11px; color: var(--bf-muted, #56655D); background: #F1F4F2; border-radius: 8px; padding: 1px 6px; }
.jls-seg { display: inline-flex; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 16px; overflow: hidden; background: #fff; }
.jls-seg button { height: 28px; padding: 0 12px; border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--bf-ink, #15201A); }
.jls-seg button + button { border-left: 1px solid var(--bf-line, #DCE3DF); }
.jls-seg button.on { background: #EAF2FD; color: #0d366b; font-weight: 600; }
.jls-sort { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--bf-muted, #56655D); }
.jls-sort select { height: 28px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 6px; padding: 0 8px; font-size: 12px; background: #fff; color: var(--bf-ink, #15201A); }
.jls-warn { margin: 8px 14px 0; padding: 8px 10px; border-radius: 7px; background: #FFF6E0; color: #6B4A00; font-size: 12px; }

/* no inner scrolling: the table fits the card and shows every row of the page */
.jls-wrap .jls-table-wrap { max-height: none !important; min-height: 0; overflow: visible !important; }
.jls-wrap table.jls-table { width: 100%; table-layout: auto; font-size: 12px; }
.jls-wrap table.jls-table th, .jls-wrap table.jls-table td { padding: 6px 5px; text-align: left; }
.jls-wrap table.jls-table th.r, .jls-wrap table.jls-table td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jls-wrap table.jls-table th { white-space: normal; vertical-align: bottom; line-height: 1.2; font-size: 11px; }
.jls-wrap table.jls-table th.jls-th { padding-right: 18px !important; }
.jls-wrap table.jls-table td { vertical-align: top; }
.jls-wrap td.jls-c-sum { min-width: 190px; max-width: none; }
.jls-wrap td.jls-c-date { white-space: nowrap; }
.jls-time { display: block; font-size: 11px; color: var(--bf-muted, #56655D); }
.jls-wrap td.jls-c-rep { white-space: nowrap; font-size: 11.5px; }
.jls-wrap td.jls-c-rep .bf-link { margin-right: 10px; font-size: 11.5px; }
.jls-c-x { width: 26px; padding-left: 4px !important; padding-right: 0 !important; }
.jls-xp { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--bf-muted, #56655D); padding: 0; }
.jls-xp:hover { background: #E8EEEA; color: var(--bf-ink, #15201A); }
.jls-xp i { transition: transform .12s; font-size: 11px; }
.jls-xp[aria-expanded="true"] i { transform: rotate(90deg); }
tr.jls-open > td { background: #F6FAF7; }
tr.jls-ctx > td { background: #F6FAF7; padding: 0 10px 12px 34px !important; }
.jls-ctx-in { border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; background: #fff; padding: 8px 10px; font-size: 12px; }
.jls-ctx-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.jls-ctx-t { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.jls-ctx-t th { font-size: 10.5px; font-weight: 600; color: var(--bf-muted, #56655D); text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--bf-line, #DCE3DF); }
.jls-ctx-t td { padding: 3px 6px; border-bottom: 1px solid #EEF2EF; vertical-align: top; }
.jls-ctx-t .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jls-ctx-t tr.jls-ctx-me td { background: #FFF8DF; font-weight: 600; }
.jls-lt { display: inline-block; font-size: 10px; font-weight: 700; color: #9B1C1C; background: #FDECEC; border-radius: 6px; padding: 0 5px; }
.jls-co { display: inline-block; font-size: 11px; font-weight: 600; background: #F1F4F2; border-radius: 8px; padding: 0 6px; }
.jls-table-wrap.jls-busy { opacity: .55; transition: opacity .1s; }

/* pager */
.jls-wrap .jls-pager { justify-content: center; gap: 4px; }
.jls-pager button { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 6px; background: #fff; font-size: 12px; color: var(--bf-ink, #15201A); }
.jls-pager button.on { background: var(--bf-green, #007A3D); border-color: var(--bf-green, #007A3D); color: #fff; font-weight: 600; }
.jls-pager button:disabled { opacity: .4; }
.jls-pg-gap { padding: 0 4px; color: var(--bf-muted, #56655D); }
@media (max-width: 700px) { .jls-syntax > div { grid-template-columns: 1fr; gap: 2px; } .jls-kpi { flex-basis: 45%; border-bottom: 1px solid var(--bf-line, #DCE3DF); } }

.jls-rep { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; }
.jls-rep:hover { background: #EAF4EE; }
.jls-wrap table.jls-table td.jls-c-nw { white-space: normal; overflow-wrap: anywhere; min-width: 54px; }
.jls-wrap table.jls-table .jls-ctx-t th { background: #F4F7F5 !important; color: var(--bf-muted, #56655D) !important; position: static !important; top: auto; border-bottom: 1px solid var(--bf-line, #DCE3DF); padding: 4px 6px !important; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.jls-wrap table.jls-table .jls-ctx-t td { padding: 4px 6px !important; font-size: 11.5px; }
.jls-wrap table.jls-table .jls-ctx-t th.r { text-align: right; }
