/* ═════════════════════════════════════════════════════════════════════════
   PROCUREMENT INTELLIGENCE - SUPPLIER PERFORMANCE (proc-suppliers.css)

   Only new selectors, every one prefixed .su-. The rail, strip, alerts,
   chips, pills, drawer and activity list are the workspace's own ws-, op-
   and rc- classes and are not restyled here. Same tokens, same greens,
   ambers and reds, and a light pass for every colour set below.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── The bar and the scope toggle ────────────────────────────────────── */
.su-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin: 4px 0 16px;
}
.su-bar-l h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.su-bar-l span { display: block; margin-top: 3px; font-size: 12px; color: var(--gray-light); }
.su-scope { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); }
.su-scope-b {
    font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; padding: 6px 14px; border-radius: 8px;
    border: 0; background: transparent; color: var(--gray-light);
    transition: background .14s ease, color .14s ease;
}
.su-scope-b:hover { color: var(--white); }
.su-scope-b.is-on { background: rgba(255,255,255,.1); color: var(--white); }
.su-strip { margin-bottom: 22px; }
.su-strip .ws-kpi { cursor: default; }
.su-strip .ws-kpi:hover { transform: none; border-color: var(--border); }
.su-alerts { margin-bottom: 18px; }
.su-err { margin-bottom: 10px; }

/* ── Sections ────────────────────────────────────────────────────────── */
.su-sec { margin-bottom: 26px; }
.su-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.su-sec-h h2 {
    margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gray-light);
}
.su-sec-s { font-size: 12px; color: var(--gray-light); opacity: .85; }
.su-quiet {
    padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border);
    font-size: 12.5px; line-height: 1.6; color: var(--gray-light);
}
.su-hint { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.55; color: var(--gray-light); opacity: .85; }

/* ── The table ───────────────────────────────────────────────────────── */
.su-tbl-w { overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025); }
.su-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.su-tbl th {
    text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 10px 12px; color: var(--gray-light); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.su-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--white); }
.su-tbl tbody tr:last-child td { border-bottom: 0; }
.su-tbl th.su-num, .su-tbl td.su-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.su-tbl td.su-num b { display: block; font-weight: 700; }
.su-tbl td.su-num i { display: block; font-style: normal; font-size: 10.5px; color: var(--gray-light); }
.su-tbl td.su-num i.is-warn { color: #e0a03b; }
.su-tbl td.su-num i.is-ok { color: #2fc07d; }
.su-tbl-s { font-size: 12px; }
.su-tbl-s th, .su-tbl-s td { padding: 7px 10px; }
.su-row { cursor: pointer; transition: background .12s ease; }
.su-row:hover td { background: rgba(255,255,255,.04); }
.su-row td:first-child { border-left: 3px solid transparent; }
.su-row.is-warn td:first-child { border-left-color: #e0a03b; }
.su-row.is-bad td:first-child { border-left-color: #ff6b6b; }
.su-row.is-stop td:first-child { border-left-color: var(--red); }
.su-vendor b { display: block; font-weight: 700; letter-spacing: -.01em; }
.su-vendor i { display: block; font-style: normal; font-size: 10.5px; color: var(--gray-light); }
.su-vendor em { font-style: normal; font-weight: 650; }
.su-vendor em.is-warn { color: #e0a03b; }
.su-pct.is-ok { color: #2fc07d; }
.su-pct.is-warn { color: #e0a03b; }
.su-pct.is-bad { color: #ff8f8f; }
.su-none { font-size: 11px; color: var(--gray-light); opacity: .75; }
.su-rating { white-space: nowrap; }
.su-rating .su-stars { margin-left: 8px; }

/* ── Grade and stars ─────────────────────────────────────────────────── */
.su-grade {
    display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 750; letter-spacing: .02em;
    padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,.08); color: var(--gray-light);
}
.su-grade.is-reliable { background: rgba(20,168,106,.18); color: #2fc07d; }
.su-grade.is-watch { background: rgba(224,160,59,.18); color: #e0a03b; }
.su-grade.is-slipping { background: rgba(255,107,107,.18); color: #ff8f8f; }
.su-grade.is-unscored { background: rgba(255,255,255,.06); color: var(--gray-light); }
.su-stars { font-size: 10px; letter-spacing: .06em; color: rgba(255,255,255,.4); }
.su-stars.is-none { letter-spacing: 0; font-size: 10.5px; opacity: .7; }

/* ── Vendors the directory cannot score ──────────────────────────────── */
.su-unl {
    padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); border-left: 3px solid #e0a03b;
    background: rgba(255,255,255,.03); margin-bottom: 8px;
}
.su-unl-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.su-unl-t b { font-size: 13px; font-weight: 700; color: var(--white); margin-right: auto; }
.su-ords { display: flex; flex-wrap: wrap; gap: 6px; }
.su-ord {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: inherit; font-size: 11.5px;
    padding: 5px 10px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--white);
}
.su-ord:hover { border-color: rgba(255,255,255,.25); }
.su-ord i { font-style: normal; font-size: 10.5px; color: var(--gray-light); }
.su-never { display: flex; flex-wrap: wrap; gap: 6px; }
.su-never-b {
    display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer; font: inherit; font-size: 12px;
    padding: 6px 11px; border-radius: 100px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--white);
}
.su-never-b:hover { border-color: rgba(255,255,255,.25); }
.su-never-b i { font-style: normal; font-size: 10.5px; color: var(--gray-light); }

/* ── The drawer ──────────────────────────────────────────────────────── */
.su-rc .ws-meta .su-grade { margin-right: 2px; }
.su-rc-ok { padding: 10px 14px; font-size: 12px; color: var(--gray-light); }
.su-score { margin: 12px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.su-score-h { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--white); }
.su-score-h span { flex: 1; }
.su-arith { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 11.5px; }
.su-arith dt { font-weight: 700; color: var(--gray-light); }
.su-arith dd { margin: 0; color: var(--white); }
.su-blk { margin-top: 14px; }
.su-blk h4 { margin: 0 0 8px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-light); }
.su-line {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 9px;
    border: 1px solid var(--border); border-left: 3px solid transparent; margin-bottom: 5px; font-size: 12px; color: var(--white);
}
.su-line.is-bad { border-left-color: #ff6b6b; }
.su-line.is-warn { border-left-color: #e0a03b; }
.su-line i { font-style: normal; font-size: 10.5px; color: var(--gray-light); }
.su-line i.is-warn { color: #e0a03b; }
.su-line .sr-act { margin-left: auto; }
.su-lnk { font: inherit; cursor: pointer; background: transparent; border: 0; padding: 0; color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.su-lnk:hover { color: #ff8f8f; }

/* ── Light theme ─────────────────────────────────────────────────────── */
html.light .su-bar-l h2 { color: var(--ink, #111); }
html.light .su-bar-l span { color: #556; }
html.light .su-scope { background: rgba(0,0,0,.03); }
html.light .su-scope-b { color: #556; }
html.light .su-scope-b:hover { color: #111; }
html.light .su-scope-b.is-on { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
html.light .su-sec-h h2 { color: #556; }
html.light .su-sec-s { color: #556; }
html.light .su-quiet { color: #556; }
html.light .su-hint { color: #556; }
html.light .su-tbl-w { background: #fff; }
html.light .su-tbl th { color: #556; }
html.light .su-tbl td { color: #111; }
html.light .su-tbl td.su-num i { color: #556; }
html.light .su-row:hover td { background: rgba(0,0,0,.03); }
html.light .su-vendor i { color: #556; }
html.light .su-pct.is-ok { color: #0f8a55; }
html.light .su-pct.is-warn { color: #a8701a; }
html.light .su-pct.is-bad { color: #c41717; }
html.light .su-none { color: #556; }
html.light .su-grade { background: rgba(0,0,0,.06); color: #556; }
html.light .su-grade.is-reliable { background: rgba(20,168,106,.14); color: #0f8a55; }
html.light .su-grade.is-watch { background: rgba(224,160,59,.16); color: #a8701a; }
html.light .su-grade.is-slipping { background: rgba(196,23,23,.1); color: #c41717; }
html.light .su-grade.is-unscored { background: rgba(0,0,0,.05); color: #556; }
html.light .su-stars { color: rgba(0,0,0,.35); }
html.light .su-unl { background: #fff; }
html.light .su-unl-t b { color: #111; }
html.light .su-ord { background: #fff; color: #111; }
html.light .su-ord i { color: #556; }
html.light .su-never-b { background: #fff; color: #111; }
html.light .su-never-b i { color: #556; }
html.light .su-rc-ok { color: #556; }
html.light .su-score { background: #fff; }
html.light .su-score-h { color: #111; }
html.light .su-arith dt { color: #556; }
html.light .su-arith dd { color: #111; }
html.light .su-blk h4 { color: #556; }
html.light .su-line { color: #111; }
html.light .su-line i { color: #556; }
html.light .su-line i.is-warn { color: #a8701a; }
html.light .su-lnk { color: #111; }
html.light .su-lnk:hover { color: #c41717; }
