/* Durable request rows: progress uses source counts from the server. */
#searchJobsPanel { min-width: 0; margin: 20px 0 22px; padding: 17px 18px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-jobs-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.search-jobs-heading h2 { margin: 0; font-size: 16px; }
#refreshSearchJobs { min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #536f7b; font-size: 12px; }
#searchJobsStatus { margin: 6px 0 13px; color: #576c78; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#searchJobsStatus.error { color: var(--danger); }
#searchJobs { min-width: 0; max-height: 360px; padding: 3px 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.search-jobs-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.search-jobs-table th { position: sticky; top: 0; z-index: 1; padding: 8px 9px; background: #fff; box-shadow: 0 1px var(--line); font-size: 12px; text-transform: none; letter-spacing: 0; color: #576c78; }
.search-jobs-table th:first-child { width: 64px; overflow: hidden; font-size: 0; }
.search-jobs-table th:nth-child(2) { width: calc(37% - 64px); }
.search-jobs-table th:nth-child(3) { width: 23%; }
.search-jobs-table th:nth-child(4) { width: 20%; }
.search-jobs-table th:last-child { width: 20%; }
.search-jobs-table td { min-width: 0; max-width: none; padding: 13px 9px; border-bottom: 1px solid #e5ecef; vertical-align: top; overflow-wrap: anywhere; }
.search-jobs-table tr:last-child td { border-bottom: 0; }
.search-jobs-table .is-opened td { background: #f4faf7; }
.search-job-selection input { width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.search-job-select-target { display: flex; align-items: flex-start; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; cursor: pointer; }
.search-job-selection input:disabled { cursor: default; }
.search-job-query > strong { display: block; font-size: 12px; font-weight: 550; color: #637d89; }
.search-job-query-preview { margin: 5px 0 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.search-job-conditions { margin: 5px 0 0; }
.search-job-conditions > summary { min-height: 44px; margin: 0; padding: 11px 0; color: var(--accent); font-size: 12px; }
.search-job-conditions > p { max-height: 200px; margin: 6px 0 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; overflow: auto; overscroll-behavior: contain; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.search-job-state { display: inline-block; max-width: 100%; padding: 3px 7px; margin-bottom: 6px; border-radius: 4px; background: #f0f4f6; color: #5a717e; font-size: 12px; font-weight: 550; line-height: 1.6; }
.search-job-state.running,.search-job-state.queued { color: #916020; background: #fff4df; }
.search-job-state.completed { color: #196f61; background: #e8f5ef; }
.search-job-state.partial { color: #916020; background: #fff3df; }
.search-job-state.failed { color: var(--danger); background: #faeeee; }
.search-job-status progress { display: block; width: 100%; height: 6px; margin: 4px 0 7px; border: 0; border-radius: 5px; overflow: hidden; accent-color: var(--accent); background: #e8eef1; }
.search-job-status progress::-webkit-progress-bar { border-radius: 5px; background: #e8eef1; }
.search-job-status progress::-webkit-progress-value { border-radius: 5px; background: var(--accent); }
.search-job-status progress::-moz-progress-bar { border-radius: 5px; background: var(--accent); }
.search-job-status > small { display: block; font-size: 12px; color: #576c78; line-height: 1.65; }
.search-job-status .search-job-issues { margin-top: 4px; color: #90632a; }
.search-job-row.is-failed .search-job-issues { color: var(--danger); }
.search-job-result > strong { display: block; color: #37515e; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.search-job-result > time,.search-job-result > small { display: block; margin-top: 4px; color: #576c78; font-size: 12px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.search-job-actions button { min-width: 44px; min-height: 44px; max-width: 100%; margin: 0 7px 4px 0; padding: 7px 10px; font-size: 12px; white-space: normal; }
.search-job-actions .text-button { padding-left: 4px; padding-right: 4px; }
.search-job-actions .search-job-cancel { color: var(--danger); }
.search-jobs-empty { margin: 0; padding: 22px 14px; border: 1px dashed #d4e0e6; border-radius: 7px; background: #fafcfd; color: #576c78; font-size: 12px; line-height: 1.7; }
#searchJobsExport { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
#searchJobsSelectionCount { margin-right: auto; color: #576c78; font-size: 12px; font-variant-numeric: tabular-nums; }
#exportSearchJobs { min-width: 44px; min-height: 44px; padding: 7px 12px; border: 1px solid #cbdcd6; border-radius: 6px; background: #f3faf6; color: var(--accent); font-size: 12px; font-weight: 550; }
#clearSearchJobSelection { min-width: 44px; min-height: 44px; padding: 6px 8px; border: 0; background: transparent; color: #576c78; font-size: 12px; }
.search-jobs-export-note { margin: 9px 0 0; color: #576c78; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#searchJobsPanel :is(button,input,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1050px) {
 .search-jobs-table th:nth-child(2) { width: calc(33% - 64px); }
 .search-jobs-table th:nth-child(3) { width: 24%; }
 .search-jobs-table th:nth-child(4) { width: 23%; }
 .search-job-actions button { display: block; margin-right: 0; }
}
@media (max-width: 760px) {
 #searchJobsPanel { padding: 14px 13px 11px; margin-top: 16px; }
 #searchJobs { max-height: 420px; }
 .search-jobs-heading h2 { font-size: 15px; }
 .search-jobs-table,.search-jobs-table tbody { display: block; width: 100%; }
 .search-jobs-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
 .search-jobs-table th { position: static; }
 .search-jobs-table .search-job-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
 .search-jobs-table .search-job-row td { display: block; width: auto; padding: 0; border: 0; background: transparent; }
 .search-jobs-table .search-job-row.is-opened { background: #f5faf7; box-shadow: 7px 0 #f5faf7,-7px 0 #f5faf7; }
 .search-job-selection { grid-column: 1; grid-row: 1 / 5; }
 .search-job-selection input { width: 20px; height: 20px; margin-top: 5px; }
 .search-job-select-target { min-width: 44px; min-height: 44px; }
 .search-job-query { grid-column: 2; grid-row: 1; }
 .search-job-status { grid-column: 2; grid-row: 2; }
 .search-job-result { grid-column: 2; grid-row: 3; }
 .search-job-actions { grid-column: 2; grid-row: 4; }
 .search-job-status progress { max-width: 340px; }
 .search-job-query-preview { font-size: 13px; }
 .search-job-result > time { display: inline; margin: 0 8px 0 0; }
 .search-job-result > small { display: inline; }
 .search-job-result > strong { margin-bottom: 3px; }
 .search-job-actions button { display: inline-block; min-height: 44px; margin: 0 8px 0 0; }
 .search-job-conditions > summary { min-height: 44px; display: list-item; padding-top: 11px; padding-bottom: 8px; }
 #refreshSearchJobs,#exportSearchJobs,#clearSearchJobSelection { min-height: 44px; }
 #searchJobsSelectionCount { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
 #searchJobsPanel * { scroll-behavior: auto; transition: none; animation: none; }
}
