/* SCHATTENLOS additions on top of the TRUGLOS theme (tokens: --bg*, --text*, --accent, --critical, --high,
   --medium, --low come from main.css and follow all four themes). */

/* brand */
.logo-icon, .logo-icon .logo-mark { color: var(--accent); }
.auth-mark { color: var(--accent); flex-shrink: 0; }
/* 1.2.7 logo "Signal": sidebar box without the tinted tile, the mark carries the accent itself */
.logo-icon { background: transparent; border-color: transparent; }
/* "SCHATTENLOS" has 11 letters (TRUGLOS 7): slightly smaller and tighter so it fits the 240 px sidebar */
.sidebar .logo-name { font-size: 12.5px; letter-spacing: .02em; }
.muted-inline { margin-left: 6px; color: var(--text-muted); }

/* layout helpers */
.mt-14 { margin-top: 14px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.txt-critical { color: var(--critical); font-weight: 600; }
.sub-h { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; }
.sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.big { font-size: 18px; letter-spacing: .04em; }
.kpi-link { text-decoration: none; color: inherit; display: block; }
.kpi-value--sm { font-size: 18px; margin: 6px 0 4px; }
.explain { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0 0 14px; max-width: 1100px; }
.why { max-width: 420px; color: var(--text-muted); }
.panel-header { gap: 10px; flex-wrap: wrap; }
.data-table td.mono, .mono { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.detail { max-width: 380px; word-break: break-word; }
.log-box { max-height: 640px; font-size: 12px; }

/* pager */
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding: 12px 2px 2px; }

/* confidence bar */
.conf { display: inline-flex; align-items: center; gap: 6px; }
.conf__bar { width: 54px; height: 5px; border-radius: 3px; background: var(--bg-hover); overflow: hidden; display: inline-block; }
.conf__fill { display: block; height: 100%; background: var(--accent); }
.conf__num { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-muted); width: 24px; text-align: right; }

/* chips: candidate status, finding status, classes, jobs, share links */
.chip--st-new { background: var(--bg-hover); color: var(--text-muted); }
.chip--st-probable { background: var(--medium-dim); color: var(--medium); }
.chip--st-confirmed { background: var(--low-dim); color: var(--low); }
.chip--st-excluded { background: var(--critical-dim); color: var(--critical); }
.chip--fs-open { background: var(--critical-dim); color: var(--critical); }
.chip--fs-in_progress { background: var(--medium-dim); color: var(--medium); }
.chip--fs-remediated { background: var(--low-dim); color: var(--low); }
.chip--fs-accepted, .chip--fs-false_positive { background: var(--bg-hover); color: var(--text-muted); }
.chip--cls-central_it { background: var(--accent-dim); color: var(--accent); }
.chip--cls-division { background: var(--low-dim); color: var(--low); }
.chip--cls-saas { background: var(--medium-dim); color: var(--medium); }
.chip--cls-external { background: var(--bg-hover); color: var(--text-muted); }
.chip--job-queued { background: var(--bg-hover); color: var(--text-muted); }
.chip--job-running { background: var(--accent-dim); color: var(--accent); }
.chip--job-done { background: var(--low-dim); color: var(--low); }
.chip--job-failed { background: var(--critical-dim); color: var(--critical); }
.chip--job-cancelled { background: var(--bg-hover); color: var(--text-muted); }
.chip--share-active { background: var(--low-dim); color: var(--low); }
.chip--share-revoked, .chip--share-locked { background: var(--critical-dim); color: var(--critical); }
.chip--share-expired, .chip--share-used-up { background: var(--bg-hover); color: var(--text-muted); }
.risk-pill--info { background: var(--bg-hover); color: var(--text-muted); }
.status-dot--busy { background: var(--accent) !important; box-shadow: 0 0 6px var(--accent) !important; }

/* facts / open checks (attribution) */
.facts, .checks { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.facts li { line-height: 1.5; }
.checks li { padding-left: 18px; position: relative; line-height: 1.5; }
.checks li::before { content: '○'; position: absolute; left: 0; color: var(--medium); }

/* bulk action bar on the review list */
.bulkbar { margin-bottom: 10px; position: sticky; top: 0; z-index: 3; }
.bulkbar .panel-body { padding: 10px 14px; }
.bulk-note { min-width: 260px; flex: 1; }

/* admin settings */
.settings-form { display: flex; flex-direction: column; gap: 4px; }
.setting-row { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid var(--border); }
.setting-row .form-label { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.setting-row .form-hint { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.toggle-line { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); }
@media (max-width: 760px) { .setting-row { grid-template-columns: 1fr; } }

/* stand-alone shared list page */
.share-body { background: var(--bg); min-height: 100vh; }
.share-head { display: flex; gap: 12px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--border);
  color: var(--accent); }
.share-head .logo-name { color: var(--text); font-size: 15px; }
.share-head .logo-sub { color: var(--text-muted); font-size: 12px; }
.share-main { padding: 24px 28px; max-width: 1280px; margin: 0 auto; }
.share-card { margin: 40px auto; }

/* keep short identifiers and dates on one line */
.data-table td.ent, .data-table td.date { white-space: nowrap; }
.share-main a, .app-footer a { color: var(--link); text-decoration-color: var(--link-line); text-underline-offset: 2px; }

/* prioritisation (1.2.0) — existing token pairs only (contrast checked in tools/contrast_check.py) */
.prio { display:inline-block; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:600; letter-spacing:.03em; white-space:nowrap; }
.prio--3DF { background:var(--critical-dim); color:var(--critical); }
.prio--3D { background:var(--high-dim); color:var(--high); }
.prio--14D { background:var(--medium-dim); color:var(--medium); }
.prio--60D { background:var(--low-dim); color:var(--low); }
.prio--SEV, .prio--none { background:var(--bg-hover); color:var(--text-muted); }
.chip--kev { background:var(--critical-dim); color:var(--critical); font-weight:600; }
.chip--est { background:var(--medium-dim); color:var(--medium); }
.data-table td.num, .data-table th.num { text-align:right; font-variant-numeric:tabular-nums; }
.budget-line td { border-top:2px dashed var(--critical) !important; }
.budget-line-label { color:var(--critical); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.measure-table td, .measure-table th { white-space:nowrap; }

/* sidebar (1.2.0): sections keep their natural height and the whole sidebar scrolls — before, each section had an
   equal share and clipped its last item (e.g. "Sign out") on small screens */
.sidebar { overflow-y: auto; overflow-x: hidden; }
.sidebar-section { flex: 0 0 auto; overflow: visible; padding-top: 14px; }
.sidebar > .sidebar-section:last-of-type { flex: 1 0 auto; }
