/* Trade Portal (Kris, Nov 24 2026). Builds on client.css; same website blue. */
.top .sub { font-weight: 400; opacity: .8; margin-left: 6px; font-size: 13px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 14px 0; }
.jobs a.ocard { color: var(--char); display: block; } .jobs a.ocard:hover { text-decoration: none; border-color: #0d88a7; }
.tl li.mine { background: #eef7fa; border-left: 4px solid #0d88a7; padding-left: 8px; }
.tl li.mine .t b { color: #0a6f89; }
.tl .ph { font-size: 11px; color: var(--muted); display: block; }
.tl .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.ghost { background: #fff; color: #0a6f89; border: 1px solid #0d88a7; }
.btn.red { background: #fff; color: #b42318; border: 1px solid #e3a59f; }
.po { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.po h3 { font-size: 15px; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.po .meta { color: var(--muted); font-size: 13px; }
.po .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.po .inv { font-size: 13px; margin-top: 8px; }
.act { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.act.done { opacity: .7; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .box { background: #fff; border-radius: 14px; padding: 18px; max-width: 440px; width: 100%; }
.modal textarea, .modal input[type=date] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; margin-top: 6px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.filter { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.filter button.on { background: #0d88a7; color: #fff; }

/* staff Trades page */
body.staff main { max-width: 1150px; }
  table.t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
  table.t th, table.t td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
  table.t th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .formrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
  .formrow label { font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
  .formrow input, .formrow select { padding: 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; min-width: 160px; }
  h2 { margin: 26px 0 8px; font-size: 18px; }
  .linkbox { background: #eef7fa; border: 1px solid #0d88a7; padding: 10px; border-radius: 8px; word-break: break-all; margin: 8px 0; font-size: 13px; }
.mid { align-self: center; } .back { color: #fff; opacity: .8; } .arow { display: flex; gap: 8px; margin-top: 8px; } .small13 { font-size: 13px; } .mt6 { margin-top: 6px; }
.ah { margin: 0 0 4px; font-size: 15px; } .lbox { max-width: 420px; margin: 24px auto; } .wl { color: #fff; } .mt14 { margin-top: 14px; } .wide { min-width: 260px; }
/* Nov 26 2026: Send invoice form on a PO */
.modal label { display: block; font-size: 14px; margin-top: 10px; }
.modal input:not([type=checkbox]) { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; margin-top: 6px; box-sizing: border-box; }
.modal .box { max-height: 92vh; overflow: auto; }

/* item 7 #37 trade site card */
.sitecard { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d9dee5; border-radius: 10px; background: #fff; }
.sitecard summary { cursor: pointer; font-weight: 600; }
.sitecard .scrow { margin: 8px 0 0; line-height: 1.4; overflow-wrap: anywhere; }
.sitecard .scrow b { display: inline-block; min-width: 0; margin-right: 4px; }
.sitecard ul { margin: 6px 0 0 18px; padding: 0; }

/* item 8 #4 what changed */
.dchgt { border: 1px solid #cfe3ea; border-left: 4px solid #0d88a7; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; background: #f7fbfc; }
.dchgt li { margin: 6px 0; overflow-wrap: anywhere; }
.f .upd { font-size: 11px; font-weight: 700; background: #c8a96e; color: #fff; border-radius: 8px; padding: 0 6px; margin-left: 6px; }

/* Nov 29 2026 (Kris Nov 28): Current / Not most current labels on document lists */
.curl{display:inline-block;margin-left:6px;padding:0 6px;border-radius:9px;font-size:11px;font-weight:600;vertical-align:middle}
.curl.cur{background:#e3f4ea;color:#1d6b3a}
.curl.notcur{background:#f3eee2;color:#7a6331}

/* tester AV6 (Nov 29 2026): phone friendly POs. 16px inputs everywhere so iPhone Safari doesn't zoom; 44px tap targets on the PO buttons */
.modal textarea, .modal input:not([type=checkbox]), .modal select { font-size: 16px; }
@media (max-width: 640px) {
  .po .row .btn.sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
  .po .row { gap: 10px; }
}
.po .nodecl { color: var(--muted); font-size: 13px; }

/* item 13 (Nov 29 2026): Trade Portal 'How it works' guide */
header.top .tguide { color: #fff; font-size: 14px; text-decoration: underline; margin-left: auto; margin-right: 12px; white-space: nowrap; }
header.top .task { color: #fff; font-size: 14px; text-decoration: underline; margin-right: 12px; white-space: nowrap; }
.th { max-width: 760px; } .thq { margin: 14px 0 4px; } .tha { background: #f4f9fb; border: 1px solid #d5e6ec; border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.tha .lbl { font-size: 12px; font-weight: 700; color: #0d88a7; margin-bottom: 4px; } .thh { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #c9dbe2; }
.thsend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .thsend select { max-width: 100%; min-height: 40px; }
.thform { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; } .thform textarea { flex: 1; min-width: 0; font: inherit; padding: 8px; border: 1px solid #c9dbe2; border-radius: 6px; }
.thform .btn { min-height: 44px; }
.tg h2 { font-size: 17px; margin: 0; }
.tg details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.tg summary { cursor: pointer; list-style: none; } .tg summary::-webkit-details-marker { display: none; }
.tg ul { margin: 10px 0 2px; padding-left: 20px; } .tg li { margin: 6px 0; line-height: 1.45; font-size: 15px; }
.tg .tgintro { font-size: 15px; line-height: 1.45; } .tg .tgtools { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.gbanner { background: #fff7e0; border-bottom: 1px solid #f0d58a; } .gbanner .in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; font-size: 15px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.gbanner .btn { margin-left: auto; min-height: 40px; }
.pbanner { background: #fff7e0; border-bottom: 1px solid #f0d58a; } .pbanner.held { background: #fdecea; border-bottom-color: #f2b8b5; }
.pbanner .in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
@media print { header.top, #tabs, .tg .tgtools, .previewbar, .gbanner, .pbanner { display: none !important; } .tg details { border: 0; padding: 0; } .tg details > ul { display: block !important; } }

/* Dec 1 2026: site manager + junior contact cards on every job tab */
.contacts { margin: 14px 0 0; }
.contacts .cchead { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; margin-bottom: 6px; }
.contacts .ccgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.contacts .ccard { background: #fff; color: var(--char, #222); border-radius: 12px; padding: 12px 14px; border: 1px solid #d9dee5; text-align: left; }
.contacts .ccrole { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #0a6f89; font-weight: 700; }
.contacts .ccname { font-size: 16px; font-weight: 700; margin-top: 2px; }
.contacts .cctitle { font-size: 13px; color: var(--muted, #666); }
.contacts .ccline { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.contacts .ccbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.contacts .ccoffice { font-size: 13px; margin-top: 8px; opacity: .9; }
.contacts .ccoffice a { color: inherit; text-decoration: underline; }
