/* Iris 'Launch Portal Updates' (Dec 1 2026). Finding 225: on a desktop the staff screens (POs, Change orders, Schedule, every job hub tab)
   use more of the width with narrow side margins, so wide tables scroll sideways less. Client and drafter pages keep their widths. */
@media (min-width: 1100px) {
  body:not(.client):not(.drafter) main#main { max-width: 1760px; padding-left: 16px; padding-right: 16px; }
  body:not(.client):not(.drafter) main#main:has(.jcr) { max-width: none; }
}
/* Finding 226: Job hub > POs grouped by cost code (po-bycode.js) */
.pbc-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.pbc-bar .btn.on { background: var(--char); color: #fff; }
.pbc-t tr.pbc-code { cursor: pointer; }
.pbc-t tr.pbc-code:hover td, .pbc-t tr.pbc-code.on td { background: #f3f9fb; }
.pbc-t tr.pbc-code:focus { outline: 2px solid #8fb8c9; outline-offset: -2px; }
.pbc-t .pbc-tw { display: inline-block; width: 1em; color: var(--muted); }
.pbc-t tr.pbc-pos > td { padding: 0 0 8px 18px; background: #fbfbf8; }
.pbc-t table.pbc-in { width: 100%; margin: 0; }
.pbc-t table.pbc-in th { position: static; }
.mkco { margin-left: 8px; }
.mkco-note { background: #f3f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
/* Holly finding 127 (Nov 27 2026): Job cost by code, the column headings (Code, Name, Budget, Change orders...) stay in view while scrolling:
   the table's box scrolls inside the page (desktop only) so the sticky headings have something to stick to. */
@media (min-width: 900px) {
  .tablewrap:has(> table.jcrt) { max-height: calc(100vh - 120px); overflow: auto; }
  .tablewrap:has(> table.jcrt) table.jcrt thead th { position: sticky; top: 0; z-index: 2; }
}
/* 258 (Dec 4 2026): '+ PO' on each cost code line, '+ New PO' form at the bottom of the Purchase orders card */
.pbc-t td.pbc-new { width: 1%; white-space: nowrap; text-align: right; }
.pwrite { margin-top: 12px; border-top: 1px solid #e6e6e0; padding-top: 8px; }
