/* «أداء شركتي» (/company/performance), after the dashboard-design rules: one question («where do our bids die?»), wordless (every
   explanation is a tooltip, data-tip, read by limits.js), healthy data calm teal and grey, the technical rejections the one warm mark.
   Colours are the app's own tokens; state is always a word or a symbol as well as a colour. */
html[data-ui="v2"] .fx-page--performance{
  --perf-won:var(--fx-success); --perf-won-ink:var(--fx-on-primary); --perf-won-soft:var(--fx-success-bg);
  --perf-lost:var(--fx-blue-200); --perf-lost-ink:var(--fx-blue-700); --perf-lost-line:var(--fx-blue-300);
  --perf-warn-bg:var(--fx-warning-bg); --perf-warn-line:var(--fx-warning-dot); --perf-warn-ink:var(--fx-warning);
  --perf-track:var(--fx-surface-sunken);
  max-inline-size:1180px;display:grid;gap:var(--fx-space-4);align-content:start;
}
html[data-ui="v2"].dark .fx-page--performance{
  --perf-won:#2FB5B2; --perf-won-ink:#04282A;
  --perf-lost:#3A5A85; --perf-lost-ink:#fff; --perf-lost-line:#5F7CA3;
}
html[data-ui="v2"] .fx-page--performance :is(.fx-perf-cell,.fx-perf-oseg,.fx-perf-clab > div,.fx-perf-yc,.fx-perf-rk li,.fx-perf-dvr,.fx-perf-gap__v,.fx-perf-pass,.fx-perf-facts dd,.fx-perf-pill,.fx-perf-prep__value)[data-tip]{position:relative}
html[data-ui="v2"] .fx-page--performance [data-tip]:focus-visible{outline:2px solid var(--perf-won);outline-offset:2px;border-radius:6px}

/* head: title + company, then one toolbar row (period, coverage, follow-up, export, history) */
html[data-ui="v2"] .fx-page--performance .fx-perf-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--fx-space-3) var(--fx-space-4)}
html[data-ui="v2"] .fx-page--performance .fx-perf-title{display:flex;align-items:center;gap:var(--fx-space-3);flex-wrap:wrap}
html[data-ui="v2"] .fx-page--performance .fx-perf-title .fx-title{margin:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-co{color:var(--fx-text-muted);font-size:var(--fx-text-base)}
html[data-ui="v2"] .fx-page--performance .fx-perf-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--fx-space-2)}
html[data-ui="v2"] .fx-page--performance .fx-perf-seg{display:inline-flex;padding:3px;border-radius:var(--fx-radius-md);background:var(--perf-track)}
html[data-ui="v2"] .fx-page--performance .fx-perf-seg a{display:inline-flex;align-items:center;min-block-size:32px;padding:0 14px;border-radius:var(--fx-radius-sm);color:var(--fx-text-muted);font-size:var(--fx-text-sm);text-decoration:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-seg a:hover{color:var(--fx-text)}
html[data-ui="v2"] .fx-page--performance .fx-perf-seg a[aria-current="true"]{background:var(--fx-surface);color:var(--fx-text);font-weight:500;box-shadow:var(--fx-shadow-xs)}
html[data-ui="v2"] .fx-page--performance .fx-perf-seg a:focus-visible{outline:none;box-shadow:var(--fx-ring)}
html[data-ui="v2"] .fx-page--performance .fx-perf-year{margin:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-year select{inline-size:auto}
html[data-ui="v2"] .fx-page--performance .fx-perf-pill{display:inline-flex;align-items:center;gap:6px;min-block-size:32px;padding:0 12px;border-radius:var(--fx-radius-pill);border:1px solid var(--fx-border-strong);background:var(--fx-surface);color:var(--fx-text-muted);font-size:var(--fx-text-xs);text-decoration:none}
html[data-ui="v2"] .fx-page--performance a.fx-perf-pill:hover{border-color:var(--fx-text-subtle);color:var(--fx-text)}
html[data-ui="v2"] .fx-page--performance .fx-perf-history{display:inline-flex;align-items:center;gap:4px;min-block-size:32px;color:var(--fx-link);font-size:var(--fx-text-sm);font-weight:500;text-decoration:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-history:hover{text-decoration:underline;text-underline-offset:3px}
html[data-ui="v2"] .fx-page--performance .fx-perf-history:focus-visible{outline:none;box-shadow:var(--fx-ring);border-radius:var(--fx-radius-sm)}

/* cards */
html[data-ui="v2"] .fx-page--performance .fx-perf-card{display:grid;gap:var(--fx-space-4);align-content:start;min-inline-size:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-card__title{margin:0;font-size:var(--fx-text-ui);font-weight:600;line-height:1.4}
html[data-ui="v2"] .fx-page--performance .fx-perf-card__head{display:flex;align-items:center;justify-content:space-between;gap:var(--fx-space-3)}
html[data-ui="v2"] .fx-page--performance .fx-perf-hr{border:0;border-block-start:1px solid var(--fx-border);margin:0}

/* headline strip: one card, five cells divided by hairlines */
html[data-ui="v2"] .fx-page--performance .fx-perf-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:var(--fx-space-2) 0}
html[data-ui="v2"] .fx-page--performance .fx-perf-cell{display:grid;gap:2px;align-content:start;padding:var(--fx-space-3) var(--fx-space-5);min-inline-size:0;border-radius:var(--fx-radius-md)}
html[data-ui="v2"] .fx-page--performance .fx-perf-cell + .fx-perf-cell{border-inline-start:1px solid var(--fx-border)}
html[data-ui="v2"] .fx-page--performance .fx-perf-cell__l{color:var(--fx-text-muted);font-size:var(--fx-text-xs)}
html[data-ui="v2"] .fx-page--performance .fx-perf-cell__v{display:flex;align-items:baseline;gap:5px;font-size:1.65rem;font-weight:500;line-height:1.25;letter-spacing:-.01em}
html[data-ui="v2"] .fx-page--performance .fx-perf-cell__v small{font-size:var(--fx-text-2xs);color:var(--fx-text-subtle);font-weight:400;letter-spacing:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-cell__b{color:var(--fx-text-subtle);font-size:var(--fx-text-2xs);min-block-size:1.3em}

/* layout */
html[data-ui="v2"] .fx-page--performance .fx-perf-main{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--fx-space-4);align-items:stretch}
html[data-ui="v2"] .fx-page--performance .fx-perf-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--fx-space-4);align-items:stretch}

/* what became of the bids */
html[data-ui="v2"] .fx-page--performance .fx-perf-fate{display:grid;gap:var(--fx-space-2)}
html[data-ui="v2"] .fx-page--performance .fx-perf-obar{display:flex;gap:3px;block-size:52px}
html[data-ui="v2"] .fx-page--performance .fx-perf-oseg{display:flex;align-items:center;justify-content:center;min-inline-size:0;border-radius:6px;font-size:1.2rem;font-weight:500;cursor:default}
html[data-ui="v2"] .fx-page--performance .fx-perf-oseg--won{background:var(--perf-won);color:var(--perf-won-ink)}
html[data-ui="v2"] .fx-page--performance .fx-perf-oseg--price{background:var(--perf-lost);color:var(--perf-lost-ink)}
html[data-ui="v2"] .fx-page--performance .fx-perf-oseg--tech{background-color:var(--perf-warn-bg);color:var(--perf-warn-ink);border:1.5px solid var(--perf-warn-line);
  background-image:repeating-linear-gradient(135deg,color-mix(in srgb,var(--perf-warn-line) 55%,transparent) 0 1.5px,transparent 1.5px 8px)}
html[data-ui="v2"] .fx-page--performance .fx-perf-oseg--tech bdi{background:var(--perf-warn-bg);padding:1px 10px;border-radius:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-olab{display:flex;gap:3px}
html[data-ui="v2"] .fx-page--performance .fx-perf-olabc{display:grid;gap:var(--fx-space-1);align-content:start;min-inline-size:0;font-size:var(--fx-text-xs);color:var(--fx-text-muted)}
html[data-ui="v2"] .fx-page--performance .fx-perf-olabc__t{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-olabc__t b{color:var(--fx-text);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-perf-sw{display:inline-block;inline-size:10px;block-size:10px;border-radius:3px;flex:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-sw--won{background:var(--perf-won)}
html[data-ui="v2"] .fx-page--performance .fx-perf-sw--price{background:var(--perf-lost)}
html[data-ui="v2"] .fx-page--performance .fx-perf-sw--lost{background:color-mix(in srgb,var(--perf-lost) 55%,var(--fx-surface))}
html[data-ui="v2"] .fx-page--performance .fx-perf-sw--they{background:var(--perf-lost-line)}
html[data-ui="v2"] .fx-page--performance .fx-perf-sw--tech{background:var(--perf-warn-bg);border:1.5px solid var(--perf-warn-line)}
html[data-ui="v2"] .fx-page--performance .fx-perf-act{display:inline-flex;align-items:center;gap:4px;inline-size:fit-content;min-block-size:24px;padding:2px 10px;border-radius:var(--fx-radius-pill);border:1px solid var(--perf-warn-line);background:var(--perf-warn-bg);color:var(--perf-warn-ink);font-size:var(--fx-text-2xs);font-weight:500;text-decoration:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-act:hover{filter:brightness(.97)}
html[data-ui="v2"] .fx-page--performance .fx-perf-act:focus-visible{outline:none;box-shadow:var(--fx-ring)}

/* the price gap against the winner: a bullet graph (bar = the median gap, bands = near / close / far) */
html[data-ui="v2"] .fx-page--performance .fx-perf-gap__h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--fx-space-3);margin-block-end:var(--fx-space-2);font-size:var(--fx-text-sm)}
html[data-ui="v2"] .fx-page--performance .fx-perf-gap__k{color:var(--fx-text-muted)}
html[data-ui="v2"] .fx-page--performance .fx-perf-gap__v{font-size:1.1rem;font-weight:500;direction:ltr;unicode-bidi:isolate}
html[data-ui="v2"] .fx-page--performance .fx-perf-gap__v.is-high{color:var(--perf-warn-ink)}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul{position:relative;display:flex;block-size:24px;border-radius:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul i{display:block;block-size:100%}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul__r1{background:color-mix(in srgb,var(--fx-text) 6%,transparent);border-start-start-radius:6px;border-end-start-radius:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul__r2{background:color-mix(in srgb,var(--fx-text) 11%,transparent)}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul__r3{background:color-mix(in srgb,var(--fx-text) 17%,transparent);border-start-end-radius:6px;border-end-end-radius:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul__m{position:absolute;inset-inline-start:0;inset-block:8px;block-size:8px;border-radius:4px;background:var(--fx-primary)}
html[data-ui="v2"] .fx-page--performance .fx-perf-bul__ax{display:flex;justify-content:space-between;margin-block-start:6px;font-size:var(--fx-text-2xs);color:var(--fx-text-subtle)}

/* wins once technically accepted: one ratio bar */
html[data-ui="v2"] .fx-page--performance .fx-perf-pass{border-radius:var(--fx-radius-md)}
html[data-ui="v2"] .fx-page--performance .fx-perf-pass .fx-perf-gap__h{margin-block-end:var(--fx-space-2)}
html[data-ui="v2"] .fx-page--performance .fx-perf-pbar{block-size:8px;border-radius:4px;background:var(--perf-track)}
html[data-ui="v2"] .fx-page--performance .fx-perf-pbar b{display:block;block-size:100%;min-inline-size:3px;border-radius:4px;background:var(--perf-won)}

/* cost of a win: booklets + preparation, then four facts and the preparation-cost setting */
html[data-ui="v2"] .fx-page--performance .fx-perf-cbar{display:flex;gap:3px;block-size:14px}
html[data-ui="v2"] .fx-page--performance .fx-perf-cbar b{display:block;min-inline-size:3px;border-radius:4px}
html[data-ui="v2"] .fx-page--performance .fx-perf-cbar__c1{background:var(--fx-primary)}
html[data-ui="v2"] .fx-page--performance .fx-perf-cbar__c2{background-color:var(--perf-lost);background-image:repeating-linear-gradient(135deg,color-mix(in srgb,var(--fx-text) 35%,transparent) 0 1.5px,transparent 1.5px 6px)}
html[data-ui="v2"] .fx-page--performance .fx-perf-clab{display:flex;gap:3px;margin-block-start:var(--fx-space-2);font-size:var(--fx-text-xs);color:var(--fx-text-muted)}
html[data-ui="v2"] .fx-page--performance .fx-perf-clab > div{display:grid;min-inline-size:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-clab__n{font-size:1.1rem;font-weight:500;color:var(--fx-text)}
html[data-ui="v2"] .fx-page--performance .fx-perf-few{margin:0;color:var(--fx-text-muted);font-size:var(--fx-text-sm)}
html[data-ui="v2"] .fx-page--performance .fx-perf-facts{margin:0;display:grid}
html[data-ui="v2"] .fx-page--performance .fx-perf-facts > div{display:flex;align-items:baseline;justify-content:space-between;gap:var(--fx-space-3);padding:9px 0;border-block-start:1px solid var(--fx-border)}
html[data-ui="v2"] .fx-page--performance .fx-perf-facts dt{color:var(--fx-text-muted);font-size:var(--fx-text-sm)}
html[data-ui="v2"] .fx-page--performance .fx-perf-facts dd{margin:0;font-weight:500;font-size:var(--fx-text-sm)}
html[data-ui="v2"] .fx-page--performance .fx-perf-facts dd small{color:var(--fx-text-subtle);font-weight:400;font-size:var(--fx-text-2xs)}
html[data-ui="v2"] .fx-page--performance .fx-perf-facts .is-warn dt,html[data-ui="v2"] .fx-page--performance .fx-perf-facts .is-warn dd{color:var(--perf-warn-ink)}
html[data-ui="v2"] .fx-page--performance .fx-perf-prep{display:flex;align-items:center;flex-wrap:wrap;gap:var(--fx-space-2) var(--fx-space-3);padding-block-start:var(--fx-space-3);border-block-start:1px solid var(--fx-border)}
html[data-ui="v2"] .fx-page--performance .fx-perf-prep label{color:var(--fx-text-muted);font-size:var(--fx-text-xs)}
html[data-ui="v2"] .fx-page--performance .fx-perf-prep__form{display:flex;align-items:center;gap:var(--fx-space-2);margin-inline-start:auto}
html[data-ui="v2"] .fx-page--performance .fx-perf-prep__form .fx-input{inline-size:112px;text-align:end}
html[data-ui="v2"] .fx-page--performance .fx-perf-prep__value{margin-inline-start:auto;font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-perf-prep__saved{color:var(--perf-won);font-size:var(--fx-text-xs)}

/* results by year: columns from zero (length = bids, teal = won); a year in progress is dashed, years outside the period are faded */
html[data-ui="v2"] .fx-page--performance .fx-perf-lg{display:flex;gap:14px;font-size:var(--fx-text-2xs);color:var(--fx-text-muted)}
html[data-ui="v2"] .fx-page--performance .fx-perf-lg span{display:inline-flex;align-items:center;gap:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-yrs{display:flex;align-items:flex-end;justify-content:space-around;gap:10px;min-block-size:170px;border-block-end:1px solid var(--fx-border-strong)}
html[data-ui="v2"] .fx-page--performance .fx-perf-yc{display:grid;justify-items:center;gap:4px;flex:1 1 0;max-inline-size:110px;min-inline-size:0;cursor:default}
html[data-ui="v2"] .fx-page--performance .fx-perf-yc.is-out,html[data-ui="v2"] .fx-page--performance .fx-perf-yl .is-out{opacity:.4}
html[data-ui="v2"] .fx-page--performance .fx-perf-yc__rate{min-block-size:1.3em;font-size:var(--fx-text-xs);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-perf-yc__bar{position:relative;inline-size:100%;max-inline-size:64px;border-radius:8px 8px 0 0;background:color-mix(in srgb,var(--perf-lost) 55%,var(--fx-surface))}
html[data-ui="v2"] .fx-page--performance .fx-perf-yc.is-part .fx-perf-yc__bar{background:transparent;border:1.5px dashed var(--perf-lost-line);border-block-end:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-yc__bar i{position:absolute;inset-inline:0;inset-block-end:0;background:var(--perf-won)}
html[data-ui="v2"] .fx-page--performance .fx-perf-yl{display:flex;justify-content:space-around;gap:10px;margin-block-start:var(--fx-space-2)}
html[data-ui="v2"] .fx-page--performance .fx-perf-yl > div{flex:1 1 0;max-inline-size:110px;display:grid;justify-items:center;font-size:var(--fx-text-2xs);color:var(--fx-text-muted)}
html[data-ui="v2"] .fx-page--performance .fx-perf-yl b{font-weight:500;color:var(--fx-text);font-size:var(--fx-text-sm)}

/* ranked lists (sectors, agencies): a 3 px bar along the row's bottom edge, length = bids, teal part = won */
html[data-ui="v2"] .fx-page--performance .fx-perf-rk{list-style:none;margin:0;padding:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk-h,html[data-ui="v2"] .fx-page--performance .fx-perf-rk li{display:grid;grid-template-columns:minmax(0,1fr) 46px 62px 58px;align-items:center;gap:var(--fx-space-2)}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk-h{padding:0 4px 6px;font-size:var(--fx-text-2xs);color:var(--fx-text-subtle)}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk-h span:nth-child(n+2){text-align:end}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk-h span:nth-child(2){text-align:center}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk li{position:relative;padding:9px 4px 12px;border-radius:6px;cursor:default}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk li:hover{background:color-mix(in srgb,var(--fx-text) 4%,transparent)}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fx-text-sm)}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__rt{text-align:center;border-radius:var(--fx-radius-pill);padding:0 6px;background:var(--perf-won-soft);font-size:var(--fx-text-2xs);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__rt.is-none{background:transparent}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__of{font-size:var(--fx-text-xs);color:var(--fx-text-muted);text-align:end;font-variant-numeric:tabular-nums}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__am{font-size:var(--fx-text-xs);text-align:end}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk .is-zero{color:var(--fx-text-subtle)}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__bars{position:absolute;inset-inline:4px;inset-block-end:4px;block-size:3px;border-radius:2px;background:var(--perf-track)}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__bars s,html[data-ui="v2"] .fx-page--performance .fx-perf-rk__bars b{position:absolute;inset-block:0;inset-inline-start:0;border-radius:2px;text-decoration:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__bars s{background:var(--perf-lost);opacity:.8}
html[data-ui="v2"] .fx-page--performance .fx-perf-rk__bars b{background:var(--perf-won)}

/* head to head: one bar per rival, wins on the inline-start side, losses on the inline-end side, from a centre axis */
html[data-ui="v2"] .fx-page--performance .fx-perf-dv-h{display:flex;justify-content:space-between;font-size:var(--fx-text-2xs);color:var(--fx-text-muted)}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv-h span{display:inline-flex;align-items:center;gap:6px}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv-list{display:grid}
html[data-ui="v2"] .fx-page--performance .fx-perf-dvr{position:relative;display:grid;gap:5px;padding:7px 2px 8px;border-radius:6px;color:inherit;text-decoration:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-dvr:hover{background:color-mix(in srgb,var(--fx-text) 4%,transparent)}
html[data-ui="v2"] .fx-page--performance .fx-perf-dvr:focus-visible{outline:none;box-shadow:var(--fx-ring)}
html[data-ui="v2"] .fx-page--performance .fx-perf-dvr__top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--fx-space-3);min-inline-size:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-dvr__nm{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fx-text-sm)}
html[data-ui="v2"] .fx-page--performance .fx-perf-dvr__met{flex:none;color:var(--fx-text-subtle);font-size:var(--fx-text-2xs)}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv{display:grid;grid-template-columns:18px minmax(0,1fr) minmax(0,1fr) 18px;align-items:center;gap:4px}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__n{text-align:center;font-size:var(--fx-text-xs);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__n.is-zero{color:var(--fx-text-subtle);font-weight:400}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__t1,html[data-ui="v2"] .fx-page--performance .fx-perf-dv__t2{display:flex;block-size:10px;background:var(--perf-track)}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__t1{justify-content:flex-end;border-radius:0 5px 5px 0}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__t2{justify-content:flex-start;border-radius:5px 0 0 5px}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__t1 b{display:block;block-size:100%;background:var(--perf-won);border-radius:0 5px 5px 0}
html[data-ui="v2"] .fx-page--performance .fx-perf-dv__t2 b{display:block;block-size:100%;background:var(--perf-lost-line);border-radius:5px 0 0 5px}
html[data-ui="v2"][dir="ltr"] .fx-page--performance .fx-perf-dv__t1{border-radius:5px 0 0 5px}
html[data-ui="v2"][dir="ltr"] .fx-page--performance .fx-perf-dv__t2{border-radius:0 5px 5px 0}
html[data-ui="v2"][dir="ltr"] .fx-page--performance .fx-perf-dv__t1 b{border-radius:5px 0 0 5px}
html[data-ui="v2"][dir="ltr"] .fx-page--performance .fx-perf-dv__t2 b{border-radius:0 5px 5px 0}

@media (max-width:980px){
  html[data-ui="v2"] .fx-page--performance :is(.fx-perf-main,.fx-perf-two){grid-template-columns:minmax(0,1fr)}
  html[data-ui="v2"] .fx-page--performance .fx-perf-strip{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--fx-space-2)}
  html[data-ui="v2"] .fx-page--performance .fx-perf-cell + .fx-perf-cell{border-inline-start:0}
  html[data-ui="v2"] .fx-page--performance .fx-perf-cell{padding:var(--fx-space-3) var(--fx-space-4)}
}
@media (max-width:560px){
  html[data-ui="v2"] .fx-page--performance .fx-perf-olab{flex-wrap:wrap}
  html[data-ui="v2"] .fx-page--performance .fx-perf-rk-h,html[data-ui="v2"] .fx-page--performance .fx-perf-rk li{grid-template-columns:minmax(0,1fr) 40px 52px 52px}
}
@media (prefers-reduced-motion:no-preference){
  html[data-ui="v2"] .fx-page--performance :is(.fx-perf-seg a,.fx-perf-pill,.fx-perf-act){transition:background-color var(--fx-dur-fast) ease,border-color var(--fx-dur-fast) ease,color var(--fx-dur-fast) ease}
}

/* numbers that open the rows behind them: outcome segments and year columns are links to the bid list (#bids) */
html[data-ui="v2"] .fx-page--performance a.fx-perf-oseg{text-decoration:none;cursor:pointer}
html[data-ui="v2"] .fx-page--performance a.fx-perf-oseg:hover{filter:brightness(.96)}
html[data-ui="v2"] .fx-page--performance a.fx-perf-oseg.is-sel{outline:2px solid var(--fx-primary);outline-offset:2px}
html[data-ui="v2"] .fx-page--performance a.fx-perf-yc{color:inherit;text-decoration:none;cursor:pointer;border-radius:6px}
html[data-ui="v2"] .fx-page--performance a.fx-perf-yc:hover .fx-perf-yc__bar{box-shadow:0 0 0 2px color-mix(in srgb,var(--fx-primary) 35%,transparent)}
html[data-ui="v2"] .fx-page--performance a.fx-perf-yc.is-sel .fx-perf-yc__bar{box-shadow:0 0 0 2px var(--fx-primary)}
html[data-ui="v2"] .fx-page--performance a.fx-perf-yc:focus-visible{outline:none;box-shadow:var(--fx-ring)}
html[data-ui="v2"] .fx-page--performance .fx-perf-gap__n{margin:var(--fx-space-2) 0 0;color:var(--perf-warn-ink);font-size:var(--fx-text-xs);font-weight:500;inline-size:fit-content}

/* the follow-up list and the bid list (their rows are the shared .fx-need / .fx-app rules of applications.css) */
html[data-ui="v2"] .fx-page--performance .fx-apps__section{margin:0}
html[data-ui="v2"] .fx-page--performance .fx-perf-bids__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--fx-space-2) var(--fx-space-4);margin-block-end:var(--fx-space-3)}
html[data-ui="v2"] .fx-page--performance .fx-perf-bids__head .fx-apps__h{margin:0;margin-inline-end:auto}
html[data-ui="v2"] .fx-page--performance .fx-perf-bids__head .list-export{margin:0}
html[data-ui="v2"] .fx-page--performance .fx-apps__srcchip{display:inline-flex;align-items:center;gap:6px;min-block-size:32px;padding:0 12px;border:1px solid var(--fx-border-strong);border-radius:var(--fx-radius-pill);background:var(--fx-surface);color:var(--fx-text-muted);font-size:var(--fx-text-xs);text-decoration:none}
html[data-ui="v2"] .fx-page--performance .fx-apps__srcchip[aria-current="page"]{background:var(--perf-track);color:var(--fx-text);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-apps__seg .fx-perf-sw{margin-inline-end:2px}
html[data-ui="v2"] .fx-page--performance .fx-perf-flag{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:var(--fx-radius-pill);border:1px solid var(--perf-warn-line);background:var(--perf-warn-bg);color:var(--perf-warn-ink);font-size:var(--fx-text-2xs);font-weight:500;white-space:nowrap}

/* a long bid list shows its first rows and folds the rest */
html[data-ui="v2"] .fx-page--performance .fx-perf-more{margin-block-start:var(--fx-space-3)}
html[data-ui="v2"] .fx-page--performance .fx-perf-more > summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;min-block-size:40px;border:1px solid var(--fx-border-strong);border-radius:var(--fx-radius-md);background:var(--fx-surface);color:var(--fx-link);font-size:var(--fx-text-sm);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-perf-more > summary::-webkit-details-marker{display:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-more > summary:hover{background:var(--fx-surface-hover)}
html[data-ui="v2"] .fx-page--performance .fx-perf-more > summary:focus-visible{outline:none;box-shadow:var(--fx-ring)}
html[data-ui="v2"] .fx-page--performance .fx-perf-more[open] > summary{display:none}
html[data-ui="v2"] .fx-page--performance .fx-perf-more > .fx-apps__rows{margin-block-start:0}

/* follow-up list: quick filter in the head, and under each tender when it was last read from Etimad (amber when late) with a refresh button */
html[data-ui="v2"] .fx-page--performance .fx-perf-needs__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--fx-space-2) var(--fx-space-4);margin-block-end:var(--fx-space-3)}
html[data-ui="v2"] .fx-page--performance .fx-perf-needs__head .fx-apps__h{margin:0;margin-inline-end:auto}
html[data-ui="v2"] .fx-page--performance .fx-need__check{display:flex;align-items:center;gap:6px;margin-block-start:2px}
html[data-ui="v2"] .fx-page--performance .fx-need__fresh{position:relative;color:var(--fx-text-subtle);font-size:var(--fx-text-2xs)}
html[data-ui="v2"] .fx-page--performance .fx-need__fresh.is-stale{color:var(--perf-warn-ink);font-weight:500}
html[data-ui="v2"] .fx-page--performance .fx-need__refresh{margin:0;display:inline-flex}
html[data-ui="v2"] .fx-page--performance .fx-need__refreshbtn{position:relative;display:inline-grid;place-items:center;inline-size:28px;block-size:28px;border:1px solid var(--fx-border-strong);border-radius:var(--fx-radius-sm);background:var(--fx-surface);color:var(--fx-text-muted);cursor:pointer}
html[data-ui="v2"] .fx-page--performance .fx-need__refreshbtn:hover{color:var(--fx-text);background:var(--fx-surface-hover)}
html[data-ui="v2"] .fx-page--performance .fx-need__refreshbtn:focus-visible{outline:none;box-shadow:var(--fx-ring)}
