/* Project Profit Redesign: shared screen pieces (Phase 4a). Built from docs/mockups/profit-redesign/index.html.
   Tokens come from app.css (dark and light); only the blue is new. Fonts are never below 13 px. Classes are pr-*. */
:root, :root[data-theme="dark"] { --blue: #7FA8F5; --blue-soft: #1A2640; }
:root[data-theme="light"] { --blue: #2F5DBF; --blue-soft: #E3EBFA; }
.pr, .pr * { font-family: var(--sans); box-sizing: border-box; }
.pr { font-variant-numeric: tabular-nums; font-size: 14px; line-height: 20px; color: var(--text); }
:where(.pr) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pr-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.pr-pad { padding: 18px 20px; }
.pr-h1 { font-size: 24px; line-height: 30px; font-weight: 700; margin: 0; }
.pr-h2 { font-size: 15px; line-height: 20px; font-weight: 700; margin: 0; white-space: nowrap; }
.pr-lbl { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted); }
.pr-cap { font-size: 13px; line-height: 18px; color: var(--faint); }
.pr-big { font-size: 26px; line-height: 32px; font-weight: 700; white-space: nowrap; }
.pr-lnk { color: var(--accent); font-weight: 600; text-align: left; }
.pr-lnk:hover { text-decoration: underline; }
.pr-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pr-btn:hover { background: var(--panel-2); }
.pr-btn.p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pr-btn.p:hover { background: var(--accent-hover); }
.pr-btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pr-btn.s { height: 30px; padding: 0 10px; border-radius: 8px; }
/* status chip */
.pr-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.pr-tag.green { background: var(--green-soft); color: var(--green); }
.pr-tag.amber { background: var(--amber-soft); color: var(--amber); }
.pr-tag.red { background: var(--red-soft); color: var(--red); }
.pr-tag.n { background: var(--panel-2); color: var(--muted); }
.pr-tag.blue { background: var(--blue-soft); color: var(--blue); }
/* filter chips with counts */
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line) !important; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pr-chip:hover { color: var(--text); }
.pr-chip.on { background: var(--accent-soft) !important; border-color: var(--accent) !important; color: var(--accent); }
.pr-chip .n { font-size: 13px; }
/* Simple / Detailed */
.pr-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.pr-seg button { height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pr-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
/* summary tile (clickable) */
.pr-kpi { display: flex; flex-direction: column; gap: 6px; padding: 6px; margin: -6px; border-radius: 10px; width: calc(100% + 12px); text-align: left; }
button.pr-kpi:hover { background: var(--panel-2); }
.pr-kpi .pr-big { font-size: 26px; }
.pr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* bars */
.pr-track { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--panel-2); min-width: 60px; }
.pr-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.pr-track b { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--blue); }
.pr-sb { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.pr-sb .pr-cap { white-space: nowrap; }
.pr-prog { display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px; gap: 12px; align-items: center; padding: 5px 0; }
.pr-prog .pr-track { height: 10px; border-radius: 5px; }
.pr-prog .pr-track i { border-radius: 5px; }
.pr-prog .v { text-align: right; white-space: nowrap; }
/* cost-type tile */
.pr-ttiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pr-ttile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line) !important; background: var(--panel) !important; width: 100%; }
.pr-ttile:hover { border-color: var(--faint) !important; }
.pr-ttile.on { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.pr-ttile .nm { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pr-ttile .am { font-size: 20px; line-height: 26px; font-weight: 700; white-space: nowrap; }
.pr-sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; display: inline-block; }
.pr-spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.pr-spark i { flex: 1 1 0; border-radius: 2px; min-height: 2px; }
/* data table */
.pr-tw { overflow-x: auto; max-width: 100%; }
.pr-tb { width: 100%; border-collapse: separate; border-spacing: 0; }
.pr-tb th, .pr-tb td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; text-align: left; font-size: 14px; }
.pr-tb th { padding: 10px; font-size: 13px; font-weight: 600; color: var(--faint); }
.pr-tb th.r, .pr-tb td.r { text-align: right; }
.pr-tb td.r { font-size: 14px; }
.pr-tb th.n, .pr-tb td.n { width: 44px; color: var(--faint); font-size: 13px; }
.pr-tb td.full { white-space: normal; min-width: 200px; line-height: 18px; overflow-wrap: anywhere; }
.pr-tb td.wrap { white-space: normal; min-width: 180px; line-height: 18px; }
.pr-tb tbody tr:hover td { background: var(--panel-2); }
.pr-tb tbody tr.go { cursor: pointer; }
.pr-tb tbody tr:last-child td { border-bottom: 0; }
.pr-tb tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
.pr-th { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.pr-th:hover, .pr-th.on { color: var(--text); }
th.r .pr-th { flex-direction: row-reverse; }
.pr-th .ar { color: var(--accent); }
.pr-th .ar:empty { display: none; }
.pr-more { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.pr-tw + .pr-more { border-top: 0; }
.pr-more:empty { display: none; }
.pr-pn { display: flex; flex-direction: column; gap: 1px; padding: 2px 0; }
.pr-pn .a { color: var(--accent); font-weight: 600; white-space: normal; }
.pr-pn .b { font-size: 13px; color: var(--muted); white-space: normal; }
/* search box: atad-so-picker draws the box; this only sizes it like the mockup */
.pr-sohost { width: 100%; max-width: 420px; }
.pr-sohost .asp-box { height: 38px; }
.pr-sohost .asp .asp-box .asp-input { font-size: 14px; }
/* window frame */
.pr-bg { position: fixed; inset: 0; background: rgba(4, 7, 12, .62); z-index: 200; cursor: default; }
.pr-win { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 760px; max-width: calc(100vw - 48px); max-height: 84vh; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; z-index: 201; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); color: var(--text); }
.pr-win:focus { outline: 0; }
.pr-whead { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.pr-whead .t { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.pr-whead .t .row { display: flex; align-items: center; gap: 10px; }
.pr-whead .t b { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.pr-wbody { overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.pr-wfoot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
/* month bar */
.pr-mbar { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; width: 320px; justify-content: flex-start; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text) !important; font-size: 14px; }
.pr-mbar svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.pr-mbar .car { margin-left: auto; color: var(--faint); font-size: 13px; }
.pr-range { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-range label { display: flex; flex-direction: column; gap: 6px; }
/* toast */
.pr-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 400; }
/* demo page */
.pr-demo { padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 18px; }
.pr-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* ---- Phase 4b: shell (sidebar, header) and the first pages. Desktop only: the page keeps a 1280 px minimum width. */
body { min-width: 1280px; }
.shell { grid-template-columns: 208px minmax(0, 1fr); }
.side { gap: 14px; padding: 16px 12px 14px; }
.side .brand { padding: 0 10px; }
.side .brand .app { font-size: 13px; font-weight: 600; }
.nav { gap: 4px; margin-top: 4px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; height: 36px; font-size: 14px; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav-group { padding: 14px 12px 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nav .nb { min-width: 24px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--panel-2); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.nav a.on .nb { background: var(--accent-soft); color: var(--accent); }
.nav .nb.amber { background: var(--amber-soft); color: var(--amber); }
.side-portal { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; white-space: normal; padding: 14px 12px 4px; }
.side-portal svg { width: 18px; height: 18px; flex: none; }
.hdr { height: 52px; }
.hdr-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.hdr-seg:empty { display: none; }
.main { padding: 0; gap: 0; max-width: none; margin: 0; }
.pr-page { padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pr-h1.big { font-size: 26px; line-height: 32px; }
.pr-h2.big { font-size: 17px; line-height: 24px; }
.pr-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 22px 30px; }
.pr-hero .pr-kpi { padding: 0; margin: 0; width: 100%; gap: 8px; }
.pr-hero .pr-kpi .pr-big { font-size: 38px; line-height: 44px; }
.pr-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pr-pcard { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; width: 100%; min-width: 0; text-align: left; }
.pr-pcard:hover { border-color: var(--faint); }
.pr-pcard .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pr-pcard .top b { font-size: 17px; line-height: 20px; font-weight: 700; overflow-wrap: anywhere; }
.pr-pcard .top .v { font-weight: 700; white-space: nowrap; font-size: 15px; }
.pr-pcard .pr-cap { text-transform: uppercase; letter-spacing: .02em; }
.pr-ovrow { display: grid; grid-template-columns: 66px minmax(0, 1fr) 48px; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.pr-ovrow .v { text-align: right; font-variant-numeric: tabular-nums; }
.pr-ovrow .pr-track { height: 8px; border-radius: 4px; }
.pr-ovrow .pr-track i { border-radius: 4px; }
.pr-pcard .st { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-top: 4px; }
.pr-pcard .st i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.pr-pcard .st.red { color: var(--red); } .pr-pcard .st.red i { background: var(--red); }
.pr-pcard .st.amber { color: var(--amber); } .pr-pcard .st.amber i { background: var(--amber); }
.pr-pcard .st.green { color: var(--green); } .pr-pcard .st.green i { background: var(--green); }
.pr-pcard .st.n { color: var(--muted); }
.pr-ptop { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

.pr-legend { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pr-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pr-legend i.a { width: 14px; height: 6px; border-radius: 3px; background: var(--accent); }
.pr-legend i.b { width: 2px; height: 12px; background: var(--blue); }
/* project page */
.pr-back { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.pr-back:hover { text-decoration: underline; }
.pr-phead { display: flex; flex-direction: column; gap: 10px; }
.pr-phead .pr-ptop { align-items: center; }
.pr-ptitle { min-width: 0; overflow-wrap: anywhere; }
.pr-ptitle .so { color: var(--muted); }
.pr-acts { display: flex; gap: 10px; flex: none; }
.pr-btn.amber { border-color: var(--amber); color: var(--amber); }
.pr-metas { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.pr-meta { display: inline-flex; gap: 8px; align-items: baseline; font-size: 14px; }
.pr-meta b { font-size: 13px; font-weight: 600; color: var(--muted); }
.pr-meta .none { color: var(--faint); }
.pr-edit { display: flex; align-items: center; gap: 8px; }
.pr-edit .pr-tag { font-size: 13px; }
.pr-mrow { display: flex; align-items: center; gap: 14px; }
.pr-pbody { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pr-banner { padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--panel-2); color: var(--muted); }
.pr-banner.green { background: var(--green-soft); color: var(--green); }
.pr-banner.amber { background: var(--amber-soft); color: var(--amber); }
.pr-banner.red { background: var(--red-soft); color: var(--red); }
.pr-gap { display: flex; flex-direction: column; gap: 12px; }
.pr-stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; gap: 0; }
.pr-stack i { display: block; min-width: 3px; }
.pr-legend3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 36px; }
.pr-legend3 .lg { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; font-size: 14px; }
.pr-legend3 .lg i { width: 12px; height: 12px; border-radius: 3px; }
.pr-legend3 .lg b { font-weight: 400; white-space: nowrap; }
.pr-legend3 .lg em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-legend3 .lg u { text-decoration: none; text-align: right; color: var(--faint); }
.pr-kp4 { gap: 24px; padding: 4px 0; }
.pr-kp4 .pr-big { font-size: 28px; line-height: 34px; }
.pr-kp4 .pr-kpi .pr-cap { line-height: 18px; }
.pr-thead { display: flex; align-items: center; gap: 10px; }
.pr-share { display: block; width: 150px; }
.pr-share .pr-track { height: 6px; min-width: 0; }
.pr-note { border-top: 1px solid var(--line); }
.pr-typecard .pr-tw { border-top: 1px solid var(--line); }
.pr-tb tfoot td { background: transparent; }
.pr-th, .pr-th span { display: inline; line-height: 16px; }
.pr-th .ar { margin-left: 4px; }
th.r .pr-th { flex-direction: initial; }
.pr-vh { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; font-size: 13px; line-height: 16px; white-space: nowrap; }
.pr-grow { margin-left: auto; }
.pr-sbox { position: relative; flex: 0 0 420px; max-width: 420px; }
.pr-sbox .pr-sohost { max-width: none; }
.pr-sbox { margin-left: auto; }
/* the search box before the shared picker has loaded (it loads after the first screen): drawn the same, icon on the left, so it never jumps or clips */
.pr-sohost > input:not(.asp-input) { display: block; width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; outline: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23838DA1' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>"); background-repeat: no-repeat; background-position: 12px center; }
.pr-sohost > input:not(.asp-input)::placeholder { color: var(--faint); opacity: 1; }
.pr-sohost > input:not(.asp-input):focus { border-color: var(--accent); }

/* ---- Phase 4b part 2: windows opened from the project page (js/pr-windows.js) */
.pr-wfoot.sp { justify-content: flex-end; align-items: center; }
.pr-wfoot .pr-fl { margin-right: auto; }
.pr-win.side { left: auto; right: 0; top: 0; transform: none; width: 440px; height: 100vh; max-height: 100vh; border-radius: 0; border-width: 0 0 0 1px; }
.pr-kvs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.pr-kvs .kv { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-kvs .kv.wide { grid-column: 1 / -1; }
.pr-kvs .kv b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.pr-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pr-box.scroll, .pr-box.days { max-height: 46vh; overflow-y: auto; }
.pr-box .pr-tb td, .pr-box .pr-tb th { white-space: normal; padding: 12px; }
.pr-box .pr-tb td { font-size: 14px; }
.pr-box .pr-tb th { white-space: nowrap; }   /* every heading on one line */
.pr-box .pr-tb tr.go { cursor: pointer; }
.pr-box .pr-tb tr.go:hover td { background: var(--panel-2); }
.pr-box .pr-tb tfoot td { font-weight: 700; border-bottom: 0; }
.pr-box .pr-tb tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.pr-box .pr-tb thead th { position: sticky; top: 0; background: var(--panel); }
.pr-dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; align-items: baseline; }
.pr-trail { display: flex; flex-direction: column; gap: 8px; }
.pr-trail .tr { display: grid; grid-template-columns: 60px 18px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.pr-trail .d { color: var(--muted); }
.pr-trail i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block; }
.pr-trail i.a, .pr-trail i.amber { background: var(--amber); } .pr-trail i.red { background: var(--red); } .pr-trail i.accent { background: var(--accent); } .pr-trail i.n { background: var(--faint); }
.pr-trail .a { font-variant-numeric: tabular-nums; }
.pr-picks { display: flex; flex-direction: column; gap: 2px; max-height: 68vh; overflow-y: auto; }
.pr-pick { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.pr-pick:hover, .pr-pick:focus-visible { background: var(--panel-2); }
.pr-pick i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.pr-pick span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-pick b { font-weight: 600; font-size: 14px; }
.pr-fixc { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.pr-in { height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; width: 100%; box-sizing: border-box; }
.pr-fld { display: flex; flex-direction: column; gap: 6px; }
.pr-tools { display: flex; justify-content: flex-end; gap: 8px; }
.pr-paperwrap { background: #5b616d; border-radius: 12px; padding: 18px; max-height: 56vh; overflow: auto; }
.pr-paper { background: #fff; color: #111; padding: 36px 38px; min-height: 420px; font-size: 13px; display: flex; flex-direction: column; gap: 18px; border-radius: 2px; }
.pr-paper .top, .pr-paper .two { display: flex; justify-content: space-between; gap: 24px; }
.pr-paper .rt { text-align: right; }
.pr-paper h2 { margin: 0; font-size: 17px; }
.pr-paper .c { color: #666; font-size: 13px; }
.pr-paper table { width: 100%; border-collapse: collapse; }
.pr-paper th { background: #111; color: #fff; text-align: left; padding: 6px 8px; font-size: 13px; }
.pr-paper td { padding: 6px 8px; border-bottom: 1px solid #ddd; }
.pr-paper .r { text-align: right; }
.pr-paper .tot { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; width: 240px; margin-left: auto; }
.pr-paper .tot span:nth-child(even), .pr-paper .tot b:nth-child(even) { text-align: right; }
.pr-bills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pr-bill { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.pr-ph { height: 120px; border-radius: 8px; background: repeating-linear-gradient(0deg, var(--panel-2), var(--panel-2) 10px, var(--panel) 10px, var(--panel) 11px); display: flex; align-items: flex-end; padding: 8px; color: var(--muted); font-size: 13px; }
.pr-ph.big { height: 360px; }
.pr-ph.has { position: relative; padding: 0; overflow: hidden; } .pr-ph.has .pr-photo { position: absolute; inset: 0; } .pr-phcap { position: relative; z-index: 1; } .pr-ph.has .pr-phcap { margin: 8px; padding: 2px 6px; border-radius: 6px; background: var(--panel); color: var(--muted); }
.pr-photo { max-width: 100%; border-radius: 8px; } .pr-photo.s { height: 120px; object-fit: cover; width: 100%; }
.pr-ph.has .pr-photo.s { opacity: 1; }   /* real photos at full strength; only the placeholder (.pr-ph without .has) is dim */
.pr-lnk-row { cursor: pointer; }
#fwaWin .ap-ddf { min-width: 230px; }
.pr-wbody > * { flex-shrink: 0; }
.pr-btn { white-space: nowrap; }
/* Assign FWA Invoices window: the invoice number and the dates stay on one line; the list scrolls inside the window body, never over the foot */
#fwaWin .pr-box { overflow: visible; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
#fwaWin .pr-tb td, #fwaWin .pr-tb th { white-space: nowrap; }
#fwaWin .pr-tb thead th { position: static; }
#fwaWin .pr-tb td[data-wrap] { padding-top: 8px; padding-bottom: 8px; }
#fwaWin .pr-wbody { min-height: 0; }
.pr-lazy { display: flex; flex-direction: column; gap: 18px; }
.pr-win .pr-sohost { max-width: none; }
#workedWin { max-height: 94vh; }
#workedWin .pr-wbody { gap: 14px; padding-top: 16px; padding-bottom: 14px; }
#workedWin .pr-wbody td { padding-top: 7px; padding-bottom: 7px; }
