/* Boss HQ demo: job screen styles. Owned by the job screen builder; shared classes live in demo.css. */
.jb-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  min-height: 40px;
}
.jb-row:last-child {
  border-bottom: 0;
}
.jb-row [data-act='job-green'] {
  max-width: 100%;
  height: auto;
  min-height: 32px;
  white-space: normal;
  text-align: left;
}
.jb-k {
  flex: 0 0 150px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.jb-v {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.jb-v,
.jb-v b {
  font-size: 14px;
}
.jb-v b {
  font-weight: 600;
}
.jb-money .jb-k {
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.jb-money .jb-k b {
  font-weight: 700;
}
.jb-money .jb-v {
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.jb-money .jb-v b {
  font-size: 13.5px;
  font-weight: 700;
}
.jb-money .jb-k {
  flex: 1 1 auto;
}
.jb-money .jb-v {
  flex: 0 1 auto;
}
.jb-money .jb-v .bar,
.jb-money .jb-v [class*='bar'] {
  flex: 0 0 150px;
}
.jb-money .jb-pct {
  font-family: var(--mono);
  font-weight: 400;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 700px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}
.grid2 .jb-row .jb-k {
  flex-basis: 140px;
}
.jb-row .sel.jb-date {
  padding: 3px 6px;
  font-size: 11.5px;
  gap: 5px;
}
.jb-row .sel.jb-date .ms {
  font-size: 15px;
}
.jb-pct {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
}
/* The circled "i", as in the real app (.calc-info, app.css:3653): a 16px ring with the italic i centered on its ink. */
.jb-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--card);
  color: var(--muted);
  font-size: 10.5px;
  font-style: italic;
  line-height: 0;
  padding: 0 1px 0 0;
  vertical-align: text-bottom;
  cursor: pointer;
}
.jb-i:hover {
  color: var(--text);
  border-color: var(--text);
}
.jb-pop {
  max-width: 280px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.jb-add {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.jb-add input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--hair2);
  border-radius: 4px;
  background: var(--card);
}
.jb-note {
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
.jb-note:last-child {
  border: 0;
}
.jb-tabs {
  position: sticky;
  top: 56px;
  z-index: 5;
  background: var(--bg);
}
@media (max-width: 768px) {
  .jb-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .jb-k {
    flex-basis: 100%;
  }
}
.jb-zip {
  width: 90px;
}
.jb-doc {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
}
.jb-ta {
  width: 100%;
  resize: vertical;
  font: inherit;
}
.jb-notes {
  white-space: pre-wrap;
}
.lnk {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.jb-strip-pills {
  display: flex;
  gap: 8px;
  align-items: center;
}
.jb-strip-pills:not(:empty) {
  margin: 12px 0 0;
}
.jb-strip-pills .dl-pill {
  text-decoration: none;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
@media (max-width: 768px) {
  .jb-strip-pills .dl-pill {
    min-height: 44px;
    padding: 0 12px;
  }
  .jb-row {
    min-height: 44px;
  }
  .jb-v .sel {
    min-height: 44px;
  }
  .jb-v .btn,
  .jb-v .btn-sm {
    min-height: 44px;
  }
  .jb-i {
    position: relative;
    width: 44px;
    height: 44px;
    margin: -14px -14px -14px -12px;
    border: 0;
    background: none;
  }
  .jb-i::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    box-sizing: border-box;
    border: 1px solid var(--muted);
    border-radius: 50%;
  }
  .jb-zip,
  .jb-ta,
  .jb-add input {
    font-size: 16px;
    min-height: 44px;
  }
  .jb-ta {
    min-height: 100px;
  }
  .card-head .btn {
    min-height: 44px;
  }
  .modal input,
  .modal textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .modal .sel {
    min-height: 44px;
    width: 100%;
  }
  .ph h2 {
    overflow-wrap: anywhere;
  }
}
.jb-tabs {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jb-tabs::-webkit-scrollbar {
  display: none;
}
.jb-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (pointer: coarse) and (min-width: 769px) {
  .jb-i {
    position: relative;
    width: 44px;
    height: 44px;
    margin: -14px -14px -14px -12px;
    border: 0;
    background: none;
  }
  .jb-i::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    box-sizing: border-box;
    border: 1px solid var(--muted);
    border-radius: 50%;
  }
  a.jc-flag {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
@media (pointer: coarse) and (min-width: 769px) {
  .jb-v a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* tablet: the tab strip wraps to a second row like the real app, so no tab is cut at the edge */
@media (min-width: 769px) and (max-width: 1100px) {
  .jb-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* small phones: a long action label wraps inside its row instead of widening the page */
@media (max-width: 768px) {
  .jb-v .btn {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    height: auto;
  }
}
