/* Copyright (c) 2026 Bayplot. All rights reserved. Proprietary and confidential. Unauthorised copying, modification or distribution is prohibited. */
/* Construction Procurement Toolkit: brand navy #0B2545, gold #C9A227, ice-slate #F7F9FC */
:root { --pr-navy: #0B2545; --pr-gold: #C9A227; --pr-ice: #F7F9FC; --pr-ink: #1d2433; --pr-muted: #5b6475; --pr-line: #dfe4ec; --pr-red: #b42318; --pr-amber: #b7791f; --pr-green: #1e7b4f; --pr-edit: #eef5ff; }
.pr-body { background: var(--pr-ice); }
/* the shared SKU / order data panel and strip are for the warehouse tools, not this construction toolkit */
.pr-body .tk-datapanel, .pr-body .tk-datastrip { display: none !important; }
.pr-main { max-width: 1720px; margin: 0 auto; padding: 18px 20px 40px; color: var(--pr-ink); }
.pr-head h1 { margin: 2px 0 6px; color: var(--pr-navy); font-size: 28px; }
.pr-lede { margin: 0; max-width: 1080px; color: var(--pr-muted); font-size: 14px; }
.pr-exbanner { margin: 12px 0 0; padding: 8px 12px; border-left: 5px solid var(--pr-gold); background: #fff8e1; font-size: 13px; color: #5a4600; border-radius: 6px; }
.pr-exbanner b { color: #6b5300; letter-spacing: .02em; }
.pr-exbanner.own { background: #fff; border-left-color: var(--pr-navy); color: var(--pr-ink); }
.pr-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; padding: 10px 12px; background: var(--pr-navy); border-radius: 10px; }
.pr-bar .pr-f span { color: #dfe6f2; }
.pr-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.25); margin: 0 4px; }
.pr-btn { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 6px; border: 1px solid #c8cfdb; background: #fff; color: var(--pr-navy); cursor: pointer; font-weight: 600; white-space: nowrap; }
.pr-btn:hover { border-color: var(--pr-navy); }
.pr-btn:focus-visible, .pr-tab:focus-visible, .pr-in:focus-visible { outline: 3px solid var(--pr-gold); outline-offset: 1px; }
.pr-btn.go { background: var(--pr-gold); border-color: var(--pr-gold); color: var(--pr-navy); }
.pr-btn.navy { background: var(--pr-navy); border-color: var(--pr-navy); color: #fff; }
.pr-btn.sm { padding: 2px 8px; font-size: 12px; }
.pr-btn.del { color: var(--pr-red); border-color: #efc4c0; padding: 2px 7px; font-size: 12px; }
.pr-file { display: inline-block; }
.pr-f { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--pr-muted); }
.pr-f.inline { flex-direction: row; align-items: center; gap: 6px; }
.pr-in { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid #c8cfdb; border-radius: 5px; background: #fff; color: var(--pr-ink); min-width: 0; }
.pr-in.num { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.pr-in.num.s { width: 64px; } .pr-in.num.xs { width: 52px; } .pr-in.num.l { width: 120px; }
.pr-in.date { width: 124px; }
.pr-in.txt { width: 100%; min-width: 120px; }
.pr-in.code { width: 72px; }
textarea.pr-in { width: 100%; min-height: 44px; resize: vertical; }
.pr-in.plug { background: #fff4dc; border-color: #e7c36a; }
.pr-msg { min-height: 20px; font-size: 13px; color: var(--pr-navy); }
.pr-msg.err { color: var(--pr-red); }
.pr-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.pr-kpi { background: #fff; border: 1px solid var(--pr-line); border-top: 4px solid var(--pr-navy); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.pr-kpi b { display: block; font-size: 19px; color: var(--pr-navy); font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-kpi span { display: block; font-size: 11.5px; color: var(--pr-muted); line-height: 1.3; }
.pr-kpi.red { border-top-color: var(--pr-red); } .pr-kpi.amber { border-top-color: var(--pr-gold); } .pr-kpi.green { border-top-color: var(--pr-green); }
.pr-kpi .rag3 { display: flex; gap: 8px; font-size: 19px; font-weight: 700; }
.pr-kpi .rag3 i { font-style: normal; }
.pr-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--pr-navy); }
.pr-tab { font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 13px; border: 1px solid var(--pr-line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #fff; color: var(--pr-navy); cursor: pointer; }
.pr-tab[aria-selected=true] { background: var(--pr-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--pr-gold); }
.pr-pane { padding-top: 12px; outline: none; }
.pr-card { background: #fff; border: 1px solid var(--pr-line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.pr-ct { display: block; color: var(--pr-navy); font-size: 15px; margin: 0 0 6px; font-family: var(--font-h); }
.pr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pr-grid2 > .pr-card { margin-bottom: 0; }
.pr-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pr-row.start { justify-content: flex-start; }
.pr-hint { font-size: 12px; color: var(--pr-muted); }
.pr-scroll { overflow: auto; max-height: 680px; }
.pr-t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.pr-t th { background: var(--pr-navy); color: #fff; font-weight: 600; text-align: left; padding: 6px; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.pr-t td { padding: 4px 6px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.pr-t td.n, .pr-t th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-t tr.tot td { background: var(--pr-navy); color: #fff; font-weight: 700; }
.pr-t tr.sub td { background: #f3f5f9; font-weight: 600; color: var(--pr-navy); }
.pr-t tr.best td { background: rgba(201,162,39,.14); }
.pr-t td.best, .pr-t th.best { background: rgba(201,162,39,.2); color: var(--pr-navy); }
.pr-t th.best { background: #13325c; color: var(--pr-gold); }
.pr-t td.muted, .pr-t th.muted { opacity: .6; }
.pr-t td.plug { background: #fff4dc; }
.pr-t small { color: var(--pr-muted); display: block; }
.pr-t .wrap { white-space: normal; min-width: 180px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; letter-spacing: .02em; }
.chip.green { background: #e3f4ea; color: var(--pr-green); } .chip.amber { background: #fdf1d6; color: #8a5a00; } .chip.red { background: #fde4e1; color: var(--pr-red); }
.chip.grey { background: #eceff4; color: var(--pr-muted); } .chip.navy { background: var(--pr-navy); color: #fff; } .chip.gold { background: var(--pr-gold); color: var(--pr-navy); }
.chip.ex { background: #fff3cd; color: #6b5300; border: 1px solid #e7c36a; }
.pr-alerts { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.pr-alerts li { display: flex; gap: 8px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.pr-alerts li .chip { min-width: 112px; text-align: center; }
.pr-exports { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-note { margin-top: 18px; font-size: 12px; color: var(--pr-muted); max-width: 1180px; }
.pr-warn { color: var(--pr-amber); font-size: 12px; } .pr-bad { color: var(--pr-red); font-size: 12px; } .pr-ok { color: var(--pr-green); font-size: 12px; }
.pr-chart svg { display: block; width: 100%; height: auto; }
.pr-reco { border-left: 5px solid var(--pr-gold); }
.pr-reco b.big { font-size: 18px; color: var(--pr-navy); }
.pr-gantt text { font: 11px var(--font-b, Inter, Arial, sans-serif); fill: var(--pr-ink); }
.pr-ms { display: flex; flex-direction: column; gap: 2px; min-width: 118px; }
.pr-ms span { font-size: 11.5px; color: var(--pr-muted); white-space: nowrap; }
.pr-ms span.late { color: var(--pr-red); font-weight: 600; }
.pr-sublist { margin: 4px 0 0; padding: 0; list-style: none; }
.pr-sublist li { display: flex; gap: 6px; align-items: center; margin: 2px 0; }
.pr-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.pr-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 4px 0; }
.pr-print { display: none; }
@media (max-width: 1280px) { .pr-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pr-grid2 { grid-template-columns: 1fr; } .pr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-main { padding: 12px; } .pr-head h1 { font-size: 22px; } }
@media print {
  body.pr-printing > *:not(#prPrint) { display: none !important; }
  body.pr-printing #prPrint { display: block; }
  body.pr-printing { background: #fff; }
}
.pr-doc { font: 12px/1.45 Inter, Arial, sans-serif; color: #1d2433; }
.pr-doc h1 { font: 700 20px Montserrat, Arial, sans-serif; color: #0B2545; margin: 0 0 4px; }
.pr-doc h2 { font: 700 14px Montserrat, Arial, sans-serif; color: #0B2545; margin: 14px 0 6px; border-bottom: 2px solid #C9A227; padding-bottom: 3px; }
.pr-doc table { border-collapse: collapse; width: 100%; font-size: 11px; }
.pr-doc th { background: #0B2545; color: #fff; text-align: left; padding: 4px 5px; }
.pr-doc td { border-bottom: 1px solid #dfe4ec; padding: 3px 5px; }
.pr-doc td.n, .pr-doc th.n { text-align: right; }
.pr-doc .ex { background: #fff8e1; border-left: 4px solid #C9A227; padding: 6px 8px; margin: 6px 0; }
.pr-doc .sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.pr-doc .sign div { border-top: 1px solid #0B2545; padding-top: 4px; }
/* compact editable tables: plain text inputs fill their cell, selects stay narrow, so registers fit a laptop screen */
.pr-t input.pr-in[type=text]:not(.code):not(.num) { width: 100%; min-width: 96px; }
.pr-t select.pr-in { max-width: 180px; }
.pr-t td.wrap input.pr-in[type=text] { min-width: 150px; }
.pr-kpi .rag3 i.pr-ok, .pr-kpi .rag3 i.pr-warn, .pr-kpi .rag3 i.pr-bad { font-size: 19px; }
.pr-bidders { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.pr-bidders > .pr-card { margin-bottom: 0; }
.pr-t tr.pr-sub2 td { border-bottom: 2px solid var(--pr-line); padding-top: 0; }
.pr-t tr.pr-sub2 .pr-in.desc { width: 420px; min-width: 200px; }
.pr-t th { white-space: normal; vertical-align: bottom; line-height: 1.2; }
.pr-t tr.pr-sub2 .pr-row { flex-wrap: nowrap; }
.pr-t select.pr-in { max-width: 150px; }
#prCalloffs input.pr-in.txt.code { min-width: 0; width: 84px; }
#prCalloffs td, #prCalloffs th { padding: 4px 3px; }
#prCalloffs .pr-in.num.s { width: 60px; } #prCalloffs .pr-in.num.xs { width: 46px; }
#prCalloffs select.pr-in { max-width: 128px; }
.pr-scroll:has(#prCalloffs) { max-height: none; }
.pr-t th.wrap { min-width: 84px; }
#prGolden td:first-child { min-width: 190px; }
#prSup td:first-child input.pr-in { min-width: 170px; }
#prSup td:nth-child(2) input.pr-in { min-width: 100px; }
#prSched td:nth-child(2) input.pr-in { min-width: 180px; }
#prSched td, #prSched th { padding: 4px 4px; }
.pr-t th.n { white-space: normal; min-width: 52px; }

.pr-handoff { margin: 8px 0 0; padding: 8px 12px; border-left: 5px solid var(--pr-gold); background: #F7F9FC; color: var(--pr-navy); font-size: 13px; border-radius: 6px; }
.pr-handoff[hidden] { display: none; }
