/* Job workspace, jobs list and readability fixes · version 18 */

/* Readability floor: nothing operational under 11px. */
.status-pill { font-size: 11px; padding: 5px 10px; }
.cell-subtitle { font-size: 12px; color: #6f7b8e; }
.cell-title { font-size: 14px; }
.data-table th { font-size: 11px; }
.data-table td { font-size: 13px; }
.section-kicker { font-size: 11px; }
.job-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; }
.job-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-action { width: auto; height: auto; min-height: 34px; padding: 0 12px; color: var(--ink); font: inherit; font-size: 13px; font-weight: 750; white-space: nowrap; }
.table-action:hover { border-color: var(--line-dark); background: #f6f8fa; }

/* Job header */
#jobDetailTitle:focus { outline: none; }
.project-record-identity h2 { font-size: clamp(24px, 3vw, 34px); }
.job-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 4px 16px 16px; list-style: none; counter-reset: step; }
.job-track[hidden] { display: none; }
.job-track li { position: relative; display: grid; justify-items: center; gap: 7px; color: #8a95a6; font-size: 12px; font-weight: 700; text-align: center; }
.job-track li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: #dfe4eb; z-index: 0; }
.job-track li:first-child::before { display: none; }
.job-track li > span { position: relative; z-index: 1; width: 19px; height: 19px; border: 3px solid #dfe4eb; border-radius: 50%; background: #fff; box-sizing: border-box; }
.job-track li.is-done { color: #1f2a3d; }
.job-track li.is-done::before, .job-track li.is-current::before { background: var(--navy); }
.job-track li.is-done > span { border-color: var(--navy); background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.job-track li.is-current { color: var(--red); }
.job-track li.is-current > span { border-color: var(--red); box-shadow: 0 0 0 4px rgba(201,29,50,.14); }
.job-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; border-top: 1px solid var(--line); background: var(--line); }
.job-facts[hidden] { display: none; }
.job-facts > div { display: grid; gap: 3px; padding: 12px 16px; background: #fbfcfd; }
.job-facts dt { color: #6f7b8e; font-size: 12px; font-weight: 700; }
.job-facts dd { margin: 0; color: var(--ink); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.job-facts .is-due dd { color: var(--red); }

/* Overview */
.job-next { border: 0; border-left: 5px solid var(--red); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(19,31,50,.07); }
.job-next .job-caption { letter-spacing: 0; text-transform: none; font-size: 13px; }
.job-next h3 { font-size: 20px; }
.job-caption { letter-spacing: 0; text-transform: none; font-size: 13px; color: #6f7b8e; }
.job-contact-links { display: grid; gap: 8px; margin-top: 10px; }
.job-contact { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); text-decoration: none; }
a.job-contact:hover, a.job-contact:focus-visible { border-color: var(--navy); outline: none; }
.job-contact b { color: var(--navy); font-size: 13px; }
a.job-contact b { color: var(--red); }
.job-contact span { min-width: 0; overflow: hidden; color: #3d4a5d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.job-contact.is-empty span { color: #8a95a6; }

/* Jobs and quotes lists become cards on a phone */
@media (max-width: 760px) {
  .job-track { grid-template-columns: repeat(7, 64px); overflow-x: auto; padding-inline: 8px; scrollbar-width: none; }
  .job-track::-webkit-scrollbar { display: none; }
  .job-track li { font-size: 11px; }
  .job-facts { grid-template-columns: 1fr 1fr; }
  .job-facts > div { padding: 10px 12px; }
  .job-facts dd { font-size: 16px; }

  #page-jobs .table-wrap, #page-quotes .table-wrap { overflow: visible; }
  #page-jobs .data-table, #page-quotes .data-table { border-collapse: separate; border-spacing: 0; background: transparent; }
  #page-jobs .data-table thead, #page-quotes .data-table thead { display: none; }
  #page-jobs .data-table tbody, #page-quotes .data-table tbody { display: grid; gap: 10px; }
  #page-jobs .data-table tr, #page-quotes #allQuoteRows tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  #page-jobs .data-table td, #page-quotes #allQuoteRows td { display: block; padding: 0; border: 0; }
  #page-jobs #jobRows td:nth-child(1) { grid-column: 1; grid-row: 1; }
  #page-jobs #jobRows td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  #page-jobs #jobRows td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: #3d4a5d; }
  #page-jobs #jobRows td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  #page-jobs .job-row-actions { display: flex; flex-wrap: nowrap; justify-content: stretch; gap: 8px; }
  #page-jobs .job-row-actions .table-action { flex: 1 1 0; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 10px; }
  #page-quotes #allQuoteRows td:nth-child(2) { grid-column: 1; grid-row: 1; }
  #page-quotes #allQuoteRows td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; font-size: 16px; }
  #page-quotes #allQuoteRows td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; color: #3d4a5d; }
  #page-quotes #allQuoteRows td:nth-child(1) { grid-column: 1; grid-row: 3; }
  #page-quotes #allQuoteRows td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  #page-quotes #allQuoteRows td:nth-child(6) { display: none; }
  #page-quotes #allQuoteRows td:nth-child(7) { grid-column: 1 / -1; grid-row: 4; }
  #page-quotes #allQuoteRows .table-action { width: 100%; min-height: 40px; border: 1px solid var(--line-dark); border-radius: 10px; }
  #page-quotes #allQuoteRows td[colspan], #page-jobs #jobRows td[colspan] { grid-column: 1 / -1; }
}

/* v18: file archive export */
.files-export-heading { margin-top: 28px; }
.files-export-status { align-self: center; color: #5b6472; font-size: 14px; }
