/* it-43 Background Jobs — page-specific chrome only.
 *
 * Shared vocabulary comes from the floating system: .btn/.icon-btn/.float-card/.float-table
 * (floating.css), .badge (tables.css), .notice (notice.css). This file adds ONLY the genuinely-new
 * job elements that had no house component: the stat tiles (modeled on .wh-stat), the progress bar
 * (none existed), the detail meta grid, and the sticky bulk-select bar. Tokens only — never hardcode
 * colors/radius/shadow. See /styleguide "Background Jobs".
 */

/* Stat tiles — clickable status filters. */
.job-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.job-stat {
  position: relative;
  flex: 1 1 0;
  min-width: 140px;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--md-sys-color-surface-container-high);
  box-shadow: var(--elev-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--md-sys-motion-duration-short2, 150ms) var(--ease, ease);
}
.job-stat:hover {
  box-shadow: var(--elev-2);
}
.job-stat.is-active {
  outline: 2px solid var(--md-sys-color-primary);
}
.job-stat__num {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}
.job-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--md-sys-color-on-surface-variant);
}

/* Progress bar — no house component existed. Primary fill on a container-high track; the fill width
 * is set inline (the house pattern for dynamic dimensions). */
.job-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}
.job-progress__track {
  flex: 1;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--md-sys-color-surface-container-high);
  overflow: hidden;
}
.job-progress__fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--md-sys-color-primary);
  transition: width var(--md-sys-motion-duration-short4, 250ms) var(--ease, ease);
}
.job-progress__label {
  font-size: 0.8rem;
  color: var(--md-sys-color-on-surface-variant);
  min-width: 2.75em;
  text-align: right;
}
.job-progress--lg .job-progress__track {
  height: 10px;
}

/* Detail metadata grid. */
.job-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}
.job-meta dt {
  color: var(--md-sys-color-on-surface-variant);
}
.job-meta dd {
  margin: 0;
}

/* Sticky bulk-select action bar on the contacts list (shown by JS when ≥1 row is checked). */
.bulk-assign-bar {
  display: none;
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bulk-assign-bar.is-visible {
  display: flex;
}

/* Add-users bulk dialog reuses the Team widget rows (team_body) but adds members from a top-level
 * inline search — hide teamForm's own "Add teammate" button (its nested dialog is the popup-on-popup
 * we're avoiding). The inline per-row "+ Role" menu stays. */
.bulk-teamform .team-add__btn {
  display: none;
}
